Skip to content

bsk CLI 0.6.0

Latest

Choose a tag to compare

@iuyo5678 iuyo5678 released this 30 Nov 06:59
84e3a24

BrowserSkill CLI 0.6.0 raises the daemon/extension protocol baseline to 2.0, brings bsk mcp to 100% CLI parity, restores a lightweight DSH plugin on the unified bsk runtime, and hardens daemon/CLI stability across platforms. Update both CLI/daemon and extension to 0.6.0 together, as protocol 2.0 drops 1.x compatibility shims.

Added

  • Full bsk mcp parity. Added first-class bsk_ledger, bsk_debug, bsk_video, and bsk_record MCP tools and full parameter parity across existing tools (session open/stop --all, sync waits/filters, wait_ms, view, screenshot/extract file exports, read context, upload/download, tab_borrow, emulate, and operation_await), unified behind request-scoped ClientContext.
  • bsk open --wait-until. bsk open and MCP bsk_session(action="open") now accept --wait-until / wait_until (load|domcontentloaded|networkidle|commit, defaulting to load), matching bsk navigate so heavy SPAs do not stall on full load timeouts.
  • DeepSeek Harness (dsh) integration & lightweight plugin. Added bsk install-skill --harness dsh, automatic DSH_SESSION_ID host-subagent scoping, and MCP controller identity labels (agent_name, project, controller_color). Replaced @wxg-prc-cpg/browser-skill-dsh-plugin with a lightweight Cordis plugin bundling the canonical bsk skill and cross-platform on-demand CLI installer.
  • Idle timeout env fallbacks. Added BSK_SESSION_IDLE and BSK_DAEMON_IDLE environment variables across automatic startup, bsk daemon start/restart, and bsk update restarts (CLI flags always take precedence).
  • Compile-time MethodSpec & RpcErrorReason SSOT. Unified all 77 RPC methods and error reasons with exhaustive dual CLI/MCP recovery hints and strongly typed bsk-protocol contracts, EventFrame payloads, and IpcEnvelope metadata.
  • Release benchmark stability metrics. Release benchmarks now report empirical pass@k, pass^k, and flaky cases across repeated runs.

Changed

  • Protocol 2.0 baseline. Raised PROTOCOL_VERSION and MIN_COMPATIBLE_PROTOCOL to "2.0", removing legacy 1.x compatibility shims and deprecated TraceV2 recording converters.
  • Unified daemon tool_pipeline & non-blocking persistence. Decomposed daemon/ipc.rs into a single RAII tool_pipeline with unified DaemonState::teardown_session, offloaded TransferRegistry, AuditStore, and IntentWal disk I/O to spawn_blocking, and extracted cli::orchestration to share validation, timeouts, and VOM hydration between CLI and MCP.
  • Shared host scope for CLI and MCP. HOST_AGENT_ENV_KEYS now take precedence over transient mcp:<pid>:<nonce> scopes so bsk CLI and bsk mcp in the same agent thread share one implicit session while exclusive transient MCP connections reap orphan sessions on stdio EOF.
  • Minimum Rust version. Building the Rust workspace from source now requires Rust 1.89.0.

Fixed

  • Stale 1.x daemon.json upgrade recovery. ensure_daemon_optimistic_with_protocol now falls through to a live IPC probe when cached daemon.json carries an incompatible 1.x protocol version, allowing dead leftover sockets/pipes to auto-start a 2.0 daemon while live incompatible daemons report clear bsk daemon restart guidance across CLI (including bsk recipe draft) and MCP.
  • Preflight --out validation & non-hard-link Windows saves. CLI --out commands and matching MCP tools now validate output destinations locally before contacting the daemon, and non---overwrite saves use a no-replace rename instead of hard links so exFAT/FAT32 Windows volumes no longer fail with os error 1.
  • Daemon WS lifecycle, audit resilience, and auto-update handover. Added explicit socket close/cancel tokens, TCP keepalive, bounded WS pings/writes, corrupt-.jsonl isolation in AuditStore, dynamic tool.debug mutation policies, symlink-preserving atomic update handover, clearer default-port bind errors on Windows/WinNAT, and unopenable Windows process liveness detection.
  • CLI, MCP, download, press, and window resize ergonomics. Queued bsk download behind another session's in-flight download within --timeout; capped bsk press --hold-ms at --timeout; named the changed node in evidence refusal output; reported clamped bsk window resize errors clearly; replaced hardcoded 35s IPC timeouts with dynamic timeout_ms + grace across step/plan/sync_after; fixed Recipe delta -> unchanged VOM refresh and step.key templates; and aligned pre-dispatch dispatched: false / press_sent: false settlement across plan, recipe, run_log, and intent_wal.

Upgrade

Breaking protocol update (1.x → 2.0): CLI/daemon 0.6.0 requires extension 0.6.0. Older 0.5.x extensions cannot connect to a 0.6.0 daemon.

  1. Finish active browser tasks and run bsk update --yes (or install CLI 0.6.0 directly), then run bsk daemon restart if a 0.5.x daemon is still running. If a supervisor manages your daemon, restart it through the supervisor.
  2. Install extension 0.6.0 and update @wxg-prc-cpg/browser-skill-dsh-plugin to 0.6.0 if you use DeepSeek Harness.
  3. Reload your browser-skill instructions (bsk install-skill) and restart your MCP client or DSH session if it still references 0.5.0.
  4. Verify the connection with bsk --version, bsk status, and bsk doctor.

What's changed

  • fix(vom): preserve child refs for expanded nested menu popups by @NianJiuZst in #727
  • fix(extract): collect slotted list items by @CuSO41108 in #612
  • refactor: retire legacy DSH plugin and enforce zero-skip real-browser CI by @NianJiuZst in #732
  • feat(wave2): bump protocol to 2.0, unify SSOT MethodSpec/RpcErrorReason, and bring bsk mcp to parity by @NianJiuZst in #733
  • refactor(tests,ci): consolidate test binaries/projects, converge protocol SSOT constants, and speed up CI by @NianJiuZst in #734
  • refactor(extension): unify ChromiumCdp TabAttachment state machine and seal cdpSessionId behind FrameNodeHandle by @NianJiuZst in #736
  • feat(daemon,cli,extension): unify session teardown, typed IpcEnvelope, dialog reconciliation, and budget-safe VOM cache by @NianJiuZst in #737
  • fix: close Wave 3c liveness, WAL reconciliation, VOM cache, and Windows CI gaps by @NianJiuZst in #738
  • refactor(protocol): complete 100% strong typing, typed EventFrame, and ActionMetadata SSOT by @NianJiuZst in #741
  • refactor(daemon,cli,protocol): Wave 4b unified daemon tool pipeline, non-blocking persistence & shared client orchestration by @NianJiuZst in #743
  • fix(vom): handle unpaired surrogates in token estimates by @Winoren in #746
  • feat(extension): Wave 5A zero-tax MV3 runtime injection, orphan window reaping, and shared dom-primitives by @NianJiuZst in #754
  • fix(extract): apply CSS case transforms to input and textarea values by @MaxFreedomPollard in #749
  • fix(cli,mcp): forward max_tokens across step, plan, and MCP sync-after actions (#755) by @NianJiuZst in #757
  • feat(dsh): restore lightweight DSH plugin on unified bsk CLI runtime by @NianJiuZst in #761
  • refactor(extension,vom): seal browser-driver boundary, enforce RAII CdpRunner, and unify DOM predicates & VOM metadata by @NianJiuZst in #753
  • fix(cooperation,cdp,daemon): stop false coverage-changed freezes across SPA routes and subframe churn by @NianJiuZst in #762
  • fix(extension,ci): fall back when offscreen clock probe is unavailable and align Chrome 158 wheel zoom (#742) by @NianJiuZst in #768
  • fix(upload): support iframe --selector and hidden input[type=file] uploads by @NianJiuZst in #725
  • fix(cooperation): eliminate unresponsive-frame sync failures and session traps on heavy web apps (#766) by @NianJiuZst in #769
  • fix(cooperation): stop false human_intervention on scripted edits/clicks, cap readiness waits, and unblock failed-load tab management by @NianJiuZst in #783
  • fix(window): tolerate DIP rounding in bsk window resize by @wannT-1 in #775
  • fix(daemon): explain a default-port bind failure instead of a bare OS error by @wannT-1 in #785
  • fix(evals): make the release-test audit helper run on Windows by @CuSO41108 in #764
  • fix(record): resolve aria-labelledby inside the target's own tree by @openviking-superagent in #774
  • feat(extension): allow opening background Agent Windows minimized by @MaxFreedomPollard in #748
  • fix(extension): propagate AbortSignal through evaluate and ChromiumCdp to prevent session deadlock by @NianJiuZst in #798
  • fix(vom): stop activeRegionPolicy from dropping partially overlapped controls by @NianJiuZst in #797
  • fix(record,vom): preserve password redaction through trailing VOM and Shadow DOM by @NianJiuZst in #799
  • fix(vom): scope cross-frame scene annotations, protect textDelta syntax, simplify stealth filter, and fix form/tooltip state by @NianJiuZst in #800
  • fix(extension): fix content-script, overlay, request_help, debug, FrameRepairs, and LongScreenshot lifecycle & perf bugs by @NianJiuZst in #801
  • fix(extension): harden read, RefStore, file upload/download, input, screenshot & wait parity by @NianJiuZst in #802
  • fix(extension): harden CDP driver, MV3 SW/WS lifecycle, dialog/tab guards, and resource eviction by @NianJiuZst in #803
  • fix(cli,mcp,recipe): align action metadata, debug scope, hints, timeouts, hydration, and record teardown by @NianJiuZst in #804
  • fix(daemon): harden WS lifecycle, audit store, ToolDebug policy, handover, and ops by @NianJiuZst in #805
  • Raise the minimum supported Rust version to 1.89.0 by @NianJiuZst in #787
  • docs: explain how to close unused Agent Windows by @Kidz0419 in #778
  • fix(extension): bound debugger attach waits by @yuanfengxixi in #760
  • fix(record): keep contenteditable line breaks in recorded fill values by @shunxinyi-ljs in #724
  • fix(daemon): treat an unopenable Windows process as alive by @columbia11 in #577
  • fix(record): deduplicate clicks forwarded by label activation by @columbia11 in #652
  • fix(press): stop holding at the command timeout instead of answering late by @shunxinyi-ljs in #813
  • fix(evals): signal POSIX process groups when captured pipes time out by @u7-u7 in #511
  • feat(evals): report stability across repeated release test runs by @Kidz0419 in #777
  • feat(daemon): support BSK_SESSION_IDLE and BSK_DAEMON_IDLE environment variables by @legend91019 in #463
  • fix(evals): expand report wildcards when the shell passes them literally by @Yzzz88 in #814
  • fix(download): wait for the browser-global slot instead of failing at once (#519) by @shunxinyi-ljs in #786
  • fix(cli): name the changed node in evidence refusals by @REI-330 in #809
  • fix(extension): recover from stuck connects and missed keepalive alarms by @legend91019 in #812
  • fix(cli): report constrained window resize instead of a daemon protocol error by @shengzhaowei in #808
  • fix: support background full-page screenshots in cooperation mode and prevent false unknown effect_state by @NianJiuZst in #825
  • test(extension): resolve the dnd-kit fixture with fileURLToPath on Windows by @shunxinyi-ljs in #819
  • docs(dsh-plugin): explain Windows GUI host daemon startup by @Zhl0906 in #817
  • fix(extract): apply the author case transform to selected option text by @shunxinyi-ljs in #820
  • fix(evals): allow startup extension loading for dynamic reading by @Yzzz88 in #815
  • fix(cli,mcp): reject unusable --out destinations before contacting the daemon by @REI-330 in #811
  • fix(extension): handle empty ProseMirror placeholder paragraphs in fill by @guuguo in #822
  • feat(cli): add --wait-until option to bsk open by @guuguo in #830
  • fix(cli): save without --overwrite on volumes that have no hard links by @columbia11 in #841
  • fix: fall back from stale 1.x daemon.json and fix false VOM occlusion & viewport sync by @NianJiuZst in #836

Full changelog