sandboxedjs 0.1.80 → 0.1.83
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/dist/agent.d.cts +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/{container-LwAV9JTH.d.cts → container-B14Q03ng.d.cts} +1 -1
- package/dist/{container-CUB12Moo.d.ts → container-DtVUncWL.d.ts} +1 -1
- package/dist/{contracts-C2_dTgk3.d.cts → contracts-DNkSvBCM.d.cts} +19 -2
- package/dist/{contracts-C2_dTgk3.d.ts → contracts-DNkSvBCM.d.ts} +19 -2
- package/dist/index.cjs +709 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +709 -64
- package/dist/index.js.map +1 -1
- package/dist/{memory-volume-CG56p660.d.ts → memory-volume-D4FLjyEU.d.ts} +1 -1
- package/dist/{memory-volume-DqEWFo7t.d.cts → memory-volume-n-LY8Vdv.d.cts} +1 -1
- package/dist/python-abi.d.cts +3 -3
- package/dist/python-abi.d.ts +3 -3
- package/dist/worker-entry.js +714 -63
- package/dist/worker-entry.js.map +1 -1
- package/package.json +1 -1
package/dist/agent.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Container } from './container-
|
|
2
|
-
import './contracts-
|
|
1
|
+
import { C as Container } from './container-B14Q03ng.cjs';
|
|
2
|
+
import './contracts-DNkSvBCM.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Structural copies of the LangChain Deep Agents backend contract.
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as Vfs, C as Cred, f as RuntimePod, O as OutboundPolicy, D as DirEntry, p as Stats } from './contracts-
|
|
1
|
+
import { V as Vfs, C as Cred, f as RuntimePod, O as OutboundPolicy, D as DirEntry, p as Stats } from './contracts-DNkSvBCM.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Byte streams for stdin/stdout/stderr, pipelines and redirections.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as Vfs, C as Cred, f as RuntimePod, O as OutboundPolicy, D as DirEntry, p as Stats } from './contracts-
|
|
1
|
+
import { V as Vfs, C as Cred, f as RuntimePod, O as OutboundPolicy, D as DirEntry, p as Stats } from './contracts-DNkSvBCM.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Byte streams for stdin/stdout/stderr, pipelines and redirections.
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
type IpcSide = "parent" | "child";
|
|
2
|
+
/** One end of a channel, as a process sees it. */
|
|
3
|
+
interface IpcEndpoint {
|
|
4
|
+
send(message: unknown): void;
|
|
5
|
+
disconnect(): void;
|
|
6
|
+
}
|
|
7
|
+
/** How a process reaches the host's channels, wherever the process runs. */
|
|
8
|
+
interface IpcTransport {
|
|
9
|
+
attach(id: string, side: IpcSide, onMessage: (message: unknown) => void, onDisconnect: () => void): IpcEndpoint;
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
/** The handle a pod's process manager returns. */
|
|
2
13
|
interface ChildHandle {
|
|
3
14
|
pid: number;
|
|
@@ -63,7 +74,13 @@ type SyncSpawn = (request: {
|
|
|
63
74
|
message: string;
|
|
64
75
|
};
|
|
65
76
|
};
|
|
66
|
-
declare function createChildProcessModule(spawnChild: SpawnChild, defaultCwd: () => string, syncSpawn?: SyncSpawn, defaultEnv?: () => Record<string, string
|
|
77
|
+
declare function createChildProcessModule(spawnChild: SpawnChild, defaultCwd: () => string, syncSpawn?: SyncSpawn, defaultEnv?: () => Record<string, string>, lifecycle?: {
|
|
78
|
+
referenceChanged?: (delta: number) => void;
|
|
79
|
+
stdout?: (text: string) => void;
|
|
80
|
+
stderr?: (text: string) => void;
|
|
81
|
+
/** Where `fork` channels live; without one a child simply has none. */
|
|
82
|
+
ipc?: IpcTransport;
|
|
83
|
+
}): Record<string, unknown>;
|
|
67
84
|
|
|
68
85
|
type FileKind = "file" | "directory" | "symlink" | "chardev" | "blockdev" | "fifo" | "socket";
|
|
69
86
|
/** Render as `drwxr-xr-x`, honouring setuid/setgid/sticky. */
|
|
@@ -513,4 +530,4 @@ interface RuntimePod {
|
|
|
513
530
|
teardown(): void;
|
|
514
531
|
}
|
|
515
532
|
|
|
516
|
-
export { type Cred as C, type DirEntry as D, type OutboundPolicy as O, type RuntimeVolume as R, type SpawnChild as S, Vfs as V, type WriteOptions as W, VirtualTcpNetwork as a, type RuntimeHttpResponse as b, type SyncSpawn as c, type VolumeStat as d, type VolumeStats as e, type RuntimePod as f, type RuntimePackageInstaller as g, type ChildSpawnConfig as h, type ChildHandle as i, type RuntimeProcess as j, type RuntimeSocketPeer as k, type RuntimeConnection as l, ROOT_CRED as m, type RuntimeProcessManager as n, type RuntimeProcessResult as o, Stats as p, type VirtualNode as q, type VirtualProvider as r, applyChmod as s, createChildProcessModule as t, formatMode as u, makeCred as v, octalMode as w, parseUmask as x };
|
|
533
|
+
export { type Cred as C, type DirEntry as D, type IpcTransport as I, type OutboundPolicy as O, type RuntimeVolume as R, type SpawnChild as S, Vfs as V, type WriteOptions as W, VirtualTcpNetwork as a, type RuntimeHttpResponse as b, type SyncSpawn as c, type VolumeStat as d, type VolumeStats as e, type RuntimePod as f, type RuntimePackageInstaller as g, type ChildSpawnConfig as h, type ChildHandle as i, type RuntimeProcess as j, type RuntimeSocketPeer as k, type RuntimeConnection as l, ROOT_CRED as m, type RuntimeProcessManager as n, type RuntimeProcessResult as o, Stats as p, type VirtualNode as q, type VirtualProvider as r, applyChmod as s, createChildProcessModule as t, formatMode as u, makeCred as v, octalMode as w, parseUmask as x };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
type IpcSide = "parent" | "child";
|
|
2
|
+
/** One end of a channel, as a process sees it. */
|
|
3
|
+
interface IpcEndpoint {
|
|
4
|
+
send(message: unknown): void;
|
|
5
|
+
disconnect(): void;
|
|
6
|
+
}
|
|
7
|
+
/** How a process reaches the host's channels, wherever the process runs. */
|
|
8
|
+
interface IpcTransport {
|
|
9
|
+
attach(id: string, side: IpcSide, onMessage: (message: unknown) => void, onDisconnect: () => void): IpcEndpoint;
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
/** The handle a pod's process manager returns. */
|
|
2
13
|
interface ChildHandle {
|
|
3
14
|
pid: number;
|
|
@@ -63,7 +74,13 @@ type SyncSpawn = (request: {
|
|
|
63
74
|
message: string;
|
|
64
75
|
};
|
|
65
76
|
};
|
|
66
|
-
declare function createChildProcessModule(spawnChild: SpawnChild, defaultCwd: () => string, syncSpawn?: SyncSpawn, defaultEnv?: () => Record<string, string
|
|
77
|
+
declare function createChildProcessModule(spawnChild: SpawnChild, defaultCwd: () => string, syncSpawn?: SyncSpawn, defaultEnv?: () => Record<string, string>, lifecycle?: {
|
|
78
|
+
referenceChanged?: (delta: number) => void;
|
|
79
|
+
stdout?: (text: string) => void;
|
|
80
|
+
stderr?: (text: string) => void;
|
|
81
|
+
/** Where `fork` channels live; without one a child simply has none. */
|
|
82
|
+
ipc?: IpcTransport;
|
|
83
|
+
}): Record<string, unknown>;
|
|
67
84
|
|
|
68
85
|
type FileKind = "file" | "directory" | "symlink" | "chardev" | "blockdev" | "fifo" | "socket";
|
|
69
86
|
/** Render as `drwxr-xr-x`, honouring setuid/setgid/sticky. */
|
|
@@ -513,4 +530,4 @@ interface RuntimePod {
|
|
|
513
530
|
teardown(): void;
|
|
514
531
|
}
|
|
515
532
|
|
|
516
|
-
export { type Cred as C, type DirEntry as D, type OutboundPolicy as O, type RuntimeVolume as R, type SpawnChild as S, Vfs as V, type WriteOptions as W, VirtualTcpNetwork as a, type RuntimeHttpResponse as b, type SyncSpawn as c, type VolumeStat as d, type VolumeStats as e, type RuntimePod as f, type RuntimePackageInstaller as g, type ChildSpawnConfig as h, type ChildHandle as i, type RuntimeProcess as j, type RuntimeSocketPeer as k, type RuntimeConnection as l, ROOT_CRED as m, type RuntimeProcessManager as n, type RuntimeProcessResult as o, Stats as p, type VirtualNode as q, type VirtualProvider as r, applyChmod as s, createChildProcessModule as t, formatMode as u, makeCred as v, octalMode as w, parseUmask as x };
|
|
533
|
+
export { type Cred as C, type DirEntry as D, type IpcTransport as I, type OutboundPolicy as O, type RuntimeVolume as R, type SpawnChild as S, Vfs as V, type WriteOptions as W, VirtualTcpNetwork as a, type RuntimeHttpResponse as b, type SyncSpawn as c, type VolumeStat as d, type VolumeStats as e, type RuntimePod as f, type RuntimePackageInstaller as g, type ChildSpawnConfig as h, type ChildHandle as i, type RuntimeProcess as j, type RuntimeSocketPeer as k, type RuntimeConnection as l, ROOT_CRED as m, type RuntimeProcessManager as n, type RuntimeProcessResult as o, Stats as p, type VirtualNode as q, type VirtualProvider as r, applyChmod as s, createChildProcessModule as t, formatMode as u, makeCred as v, octalMode as w, parseUmask as x };
|