pi-browser-use 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -159,7 +159,7 @@ On startup the default persistent profile is checked for accessibility. A root-o
159
159
 
160
160
  `npm run bench` times the tool stack headless over 5 iterations (fixture setup excluded, matching vercel-labs/agent-browser's scenario set). Baseline on Apple Silicon: navigate ~1ms, snapshot ~3ms, screenshot ~37ms, evaluate ~206ms, full agent-loop cycle ~422ms. Re-run on your hardware before quoting numbers.
161
161
 
162
- `npm run perf:audit` reports cold-import memory/time plus published package and dependency footprint; `npm test` enforces the stable regression budgets. See [Performance audit and budgets](docs/performance.md) for the M0 measurements, thresholds, and reproducible local/CI commands.
162
+ `npm run perf:audit` reports cold-import memory/time plus published package and dependency footprint; Code Foundry's dedicated performance job enforces the stable regression budgets with `npm run perf:check`. See [Performance audit and budgets](docs/performance.md) for the M0 measurements, thresholds, and reproducible local/CI commands.
163
163
 
164
164
  ## Bundled skills
165
165
 
@@ -5,7 +5,7 @@ This project measures performance in two layers:
5
5
  - `npm run perf:audit` measures cold plugin import time and memory, the published package, and the production dependency closure. It is fast, emits JSON, and does not launch Chrome.
6
6
  - `npm run bench -- --iterations 10 --json` launches the complete headless Chrome + MCP stack and measures startup, process-tree RSS, and representative tool calls against a fixed local fixture.
7
7
 
8
- `npm test` runs `perf:check` after the unit suite, so the stable artifact, dependency, and normalized cold-import budgets run in CI. The audit reports raw time but compares it with a same-run `typebox` import to account for runner CPU variance. Browser timing and process-tree memory are reported rather than enforced because shared-runner and Chrome variance would make a wall-clock budget flaky.
8
+ Code Foundry runs `npm test` and `npm run perf:check` in separate unit and performance jobs, so the stable artifact, dependency, and normalized cold-import budgets remain required in CI without coupling them to the unit command. The audit reports raw time but compares it with a same-run `typebox` import to account for runner CPU variance. Browser timing and process-tree memory are reported rather than enforced because shared-runner and Chrome variance would make a wall-clock budget flaky.
9
9
 
10
10
  ## M0 baseline and result
11
11
 
@@ -33,7 +33,7 @@ Budgets live in [`performance-budgets.json`](../performance-budgets.json). They
33
33
 
34
34
  | Metric | Budget |
35
35
  | --------------------------------- | ------------: |
36
- | Cold import / `typebox` p50 ratio | 2.0 |
36
+ | Cold import / `typebox` p50 ratio | 3.0 |
37
37
  | Cold import maximum RSS delta | 48 MiB |
38
38
  | npm tarball | 90,000 bytes |
39
39
  | npm unpacked package | 300,000 bytes |
@@ -50,6 +50,7 @@ npm run format:check
50
50
  npm run lint
51
51
  npm run typecheck
52
52
  npm test
53
+ npm run perf:check
53
54
  npm run perf:audit
54
55
  npm run bench -- --iterations 10 --json
55
56
  npm run bench -- --startup-only --json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-browser-use",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Opinionated browser-use for the Pi coding agent, powered by chrome-devtools-mcp (not Playwright). Fresh headless by default, authenticated persistent profile opt-in, CLI-first policy bundled.",
5
5
  "keywords": [
6
6
  "automation",
@@ -51,8 +51,10 @@
51
51
  "typecheck": "tsc -p tsconfig.json --noEmit",
52
52
  "prepublishOnly": "npm run build",
53
53
  "bench": "node scripts/bench.mjs",
54
- "test": "node --test test/*.test.mjs && npm run perf:check",
54
+ "test": "node --test test/*.test.mjs",
55
+ "preperf:audit": "npm run build",
55
56
  "perf:audit": "node scripts/performance.mjs",
57
+ "preperf:check": "npm run build",
56
58
  "perf:check": "node scripts/performance.mjs --check",
57
59
  "pretest": "npm run build"
58
60
  },