Skip to content

Releases: sinnhirl/cdt-smart-snapshot

v0.2.1

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 08:47
db94330

Major fix: DOM query tools actually work now (R4-1)

v0.2.0 shipped a serious defect in get_node / element_to_selector: every DOM
lookup failed 100% of the time
. Root cause: CDP objectIds are bound to the
session that created them; the implementation resolved the node in one CDP
session and read DOM in a second, so the objectId was invalid and the tools
could only degrade to domState: unavailable.

Fixed in v0.2.1: resolve and read reuse the same CDP session. Verified
against a real browser:

  • get_node(uid) now returns real tagName / cssSelector / rect / visible / textContent
  • element_to_selector(uid) now returns a unique CSS selector you can feed
    straight to the official chrome-devtools-mcp click / fill
  • queryDomByBackendNodeId releases its session to avoid connection leaks

If you are on v0.2.0, upgrade: npm install -g cdt-smart-snapshot@latest


What's Changed

Bug Fixes

  • reuse CDP session for DOM lookup so objectId resolves (R4-1) — the major fix above
  • accurate errors for AX-only nodes in get_node/element_to_selector (R4-longtest)
  • get_node cssSelector placeholder + page_status format polish (R4-4 R4-5 R4-6)
  • page_search no-match message no longer claims empty index (R4-longtest)

Also improved

  • diagnosticsAttached is now a WeakSet (R4-2): closed page objects can be
    GC'd, long-running servers no longer accumulate memory
  • Single source of truth for selector generation (R4-3): the pure
    core/selector.ts functions are injected into the browser, no more drift
  • page_status console section retitled "Console messages" (includes warn
    level, R4-6)

Full Changelog: v0.2.0...v0.2.1

v0.2.0 (PRE-RELEASE)

v0.2.0 (PRE-RELEASE) Pre-release
Pre-release

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 07:41
fa2d4c9

PRE-RELEASE - known severe issue R4-1: get_node / element_to_selector DOM lookup always fails (CDP objectId invalid across sessions). Fix in progress; will ship as v0.2.1.

0.2.0 (2026-08-05)

Features

  • page_search / get_node / element_to_selector / page_status / snapshot_index
  • uid query kernel + CSS selector builder

v0.1.7 (STABLE)

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 06:04
62d52e9

STABLE - verified: 79 tests green + real-browser validation (R3A-R3D fixed, no known bugs)

0.1.7 (2026-08-05)

Bug Fixes

  • keep RootWebArea root line in snapshots (R3A)
  • recognize image role + defensive fold + drop dead statictext entry (R3B R3C R3D)

v0.1.6

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 05:36
c0b4fcd

0.1.6 (2026-08-05)

Bug Fixes

  • fold redundant text children under self-labeling controls (ROUND3-2) (ed2daf4)

v0.1.5

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 04:52
8ac60ce

0.1.5 (2026-08-05)

Bug Fixes

  • only stamp interactive roles visible on large-page skip (ROUND3-1) (673ca54)

v0.1.4

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 03:34
8889ccc

0.1.4 (2026-08-05)

Bug Fixes

  • detect direct run via realpath so npm bin symlink works (47ede84)

v0.1.3

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 02:33
3a65685

0.1.3 (2026-08-05)

Bug Fixes

v0.1.2

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 01:58
76c8f36

0.1.2 (2026-08-05)

Bug Fixes

  • exclude name from logical-path uid key (C1) + wire snapshot_diff to CDT_MAX_DEPTH (B4) (0d893f5)

v0.1.1

Choose a tag to compare

@sinnhirl sinnhirl released this 04 Aug 10:52
f960a66

0.1.1 (2026-08-04)

Bug Fixes

  • implement remaining bugfix batch (M2+M6, D1+D2, V1, M5, M1, B1+B2, N1, B4) (3b2bb52)
  • stable logical-path uid for AX-only nodes (C1) (42f9a14)
  • use pre-dedupe/collapse tree as diff baseline (C2) (6677982)

v0.1.0

Choose a tag to compare

@sinnhirl sinnhirl released this 05 Aug 02:22

cdt-smart-snapshot v0.1.0

Token-efficient snapshot MCP server for Chrome DevTools Protocol.

  • smart_snapshot: semantic AX-tree compression (visible + interactive + meaningful text, depth limit, dedupe, same-name chain collapse)
  • snapshot_diff: uid-stable incremental deltas
  • screenshot_to_disk: screenshot to file path, no base64 in context
  • 41 tests (TDD), strict TS, Google-style lint
  • Benchmark: 15 sites × 3 rounds, 6-97% reduction by page type