@agentuity/core 0.0.104 → 0.0.106
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/AGENTS.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/sandbox.d.ts +469 -0
- package/dist/services/sandbox.d.ts.map +1 -0
- package/dist/services/sandbox.js +6 -0
- package/dist/services/sandbox.js.map +1 -0
- package/dist/services/stream.d.ts.map +1 -1
- package/dist/services/stream.js +101 -81
- package/dist/services/stream.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +22 -0
- package/src/services/index.ts +1 -0
- package/src/services/sandbox.ts +542 -0
- package/src/services/stream.ts +120 -91
package/AGENTS.md
CHANGED
|
@@ -12,7 +12,7 @@ Core utilities and shared types for the Agentuity framework. This package provid
|
|
|
12
12
|
|
|
13
13
|
## Architecture
|
|
14
14
|
|
|
15
|
-
- **Runtime**: Node/Bun compatible, no runtime-specific code
|
|
15
|
+
- **Runtime**: Browser and Node/Bun compatible, no runtime-specific code. Must work in all JavaScript environments
|
|
16
16
|
- **Build target**: ESNext with TypeScript declaration files
|
|
17
17
|
- **Exports**: All public APIs exported from `src/index.ts`
|
|
18
18
|
- **No dependencies**: This is a foundational package with zero runtime dependencies
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { type SessionEventProvider, SessionStartEventSchema, SessionCompleteEven
|
|
|
8
8
|
export { type CreateStreamProps, type ListStreamsParams, type StreamInfo, type ListStreamsResponse, type Stream, type StreamStorage, StreamStorageService, } from './services/stream';
|
|
9
9
|
export { type VectorUpsertBase, type VectorUpsertEmbeddings, type VectorUpsertText, type VectorUpsertParams, type VectorSearchParams, type VectorSearchResult, type VectorSearchResultWithDocument, type VectorUpsertResult, type VectorResultFound, type VectorResultNotFound, type VectorResult, type VectorNamespaceStats, type VectorItemStats, type VectorNamespaceStatsWithSamples, type VectorStorage, VectorStorageService, } from './services/vector';
|
|
10
10
|
export { type EvalRunEventProvider, EvalRunStartEventSchema, EvalRunCompleteEventSchema, EvalRunStartEventDelayedSchema, EvalRunCompleteEventDelayedSchema, type EvalRunStartEvent, type EvalRunCompleteEvent, } from './services/evalrun';
|
|
11
|
+
export { type SandboxResources, type SandboxStatus, type ExecutionStatus, type StreamReader, type SandboxStreamConfig, type SandboxCommand, type SandboxNetworkConfig, type SandboxTimeoutConfig, type SandboxCreateOptions, type Sandbox, type SandboxInfo, type ListSandboxesParams, type ListSandboxesResponse, type ExecuteOptions, type Execution, type SandboxRunOptions, type SandboxRunResult, type SandboxService, type FileToWrite, SandboxError, } from './services/sandbox';
|
|
11
12
|
export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
|
|
12
13
|
export type { StandardSchemaV1 } from './standard_schema';
|
|
13
14
|
export { toCamelCase, toPascalCase } from './string';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGxE,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGjD,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,IAAI,EACJ,UAAU,GACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACN,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACp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EventD
|
|
|
8
8
|
export { StreamStorageService, } from './services/stream';
|
|
9
9
|
export { VectorStorageService, } from './services/vector';
|
|
10
10
|
export { EvalRunStartEventSchema, EvalRunCompleteEventSchema, EvalRunStartEventDelayedSchema, EvalRunCompleteEventDelayedSchema, } from './services/evalrun';
|
|
11
|
+
export { SandboxError, } from './services/sandbox';
|
|
11
12
|
export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
|
|
12
13
|
// string.ts exports
|
|
13
14
|
export { toCamelCase, toPascalCase } from './string';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAExE,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAevC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAQN,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAON,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAgBN,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKzF,oBAAoB;AACpB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKrD,oBAAoB;AACpB,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GAElB,MAAM,oBAAoB,CAAC;AAE5B,4EAA4E"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAExE,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAevC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAQN,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAON,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAgBN,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAoBN,YAAY,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKzF,oBAAoB;AACpB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKrD,oBAAoB;AACpB,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GAElB,MAAM,oBAAoB,CAAC;AAE5B,4EAA4E"}
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/services/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource limits for a sandbox using Kubernetes-style units
|
|
3
|
+
*/
|
|
4
|
+
export interface SandboxResources {
|
|
5
|
+
/**
|
|
6
|
+
* Memory limit (e.g., "500Mi", "1Gi")
|
|
7
|
+
*/
|
|
8
|
+
memory?: string;
|
|
9
|
+
/**
|
|
10
|
+
* CPU limit in millicores (e.g., "500m", "1000m")
|
|
11
|
+
*/
|
|
12
|
+
cpu?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Disk limit (e.g., "500Mi", "1Gi")
|
|
15
|
+
*/
|
|
16
|
+
disk?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sandbox status
|
|
20
|
+
*/
|
|
21
|
+
export type SandboxStatus = 'creating' | 'idle' | 'running' | 'terminated' | 'failed';
|
|
22
|
+
/**
|
|
23
|
+
* Execution status
|
|
24
|
+
*/
|
|
25
|
+
export type ExecutionStatus = 'queued' | 'running' | 'completed' | 'failed' | 'timeout' | 'cancelled';
|
|
26
|
+
/**
|
|
27
|
+
* Read-only stream interface for consuming streams without write access
|
|
28
|
+
*/
|
|
29
|
+
export interface StreamReader {
|
|
30
|
+
/**
|
|
31
|
+
* Unique stream identifier
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Public URL to access the stream
|
|
36
|
+
*/
|
|
37
|
+
url: string;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates this is a read-only stream
|
|
40
|
+
*/
|
|
41
|
+
readonly: true;
|
|
42
|
+
/**
|
|
43
|
+
* Get a ReadableStream that streams from the URL
|
|
44
|
+
*
|
|
45
|
+
* @returns a ReadableStream that can be consumed
|
|
46
|
+
*/
|
|
47
|
+
getReader(): ReadableStream<Uint8Array>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Stream configuration for sandbox output
|
|
51
|
+
*/
|
|
52
|
+
export interface SandboxStreamConfig {
|
|
53
|
+
/**
|
|
54
|
+
* Stream ID for stdout (or "ignore" to discard)
|
|
55
|
+
*/
|
|
56
|
+
stdout?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Stream ID for stderr (or "ignore" to discard)
|
|
59
|
+
*/
|
|
60
|
+
stderr?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Stream ID for stdin input
|
|
63
|
+
*/
|
|
64
|
+
stdin?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Include timestamps in output (default: true)
|
|
67
|
+
*/
|
|
68
|
+
timestamps?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Command to execute in a sandbox
|
|
72
|
+
*/
|
|
73
|
+
export interface SandboxCommand {
|
|
74
|
+
/**
|
|
75
|
+
* Command and arguments to execute
|
|
76
|
+
*/
|
|
77
|
+
exec: string[];
|
|
78
|
+
/**
|
|
79
|
+
* Files to create before execution
|
|
80
|
+
*/
|
|
81
|
+
files?: FileToWrite[];
|
|
82
|
+
/**
|
|
83
|
+
* Execution mode: "oneshot" auto-destroys sandbox on exit
|
|
84
|
+
*/
|
|
85
|
+
mode?: 'oneshot' | 'interactive';
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Network configuration for sandbox
|
|
89
|
+
*/
|
|
90
|
+
export interface SandboxNetworkConfig {
|
|
91
|
+
/**
|
|
92
|
+
* Whether to enable outbound network access (default: false)
|
|
93
|
+
*/
|
|
94
|
+
enabled?: boolean;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Timeout configuration for sandbox
|
|
98
|
+
*/
|
|
99
|
+
export interface SandboxTimeoutConfig {
|
|
100
|
+
/**
|
|
101
|
+
* Idle timeout before sandbox is reaped (e.g., "10m", "1h")
|
|
102
|
+
*/
|
|
103
|
+
idle?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Maximum execution time per command (e.g., "5m", "1h")
|
|
106
|
+
*/
|
|
107
|
+
execution?: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Options for creating a sandbox
|
|
111
|
+
*/
|
|
112
|
+
export interface SandboxCreateOptions {
|
|
113
|
+
/**
|
|
114
|
+
* Resource limits
|
|
115
|
+
*/
|
|
116
|
+
resources?: SandboxResources;
|
|
117
|
+
/**
|
|
118
|
+
* Environment variables
|
|
119
|
+
*/
|
|
120
|
+
env?: Record<string, string>;
|
|
121
|
+
/**
|
|
122
|
+
* Network configuration
|
|
123
|
+
*/
|
|
124
|
+
network?: SandboxNetworkConfig;
|
|
125
|
+
/**
|
|
126
|
+
* Stream configuration for output
|
|
127
|
+
*/
|
|
128
|
+
stream?: SandboxStreamConfig;
|
|
129
|
+
/**
|
|
130
|
+
* Timeout configuration
|
|
131
|
+
*/
|
|
132
|
+
timeout?: SandboxTimeoutConfig;
|
|
133
|
+
/**
|
|
134
|
+
* Command to execute (if provided, creates a sandbox with initial execution)
|
|
135
|
+
*/
|
|
136
|
+
command?: SandboxCommand;
|
|
137
|
+
/**
|
|
138
|
+
* Snapshot ID or tag to restore from when creating the sandbox.
|
|
139
|
+
* The sandbox will start with the filesystem state from the snapshot.
|
|
140
|
+
*/
|
|
141
|
+
snapshot?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Apt packages to install when creating the sandbox.
|
|
144
|
+
* These are installed via `apt install` before executing any commands.
|
|
145
|
+
*/
|
|
146
|
+
dependencies?: string[];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* A sandbox instance with methods for interaction
|
|
150
|
+
*/
|
|
151
|
+
export interface Sandbox {
|
|
152
|
+
/**
|
|
153
|
+
* Unique sandbox identifier
|
|
154
|
+
*/
|
|
155
|
+
id: string;
|
|
156
|
+
/**
|
|
157
|
+
* Current status
|
|
158
|
+
*/
|
|
159
|
+
status: SandboxStatus;
|
|
160
|
+
/**
|
|
161
|
+
* Read-only stream for stdout.
|
|
162
|
+
* When no separate streams are configured, stdout and stderr point to the same
|
|
163
|
+
* combined stream with interleaved output.
|
|
164
|
+
*/
|
|
165
|
+
stdout: StreamReader;
|
|
166
|
+
/**
|
|
167
|
+
* Read-only stream for stderr.
|
|
168
|
+
* When no separate streams are configured, stdout and stderr point to the same
|
|
169
|
+
* combined stream with interleaved output.
|
|
170
|
+
*/
|
|
171
|
+
stderr: StreamReader;
|
|
172
|
+
/**
|
|
173
|
+
* True if stdout and stderr are using the same stream (interleaved output).
|
|
174
|
+
* When true, reading from stdout or stderr will return the same interleaved data.
|
|
175
|
+
*/
|
|
176
|
+
interleaved: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Execute a command in the sandbox
|
|
179
|
+
*/
|
|
180
|
+
execute(options: ExecuteOptions): Promise<Execution>;
|
|
181
|
+
/**
|
|
182
|
+
* Write files to the sandbox workspace.
|
|
183
|
+
*
|
|
184
|
+
* @param files - Array of FileToWrite objects with path and Buffer content
|
|
185
|
+
*/
|
|
186
|
+
writeFiles(files: FileToWrite[]): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Read a file from the sandbox workspace.
|
|
189
|
+
* Returns a ReadableStream for efficient streaming of large files.
|
|
190
|
+
*
|
|
191
|
+
* @param path - Path to the file relative to the sandbox workspace
|
|
192
|
+
* @returns ReadableStream of the file contents
|
|
193
|
+
*/
|
|
194
|
+
readFile(path: string): Promise<ReadableStream<Uint8Array>>;
|
|
195
|
+
/**
|
|
196
|
+
* Destroy the sandbox
|
|
197
|
+
*/
|
|
198
|
+
destroy(): Promise<void>;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Represents a file to write to the sandbox
|
|
202
|
+
*/
|
|
203
|
+
export interface FileToWrite {
|
|
204
|
+
/**
|
|
205
|
+
* Path to the file relative to the sandbox workspace
|
|
206
|
+
*/
|
|
207
|
+
path: string;
|
|
208
|
+
/**
|
|
209
|
+
* File content as a Buffer
|
|
210
|
+
*/
|
|
211
|
+
content: Buffer;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Information about a sandbox
|
|
215
|
+
*/
|
|
216
|
+
export interface SandboxInfo {
|
|
217
|
+
/**
|
|
218
|
+
* Unique sandbox identifier
|
|
219
|
+
*/
|
|
220
|
+
sandboxId: string;
|
|
221
|
+
/**
|
|
222
|
+
* Current status
|
|
223
|
+
*/
|
|
224
|
+
status: SandboxStatus;
|
|
225
|
+
/**
|
|
226
|
+
* Creation timestamp (ISO 8601)
|
|
227
|
+
*/
|
|
228
|
+
createdAt: string;
|
|
229
|
+
/**
|
|
230
|
+
* Region where the sandbox is running
|
|
231
|
+
*/
|
|
232
|
+
region?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Snapshot ID this sandbox was created from
|
|
235
|
+
*/
|
|
236
|
+
snapshotId?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Snapshot tag this sandbox was created from (if the snapshot had a tag)
|
|
239
|
+
*/
|
|
240
|
+
snapshotTag?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Number of executions run in this sandbox
|
|
243
|
+
*/
|
|
244
|
+
executions: number;
|
|
245
|
+
/**
|
|
246
|
+
* URL to the stdout output stream
|
|
247
|
+
*/
|
|
248
|
+
stdoutStreamUrl?: string;
|
|
249
|
+
/**
|
|
250
|
+
* URL to the stderr output stream
|
|
251
|
+
*/
|
|
252
|
+
stderrStreamUrl?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Apt packages installed in the sandbox
|
|
255
|
+
*/
|
|
256
|
+
dependencies?: string[];
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Parameters for listing sandboxes
|
|
260
|
+
*/
|
|
261
|
+
export interface ListSandboxesParams {
|
|
262
|
+
/**
|
|
263
|
+
* Filter by project ID
|
|
264
|
+
*/
|
|
265
|
+
projectId?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Filter by snapshot ID
|
|
268
|
+
*/
|
|
269
|
+
snapshotId?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Filter by status
|
|
272
|
+
*/
|
|
273
|
+
status?: SandboxStatus;
|
|
274
|
+
/**
|
|
275
|
+
* Maximum number of results (default: 50, max: 100)
|
|
276
|
+
*/
|
|
277
|
+
limit?: number;
|
|
278
|
+
/**
|
|
279
|
+
* Pagination offset
|
|
280
|
+
*/
|
|
281
|
+
offset?: number;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Response from listing sandboxes
|
|
285
|
+
*/
|
|
286
|
+
export interface ListSandboxesResponse {
|
|
287
|
+
/**
|
|
288
|
+
* Array of sandbox information
|
|
289
|
+
*/
|
|
290
|
+
sandboxes: SandboxInfo[];
|
|
291
|
+
/**
|
|
292
|
+
* Total count of sandboxes matching the filter
|
|
293
|
+
*/
|
|
294
|
+
total: number;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Options for executing a command in a sandbox
|
|
298
|
+
*/
|
|
299
|
+
export interface ExecuteOptions {
|
|
300
|
+
/**
|
|
301
|
+
* Command and arguments to execute
|
|
302
|
+
*/
|
|
303
|
+
command: string[];
|
|
304
|
+
/**
|
|
305
|
+
* Files to create/update before execution
|
|
306
|
+
*/
|
|
307
|
+
files?: FileToWrite[];
|
|
308
|
+
/**
|
|
309
|
+
* Execution timeout (e.g., "5m")
|
|
310
|
+
*/
|
|
311
|
+
timeout?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Stream configuration (can override sandbox defaults)
|
|
314
|
+
*/
|
|
315
|
+
stream?: {
|
|
316
|
+
stdout?: string;
|
|
317
|
+
stderr?: string;
|
|
318
|
+
timestamps?: boolean;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* AbortSignal to cancel the operation
|
|
322
|
+
*/
|
|
323
|
+
signal?: AbortSignal;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* An execution instance
|
|
327
|
+
*/
|
|
328
|
+
export interface Execution {
|
|
329
|
+
/**
|
|
330
|
+
* Unique execution identifier
|
|
331
|
+
*/
|
|
332
|
+
executionId: string;
|
|
333
|
+
/**
|
|
334
|
+
* Current status
|
|
335
|
+
*/
|
|
336
|
+
status: ExecutionStatus;
|
|
337
|
+
/**
|
|
338
|
+
* Exit code (set when completed or failed)
|
|
339
|
+
*/
|
|
340
|
+
exitCode?: number;
|
|
341
|
+
/**
|
|
342
|
+
* Duration in milliseconds (set when completed)
|
|
343
|
+
*/
|
|
344
|
+
durationMs?: number;
|
|
345
|
+
/**
|
|
346
|
+
* URL to stream stdout output for this execution
|
|
347
|
+
*/
|
|
348
|
+
stdoutStreamUrl?: string;
|
|
349
|
+
/**
|
|
350
|
+
* URL to stream stderr output for this execution
|
|
351
|
+
*/
|
|
352
|
+
stderrStreamUrl?: string;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Options for one-shot sandbox execution
|
|
356
|
+
*/
|
|
357
|
+
export interface SandboxRunOptions extends Omit<SandboxCreateOptions, 'command'> {
|
|
358
|
+
/**
|
|
359
|
+
* Command to execute (required for run)
|
|
360
|
+
*/
|
|
361
|
+
command: {
|
|
362
|
+
exec: string[];
|
|
363
|
+
files?: FileToWrite[];
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Result from one-shot sandbox execution
|
|
368
|
+
*/
|
|
369
|
+
export interface SandboxRunResult {
|
|
370
|
+
/**
|
|
371
|
+
* Sandbox ID
|
|
372
|
+
*/
|
|
373
|
+
sandboxId: string;
|
|
374
|
+
/**
|
|
375
|
+
* Exit code from the process
|
|
376
|
+
*/
|
|
377
|
+
exitCode: number;
|
|
378
|
+
/**
|
|
379
|
+
* Duration in milliseconds
|
|
380
|
+
*/
|
|
381
|
+
durationMs: number;
|
|
382
|
+
/**
|
|
383
|
+
* Stdout content (if captured)
|
|
384
|
+
*/
|
|
385
|
+
stdout?: string;
|
|
386
|
+
/**
|
|
387
|
+
* Stderr content (if captured)
|
|
388
|
+
*/
|
|
389
|
+
stderr?: string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Sandbox service for creating and managing isolated execution environments
|
|
393
|
+
*/
|
|
394
|
+
export interface SandboxService {
|
|
395
|
+
/**
|
|
396
|
+
* Run a one-shot command in a new sandbox (creates, executes, destroys)
|
|
397
|
+
*
|
|
398
|
+
* @param options - execution options
|
|
399
|
+
* @returns result with exit code and optional output
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```typescript
|
|
403
|
+
* const result = await ctx.sandbox.run({
|
|
404
|
+
* command: {
|
|
405
|
+
* exec: ['bun', 'run', 'index.ts'],
|
|
406
|
+
* files: [{ path: 'index.ts', content: Buffer.from('console.log("hello")') }]
|
|
407
|
+
* }
|
|
408
|
+
* });
|
|
409
|
+
* console.log('Exit:', result.exitCode);
|
|
410
|
+
* ```
|
|
411
|
+
*/
|
|
412
|
+
run(options: SandboxRunOptions): Promise<SandboxRunResult>;
|
|
413
|
+
/**
|
|
414
|
+
* Create an interactive sandbox for multiple executions
|
|
415
|
+
*
|
|
416
|
+
* @param options - sandbox configuration
|
|
417
|
+
* @returns sandbox instance
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* ```typescript
|
|
421
|
+
* const sandbox = await ctx.sandbox.create({
|
|
422
|
+
* resources: { memory: '1Gi', cpu: '1000m' }
|
|
423
|
+
* });
|
|
424
|
+
* await sandbox.execute({ command: ['bun', 'init'] });
|
|
425
|
+
* await sandbox.execute({ command: ['bun', 'add', 'zod'] });
|
|
426
|
+
* await sandbox.destroy();
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
create(options?: SandboxCreateOptions): Promise<Sandbox>;
|
|
430
|
+
/**
|
|
431
|
+
* Get sandbox information by ID
|
|
432
|
+
*
|
|
433
|
+
* @param sandboxId - sandbox identifier
|
|
434
|
+
* @returns sandbox information
|
|
435
|
+
*/
|
|
436
|
+
get(sandboxId: string): Promise<SandboxInfo>;
|
|
437
|
+
/**
|
|
438
|
+
* List sandboxes with optional filtering
|
|
439
|
+
*
|
|
440
|
+
* @param params - filter and pagination parameters
|
|
441
|
+
* @returns list of sandboxes
|
|
442
|
+
*/
|
|
443
|
+
list(params?: ListSandboxesParams): Promise<ListSandboxesResponse>;
|
|
444
|
+
/**
|
|
445
|
+
* Destroy a sandbox by ID
|
|
446
|
+
*
|
|
447
|
+
* @param sandboxId - sandbox identifier
|
|
448
|
+
*/
|
|
449
|
+
destroy(sandboxId: string): Promise<void>;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Structured error for sandbox operations
|
|
453
|
+
*/
|
|
454
|
+
export declare const SandboxError: {
|
|
455
|
+
new (args?: ({
|
|
456
|
+
sandboxId?: string;
|
|
457
|
+
executionId?: string;
|
|
458
|
+
} & {
|
|
459
|
+
message?: string;
|
|
460
|
+
cause?: unknown;
|
|
461
|
+
}) | undefined): import("..").RichError & {
|
|
462
|
+
readonly _tag: "SandboxError";
|
|
463
|
+
} & Readonly<{
|
|
464
|
+
sandboxId?: string;
|
|
465
|
+
executionId?: string;
|
|
466
|
+
}>;
|
|
467
|
+
readonly defaultMessage?: string;
|
|
468
|
+
};
|
|
469
|
+
//# sourceMappingURL=sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/services/sandbox.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB,QAAQ,GACR,SAAS,GACT,WAAW,GACX,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CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/services/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAuhB3C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,cAAc,CAAC,EAGvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/services/stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAiB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/services/stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAiB,MAAM,WAAW,CAAC;AAgBxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;OAE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