@parcha/pi-browser 0.1.0-beta.31 → 0.1.0-beta.310
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/CHANGELOG.md +232 -0
- package/NOTICE +39 -4
- package/README.md +122 -236
- package/dist/core/contract.d.ts +9 -6
- package/dist/core/contract.js +27 -36
- package/dist/core/custody.d.ts +19 -2
- package/dist/core/custody.js +28 -6
- package/dist/core/downloads.d.ts +44 -3
- package/dist/core/downloads.js +94 -58
- package/dist/core/driving-guard.d.ts +20 -0
- package/dist/core/driving-guard.js +190 -23
- package/dist/core/driving.d.ts +56 -2
- package/dist/core/driving.js +189 -10
- package/dist/core/effects.d.ts +80 -6
- package/dist/core/effects.js +374 -41
- package/dist/core/evidence.d.ts +1 -1
- package/dist/core/failures.d.ts +15 -1
- package/dist/core/failures.js +7 -0
- package/dist/core/files.d.ts +20 -2
- package/dist/core/files.js +161 -10
- package/dist/core/host.d.ts +29 -77
- package/dist/core/images.d.ts +32 -4
- package/dist/core/images.js +81 -16
- package/dist/core/lease.d.ts +2 -1
- package/dist/core/page-scan.d.ts +81 -2
- package/dist/core/page-scan.js +487 -13
- package/dist/core/public-fetch.d.ts +70 -9
- package/dist/core/public-fetch.js +348 -51
- package/dist/core/read-page-worker.js +5 -4
- package/dist/core/read-page.d.ts +23 -8
- package/dist/core/read-page.js +64 -20
- package/dist/core/redact.d.ts +0 -2
- package/dist/core/redact.js +0 -32
- package/dist/core/session-control.d.ts +0 -2
- package/dist/core/session-control.js +0 -5
- package/dist/core/tools.d.ts +46 -1
- package/dist/core/tools.js +88 -12
- package/dist/core/usage.d.ts +4 -3
- package/dist/core/usage.js +5 -4
- package/dist/core/vault.d.ts +0 -10
- package/dist/core/vault.js +0 -13
- package/dist/core/web.d.ts +2 -111
- package/dist/core/web.js +0 -443
- package/dist/driver/cdp.d.ts +6 -0
- package/dist/driver/cdp.js +245 -0
- package/dist/driver/page-driver.js +110 -7
- package/dist/driver/sealed.d.ts +4 -12
- package/dist/driver/sealed.js +23 -37
- package/dist/driver/stagehand.d.ts +12 -15
- package/dist/driver/stagehand.js +21 -17
- package/dist/durable/result.d.ts +1 -2
- package/dist/durable/result.js +2 -2
- package/dist/durable/store.d.ts +17 -3
- package/dist/durable/store.js +231 -64
- package/dist/durable.d.ts +47 -17
- package/dist/durable.js +106 -105
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -3
- package/dist/live-view/index.d.ts +4 -1
- package/dist/live-view/index.js +5 -0
- package/dist/live-view/protocol.d.ts +39 -7
- package/dist/live-view/protocol.js +2 -0
- package/dist/live-view/provider.d.ts +2 -2
- package/dist/live-view/provider.js +2 -2
- package/dist/live-view/server.d.ts +55 -2
- package/dist/live-view/server.js +282 -35
- package/dist/live-view/stream.js +16 -3
- package/dist/live-view/viewer.js +106 -13
- package/dist/providers/cdp.d.ts +0 -1
- package/dist/providers/cdp.js +35 -13
- package/dist/providers/chrome-args.d.ts +3 -0
- package/dist/providers/chrome-args.js +13 -2
- package/dist/providers/profiles.d.ts +1 -15
- package/dist/providers/profiles.js +1 -64
- package/dist/providers/shared.d.ts +1 -47
- package/dist/providers/shared.js +1 -82
- package/dist/providers/worker-extension.d.ts +20 -1
- package/dist/providers/worker-extension.js +86 -7
- package/dist/testing/backend.d.ts +6 -24
- package/dist/testing/backend.js +7 -30
- package/dist/vault-session.d.ts +4 -7
- package/dist/vault-session.js +26 -81
- package/dist/vendor/browser-use-pi/ax.d.ts +106 -0
- package/dist/vendor/browser-use-pi/ax.js +642 -0
- package/dist/vendor/browser-use-pi/cdp.d.ts +19 -0
- package/dist/vendor/browser-use-pi/cdp.js +106 -0
- package/dist/vendor/browser-use-pi/page.d.ts +29 -0
- package/dist/vendor/browser-use-pi/page.js +99 -0
- package/package.json +15 -46
- package/src/vendor/browser-use-pi/UPSTREAM.json +25 -0
- package/src/vendor/stagehand-facade/UPSTREAM.json +0 -4
- package/dist/coding-agent-local.d.ts +0 -12
- package/dist/coding-agent-local.js +0 -72
- package/dist/coding-agent.d.ts +0 -134
- package/dist/coding-agent.js +0 -641
- package/dist/core/sites.d.ts +0 -33
- package/dist/core/sites.js +0 -104
- package/dist/driver/extension-worker.d.ts +0 -9
- package/dist/driver/extension-worker.js +0 -185
- package/dist/durable/web.d.ts +0 -47
- package/dist/durable/web.js +0 -41
- package/dist/providers/assigned.d.ts +0 -18
- package/dist/providers/assigned.js +0 -75
- package/dist/providers/browserbase-net.d.ts +0 -12
- package/dist/providers/browserbase-net.js +0 -95
- package/dist/providers/browserbase.d.ts +0 -169
- package/dist/providers/browserbase.js +0 -319
- package/dist/providers/kernel.d.ts +0 -58
- package/dist/providers/kernel.js +0 -291
- package/dist/recorder/credential.d.ts +0 -9
- package/dist/recorder/credential.js +0 -49
- package/dist/recorder/follow.d.ts +0 -36
- package/dist/recorder/follow.js +0 -163
- package/dist/recorder/frames.d.ts +0 -87
- package/dist/recorder/frames.js +0 -377
- package/dist/recorder/index.d.ts +0 -4
- package/dist/recorder/index.js +0 -7
- package/dist/recorder/jpeg.d.ts +0 -8
- package/dist/recorder/jpeg.js +0 -70
- package/dist/recorder/track.d.ts +0 -107
- package/dist/recorder/track.js +0 -280
- package/dist/vendor/stagehand-facade/screenshot-transport.d.ts +0 -15
- package/dist/vendor/stagehand-facade/screenshot-transport.js +0 -51
- /package/dist/{providers → core}/cdp-call.d.ts +0 -0
- /package/dist/{providers → core}/cdp-call.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,238 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.290 (2026-12-05)
|
|
6
|
+
|
|
7
|
+
- A fal job priced by its input media's length now copies a file over 64 KB to fal's storage through a signed PUT: the meter asks fal's `upload_file` to prepare the upload (`prepare_upload` with the file's name and size), PUTs the bytes it measured to the `upload_url` fal signed, and sends the job naming the `file_url`. Before, every copy went as base64 `data`, which fal takes only up to 64 KB, so on a fal server under your own key such a job was refused under a spend cap. A file up to 64 KB still goes as `data`. <!-- changes/fal-copy-signed-put.md -->
|
|
8
|
+
- `@parcha/pi-browser` adds `publicUpload(url, bytes, options)`, the public-host guard's write: one PUT, https only, no redirect followed, dialled at the address it checked.
|
|
9
|
+
|
|
10
|
+
## 0.1.0-beta.273 (2026-12-05)
|
|
11
|
+
|
|
12
|
+
- `isPrivateAddress` (and so `publicFetch` and `web_fetch` without a fetch service) refuses Teredo, 2001::/32: a relay delivers a Teredo address to the IPv4 address its last 32 bits hide, which may be a private one. <!-- changes/pi-browser-teredo-refused.md -->
|
|
13
|
+
|
|
14
|
+
## 0.1.0-beta.118 (2026-12-02)
|
|
15
|
+
|
|
16
|
+
- `web_fetch` has a budget of new pages per destination host: 600 a minute and 6,000 an hour for one run, and 1,200 a minute and 12,000 an hour for one workspace's runs together. A read past it is refused before anything is sent, to a provider or to the host. The tool answers a failed page whose `refused` names the limit, the host and when it lifts, and the run goes on. A part of a page the run already holds is never counted, and other hosts are fetched as before. A model reading pages one call at a time never comes near the budget. What reaches it is a script or a wide map fetching one host as fast as it can, or a crawl of thousands of one site's pages. <!-- changes/web-fetch-host-budget.md -->
|
|
17
|
+
- A run in a process of its own asks its runner, which counts the claim's run and the workspace it reads from the store. A run cannot name another run's workspace. A run in no workspace is held to its own budget alone.
|
|
18
|
+
- Counts are kept in memory by each runner process. A host is its whole hostname, so a site's subdomains are counted apart.
|
|
19
|
+
- Each refusal is logged once as `web_fetch_budget`, with the run, the scope, the window, the limit and when it lifts. The line never carries the host or the URL.
|
|
20
|
+
- A redirect to another host is counted against that host before it is followed, once a read. A redirect to a host whose budget is spent is refused in the same words, and that host is never dialled.
|
|
21
|
+
- Where a run's tools run in the server's own process, a refusal's log line names the run's id, and a run's counts carry across its claims.
|
|
22
|
+
- `@parcha/agentrun-web`: `WebConfig.admit(host)` is asked before a fetch sends a read. Words refuse the read; a throw refuses it too, and so does no answer within `bounds.admitMs` (`ADMIT_MS`, 10 seconds). A URL no read sends (another port, a user name or password, an href past `URL_MAX`) is never asked about, so it spends no host's budget. `hostOf(url)` gives the host it is asked with. It is asked again before the direct fetch follows a redirect to a host the read was not admitted for.
|
|
23
|
+
- `@parcha/pi-browser`: `publicFetch` and `publicDownload` take `beforeRedirect(url)`, asked with each redirect's target once its checks pass and before it is dialled. What it throws ends the fetch there.
|
|
24
|
+
|
|
25
|
+
## 0.1.0-beta.106 (2026-12-02)
|
|
26
|
+
|
|
27
|
+
- web_fetch's direct fetch, web_save and a media tool's read of its input now send `User-Agent: AgentRun/<serve's version> (+https://github.com/Parcha-ai/agentrun)` on every hop, a redirect's included, where they sent `pi-browser`. A site's operator sees who fetched and where to read about it, and a robots.txt can name the `AgentRun` token. `publicFetch` and `publicDownload` take a `userAgent` option; without one they still send `pi-browser`. <!-- changes/fetch-user-agent.md -->
|
|
28
|
+
|
|
29
|
+
## 0.1.0-beta.83 (2026-12-02)
|
|
30
|
+
|
|
31
|
+
- `readPage` now bounds the links it resolves, and a read whose worker runs out of memory is refused instead of being read again on the caller's thread. A page's links stop at `READ_LINKS_MAX` (20,000) or once `READ_LINKS_MAX_CHARS` (4,000,000) characters of hrefs and their base have been resolved, duplicates included; the read then carries `links_truncated: true` and its first links, and its title and text are unchanged. Before, a page under the 1,000,000-character read cap with a long `<base href>` and many short relative anchors resolved to billions of characters: the worker ran out of its heap, and the plain-text fallback then resolved them again on the event loop, holding it for minutes and filling the process's heap. A worker that runs out of memory now rejects the read with `PageReadOutOfMemory` (`code` `PAGE_READ_OUT_OF_MEMORY`), which `web_fetch` answers as a failed fetch; a worker that times out or fails any other way still falls back to the plain-text read, which the same link caps now bound. `web_fetch`'s first part of a page whose links were cut says `links_truncated: true`, so a model knows its `links` and `links_omitted` cover only the page's first links. `ReadPageOptions.heapMb` sets the worker's heap (default `READ_WORKER_HEAP_MB`, 1024, at least 16). Pages within the caps read exactly as before. <!-- changes/read-page-link-caps.md -->
|
|
32
|
+
|
|
33
|
+
## 0.1.0-beta.82 (2026-12-02)
|
|
34
|
+
|
|
35
|
+
- A run's own process no longer chooses where the server connects for its browser viewer. The runner makes the viewer's listening socket (on loopback, or on its `AGENTRUN_RUNNER_LIVE_HOST` address) and hands it to the run's process on fd 5 (`AGENTRUN_VIEWER_FD`); each hand-over names that socket's port and the runner's own host, and the process supplies only the session's tag, the viewer's path id and its token. Before, the process named the port and host itself, so code in a run could point the server's viewer check and WebSocket proxy at another service on the runner's loopback or at another listed host. <!-- changes/viewer-listener-from-runner.md -->
|
|
36
|
+
- The server still dials only loopback, or the hosts and IPv4 blocks in `AGENTRUN_RUNNER_HOSTS`. A row that names any other host is now refused in words on the server's log (`live_host_refused`), once per host, instead of reading as a viewer that does not answer.
|
|
37
|
+
- pi-browser's `createLiveView` takes `listen: { fd, host }`: it serves on a listening socket its parent made and handed down, and the viewer's link names `host` and that socket's port. The process listens on that socket once: a later live view given the same `fd` (a run's pass rebuilt after a fault) takes it over, on the same port, and the earlier view's links answer 404.
|
|
38
|
+
- Live view of browser and desktop computers works as before, on one machine and with runners on other hosts. Desktop and phone viewers were already registered by the runner's own listener.
|
|
39
|
+
|
|
40
|
+
## 0.1.0-beta.80 (2026-12-01)
|
|
41
|
+
|
|
42
|
+
**Breaking:**
|
|
43
|
+
|
|
44
|
+
- A run's skills come from its revision alone: every claim, a follow-up's included, hands the harness the revision's skill text (a moved project's, its pinned snapshot's), never what is in the run folder's `.agents/skills/`. At every claim the server makes `.agents/skills/` the revision's exactly (a rewritten file written back, a moved project's with its snapshot's mode so an authored script stays executable, a file or skill folder the revision lacks removed, a link at a revision path replaced), and the run's `read` answers every path there from the claim's skills, never from the folder, so a rewrite by the run's computer mid-claim is never what the model reads. That holds for every harness that reads its skills on demand (pi, an ACP harness such as Goose, a moved project on any harness) and for a desktop's or a phone's own skill. A skill file whose name a case-folding disk reads as `SKILL.md` but is not exactly `SKILL.md` (`cite/skill.md`, `cite/SKILL.md.`) is never laid, listed or read. A browser download whose name starts with spaces and dots is filed without them, so it is never a hidden file. Skills are read on demand only with the `read` tool: a run with `bash` and no `read` now gets every `SKILL.md` inlined, and the on-demand line names the `read` tool, so a pi desktop run on Sonnet's first request through a gateway needs $0.056 (from $0.055; its byte bound 10,739 tokens); the documented $0.09 minimums do not change. A template eval case whose `files:` name a path under `.agents/` or `.claude/` is refused when the case is read. A run's file tools (write, edit, and every bridged file tool) and what files for it (web_save, a browser screenshot's save_as, the MCP's filed answers) refuse a path under `.agents/` with a refusal in words, in both modes, and a moved project's checkpoint keeps the baseline's `.agents/` and never carries a run's. An agent that wrote its own skills from inside a run changes them through its definition instead. <!-- changes/skills-from-revision-only.md -->
|
|
45
|
+
- A moved project's skill folders, an empty one such as a skill's `output/` included, are laid at every claim with their snapshot's mode and listed by the run's `read`; a grep over `.agents/skills/` runs in grep's worker as a folder's does, so it stops at its deadline and at `max`.
|
|
46
|
+
- A grep over the whole run folder never searches the folder's own `.agents/skills/` (a name that folds to it included), so lines the run's computer wrote there never take a project file's match's place under `max`.
|
|
47
|
+
|
|
48
|
+
## 0.1.0-beta.79 (2026-12-01)
|
|
49
|
+
|
|
50
|
+
**Breaking:**
|
|
51
|
+
|
|
52
|
+
- `createBrowserExtension`'s `workspace` option now returns a `DownloadsWorkspace` (read, stat, mkdir, write, writeNew, remove, each relative to the workspace), not a folder's path, and `fetchDownloads` takes one as its `workspace`. A host passes its own guarded workspace; a test can wrap a folder. `browser_upload` is listed only when the host passes `files`, since `workspace` no longer gives a default: pass `files: workspaceFiles(folder)` to keep it. A `downloads/manifest.json` that is a link, even to a file in the workspace, is now refused: replace it with the file itself. <!-- changes/downloads-workspace-option.md -->
|
|
53
|
+
|
|
54
|
+
**Changes:**
|
|
55
|
+
|
|
56
|
+
- `isPrivateAddress` counts the hosting cluster's internal ranges as private: the ranges in `CLUSTER_INTERNAL_CIDRS` (a comma list of CIDRs, an address alone being one host), or GKE's default Service range `34.118.224.0/20` when it is unset or blank. That range is public address space on paper, so a name that resolves into it from inside a cluster (an in-cluster service, the Kubernetes API) passed every outbound guard before. Every guard built on the classifier refuses it now, at the check and at the dial it pins: `publicFetch`, `publicDownload` and `publicCheck` (web_fetch, web_save), the server's outbound webhook at its save and at each try, and the MCP server, calendar and feed checks, where no owner's private-hosts list allows it. A value replaces the default. A value holding an entry that is not a CIDR, a CIDR with bits set past its prefix, or no entry at all (separators alone) refuses every address until it is fixed. Each process holds to its own environment: set it on the server and on each runner, and restart them to change it. <!-- changes/cluster-internal-ranges.md -->
|
|
57
|
+
- On a Mode 1 server, `browser_downloads`, a run's checkout and the delete of a run or an agent write and remove in the run's folder only through the run's Workspace, which follows no link and never waits on a FIFO. A computer that shares the folder can no longer send a download, the manifest or the lock outside it by swapping `downloads/` for a link while the call runs. <!-- changes/downloads-no-follow.md -->
|
|
58
|
+
- `downloads/` that is a link or a file is refused before anything is written, and the call says why. So is a `downloads/manifest.json` that is not a regular file (a FIFO, a link, a folder): it is opened without blocking, checked, and refused at once, never read through.
|
|
59
|
+
- Each file is placed under a name no other file holds, with no temporary file beside it. A name taken by other bytes gains the file's digest, as before.
|
|
60
|
+
- A Mode 1 checkout (`checkout: pull_request` or `repository`) is made in a private folder of the server's, then copied into `repo/` through the run's Workspace. A computer kept from an earlier claim can no longer send the checkout outside the run's folder by swapping `repo/` for a link while it lands. A link in the repository's tree is checked out as a plain file holding its target, with `core.symlinks` false in `repo/.git/config`. A `repo/` that is itself a link is left as it is, and the run is told there is no checkout. A stop, or the checkout's time running out, during the copy ends it before the next file and removes the partial `repo/`. Every git call of a checkout, in either mode, runs with no fsmonitor, no attributes file and no transport but the remote's own scheme, and stops its search for a repository at the folder it started in: an fsmonitor named in a `.git/config` planted before the checkout never runs. Mode 2's checkout is otherwise unchanged.
|
|
61
|
+
- Deleting a run or an agent removes its folders on this machine through held folders and follows no link. A DELETE that a computer still sharing the run's folder changes mid-way is `503`, and the next DELETE finishes it.
|
|
62
|
+
|
|
63
|
+
## 0.1.0-beta.75 (2026-11-30)
|
|
64
|
+
|
|
65
|
+
- A page web_fetch can't read whole now gives the agent its start and a way to the rest. A page whose body is over 5 MiB, fetched directly, used to answer `refused: the page is over 5 MiB` with no text at all; it now answers its first 5 MiB as the page's start, `cut_bytes` on every part, and the last part's line says the rest wasn't read. A page's text past the first 1,000,000 characters is still out of paging's reach, and every part that shows it now says so. An answer to an `objective` for such a page says its chunks are from the page's start alone. Of each, on a run granted `web_save`, the line tells the agent to save the page whole as a file with it and read that file. `publicFetch` takes `cut: true` for this; without it, and in `publicDownload` (web_save's), a body over the cap is refused as before. `webFetchText` takes the save tool's name as an optional third argument. <!-- changes/web-fetch-big-page.md -->
|
|
66
|
+
|
|
67
|
+
## 0.1.0-beta.73 (2026-11-29)
|
|
68
|
+
|
|
69
|
+
- The public-host guard (`publicFetch`, `publicDownload`, `publicCheck`) refuses a URL holding a user name or password itself, on the first hop and at every redirect, before that hop's name is resolved or anything is sent to it: `refused: the URL holds a user name or password`, or `refused: a redirect to a URL holding a user name or password`. The refusal never quotes the URL. Before, a redirect to such a URL was stopped only by undici's own `Request`, whose error quotes the URL whole, and a guard given another fetch followed it. Every hop now goes through the same checks, the first one's included: scheme, user name or password, then name, addresses and port. web_fetch's direct fetch, web_save's download and the server's fal file download answer such a redirect with the guard's refusal. <!-- changes/public-fetch-userinfo-every-hop.md -->
|
|
70
|
+
|
|
71
|
+
## 0.1.0-beta.70 (2026-11-29)
|
|
72
|
+
|
|
73
|
+
- A process that dies inside a browser run on a local Chrome is reattached at once. Before, Stagehand's extension kept the dead client's callback batch running until its own timeout (60 s by default) and held the new process's `Stagehand.create` behind it, so the reattach took about as long as Stagehand's 60 s init deadline and failed when the batch timeout was longer. The copy of the extension the cdp provider gives a local Chrome now aborts a gone client's running batches when the extension releases it. The copy carries Stagehand's LICENSE and a NOTICE saying what changed. A Stagehand release whose worker has moved the code the change rewrites is refused by name at launch. The change isn't applied to a browser that brings its own copy of the extension (Browserbase), which still waits until Stagehand fixes this upstream. A local launch with no private TMPDIR (Windows, or a host temp path too long for one) already runs Stagehand's own extension directory unconfined, so it doesn't get the change either and still waits, like Browserbase. pi-browser now pins Stagehand 4.4.0 exactly, the version the change was written against. <!-- changes/pi-browser-reattach-ends-dead-batch.md -->
|
|
74
|
+
- A host's `close` release of a conversation's browser (`BrowserExtensionHandle.release(…, "close")`) now waits up to 2 s for the conversation's drivers to close before it records the release, and only then ends the session at the provider. Before, the session's end started alongside the driver's close, so a Stagehand driver could send its close and detach to a Chrome that was already gone. If its socket never said so (a path that hides the far end's close), it waited out both of Stagehand's 10 s disconnect bounds. A driver that answers fast now gets both answered first. One that hasn't answered by 2 s (`DRIVER_ACK_BEFORE_KILL_MS`) is not waited for, so a wedged close holds up the session's end by 2 s at most, never its full 25 s close bound. Releases for any other reason are unchanged. <!-- changes/pi-browser-release-ack-before-kill.md -->
|
|
75
|
+
- `publicFetch` decodes a text page by the charset it declares, so a Latin-1 or Shift_JIS page reads as its words instead of U+FFFD. The charset is the Content-Type's `charset`, else (an HTML page) a `<meta charset>` or `<meta http-equiv="Content-Type">` in its first 1024 bytes, else UTF-8. A label no encoding goes by is passed over, and a `<meta>` naming UTF-16 reads as UTF-8, as a browser reads it. serve's default `web_fetch` reads pages through it. <!-- changes/public-fetch-page-charset.md -->
|
|
76
|
+
|
|
77
|
+
## 0.1.0-beta.69 (2026-11-28)
|
|
78
|
+
|
|
79
|
+
- `@parcha/pi-browser/driver/stagehand` exports `DEFAULT_BATCH_TIMEOUT_MS` (60 000), the batch deadline the Stagehand driver uses when it is given none. <!-- changes/pi-browser-default-batch-timeout-export.md -->
|
|
80
|
+
|
|
81
|
+
## 0.1.0-beta.66 (2026-11-27)
|
|
82
|
+
|
|
83
|
+
- The browser's `screenshot` tool takes an optional `save_as`: a path relative to the workspace, its folders separated by `/`, ending `.png`, `.jpg` or `.jpeg` (`shots/home.png`). The capture is filed as evidence as before, and the same bytes are also written to that path. Missing folders are created and an existing file is replaced. The answer gets a `saved: <path>` line, and its details get `save_as: { path, saved: true }`. A `.png` name captures a PNG. An absolute path, a `..` segment, a backslash, a name that is not an image, or a name whose format contradicts `type` is refused before the browser is called, so nothing is captured or filed. If the size budget retakes a PNG as a JPEG, the capture still comes back and is filed, but nothing is written under the `.png` name: the answer says `not saved: ...` and its details give `save_as: { path, saved: false, reason: "format_changed", message }`. Without `save_as`, the tool behaves as before. <!-- changes/browser-screenshot-save-as.md -->
|
|
84
|
+
- `WorkspaceFiles` (pi-browser's host port) gains an optional `write(rel, bytes)`. A host without one refuses `save_as`. pi-browser's own `workspaceFiles(root)` writes through no link, its parent folders and the file itself included, and replaces the file whole. It walks from the root one folder at a time, each opened through no link and held: on Linux every later name resolves inside a held folder, so a folder another process swaps for a link is never followed; elsewhere the held folders are checked (same folder, no link) before and after each step, and a swap seen is refused. serve writes through the run's Workspace, the same write the agent's write tool uses.
|
|
85
|
+
- On serve, the run's gate holds a browser screenshot that has `save_as` to `write`'s setting, as it already holds `computer_screenshot`'s. An agent not given `write` is refused, `write` set to deny refuses it, `write` set to ask asks a person, and a path inside a folder an MCP tool's file setting reserves is refused. A screenshot without `save_as` is held to the browser's setting alone.
|
|
86
|
+
- When serve lets a run's claim go (the run ends, is stopped, or parks), it now releases every cloud browser that carries the run's labels and the claim's epoch and that nothing the run holds names: not a session's browser by id, and not a browser whose session tag a held, not yet created session still owns. Before, a browser one create of a request made and then lost (its reply lost, its recovery keeping it because an older browser was answered) ran unheld until the vendor ended it, up to 6 hours on Browserbase and about 72 hours on Kernel: the janitor refuses vendor-lifetime providers, and a later claim's sweep releases only lower epochs. A browser another run made, or a later epoch's, is never touched. <!-- changes/browser-unheld-release.md -->
|
|
87
|
+
|
|
88
|
+
What the run holds is read after the vendor's list answers, and it counts every browser the run's custody held in that process, released or not: a browser the vendor still lists a moment after its own release is billed by its own record and never charged again. A browser whose create the process still has in flight is left to that create and named.
|
|
89
|
+
|
|
90
|
+
Each browser released this way is charged on the run from the time its vendor listing says it was made, through the same booking every other browser charge takes. The let-go records each browser on the run's root (its id, tag, when its vendor made it, and when its release went out) before its release is sent, and charges it, and says its release on the run's timeline, in one commit of its own once that release answers, before the next release is sent. A process that ends between a release and its charge, or a later release that does not answer within the let-go's bound, leaves each released browser charged and said, or recorded, and the next claim's open charges and says a recorded one: one that claim's own sweep of the run's older-epoch sessions released, to when that sweep answered (it ran until then); otherwise to when its release went out, or, where its vendor says it still runs, it releases it then and charges it to then. One whose status cannot be read stays recorded for the open after. The run's timeline and root record say so, one line per browser: `AgentRun: Released 1 browser a create race left running (<id>); this run did not hold it, and its time is booked on the run and absorbed, not billed.` A browser the release could not end is named too, as running to its vendor's lifetime. When a session's release by its tag ends such a browser beside the session's own, it is charged there under the same key (`unheld:<id>`), so it is charged once whichever release ends it, and a reopen books that charge once.
|
|
91
|
+
|
|
92
|
+
That time is booked and absorbed, never billed. The run's ledger books it, so its `cost.usd` and its usage's `total` hold it and the run's cost record is whole, but `GET /runs/{id}/usage` (`runusage/7`) puts it on a `browser_time` line of its own with `absorbed: "create_race"` and `billable: false`, and in `infra_usd`. A bill for the run's task is the billable lines, which leave it out; the run's own sessions' time stays billable. The run read leaves it out too, so no caller has to subtract it: `cost.tools_usd` (`toolsusd/4`) counts no absorbed line, and the new `cost.billable_usd` (`billable/1`) is `usd` less every absorbed line's cost, exactly `usd` for a run with none, and null only when `usd` is or an absorbed line's cost is unknown. While the run is at work, the absorbed cost it subtracts is read from the same journal records as `usd`, so a charge booked after the read is never subtracted from a `usd` that does not hold it.
|
|
93
|
+
|
|
94
|
+
`@parcha/agentrun-computer` adds `releaseUnheld(provider, run, epoch, held, { signal?, releasing?, released? })`, which lists the run's computers and releases each of that epoch the `held` predicate (sync or async, asked after the list) refuses, running `releasing(computer)` before each release is sent (one that throws holds that computer back, named in `failed`) and `released(computer)` once it answers, before the next is sent (`UnheldHooks`), and `ComputerInfo.createdAt`, which the Browserbase and Kernel listings now fill. Its README also names a gap it leaves: a create's lookup that answers a lost create's browser while a newer one runs, which that create's last read then releases; the lookup's holder loses one call and its page state, as its next call finds the browser ended and opens a fresh one. `@parcha/pi-browser` adds the `onRaceReleased` option, called with the ids a release by a session's tag ended besides that session's own, once a status read confirms each stopped: one whose release stopped it and then failed is kept with the release and told by the attempt, abort handler or reconcile that confirms it. A lost create's tag lookup tells the extra sessions it releases the same way. Each such id is saved on the session's inventory row (`InventoryRow.owed`, a new optional field) before its stop is sent, and stays there until a status read confirms its stop and it is told, across a restart: the session's own release confirms what its row owes, and a run open's reconcile what a lost row owes. A lost row's reconcile tells each session it confirms stopped even when another's release fails. A provider's `findByTag` may say when it made each session (`LeaseRef.madeAt`, a new optional field); that time is saved on the row beside the id (`InventoryRow.made`) and handed to `onRaceReleased` as `madeAt`, so a session told by a later process is charged from when it was made, not at an unknown amount. A browser a process charged and then was told again by a later one (its process ended before pi-browser's commit) is not charged again: serve reads the run's committed charges of such browsers once per process.
|
|
95
|
+
- A runner's graceful `close()` now resolves only after each live run's tool hosts have let go of what they hold, and their charges are booked under the claim the runner still holds. Before, the shutdown sealed the run's journal and aborted its ledger first, so a browser session's release charge was refused ("a tool host's beforeRelease failed: the loop stopped (shutdown)") and a priced computer's last stretch went unbooked. A shutdown's seal now lets the release hooks' commits through until they return; the claim's fence still refuses them once the claim is lost. On the run's cap, money already owed (a computer's time, a browser session's release) is booked after the run's stop, since nothing starts with it; every other step is still refused after a stop. <!-- changes/close-books-release.md -->
|
|
96
|
+
|
|
97
|
+
The wait is bounded, and the close's window now runs from its start:
|
|
98
|
+
- A run's release waits for its tool hosts up to a computer provider's cleanup bound (`cleanupMs`, 30 s by default) and a 5 s margin, never past the close's window. A host still going then is cut: each open browser session's time up to the cut is charged (pi-browser's `charge` handle), and the run's root records an `agentrun.release.cut` entry with the bound, the time taken and how many hosts finished. The session's release, when it lands (on this claim or the next one's), bills only the time after that charge. If the charge went past the release's own time, the release bills 0 s, and its `agentrun.browser_charged` entry carries `overbooked_s`. A reserve the cut claim left held is given back at the next claim's reopen. The cut reaches every conversation of the run, its subagents' included. pi-browser's `charge` now skips a session already charged through now, so a cut books no $0 charge under it.
|
|
99
|
+
- A lost create's recovery under way in the process (`recoveriesInFlight()`, new in `@parcha/agentrun-computer`, with `recoverCreate` now exported) is waited for at the close: each up to its own bound, or the drain, and the margin. A run's own process (`run-child`) waits for its own recoveries before it exits, and its runner gives that exit the release's bound.
|
|
100
|
+
- A person's stop gives a run's own process the release's bound and 5 s for the cut's booking on top of its 30 s stop, so a release that never answers is cut, charged and recorded before the process is ended. A release already under way when a shutdown arrives follows it: its cut is moved to the close's window, and the shutdown's seal lets the release's commits through. A run a person's stop already stops when the runner closes keeps that stop as its end, and its release is cut by the close's window too, in the runner's process or its own, so its cut is charged and recorded before the close ends.
|
|
101
|
+
- The close is now the drain plus the lease less its margin (31 s with the image's 6 s drain), or the cleanup bound and 10 s of margins from the close's start, whichever is longer: 40 s by default. Claims are renewed until the close returns. `startRunner` takes `cleanupMs` for a runner whose providers use a longer one.
|
|
102
|
+
- The deploy templates give a runner more time to stop: 45 s in `deploy/compose.yaml`, the Helm chart (`terminationGracePeriodSeconds`), Coolify and Dokploy, 45 s of Railway draining (`RAILWAY_DEPLOYMENT_DRAINING_SECONDS`), and 50 s on Fly (`kill_timeout`). A deployment of its own gives a runner at least 45 s, and at least `cleanupMs` + 15 s with a longer cleanup bound.
|
|
103
|
+
|
|
104
|
+
## 0.1.0-beta.63 (2026-11-26)
|
|
105
|
+
|
|
106
|
+
- `BrowserExtensionHandle.charge(conversation, context)` bills each open session of a conversation through now, not final. A session counts as open when it is live, held, or releasing (its release asked and not yet confirmed). The charge and the session's `chargedThrough` move in one commit, and it resolves to the number of sessions charged. A host that stops waiting on a session's release uses it to book the time known so far. The release's own charge, when it lands, bills only the time after that, so a cut charge followed by the final charge books what one uninterrupted session books, the provider's minimum included. A charge through a time before the session's `chargedThrough` bills nothing, never a negative amount, and reports the difference in seconds as `SessionCharge.overbookedS`. That happens when the release was confirmed before an earlier charge that billed past it. A session billed final is never billed again. <!-- changes/pi-browser-cut-charge.md -->
|
|
107
|
+
|
|
108
|
+
## 0.1.0-beta.57 (2026-11-24)
|
|
109
|
+
|
|
110
|
+
- `@parcha/agentrun-web` is new: the machinery behind `web_search` and `web_fetch`, moved out of `@parcha/agentrun-serve` with no change to what a model is sent or told. It holds the providers (Parallel, keyless Firecrawl, keyless Exa, a hosted search given as a function, and the direct fetch), a breaker per provider, the per-run page cache read in parts, and Parallel's prices. It imports no server, browser or vendor SDK code. The provider order, keys, public-host guard, run cap and refusal words come in through `WebConfig`. `createWeb(config)` answers a search or a fetch together with a receipt of the providers tried and the fees sent. `@parcha/agentrun-web/text-urls` exports the link finder alone. `@parcha/agentrun-serve` now depends on it and answers both tools through one `createWeb` per run, with pi-browser's `publicFetch` and `publicCheck` as the guard. `@parcha/pi-browser` exports `publicCheck(url, { lookup, signal })`, the check `publicFetch` makes on every hop, without dialling. Both refuse a loopback, `.local` or `.internal` name written with one or more trailing dots before any lookup, as they refuse it without them. <!-- changes/web-extract.md -->
|
|
111
|
+
|
|
112
|
+
Two things a server's users can see change:
|
|
113
|
+
|
|
114
|
+
- A workflow's call node that runs `web_search` now gets its answer held to 100,000 characters, as an agent's `web_search` already was. Past that, the least relevant results are left out and `omitted` counts them. Before, a call node got the whole answer.
|
|
115
|
+
- The MCP client keyless Firecrawl and keyless Exa are asked through now names itself `agentrun-web` in its `initialize` request, in place of `agentrun-serve`.
|
|
116
|
+
- A run with a spend cap can send fal's talking heads, `veed/fabric-1.0` at `"resolution": "480p"` or `"720p"` and `fal-ai/bytedance/omnihuman/v1.5`: each job is held at its voice's length, read before the call from the audio at its `audio_url` alone (on fal's own media, `fal.media` or a subdomain: a voice fal made, or one uploaded to fal; the URL written exactly as it parses, so `V3.fal.media`, a space, a `..` segment or `:443` is not priced), in whole seconds as fal bills them, at get_pricing's rate. The length is what the voice plays: every audio frame of an MP3 (a first frame holding a Xing, Info or VBRI header is skipped, as a decoder skips it), or a PCM WAV's samples at its sample rate, every byte after its data header counted. It is never read from the job's image, from a length its input states, or from a length the file's own header states (an MP3's Xing, Info or VBRI frame count, a WAV's byte rate or data size), which whoever made the file could write short. Only a voice on fal's own media is priced because fal fetches the `audio_url` again after this read, and another host could serve fal a longer voice than the one measured. The voice is read https only and following no redirect (fal.media serves its files directly), so a fal.media URL can't send the read to another host, through the same public-host guard as web_fetch and web_save, and at most 32 MiB. A job is still refused unsent under a cap, as before, when its voice can't be read (an `audio_url` that is not https or not on `fal.media`, a private host, over 32 MiB, a timeout, a WAV that is not integer PCM or float with one format chunk whose fields agree, an MP3 with bytes that are not frames, or any other format: an mp4 or m4a voice states its length only in its header), and for Fabric with no `resolution`: its resolution has no default, so send `"480p"` or `"720p"` (720p is held at $0.15 a second against 480p's $0.08, as fal bills it; see the fal setting tiers note). With no cap such a job runs, booked as an unknown charge, never $0. Fabric's reply states no length, so it is booked at its hold: the ledger books the voice's length, read before the call, not a length fal reports. OmniHuman settles at the length its reply states, in whole seconds. LatentSync, infinitalk and `ffmpeg-api/merge-audio-video` stay unpriceable under a cap. <!-- changes/fal-talking-head-price.md -->
|
|
117
|
+
`publicFetch` and `publicDownload` take `httpsOnly`, which refuses http on the first hop and at every redirect, and `maxRedirects` (a whole number from 0 to 5, default 5; with 0 any redirect is refused before its target is dialled; any other value is a `RangeError` before a lookup).
|
|
118
|
+
A job billed by length is priced from a length its input names only on the endpoints whose input sets the length fal bills, and only from that field: `duration` on Kling v2.5 turbo pro (text and image to video), Kling v3 pro image to video, Hailuo-02 standard text to video, Veo 3 fast, Veo 3.1 (fast, image to video) and ACE-Step; `seconds_total` on Stable Audio 2.5; `music_length_ms` or `composition_plan` on ElevenLabs Music. Before, any per-second or per-minute endpoint trusted a named `duration`, `duration_seconds`, `seconds_total` or `music_length_ms`, so a capped run could send `fal-ai/sync-lipsync/v2` with a 10 minute video and `duration: 0.001` and be held at about $0. Now dubbing, voice isolation, speech-to-text and sync-lipsync v2 are always priced from the media they are given, and any other endpoint billed by length (LatentSync, infinitalk, a merge, Fabric fast, OmniHuman v1, an endpoint this server doesn't know) is refused unsent under a cap, whatever length its input names. A listed endpoint that names no length, or another of the length fields, is refused unsent too.
|
|
119
|
+
An ElevenLabs Music job with a `composition_plan` is priced from its sections' `duration_ms`, never from a `music_length_ms` beside it: before, `music_length_ms` was read first, so a job naming 10 s beside a 10 minute plan was held at 10 s and billed for 10 minutes. A job naming both is refused unsent under a cap (send one: a plan sets the length, and `music_length_ms` goes only with a prompt), and so is a plan with `respect_sections_durations` other than `true` or left out (its default), since the model may then change the sections' lengths.
|
|
120
|
+
|
|
121
|
+
## 0.1.0-beta.50 (2026-11-20)
|
|
122
|
+
|
|
123
|
+
- `web_save {url, path}`, a new host tool, saves one public file (at most 200 MiB) into the run's `work/`, a bare name under `media/`. It downloads through `web_fetch`'s guard, never overwrites, and saves media only when the bytes, the declared type and the extension agree. An agent gets it by naming it. pi-browser adds `publicDownload`, the bytes version of `publicFetch`. A template eval's `web:` fixture takes an optional `save` section. <!-- changes/web-save-tool.md -->
|
|
124
|
+
|
|
125
|
+
## 0.1.0-beta.49 (2026-11-20)
|
|
126
|
+
|
|
127
|
+
- A session whose create answer was lost, and which the release task found later by its tag, is now told to the host's `onSession` at its release with the id that lookup found and the bill its release records. Before, the host heard it with `resourceId` null and nothing spent, because the release is told before the commit that records them. <!-- changes/pi-browser-release-found-id.md -->
|
|
128
|
+
|
|
129
|
+
## 0.1.0-beta.44 (2026-11-17)
|
|
130
|
+
|
|
131
|
+
- An agent whose computer is a browser can record its runs: `computer: {"kind": "browser", ..., "record": true}` makes a video of each browser session's page, `recordings/<computer>.mp4` with one file per session, under the same caps, pause and stop rules as a desktop's or a phone's, listed in the run read's `recordings` and served by the files route. A browser with `record: true` was refused with 422 before.
|
|
132
|
+
- The video is the live view's own CDP screencast of the session, shared with a person's viewer (one screencast per session, never a second); each frame is stamped as it comes, so a page that sits still does not shorten the video.
|
|
133
|
+
- `@parcha/pi-browser`'s live view takes a host's watch of a session's frames, with or without a viewer: `liveView.watch(tag, { frame, ended })`. A viewer that joins a stream already running is sent the page, any dialog and the newest frame.
|
|
134
|
+
|
|
135
|
+
## 0.1.0-beta.39 (2026-11-16)
|
|
136
|
+
|
|
137
|
+
- A template eval case can fake the web: `web: unavailable` in its `case.yaml` fails every `web_search` with the words a rate-limited free search answers with and every `web_fetch` as a page that never answers, and `web: <fixture file>` answers each search from the first answer whose `query` (a regular expression) matches and each page from the answer for its exact URL, else the fixture's default. No call reaches the network, the calls show in the run's timeline and the graders' tool calls, so `tool_used` counts them, and the fixture is checked whole before any run.
|
|
138
|
+
- The same fake holds on pi, claude-agent and codex: on claude-agent and codex a faked case's runs are never offered the harness's own web search, so the run's `web_search` is the one that answers.
|
|
139
|
+
- Only the eval's own in-process server honours `web`; no package field, API field, setting or environment variable turns it on, and a case with `web` refuses to run with `--server`.
|
|
140
|
+
- Fix: a guarded public fetch of a 2xx answer with no body (204, 205) reads as an empty page instead of failing with "Cannot read properties of null".
|
|
141
|
+
|
|
142
|
+
## 0.1.0-beta.38 (2026-11-14)
|
|
143
|
+
|
|
144
|
+
- web_fetch reads a site's feeds: a reply of type `application/<name>+xml` or `application/<name>+json` (`application/atom+xml`, `application/rss+xml`, `application/ld+json`) is text, read as it came.
|
|
145
|
+
- GitHub's `releases.atom` and `commits.atom` were refused as "not text", so an agent could not read a public repository's releases or commits that way. The rule is the same on every harness: claude-agent and codex run pi's web_fetch.
|
|
146
|
+
- Every other non-text type (a PDF, a zip, `application/octet-stream`, an `image/svg+xml`) is still refused.
|
|
147
|
+
|
|
148
|
+
## 0.1.0-beta.37 (2026-11-13)
|
|
149
|
+
|
|
150
|
+
- A run's live view (its browser, desktop or phone, watched and taken over) works when its runner is on another host than the server, as in the compose stack's server and runners. Breaking for a SQLite store: its schema version moves to 9, so a server refuses a SQLite store an earlier version made; start it on a fresh data directory. A Postgres store migrates itself (migration 0007). A runner names the host the server reaches it at (`AGENTRUN_RUNNER_LIVE_HOST`, listening there or on `AGENTRUN_RUNNER_LIVE_BIND`), and each viewer's row in the store carries that host (a new nullable `computer_viewers.host`). The server dials a row's host only when it is one of its runners' (`AGENTRUN_RUNNER_HOSTS`), and signs each request it makes of the viewer with an HMAC under a key derived from the seal key; a runner's viewer off loopback refuses, before any WebSocket, a request with no good, fresh proof for its own viewer, and the viewer's token still decides who watches. The hop between server and runner is plain HTTP, for a private network. With neither setting, every viewer stays on loopback as before. `@parcha/pi-browser`'s `createLiveView` takes `listen` (the address its own server listens on and the host its links name) and `admit` (a host's own check of every page request and upgrade).
|
|
151
|
+
- A desktop's or a phone's screen is watched and taken over live, as the browser's is. The runner opens its view as it claims the run's computer: `openComputerView` (computer-live.ts) starts the computer's viewer on loopback and hands it over in the store under the run's claim (`computer_viewers`, the token sealed); a stale claim is refused `fenced`, and an open that fails is refused `failed` in words with nothing left listening. Its WebSocket speaks the browser viewer's protocol: hello, ready with Take over, the screen's frames (JPEG or PNG) each sent once the viewer acked the one before (a frame held back for a slow viewer is replaced by a newer one, and the replaced frame is acked), and Take over and Hand back through the run's hold, the same take-over and hand-back the routes write. Input is mapped by one `createActionMapper` per take and reaches the computer only while the person holds it, as the run's own hold says at that moment, so input stops as soon as a take ends; otherwise it is answered `held` ("Take over to drive."), and what a desktop refuses (ctrl+alt+F1, ctrl+alt+Backspace) comes back in words. The mouse buttons a take holds are let go when the viewer loses focus, before a hand back, and once when a take ends on the run's side or the viewer goes. One viewer per computer; a viewer that goes mid-take hands the take back (`away`). The runner now journals the hold of every run's desktop or phone (computerForClaim hands it to the run's spec), so `GET /v2/runs/{id}/computer` answers live with `kind` `desktop` or `phone` and who drives, and the viewer's own page (Take over and Hand back; a phone's back, home and recents) is served under `/v2/runs/{id}/computer/live/`, its socket proxied to the runner's endpoint with the same checks as the browser's. `@parcha/pi-browser/live-view` exports its WebSocket server and token helpers for it. A desktop or phone run whose screen is not open answers `GET /v2/runs/{id}/computer` `none` with its kind, no longer `off` with "this run's agent has no computer" (#2170). The viewer types from a phone's or tablet's soft keyboard too (its `beforeinput` text, deletes and Enter), with a desktop's keys still sent once. Under `--faux`, a run on the faux desktop starts and is claimed by the runner (its start check and the runner's claim read `--faux`'s computers beside the package's), and its screen is watched and taken over through this same viewer; the faux desktop's old page under `/faux/desktops/` is gone.
|
|
152
|
+
- The pi family and Chord move from 1.5.0 to 1.5.2 together (pi-ai, pi-agent-core, pi-coding-agent, pi-codemode, pi-durable, chord). Pi's model catalog now lists `claude-fable-5-2`, so a pi run can use it. Chord's package root no longer exports `Context` or `JsonValue`; they come from `@earendil-works/chord/context` and `@earendil-works/chord/json`, which a host that imports them from the root must follow.
|
|
153
|
+
- `web_fetch`'s text (a page read directly, `readPage`) leaves out what the page hides from everyone who reads it: an element with the `hidden` attribute, an inline `display:none` or `visibility:hidden`, a closed `<dialog>`, a class the page's own `<style>` sets to `display:none` or `visibility:hidden`, and the common pop-up and display-none utility classes (`mfp-hide`, `modal`, `d-none`, `hidden`, `hide`, `invisible`, `is-hidden`, `u-hidden`). A record page's help pop-ups, hidden until a click, were read as the record, so an agent took their boilerplate ("notice of intent to dissolve") for the company's own. Text only a screen reader reads (`sr-only`, `visually-hidden`, `wb-inv`, `screen-reader-text`) and text marked `aria-hidden` stay in the text: each is shown to someone. Only the page's live style elements count (none in a comment, a script, a template or a noscript, and only those for the screen); a later declaration or rule that shows the element wins (inline over a class, an author `display` over the `hidden` attribute), and where the outcome is unclear (an `!important` mix, classes in conflict, a class a compound selector shows) the text is kept. An element hidden by visibility alone is kept whole when anything shown inside it is set visible again (visibility is inherited and a descendant can override it; one that is itself, or sits inside, a `display:none` element shows nothing); `display:none` is not, so its element always goes. A class or style value is read with its character references decoded. A hidden element that no end tag closes is still read. Pages read through Parallel's extract are unchanged.
|
|
154
|
+
|
|
155
|
+
## 0.1.0-beta.36 (2026-11-13)
|
|
156
|
+
|
|
157
|
+
- The browser tool has one stack: whether the agent's computer is a browser or the tool plane picks the vendor, every session is a browser computer of the computer registry's providers, made at the tool's call under the run's labels, and pi-browser's raw-CDP driver (`cdpDriver()`) drives it. Stagehand drives no run's browser now. Breaking: Browserbase and Kernel browsers now refuse run code and file uploads (browser_upload), and their snapshot is the raw-CDP list; every browser computer uses one driver. Breaking: pi-browser's `./providers/browserbase` and `./providers/kernel` exports and its `@browserbasehq/sdk` peer dependency are gone (a hosted browser is a browser computer provider of `@parcha/agentrun-computer`), and so are Browserbase's and Kernel's `create(spec, { settings })` vendor-field bag and its `BrowserbaseSessionSettings` and `KernelBrowserSettings` types (put a session's options in `spec.browser`).
|
|
158
|
+
- `@parcha/agentrun-computer`: a browser's own options ride the spec, `spec.browser` (`viewport`, `profile: { pointer, save }`, `stealth`, `headless`), and `capabilities().browser` declares what a provider's sessions offer (`timeout`, `profiles: { settleMs }`, `stealth`, `headless`, `downloads: { path }`). `check()` refuses an option the provider does not declare, in words. Browserbase and Kernel gain the optional `profiles { create, remove }` member, and Browserbase `downloads { list, read }`. Local Chrome declares `{ timeout: "wall-clock" }` and opens its window at the spec's viewport.
|
|
159
|
+
- `@parcha/pi-browser`: `ProviderCaps` is `profiles`, `sharedBrowser`, `settings`, `fixedSession` and `navigationAllow`; the session vault keeps a local Chrome's sessions alone. `cdpCall` is exported from the package root.
|
|
160
|
+
- agentrun-serve: on Browserbase and Kernel, the browser tool's `run` now takes actions only, as it does on Local Chrome (code is refused in words, and navigation is a `goto` action), its `snapshot` is the raw-CDP driver's, and `browser_upload` is refused (the driver sets no file input). A session carries the run's labels and its custody tag, as an agent's browser computer's does.
|
|
161
|
+
- `ScreenshotOptions.scale` (and `FakeScreenshotOptions.scale`) is a number, the fraction of the device-pixel capture to take, in place of `"css" | "device"`; a driver that passed `scale: "css"` passes `1 / devicePixelRatio`, and a custom `PageDriver.screenshot` honors a number below 1, else `captureWithinBudget` throws `ScreenshotBudgetError` for a capture over budget that it does not take smaller.
|
|
162
|
+
|
|
163
|
+
A screenshot over the 2,000 px long edge now shrinks to fit (CDP `clip.scale`) before its JPEG quality drops, so a long page on a device scale of 2 (stripe.com/pricing, a 2576x1248 viewport) comes back as a 1977x969 viewport in place of `ScreenshotBudgetError`; a full page whose fit would leave its short edge under 600 px is taken as the viewport, and the error is left for a browser that gives no capture that fits. On the runner, an image block in a tool's answer whose data is a PNG, JPEG, GIF or WebP of the type it names, with no held key in its bytes, is no longer cut to `[redacted]` by the run's key cut (any other `data` is cut as before) (which sent the model a `data:image/png;base64,[redacted]` URL and failed the run with a 400), and every image a model request carries is checked where it is attached: one with an unknown type, no data, data that is not base64, bytes of another type or a header that does not say its size goes as `[the image could not be attached: <why>]`.
|
|
164
|
+
- A run that asks its person a question with its browser open keeps that browser while it waits, for the person's window, `AGENTRUN_BROWSER_PERSON_WAIT_MIN` (15 minutes by default; the same setting now bounds a take-over with no input and an agent's hand-over ask). Before, the browser's own 3-minute idle release let it go while the run waited, so the page, the live view and Take over were gone just when the person might use them. At the window's end the browser is released with a timeline row saying so ("The browser was released after 15 min waiting for you"), and an answer after that opens a new browser. The Screen tab says the browser was released, and when, instead of "Waiting for the browser" (GET /v2/runs/{id}/computer's `none` carries `ended: {at, why}`). pi-browser's extension handle gains `keepForPerson(tag)`, which holds a session from its idle release until let go.
|
|
165
|
+
- The server and Pi browser READMEs state the Node minimum the packages enforce: 24.22.3 (the server image and the test suites run on it), not Node 22.
|
|
166
|
+
|
|
167
|
+
## 0.1.0-beta.35 (2026-11-11)
|
|
168
|
+
|
|
169
|
+
- The `use_website` tool is removed from the durable adapter: no host passed `sites`. Gone with it: `createBrowserExtension`'s `sites` option, the handle's `docs.Children`, the root exports `useWebsite`, `useWebsiteContract` and `localSites`, and the types `SiteInfo`, `SiteRunPort` and `ChildRunner`. A host that wants an agent to hand a task to another agent runs that agent itself.
|
|
170
|
+
- The durable adapter's own `web_fetch` and `web_search` are removed: no host used them (AgentRun's server runs its own web tools). Gone: `createWebExtension` and `WebExtensionOptions` (`/durable`); `createWebTools`, `WebBackup`, `FetchSource`, `SearchSource` and the rest of the web tools' exports (root); a provider's `fetch` and `search` (Browserbase's Fetch and Search APIs, the fake backend's `fetches` and `search` options) with `FetchRequest`, `FetchResult`, `SearchRequest`, `SearchResult` and `SearchHit`; the `web_fetch` and `web_search` tool contracts (`WEB_TOOLS`, `WEB_TOOL_NAMES`, `WEB_SEARCH_SNIPPET_MAX`, and the `fetch` and `search` values of a contract's `listedWhen`) and `web_fetch` as an `EvidenceTool`; `fetchUsage`, `searchUsage`, `scrubFetchedUrl`, and Browserbase's `SEARCH_QUERY_MAX` and `SEARCH_RESULTS_MAX`. The page-wall words a browser read uses (`WALLS`, `wallOf`, `wallFailure`, `pageNotice`, `INJECTION_THRESHOLD`) stay. A host that wants fetch or search gives its agent its own tool.
|
|
171
|
+
- A browser that opens with its agent's saved browser profile now says so before its tools. The prompt section's second line tells the model that a site the agent was signed in to there opens signed in, to use the browser rather than `web_fetch` for a page that needs a sign-in (`web_fetch` reads every page signed out), and that a sign-in page means this session has no sign-in for that site (a saved one may still exist, as when a restore failed). `run`'s description says the same. Before, the model was told only that the browser "keeps this agent's saved sign-ins", which didn't connect a signed-in page to the browser, so it fetched one with `web_fetch` and read the sign-in page. The line promises no sign-in, because an agent's first profile is new and holds none, and it names no site, profile id or account: a saved profile doesn't record which sites it covers. Nothing changes for a browser with no saved profile.
|
|
172
|
+
- A run whose files live on the run's Archil disk (Mode 2) can read what its browser saved. browser_read and screenshot file their evidence in the run's own folder on the disk, where the run's `read` opens it; before, they wrote to a local folder that a Mode 2 run never has, so the call failed. browser_upload chooses from the same folder, and refuses a path that would leave it. browser_downloads, which copies into a folder of the runner's machine, is offered only where the run's files are on that machine (Mode 1), so a Mode 2 run is never told a file was saved where it cannot open it.
|
|
173
|
+
pi-browser exports `uploadMime(name)`, the media type browser_upload gives a file by its name.
|
|
174
|
+
|
|
175
|
+
## 0.1.0-beta.34 (2026-11-11)
|
|
176
|
+
|
|
177
|
+
- The package keeps only what a host runs: the core, `/durable`, `/live-view`, `/driver/stagehand`, `/testing` and the providers (Browserbase, Kernel and the local Chrome). Three entries are removed, with no replacement shim:
|
|
178
|
+
- `/coding-agent`, the pi coding agent's extension: `createBrowserExtension`, the default export, `LocalCustody`, `SESSION_ENTRY`, `CodingAgentOptions` and its re-export of `findChrome`. The package's `pi` manifest goes with it, so `pi install npm:@parcha/pi-browser` no longer loads browser tools, and `@earendil-works/pi-coding-agent` is no longer a peer. Use instead: the durable adapter, `createBrowserExtension` from `@parcha/pi-browser/durable`, installed on a pi-durable Harness; `findChrome` from `@parcha/pi-browser/providers/chrome-args`.
|
|
179
|
+
- `/recorder`: `frameRecorder`, `exportFrameTracks`, `planTrack`, `TrackExportError`, `CREDENTIAL_PROBE`, `jpegSize` and their types (`FrameData`, `FrameGapData`, `FrameLine`, `FrameRecorder`, `FrameRecorderOptions`, `FrameSink`, `FrameTrackData`, `FrameTrackLine`, `Track`, `TrackFrame`, `TrackGap`, `TrackIndex`, `TrackOptions`, `TrackPlan`, `TrackSegment`). Nothing replaces them: a host that records a session's frames does it over the session's DevTools connection itself.
|
|
180
|
+
- `/providers/assigned`: `assignedSessionProvider` and `AssignedSession`. Use instead: a `BrowserProvider` of the host's own whose `caps.fixedSession` is `true`; the durable adapter refuses `browser_relaunch` on it as before.
|
|
181
|
+
- A keyless local browser: the computer package's `local` provider (`LocalBrowserProvider`, kind `browser`) runs this machine's Chrome or Chromium, with no vendor and no key, and pi-browser's new `cdpDriver()` (`@parcha/pi-browser/driver/cdp`) drives it with raw CDP.
|
|
182
|
+
- Each browser is one headless Chrome (`headed: true` shows the window) with a throwaway profile and a random debugging port on 127.0.0.1. `connect()` hands over its `ws://` DevTools URL. `release("delete")` ends it and removes its files.
|
|
183
|
+
- A supervisor process of its own ends each browser at its deadline, on release, or when Chrome exits, so a run that crashes leaves no Chrome behind.
|
|
184
|
+
- Chrome's sandbox is always on: a start as root, or where Chrome cannot start its sandbox, is refused in words. Every request goes through an egress proxy that reaches public addresses only. This machine's loopback, private networks, link-local and the cloud metadata address are refused, and Chrome resolves no name itself, speaks no QUIC and sends no WebRTC UDP.
|
|
185
|
+
- Chrome is the `executablePath` option, or `CHROME_PATH` or `PI_BROWSER_CHROME` in the `env` a host passes, or the first on that env's `PATH`. With none, `check()` and `testConnection()` say what to install.
|
|
186
|
+
- Its known limits: the debugging port has no auth (any local process can drive it), and the browser is a process of this host isolated by Chrome's sandbox alone. It is for local and development use.
|
|
187
|
+
- `ComputerCapabilities.isolation` takes `"host"`, and Settings → Computers lists "Local Chrome" with no key.
|
|
188
|
+
- pi-browser's `run` takes a `goto` action (`{"op":"goto","url":"https://..."}`) on every browser. On a browser computer (`cdpDriver()`: Browserbase, Kernel or Local Chrome), `run` takes actions only and refuses code in words (`CDP_CODE_REFUSED`). Its snapshot keeps the "frame-node" ids and names each cross-origin frame it could not read. The driver is adapted from Browser Use Pi (MIT, see pi-browser's NOTICE).
|
|
189
|
+
- A browser run's money on the runner is counted once and shown. `/v2/usage` shows a runner run's browser time again (its `browser_time` meter read per-run files the runner never writes). A run parked at its cap by a browser call shows the cap's words on its budget card, where its reason was empty. Each browser charge is booked once on the run's ledger, under its real call when it has one, named by its session and time so a reopen never books it twice; a charge owed at the provider (a session's release, a person's carried time) is booked past the cap, as main kept it. The browser's holds (a call's, a session's reserve, a person's time) are money reserved, never spent: a lost claim gives them back, never leaves them counted as spent.
|
|
190
|
+
- A hand-back now resumes the agent within half a second. While a browser hand-over waits on the person, its answer is asked for every 500 ms (`HANDOFF_POLL_MS`), not on the backoff for failed calls, which waited up to 30 s between asks: an agent handed back 40 s into its ask resumed only at 61.5 s. A read of the answer that fails still backs off.
|
|
191
|
+
|
|
192
|
+
## 0.1.0-beta.32 (2026-11-10)
|
|
193
|
+
|
|
194
|
+
- `@parcha/pi-browser` runs on Stagehand 4.4.0, whose zod (4.6.6) carries the fix for GHSA-mrhx-c7xc-m3w5. If you upgrade: a local Chrome must be 137 or later, `cdpProvider({ endpoint, extensionId })` and `AttachTarget.extensionId` are gone (Stagehand finds its extension by name), and `STAGEHAND_TELEMETRY` and `STAGEHAND_INIT_IN_PROGRESS` are no longer exported.
|
|
195
|
+
- **One client per browser.** Stagehand 4.4 attaches one client to a browser at a time. Closing a driver now disconnects it, so the next attach (a handoff, a reconnect, a durable reattach) is allowed; an attach while another client holds the browser fails with "A Stagehand client is already connected".
|
|
196
|
+
- **One Stagehand extension per browser.** Stagehand refuses a browser with two. The cdp provider uninstalls any other Stagehand extension from a local Chrome at each attach, so the lease's confined copy is the one used. A Chrome you attach to by endpoint must hold at most one.
|
|
197
|
+
- **The extension dials the browser directly.** `AttachTarget.extensionCdpUrl` names the browser's own DevTools URL for the extension's connection; the cdp provider sets it for a local Chrome. A dropped connection between the driver and the browser then no longer stalls the next attach for 60 s.
|
|
198
|
+
- **No trace export.** Stagehand 4.4 exports traces only to an endpoint it is given, and the driver gives none. The closed loopback trace port, and the request observer's exemption for it, are gone.
|
|
199
|
+
- **Shutdown with no drain.** `handle.close()` of the pi-durable adapter now waits (30 s at most) for this process's `close` releases that no `drain` since covered to reach the provider. Before, a host that closed the Harness straight after them left the browser running whenever the driver closed fast enough, which Stagehand 4.4's does.
|
|
200
|
+
- The pi family is 1.5.0 exactly (pi-durable, pi-ai, pi-coding-agent, chord), with one typebox (1.3.27); the older-pi CI legs are gone. A pi 1.5 run store is SQLite schema 2, which pi 1.3.0 or earlier cannot open again, so there is no rollback past this release. Tool results are under `output` only. A browser charge serve fails to count makes the run's spend unknown, and a capped run then refuses its next paid call until the spend is known again. The door's `GET /events` and a recording's live lines read through an adapter on pi 1.5's `observeCommits` (pi-durable-disk `./internals` `watchEvents`, with no compatibility promise) until they move to `conversation.watch`. A failed run store's close releases this process's live browser sessions again; a normal close keeps them for the next run. A claude-agent, codex or opencode run opens on pi 1.5, and an image it reads through pi's read tool is read. particle-1's cap hold keeps Particle's list price over pi-ai's promotional catalog price; a request is still booked at OpenRouter's billed total. The agent store reader reads pi-durable schema 2.
|
|
201
|
+
- The owner watches a run's browser live from the console, read-only. `GET /v2/runs/{id}/browser` answers `{state: "live", viewer}` while the run's browser session is open (`viewer`, a link on this server with its token in the fragment), `{state: "none"}` when it has a browser with no session open, and `{state: "off", reason}` when it has none (no `browser` tool, or its browser resolves unavailable here); it takes the owner's password session in the console, never a token (`403`). Capabilities say so: `features.browser_live: {read_only: true}`.
|
|
202
|
+
- The view is pi-browser's own viewer for every vendor, served by the run's process on a loopback port of its own: the vendors' own live-view links never leave that process. The process hands each session's viewer to the server in a file of that session's own in the run's directory, outside `work/` (`browser-live/<session>.json`, 0600, written whole), which goes when that session ends and never touches another session's; the token dies with the session, and the old link opens nothing.
|
|
203
|
+
- The viewer's page and WebSocket are proxied under `/v2/runs/{id}/browser/live/` to that run's port alone: the page under `frame-ancestors 'self'` (the console keeps `'none'` everywhere else), the WebSocket from this server's own origin with the owner's session only. One viewer at a time (`viewer_in_use`).
|
|
204
|
+
- The token is in no record, timeline row, run view, run file, home, log or the model's context.
|
|
205
|
+
- `@parcha/pi-browser`'s live view takes `readOnly`: every input, navigation and dialog answer is dropped on the server (`held read_only`), `ready` says `readOnly: true`, and a watching viewer keeps no session open. A browser with no page yet (Kernel's headless one starts with none) tells the viewer `no_page`, and the page says "No page yet" until one opens.
|
|
206
|
+
- `createBrowserExtension` takes `beforeCreate` (type `BeforeCreate`): the host's step between a session's `creating` record (its tag, in the inventory) reaching the store and the provider's create, with the session's conversation, its tag and its commit. Nothing is created at the provider before it resolves; one that throws creates nothing, and the record ends released (`create_failed`).
|
|
207
|
+
- The owner takes over a run's browser from the live view and hands it back, and the agent can ask them to. Capabilities say so: `features.browser_live: {read_only: false, take_over: true, ask: true}`.
|
|
208
|
+
- **Take over, hand back.** The viewer watches until the owner presses Take over in it; until then the run drops its input before the browser. The hold lasts until Hand back, the viewer is gone 2 minutes, or 15 minutes pass with no input. Meanwhile the agent's browser calls wait inside the tool, then go on with the page's old element ids dropped and the model told plainly that the person had the browser. Each change of hands moves the session's epoch, so an act a call took before it is refused. The run stays `working`; the timeline says "You took over the browser" and "You handed the browser back". A page's dialog that opens before the owner takes over never covers Take over; it says to take over to answer it, and its buttons stay off until they do.
|
|
209
|
+
- **The agent asks.** `browser_request_handoff` is listed. The run reads `input_required`/`waiting` with `pending: {kind: "browser", instruction, completion_condition, asked_at, expires_at}`, a "Waiting for you: <instruction>" row, and `run.needs_input` with `pending.kind: "browser"`. The owner answers `POST /v2/runs/{id}/browser/hand-back` `{outcome: "done" | "cancelled"}` (their password session only): the first answer wins, a different later one is `409 handoff_answered`; unanswered for 15 minutes it expires. Handing the browser back in the viewer answers the agent's open ask on that session `done` too (first answer wins); a take-over that ends any other way (idle, away, the cap) leaves the ask open. An ask whose waiting row cannot be written fails, its tool's result saying so, with nothing held or left open, so asking again shows it. Each ask is its session's own: two conversations of a run that pick the same request id make two asks, each with its own instruction, answer and take-over.
|
|
210
|
+
- **The owner's time counts.** A take-over and an ask hold 15 minutes of session time at the provider's price under the run's cap before they start (once per session: a take-over and an ask on it share one hold); with no room they are refused in the cap's words (in the viewer, or in the tool's result). A take-over that input keeps alive is held again every 15 minutes, and with no room the browser goes back to the agent at the cap. When the browser comes back, the time the person had stays held until the session's next charge books it. An ask a restarted run's process takes up holds only what is left of it, up to its expiry, and none once it is past.
|
|
211
|
+
- A run's process that dies while the agent's ask waits is started again, and the new process takes the wait up: the owner's answer reaches the agent, or the ask expires. That holds when the owner answers after the process went and before the server found it gone: the hand-off is started again until its call's result is saved, the answer already on disk.
|
|
212
|
+
- A browser session a restarted run's process keeps gets its viewer handed over again: the owner no longer reads `none` while it is live.
|
|
213
|
+
- **The viewer's code is the server's own.** Serve now serves the viewer's page, script and style from the pi-browser it has installed, never from the run's port; only the viewer's WebSocket goes to the run.
|
|
214
|
+
- `@parcha/pi-browser`'s live view takes `takeOver: { take(tag) }`, the driving gate gains `take`, `give`, `held`, `epoch`, `setPresent`, `untilFree`, `command` and `settling` (with `holdIdleMs`, `holdAwayMs` and `settleMs`: a hand-back wakes the agent only once the person's last command has returned, or `settleMs` has let it go, after which it no longer renews the person's turn), and `viewerAssets` is exported from `@parcha/pi-browser/live-view`.
|
|
215
|
+
- The timeline's "Waiting for you" row for a browser hand-over (`agent.handover`) takes the host's redact, as a tool call's arguments do: a held value the model echoes in what it asks never shows; the run's `pending` for a browser ask is redacted the same way.
|
|
216
|
+
- A cancelled browser call no longer waits for an allowed request's response head before it returns. After the effect observer lets a held request go under allow, a call's flush waits, within its bound, for the response's head (so a redirect's next hop is decided under the same call); a cancelled call now stops that wait at once instead of after up to 1 s.
|
|
217
|
+
- `browser_downloads` no longer files a download Chrome is still writing. At the end of a download (sandboxed, on a busy machine), Chrome creates the file's name empty for a moment while the bytes are still in its `.crdownload`; the local Chrome provider listed that empty file as finished, so a call in that moment copied an empty file into the workspace with the empty file's SHA-256. Now such a file, and the `.crdownload` itself, are listed as still downloading and skipped with "still downloading; call browser_downloads again", and the next call files them; a read that finds the file replaced or changed by the time it ends is skipped the same way.
|
|
218
|
+
- A page request the browser loses before it is sent is told to the call, so the model can send it again. Chrome sometimes restarts its network service while the effect observer holds requests, more often on a busy machine. A request still on its way at that moment was never sent, and the page may never hear of it. `run` and `browser_upload` now say so in plain words ("The browser lost a request your page made before the request left the browser: POST https://…/path … so the request was not sent"), and list it in `details.lost` by method and URL, with no query, body or header. A call whose action fails says it too, after the error's own words. A form is told once.
|
|
219
|
+
- `EffectObserver.record(listener, lost?)` takes a second listener, which hears of each lost request (`requestId`, `method`, `origin`, `path`) while the call records.
|
|
220
|
+
- A lost request is never journaled, so it never counts as sent or allowed. If Chrome pauses it after all, it is refused and journaled denied. The observer holds and denies every request after the restart as before.
|
|
221
|
+
- The observer asks Chrome for its network service's pid only while a held request waits for its pause: once per request (at most one question per 50 ms, which requests announced meanwhile share), then every 250 ms while it waits, never when idle, and never for an observer that holds nothing. A browser that refuses the question, or never names a network service of its own for 2 s, is not asked again. When a known service is gone, the call's flush waits for its successor, up to 10 s or until the call is cancelled; if none shows, its waiting requests are told lost and the next service is learned afresh. One question unanswered for 1 s counts as no answer, never as a restart, and is not kept; after three in a row (an answer with no result, or a failed question, counts too) the observer stops asking until a new held request. Over the 12-case effect matrix under deny that was 16 questions of about 3 ms each.
|
|
222
|
+
- A form POST lost before its request existed is told by its frame's intent; if its Document request is paused after all, it is refused.
|
|
223
|
+
- A redirect's next hop of a held request is held and decided under the same call: after an allowed request is continued, the call's flush waits, within its bound, for the response's head, and a 307 hop is journaled as a row of its own (`<id>#2`) instead of replacing the first hop's row. A hop after a redirect is never told "not sent", since its first hop went out. Before, a call could end between the hops, so the second hop's decision belonged to the next call or to none.
|
|
224
|
+
- Live view and take-over follow-ups: the watch-only viewer reads as watching, the page fills the viewer's window, a broken connection never writes an HTTP line into an open viewer, two take-over notices say what happened, and a run of several actions stops before an action on a new document.
|
|
225
|
+
- A view-only viewer shows "View only: you're watching the agent's browser; your clicks and keys are not sent." in a banner of its own, with the page's address beside it as plain text (cut with an ellipsis, the whole address in its tooltip), never the take-over wording that input is held, and no toolbar (its back, reload and address field acted on nothing there).
|
|
226
|
+
- In every mode the page fills the window at its own shape and follows it as the window resizes, with clicks still landing where they are made; the end of a session (released, refused or disconnected) reads in large type over a dimmed page.
|
|
227
|
+
- A run's live view whose browser connection breaks mid-session just closes the viewer's WebSocket: the server no longer writes an HTTP "502" (or "500") line into a WebSocket stream already open.
|
|
228
|
+
- A take-over whose hold ended before it went live (the agent's step ran on) says "Your take-over did not start: …" instead of that the browser went back to the agent, which the person never had.
|
|
229
|
+
- A live view whose gate registry cannot hold refuses a take with "This browser can't be handed over from the live view." instead of telling the person it is held already.
|
|
230
|
+
- A run of several snapshot actions stops before an action that would land on a new document (a link to another page, a reload): the action is not sent, and the run answers `stale_snapshot`, partial, with how many ran, telling the model to snapshot again. A #hash change or history.pushState/replaceState keeps the document, and the run goes on.
|
|
231
|
+
- A take-over now reads as it happened on the Timeline. "You took over the browser" and "You handed the browser back" each show the time it happened, so the gap between them is how long you held the browser. Before, each showed the time of the row above it, so an 11 s hold could read as 3 s. The agent's browser call that waited for your hand-back says so: "Waited for you 11 s, then opened www.example.com/…". Before, it read as the agent opening the page while you had the browser. Upgrading: nothing to do.
|
|
232
|
+
- pi-browser: a browser call that waited for the person adds `waited_for_person_ms` to its result's `details`; one stopped while it waited adds nothing.
|
|
233
|
+
- pi-durable-agent: a `HOST_PHASE` entry's `at` (ms) is its row's time, and a browser call's row whose result has `waited_for_person_ms` starts "Waited for you <time>, then …" when the call succeeded, and "Waited for you <time>: …" when it failed.
|
|
234
|
+
- Packages take TypeBox's `Type`, `Static` and `TSchema` from typebox, never through pi-ai, pi-agent-core, pi-durable or chord, which drop those re-exports from pi 1.5. serve, pi-browser and pi-agent-learn now depend on typebox 1.3.27 directly (the version pi-ai 1.1 resolves); harness and agentrun-pi keep it as a host-provided peer. Tool schemas serialize exactly as before, so tool arguments are checked the same. harness's `shownShots` has a named return type, `ShownShots`.
|
|
235
|
+
- `npm run test:affected` (`node scripts/test-affected.mjs`) runs only the test files a change reaches: a changed test file, the tests that import a changed source file directly or transitively (imports read from the parse tree, `dist/` mapped back to `src/`, workspace names resolved through `exports`), a package's every test when its `package.json`, tsconfig or build script changes, and the tests that name a changed file where an import can't say. A shared root (root manifests, `scripts/`, `.github/`) adds only its importers, and a fast smoke file per package always runs. It prints a command per suite, or the files (`--list`), or why each file was picked (`--json`). CI still runs every suite. pi-browser's test runner (`node scripts/run-tests.mjs`) now runs only the test files it is given.
|
|
236
|
+
|
|
5
237
|
## 0.1.0-beta.31 (2026-11-06)
|
|
6
238
|
|
|
7
239
|
- A model granted both web_fetch and the browser is now told which one has cookies. Asked to "Open https://httpbin.org/cookies", a pi run picked web_fetch, which has no cookies, and answered with an empty page; it picked the browser only when told to. The tool descriptions the model reads now say:
|
package/NOTICE
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
AgentRun
|
|
2
2
|
Copyright 2026 Parcha Labs, Inc.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
The boxd computer provider (packages/computer/src/boxd.ts) was contributed by Michiel Voortman.
|
|
5
|
+
|
|
6
|
+
This package contains three pieces of Stagehand (https://github.com/browserbase/stagehand), all under its MIT license,
|
|
5
7
|
whose text follows:
|
|
6
8
|
|
|
7
|
-
- The Chrome launch flags in src/providers/
|
|
8
|
-
(DEFAULT_CHROME_FLAGS).
|
|
9
|
-
- The files in src/vendor/stagehand-facade (compiled to dist/vendor/stagehand-facade), copied from
|
|
9
|
+
- The Chrome launch flags in src/providers/chrome-args.ts, copied from Stagehand 4.1.0's
|
|
10
|
+
packages/sdk-ts/src/browser/localBrowser.ts (DEFAULT_CHROME_FLAGS).
|
|
11
|
+
- The files in src/vendor/stagehand-facade (compiled to dist/vendor/stagehand-facade), copied from Stagehand 4.1.0's
|
|
10
12
|
packages/integrations/core/src/facade at commit cd7b230778cf92269e4cb90e80d97f5113781c51. UPSTREAM.json, shipped
|
|
11
13
|
beside them as src/vendor/stagehand-facade/UPSTREAM.json, records each file's upstream blob and SHA-256.
|
|
14
|
+
- The lines of Stagehand 4.4.0's dist/extension/service-worker.js that src/providers/worker-extension.ts quotes, and
|
|
15
|
+
rewrites in the copy of Stagehand's extension it gives a local Chrome. That copy carries Stagehand's LICENSE and a
|
|
16
|
+
NOTICE naming what changed in it.
|
|
12
17
|
|
|
13
18
|
MIT License
|
|
14
19
|
|
|
@@ -31,3 +36,33 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
31
36
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
37
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
38
|
SOFTWARE.
|
|
39
|
+
|
|
40
|
+
This package also contains code adapted from Browser Use Pi (https://github.com/browser-use/browser-use-pi), under its MIT
|
|
41
|
+
license, whose text follows:
|
|
42
|
+
|
|
43
|
+
- The files in src/vendor/browser-use-pi (compiled to dist/vendor/browser-use-pi), adapted from Browser Use Pi's
|
|
44
|
+
src/ax.ts, src/cdp.ts and src/page.ts at commit e7007f219b10fa2c2baae1bf3e2f902a5a2706fd. Each file says what changed;
|
|
45
|
+
UPSTREAM.json, shipped beside them as src/vendor/browser-use-pi/UPSTREAM.json, records each upstream file's blob and
|
|
46
|
+
SHA-256.
|
|
47
|
+
|
|
48
|
+
MIT License
|
|
49
|
+
|
|
50
|
+
Copyright (c) 2026 Browser Use contributors
|
|
51
|
+
|
|
52
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
53
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
54
|
+
in the Software without restriction, including without limitation the rights
|
|
55
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
56
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
57
|
+
furnished to do so, subject to the following conditions:
|
|
58
|
+
|
|
59
|
+
The above copyright notice and this permission notice shall be included in all
|
|
60
|
+
copies or substantial portions of the Software.
|
|
61
|
+
|
|
62
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
63
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
64
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
65
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
66
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
67
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
68
|
+
SOFTWARE.
|