Commit Graph

7 Commits

Author SHA1 Message Date
AlexZ 0949311c2e [docs]fix: mark CDP-only commands in browser automation guide
Address Codex review feedback on PR #235 — extension-mode users would
hit runtime errors copying examples for wait-idle, console, fetch,
emulate, and switch-frame. Add [CDP] inline markers and section-level
<sup>CDP</sup> tags so the limitation is visible before users try.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 01:57:01 +08:00
AlexZ 8d3aa994bc [docs]fix: correct fill command argument order (text first, selector second)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 01:57:01 +08:00
AlexZ 509f3fd8ae [docs]docs: comprehensive browser automation guide with multi-session
- Rename page from "Browser Modes" to "Browser Automation"
- Add multi-session section: -S flag usage, session management, 3 common mistake patterns
- Document all 44 browser subcommands (was ~20, now complete)
- New sections: file upload, fetch (one-shot), batch actions, advanced features
- Expand page interaction: type, hotkey, scroll, wait-idle, wait-fn
- Expand debug & export: pdf, snapshot flags, console, info, viewport, inspect
- Add cookie & storage operations, tab management with full subcommands
- Simplify shutdown section, add restart command

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 01:57:01 +08:00
SenKe0x 52edfc69ca feat(setup): prefer Chrome Web Store extension flow with local fallback 2026-03-03 16:59:00 +08:00
sen c70683da86 [docs]docs: simplify browser workflow and make setup-first quickstart (#147) 2026-02-19 00:50:14 +08:00
adcentury ce5fe60712 docs: flatten docs navigation and split CLI skills (CUE-418) 2026-02-16 13:31:04 +08:00
sen c91746d24f refactor: remove extension isolated mode, unify browser docs (#111)
* [packages/actionbook-rs]refactor: remove extension isolated mode, unify browser docs

Simplify browser architecture from three modes to two:
- Isolated (default): launches a fresh Chrome profile via CDP
- Extension: connects to the user's running Chrome via bridge

Remove extension isolated mode entirely:
- Delete isolated_extension.rs, cdp_pipe.rs, cdp_http.rs
- Remove --isolated flag from CLI and config
- Simplify extension_bridge (remove isolated file helpers)
- Simplify launcher (remove pipe transport, LaunchResult)
- Clean up setup wizard and config fields
- Add legacy .isolated file cleanup for upgrade compatibility
- Fix stop() to also resolve legacy bridge-pid.isolated

Merge browser-extension.mdx into unified browser.mdx guide:
- Single page covers both Isolated and Extension modes
- Browser commands listed once (add --extension to switch)
- Update all cross-references in docs

* [packages/actionbook-rs]fix: add liveness check to extension stop PID resolution

Previously, `extension stop` blindly preferred the standard PID file over
the legacy `.isolated` file without checking liveness. In upgrade scenarios
where the legacy file held the live bridge PID and the standard file was
stale (PID possibly reused by OS), this could send SIGTERM to an unrelated
process.

Introduce `resolve_pid_for_port()` with liveness checking:
- Same PID in both files → select safely
- Different PIDs → check liveness, pick the live one
- Both alive → refuse to kill (Ambiguous), warn user
- Both dead → clean up stale files (BothMatchedButDead)

Includes 5 unit tests covering all branches.
2026-02-11 00:10:06 +08:00