Releases: sinnhirl/cdt-smart-snapshot
Releases · sinnhirl/cdt-smart-snapshot
Release list
v0.2.1
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 / textContentelement_to_selector(uid)now returns a unique CSS selector you can feed
straight to the official chrome-devtools-mcpclick/fillqueryDomByBackendNodeIdreleases 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
diagnosticsAttachedis 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_statusconsole section retitled "Console messages" (includes warn
level, R4-6)
Full Changelog: v0.2.0...v0.2.1
v0.2.0 (PRE-RELEASE)
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)
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
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
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