@rivet-dev/agentos-browser 0.2.5-rc.3 → 0.2.5-rc.4
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
//
|
|
5
5
|
// 1. DRIVER mode (default, no `agentExecutor`): mirrors secure-exec's no-op
|
|
6
6
|
// execution host bridge. In the converged browser runtime the guest runs in the
|
|
7
|
-
// browser worker (driven by @
|
|
7
|
+
// browser worker (driven by @rivet-dev/agentos-runtime-browser's runtime driver), not in the
|
|
8
8
|
// wasm sidecar; the sidecar only needs a kernel process (pid) for socket
|
|
9
9
|
// ownership, created by an `execute` wire request. `startExecution` echoes the
|
|
10
10
|
// driver-provided execution id (set via `setNextExecutionId`); the stdio
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CreateVmConfig } from "@
|
|
2
|
-
import type { ProtocolFramePayloadCodec } from "@
|
|
3
|
-
import type { ConvergedSidecarFactoryOptions } from "@
|
|
1
|
+
import type { CreateVmConfig } from "@rivet-dev/agentos-runtime-core/vm-config";
|
|
2
|
+
import type { ProtocolFramePayloadCodec } from "@rivet-dev/agentos-runtime-core/protocol-frames";
|
|
3
|
+
import type { ConvergedSidecarFactoryOptions } from "@rivet-dev/agentos-runtime-browser";
|
|
4
4
|
import { type SyncAgentExecutor } from "./converged-execution-host-bridge.js";
|
|
5
5
|
export interface AgentOsConvergedSidecarOptions {
|
|
6
6
|
/** Wire codec; defaults to the same-version BARE codec. */
|
|
@@ -28,7 +28,7 @@ export interface AgentOsConvergedSidecarOptions {
|
|
|
28
28
|
* `createBrowserRuntimeDriverFactory`'s `convergedSidecar` option:
|
|
29
29
|
*
|
|
30
30
|
* ```ts
|
|
31
|
-
* import { createBrowserRuntimeDriverFactory } from "@
|
|
31
|
+
* import { createBrowserRuntimeDriverFactory } from "@rivet-dev/agentos-runtime-browser";
|
|
32
32
|
* import { createAgentOsConvergedSidecar } from "@rivet-dev/agentos-browser";
|
|
33
33
|
*
|
|
34
34
|
* const factory = createBrowserRuntimeDriverFactory({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Agent OS converged sidecar loader.
|
|
2
2
|
//
|
|
3
|
-
// The converged browser runtime lives in `@
|
|
3
|
+
// The converged browser runtime lives in `@rivet-dev/agentos-runtime-browser`: the worker, the
|
|
4
4
|
// SharedArrayBuffer sync-bridge, and the fs/net/dns/module servicers are all
|
|
5
5
|
// reused verbatim. Agent OS plugs in its OWN wasm sidecar — the one that registers
|
|
6
6
|
// `BrowserAcpExtension` — via `createBrowserRuntimeDriverFactory({ convergedSidecar })`.
|
|
@@ -20,7 +20,7 @@ const WASM_BINARY_URL = new URL("./sidecar-wasm-web/agentos_sidecar_browser_bg.w
|
|
|
20
20
|
* `createBrowserRuntimeDriverFactory`'s `convergedSidecar` option:
|
|
21
21
|
*
|
|
22
22
|
* ```ts
|
|
23
|
-
* import { createBrowserRuntimeDriverFactory } from "@
|
|
23
|
+
* import { createBrowserRuntimeDriverFactory } from "@rivet-dev/agentos-runtime-browser";
|
|
24
24
|
* import { createAgentOsConvergedSidecar } from "@rivet-dev/agentos-browser";
|
|
25
25
|
*
|
|
26
26
|
* const factory = createBrowserRuntimeDriverFactory({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type { BrowserDriverOptions, BrowserRuntimeSystemOptions, } from "@
|
|
2
|
-
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, InMemoryFileSystem, } from "@
|
|
3
|
-
export type { ExecOptions, ExecResult, NodeRuntimeDriver, StdioChannel, StdioEvent, TimingMitigation, } from "@
|
|
4
|
-
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "@
|
|
5
|
-
export type { BrowserRuntimeDriverFactoryOptions, ConvergedSidecarFactoryOptions, ConvergedSidecarHandle, } from "@
|
|
6
|
-
export { createBrowserRuntimeDriverFactory } from "@
|
|
7
|
-
export type { WorkerHandle } from "@
|
|
8
|
-
export { BrowserWorkerAdapter } from "@
|
|
1
|
+
export type { BrowserDriverOptions, BrowserRuntimeSystemOptions, } from "@rivet-dev/agentos-runtime-browser";
|
|
2
|
+
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, InMemoryFileSystem, } from "@rivet-dev/agentos-runtime-browser";
|
|
3
|
+
export type { ExecOptions, ExecResult, NodeRuntimeDriver, StdioChannel, StdioEvent, TimingMitigation, } from "@rivet-dev/agentos-runtime-browser";
|
|
4
|
+
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "@rivet-dev/agentos-runtime-browser";
|
|
5
|
+
export type { BrowserRuntimeDriverFactoryOptions, ConvergedSidecarFactoryOptions, ConvergedSidecarHandle, } from "@rivet-dev/agentos-runtime-browser";
|
|
6
|
+
export { createBrowserRuntimeDriverFactory } from "@rivet-dev/agentos-runtime-browser";
|
|
7
|
+
export type { WorkerHandle } from "@rivet-dev/agentos-runtime-browser";
|
|
8
|
+
export { BrowserWorkerAdapter } from "@rivet-dev/agentos-runtime-browser";
|
|
9
9
|
export type { AgentOsConvergedSidecarOptions } from "./converged-sidecar.js";
|
|
10
10
|
export { createAgentOsConvergedSidecar } from "./converged-sidecar.js";
|
|
11
11
|
export type { ConvergedExecutionHostBridge } from "./converged-execution-host-bridge.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @rivet-dev/agentos-browser — converged browser runtime for Agent OS.
|
|
2
2
|
//
|
|
3
|
-
// The browser runtime is @
|
|
3
|
+
// The browser runtime is @rivet-dev/agentos-runtime-browser's CONVERGED stack (worker,
|
|
4
4
|
// SharedArrayBuffer sync-bridge, fs/net/dns/module servicers, all enforced by the
|
|
5
5
|
// wasm kernel). Agent OS does not carry its own copy; it re-exports that runtime
|
|
6
6
|
// and adds only the ACP/wasm-sidecar layer (createAgentOsConvergedSidecar). The
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
// Per the converged model (kernel-owns-fs), per-runtime OPFS *namespace* helpers
|
|
12
12
|
// (listOpfsNamespaces/releaseOpfsNamespace) are gone: storage isolation is the
|
|
13
13
|
// kernel's responsibility, not a TS-layer concern.
|
|
14
|
-
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, InMemoryFileSystem, } from "@
|
|
15
|
-
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "@
|
|
16
|
-
export { createBrowserRuntimeDriverFactory } from "@
|
|
17
|
-
export { BrowserWorkerAdapter } from "@
|
|
14
|
+
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, InMemoryFileSystem, } from "@rivet-dev/agentos-runtime-browser";
|
|
15
|
+
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "@rivet-dev/agentos-runtime-browser";
|
|
16
|
+
export { createBrowserRuntimeDriverFactory } from "@rivet-dev/agentos-runtime-browser";
|
|
17
|
+
export { BrowserWorkerAdapter } from "@rivet-dev/agentos-runtime-browser";
|
|
18
18
|
export { createAgentOsConvergedSidecar } from "./converged-sidecar.js";
|
|
19
19
|
export { createConvergedExecutionHostBridge } from "./converged-execution-host-bridge.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivet-dev/agentos-browser",
|
|
3
|
-
"version": "0.2.5-rc.
|
|
3
|
+
"version": "0.2.5-rc.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"check-types": "pnpm check:converged-gates && tsc --noEmit",
|
|
21
21
|
"check:converged-gates": "node ./scripts/check-converged-gates.mjs",
|
|
22
22
|
"dev": "vite",
|
|
23
|
-
"build": "tsc
|
|
23
|
+
"build": "tsc",
|
|
24
24
|
"build:dist-wasm": "node ./scripts/build-dist-wasm.mjs",
|
|
25
25
|
"build:sidecar-wasm": "node ./scripts/build-sidecar-wasm.mjs",
|
|
26
26
|
"build:wasm-test-assets": "node ./scripts/build-wasm-test-assets.mjs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "pnpm check:converged-gates && pnpm build && vitest run tests/runtime-driver && pnpm run test:browser-wasm"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
34
|
+
"@rivet-dev/agentos-runtime-browser": "0.2.5-rc.4",
|
|
35
|
+
"@rivet-dev/agentos-runtime-core": "0.2.5-rc.4",
|
|
36
36
|
"sucrase": "^3.35.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|