@parcha/pi-browser 0.1.0-beta.14 → 0.1.0-beta.15
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 +5 -0
- package/README.md +2 -0
- package/dist/coding-agent.d.ts +6 -0
- package/dist/coding-agent.js +28 -13
- package/dist/core/custody.d.ts +7 -0
- package/dist/core/custody.js +16 -3
- package/dist/core/downloads.d.ts +1 -0
- package/dist/core/downloads.js +2 -2
- package/dist/core/host.d.ts +9 -0
- package/dist/core/sites.js +2 -1
- package/dist/driver/extension-worker.d.ts +2 -1
- package/dist/driver/extension-worker.js +47 -20
- package/dist/driver/new-document.d.ts +26 -0
- package/dist/driver/new-document.js +40 -0
- package/dist/driver/stagehand.js +8 -10
- package/dist/durable.d.ts +7 -0
- package/dist/durable.js +60 -20
- package/dist/providers/browserbase.d.ts +17 -0
- package/dist/providers/browserbase.js +49 -8
- package/dist/providers/cdp.d.ts +7 -0
- package/dist/providers/cdp.js +189 -55
- package/dist/providers/kernel.js +40 -6
- package/dist/providers/profiles.d.ts +19 -0
- package/dist/providers/profiles.js +124 -0
- package/dist/providers/shared.d.ts +1 -1
- package/dist/recorder/track.js +23 -2
- package/dist/testing/backend.js +2 -2
- package/package.json +1 -1
package/dist/testing/backend.js
CHANGED
|
@@ -34,7 +34,7 @@ export function fakeImage(type, width, height) {
|
|
|
34
34
|
ihdr[9] = 2;
|
|
35
35
|
return Buffer.concat([Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), chunk("IHDR", ihdr), chunk("IEND", Buffer.alloc(0))]);
|
|
36
36
|
}
|
|
37
|
-
const DEFAULT_CAPS = { timeoutModel: "inactivity", maxLifetimeS: 3600, survivesDisconnect: false, releaseIsAsync: false, extension: "loaded-locally" };
|
|
37
|
+
const DEFAULT_CAPS = { timeoutModel: "inactivity", maxLifetimeS: 3600, survivesDisconnect: false, releaseIsAsync: false, profiles: false, extension: "loaded-locally" };
|
|
38
38
|
export class FakeBackend {
|
|
39
39
|
sentinels;
|
|
40
40
|
pages;
|
|
@@ -166,7 +166,7 @@ export class FakeBackend {
|
|
|
166
166
|
const id = b.newId("fake_sess");
|
|
167
167
|
b.sessions.set(id, { id, tag: spec.tag, metadata: { ...spec.metadata }, state: "running", url: b.opts.start, broker: false, plane: "default" });
|
|
168
168
|
b.noteLive();
|
|
169
|
-
b.record("create", { id, tag: spec.tag, metadata: { ...spec.metadata }, contextId: spec.contextId ?? null, verified: spec.verified, liveNow: b.liveCount() });
|
|
169
|
+
b.record("create", { id, tag: spec.tag, metadata: { ...spec.metadata }, contextId: spec.contextId ?? null, profile: spec.profile ?? null, verified: spec.verified, liveNow: b.liveCount() });
|
|
170
170
|
await b.after("create");
|
|
171
171
|
return { id, tag: spec.tag };
|
|
172
172
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/pi-browser",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.15",
|
|
4
4
|
"description": "A durable browser for pi agents: session custody that survives crashes, effect and replay classes per tool, evidence with SHA-256, typed failures, and no credential in any model-visible string.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|