docs: document Chrome as a prerequisite#12
Conversation
Reorders the Install section to recommend `npx @testmuai/kane-cli@latest` for one-off / CI use, demoting `npm i -g` to "install once, run often". Adds an "About Chrome" subsection documenting the upcoming auto-managed Chrome-for-Testing build, the cache location (~/.cache/kane-cli/chrome), and the two opt-out env vars (KANE_CLI_SKIP_BROWSER_DOWNLOAD, KANE_CLI_CHROME_PATH). Documentation-only — pairs with a 0.3.0 source-side change that adds the @puppeteer/browsers postinstall hook. DO NOT MERGE until 0.3.0 is published to npm, or users following the new instructions will get the old behavior (no auto-Chrome). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- The single-line `npx ... run "..."` example would land first-time users on an auth error (no `kane-cli login` yet). Replaced with a three-step sequence: verify install -> login -> run. - Added explicit cold-start note: first invocation downloads Chrome (~150 MB, one-time); subsequent invocations reuse the cache. Closes the expectation gap where "pulls on demand" reads as instant but reality is 30-90s on a fresh machine. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Update — investigation complete, premise is correct after allEarlier comment about wrong premise was based on incomplete grep results. Wiring commit just landed on v16#446 (
This closes the "regression" gate. Auto-Chrome via npx now works end-to-end. All three PRs marked ready for review. |
Pivots the README from describing an in-package Chrome-for-Testing
download (~150 MB to ~/.cache/kane-cli/chrome) to the actual behavior
shipping in 0.3.0+: kane-cli requires real Google Chrome stable at the
standard system paths.
- Drops "Cold start downloads Chrome" framing from the npx section.
Replaces with a brief "requires Node 18+ and Google Chrome" note.
- Renames "About Chrome" -> "Chrome (required)" and rewrites contents
to describe the per-platform postinstall behavior:
* Homebrew auto-installs via the google-chrome cask (formula PR #3)
* macOS npm/npx attempts `brew install --cask google-chrome`
* Linux/Windows npm/npx prints install instructions
* KANE_CLI_CHROME_PATH and KANE_CLI_SKIP_BROWSER_DOWNLOAD escape hatches
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pivot — detect real Chrome instead of bundling CfTPer offline discussion, the design changed:
Why: real Chrome at standard paths is what Latest commits in each PR:
The merge-order discipline (homebrew + readme PRs gate on 0.3.0 publish from v16#446) is unchanged. |
The postinstall script was dropped in v16#446 in favor of a single runtime gate in src/orchestration/prepare-chrome.ts. Updates the README to match: drops postinstall references and describes the runtime check behavior instead. - Per-platform postinstall narrative -> single bullet noting install-Chrome-yourself + clean per-platform runtime error. - "Skip the postinstall check" -> "Skip the runtime check" (same env var, same effect, accurate wording). - Removes the brew-attempt-on-macOS line (no longer happens). Brew users still get fully automatic Chrome via depends_on cask. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pivot — runtime gate is the only Chrome detection pathStripped the postinstall script. The runtime gate in What stayed (the actual value):
What got removed:
Net v16#446 delta: 5 files / +276 → 2 files / +125. Brew formula keeps Tip commits:
|
Brings in the user-guide docs added on main since this branch was created. Resolves the README.md conflict by keeping both my Chrome (required) section AND main's "Full install reference" link (complementary, not exclusive). Also removes the npx section from Install per discussion — npx adds no install-path benefit now that the runtime gate (v16#446) handles missing Chrome cleanly across all install paths. Reverts the npm heading back to "recommended, requires Node 18+". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors the v16#446 change that removed KANE_CLI_CHROME_PATH from findChromeBinary() and isChromeAvailable(). Users with Chrome at a non-standard path now need to symlink to a standard location or add to PATH. KANE_CLI_SKIP_BROWSER_DOWNLOAD remains as the only gate opt-out. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Conflicts in README.md resolved by taking main's version for the NDJSON example (token_usage block removed) and the field table (adds the `credits` row, drops slimmer column padding from earlier formatter run). Both my actual additions (Chrome (required) section) preserved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Adds a "Chrome (required)" section to the README documenting that kane-cli needs Google Chrome at standard system paths, with copy-paste install paths per OS and the
KANE_CLI_CHROME_PATH/KANE_CLI_SKIP_BROWSER_DOWNLOADescape hatches.Single file change (README.md).
Pairs with
depends_on cask: "google-chrome"(brew auto-installs Chrome).Test plan
🤖 Generated with Claude Code