v0.1.52
·
74 commits
to main
since this release
Patch Changes
- add2f36: debug MCP: a
--target=localstart can now hot-switch into relay (and back) without restarting the daemon. TheDualConnectionRouteris generalized to be direction-neutral — an eager family booted at startup plus a lazily-booted opposite-kind family — so both entry points (runDebugServerrelay-eager andrunLocalDebugServerlocal-eager) share the same bidirectionalstart_debugswap. Previously only the default relay-target start carried the dual router; a local start pinned a single-connection router and rejected cross-family switches as "restart required", breaking the env 1 → env 3 fidelity-ladder flow at that entry point. - 4141b3b: debug MCP: fix a per-call env snapshot regression and a LIVE side-effect guard race introduced with
start_debug(mode)dual-connection routing. TheCallToolhandler now snapshots the derived environment (env/envReason) once at entry and reuses it at every output site, so a concurrentstart_debugswap mid-awaitcan no longer stamp the wrong env into a response envelope. Theevaluate/call_sdkLIVE guard now evaluatesconnection.kind === 'relay' && getLiveIntent()with a snapshotconn.kindplus a freshliveIntentread at the side-effect boundary — closing a race where a concurrentstart_debug('relay-live')armedliveIntentwhile a relay-dev call was parked on an await, previously letting a LIVE side-effect run withoutconfirm: true. - c3cfd3d: debug MCP:
start_debug(mode)single entry to switch environments (env 1/3/4) in-place — one daemon now holds both a local and a relay CDP connection at once and flips the active pointer with no Claude Code restart or MCP re-handshake (warm attach survives the switch). Replaces the URL-sniffinggetEnvironment()precedence chain with a derived model:mockvsrelay-*comes free fromconnection.kind, andrelay-devvsrelay-liveis a single operator-suppliedliveIntentbit armed only bystart_debug({ mode: 'relay-live' }). The LIVE side-effect guard collapses toconnection.kind === 'relay' && liveIntent, so switching back to a local target auto-disarms it.--mode/--target/MCP_ENV(incl.MCP_ENV=relay-liveseeding LIVE intent) remain as back-compat aliases.