oira666_pi-browser-agent 0.0.30 → 0.0.31

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/EVERGREEN.md CHANGED
@@ -18,7 +18,8 @@ Disconnected startup must not hide tools or flood the TUI with logs.
18
18
  `package.json` loads `src/index.ts` through `pi.extensions`. Runtime imports the
19
19
  public `ExtensionAPI` and `ToolDefinition` types from the package root.
20
20
  `pi.on('session_start')` registers tools and acquires the broker;
21
- `session_shutdown` releases sockets, timers, handles and signal listeners.
21
+ `session_shutdown` releases sockets, timers, handles and signal listeners. Pi 1.8.0
22
+ also emits it on terminal loss without SIGHUP, allowing up to five seconds for cleanup.
22
23
  `pi.registerTool` uses TypeBox parameters, execute's AbortSignal, text/image
23
24
  content, persisted details, outputSchema, structuredContent and isError.
24
25
  `ctx.ui.setStatus` and `notify` report connectivity with delayed outage warnings.
@@ -37,8 +38,9 @@ Chrome/MV3 connection lifetime, hello/probe/proxy compatibility and primary
37
38
  promotion are external boundaries. Shutdown, suspend and reload can race startup.
38
39
  Image/text limits, spilled files and JSON normalization must preserve usable output.
39
40
  Real Chrome/input-backend behavior is not covered by the automated bridge fixture.
40
- CLI E2E uses stdin-ignored JSON runs, not interactive reload/compaction or RPC abort;
41
- unit/lifecycle tests cover those underlying broker cancellation and teardown paths.
41
+ CLI E2E uses stdin-ignored JSON runs, not interactive terminal loss,
42
+ reload/compaction or RPC abort. Unit tests cover the broker cancellation and
43
+ teardown paths, but do not exercise Pi's terminal-loss detection.
42
44
  Live E2E needs credentials for EVERGREEN_E2E_MODEL and may fail on provider outages.
43
45
 
44
46
  ## Tests
@@ -53,7 +55,7 @@ bridge task execution, result/error persistence, cross-process history and clean
53
55
  A live EVERGREEN_E2E_MODEL call must discover and execute browser_list_tasks even
54
56
  without Chrome. Settings/state are isolated; provider credentials are reused.
55
57
  These tests protect available tools, working forwarding and durable inspection,
56
- not merely individual helper outputs. Tested against Pi 1.7.0.
58
+ not merely individual helper outputs. Tested against Pi 1.8.0.
57
59
  Pi's non-strict OpenAI fallback supports the unconstrained JSON values in
58
60
  browser_run_js.args; keep them unconstrained. Session startup/reload uses the
59
61
  existing teardown and reacquisition path. No custom renderers consume cached TUI arrays.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-browser-agent
2
2
 
3
- Tested against Pi 1.7.0
3
+ Tested against Pi 1.8.0
4
4
 
5
5
  `pi-browser-agent` is a pi extension that starts a local WebSocket broker and registers a browser-driving tool suite for `browser-agent-ext`.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-browser-agent",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Pi browser agent broker skeleton with lazy browser tool registration",
@@ -29,7 +29,7 @@
29
29
  "typebox": "*"
30
30
  },
31
31
  "devDependencies": {
32
- "@earendil-works/pi-coding-agent": "1.7.0",
32
+ "@earendil-works/pi-coding-agent": "1.8.0",
33
33
  "@types/node": "^26.6.5",
34
34
  "@types/ws": "^8.18.2",
35
35
  "typebox": "^1.4.3",