7 Commits
Author SHA1 Message Date
Chris TateandLahfir d129226078 Ship native binaries as per-platform packages (#2150)
* Ship native binaries as per-platform packages

- Publish each platform binary as an @agent-browser/cli-* optional dependency, so installs download only the host's binary
- Link the global command to the native binary on first run when install scripts are blocked (npm 12, pnpm, bun), and in postinstall when they run
- Release and CI publish the platform packages and test global installs with scripts blocked and allowed

* fix: link the native binary on pnpm 12 and keep skills resolvable

Three fixes on top of the per-platform packaging work.

relinkPnpmShim compared the shim's cmd-shim-target marker to argv[1] with
string equality. On pnpm 12 the marker keeps the ./ from the package's
"./bin/agent-browser.js" and argv[1] does not, so the shim was never
rewritten and every command still started Node. It now compares resolved
paths, which also covers the pnpm 10 and 11 spellings.

The launcher spawned the binary straight out of the platform package.
npm hoists that package beside agent-browser, so skills.rs, chat.rs and
upgrade.rs, which resolve their files by walking up from the executable,
found nothing. It now materializes into agent-browser/bin first and runs
from there.

postinstall only linked when npm_config_global was set, which only npm
does, so pnpm, yarn and bun never linked at install time. It now asks the
invoking manager for its global bin directory and also considers the
enclosing node_modules/.bin, which Yarn Classic links through. The probe
is skipped for local installs so they do not pay a subprocess.

The Windows shims are rewritten in a format npm's read-cmd-shim can parse,
each file's own target is checked before it is replaced, and replacement
is staged then renamed so a failure leaves the working launcher in place.

Verified with real global installs on macOS and Linux: npm with scripts
allowed and blocked, pnpm 11 and 12, and bun. Yarn could not be verified
locally because it fails when an optionalDependency is unresolvable and
the platform packages are unpublished. Windows is unverified.

* fix(pnpm): link the shim to the binary in the package bin

The pnpm branch wrote the platform package's own path into the shim, so
once that package resolved, the binary ran from a directory with no
skills/ above it. It now links the same materialized path the symlink and
Windows branches already use.

---------

Co-authored-by: Lahfir <70215676+lahfir@users.noreply.github.com>
2026-11-10 13:56:18 -06:00
Chris Tate 1bda76fa67 Prepare v0.32.0 release (#1556)
* Prepare v0.32.0 release

- Bump agent-browser, Cargo, dashboard, sandbox, and Eve package versions to 0.32.0

- Add v0.32.0 changelog entries for the Eve extension, domain allowlist hardening, and completed-page wait fixes

- Keep Eve linked to the local sandbox workspace package while preserving publish-time semver output

* Fix Eve package CI prepare

Build the local sandbox package before Eve prepare/test so clean CI installs can resolve @agent-browser/sandbox.
2026-07-15 17:40:55 -05:00
Chris Tate 3591f0f4b7 Add eve browser extension (#1547)
* Add Eve browser extension

- Add @agent-browser/eve with namespaced browser tools, configuration, and tests.

- Move the Eve example out of sandbox helpers and document extension usage.

- Improve snapshot selector errors and sync/version workspace handling.

* Ship Eve extension release path

- Publish @agent-browser/eve through the trusted npm release workflow

- Add Eve package CI, version sync, docs, and skill discovery

- Harden Eve waits and sandbox command deadlines
2026-07-14 15:27:25 -05:00
Chris Tate f0ceebdf69 Add agent-browser sandbox package (#1465)
* Add agent-browser sandbox package

- Add @agent-browser/sandbox with shared, Eve, and Vercel Sandbox helpers.

- Wire workspace and version sync so the package stays aligned with agent-browser releases.

- Add sandbox examples and update docs/skills to use the new helper API.

* Fix sandbox package release path

* Fix sandbox package release flow

* Fix sandbox helper cleanup and dependency validation

* Add Eve sandbox example
2026-06-20 18:09:37 -05:00
Chris Tate 6c93480d0d streamline release (#1095)
* update release

* more docs

* dates
2026-03-30 19:53:53 -05:00
Chris Tate 71a79f64e8 fix: sync Cargo.lock when version changes (#302)
Update sync-version.js to also run `cargo update -p agent-browser` after
updating Cargo.toml, keeping Cargo.lock in sync. Also update pre-commit
hook to stage Cargo.lock along with Cargo.toml.

This commit also brings Cargo.lock up to date (was stuck at 0.7.6).
2026-01-27 09:33:47 -06:00
Chris Tate bc0b99c374 0.4.1 (#17)
* sync version

* 0.4.1

* add release script
2026-01-12 00:43:52 -06:00