Replace the TypeScript CLI implementation with a thin JS wrapper that
executes the native Rust binary. The npm package now ships all platform
binaries directly, with a postinstall fallback to download from GitHub
Releases if needed.
- Add bin/actionbook.js: platform detection + binary execution
- Add scripts/postinstall.js: fallback download from GitHub Releases
- Remove all TypeScript source, build config, and dependencies
- Update CI workflow to build, package, and publish with binaries
- Update README with full Rust CLI command documentation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace npx playwright@{version} with direct node execution of playwright-core CLI.
Find CLI path by checking multiple node_modules structures (pnpm .pnpm/*, npm flat, npm nested).
Search both package dir and workspace root to support pnpm workspaces.
Benefits:
- Eliminates npx overhead and potential version mismatches
- Works reliably with both npm and pnpm package managers
- No need to parse agent-browser's
Read playwright-core version from agent-browser's package.json to ensure
binary compatibility when installing Chromium. This prevents 'executable
doesn't exist' errors that occur when npx downloads a mismatched Playwright
version.
- Add getAgentBrowserPlaywrightVersion() to read version dynamically
- Use playwright@{version} instead of hardcoded version
- Fallback to 'latest' if version detection fails
Transform stdout/stderr from agent-browser command to replace all
occurrences of 'agent-browser' with 'actionbook browser' for
consistent branding in user-facing output.
- Add agent-browser ^0.8.3 as dependency in package.json
- Implement spawnAgentBrowser() using npx with cwd to CLI package root
- Update installAgentBrowser() to use 'npx playwright install chromium'
- Replace all agent-browser calls with spawnAgentBrowser()
- Update README with automatic dependency installation info
- Remove manual npm install logic (handled by package manager)
Benefits:
- agent-browser automatically installed with CLI
- No global install required for agent-browser
- Version managed by package.json
- Works seamlessly with npm/pnpm package managers
- Add agent-browser as direct dependency in package.json
- Remove automatic npm global installation logic
- Simplify installAgentBrowser() to only download Chromium binaries
- Update documentation to reflect simpler setup process
- Remove checkAgentBrowserInstalled() and showAgentBrowserSetupInstructions()
- Update help text to clarify browser install only downloads Chromium
- Keep --with-deps flag support for Linux
- Add installAgentBrowser() function to auto-install agent-browser
- Execute 'npm install -g agent-browser' if not already installed
- Automatically run 'agent-browser install' to download Chromium
- Support --with-deps flag for Linux system dependencies
- Show step-by-step progress during installation
- Update README with automatic installation instructions
- Add special handling for 'actionbook browser install' command
- Show detailed setup instructions when agent-browser is not installed
- Guide users through npm installation and Chromium download
- Include Linux-specific instructions for system dependencies
- Update README with improved setup documentation
- Add browser command to CLI for browser automation
- Create process utility for spawning commands with stdio inheritance
- Show installation instructions when agent-browser is not found
- Pass through all arguments to agent-browser CLI
- Add help text with examples and reference link