@agentuity/core 0.1.8 → 0.1.10
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/sandbox.d.ts +199 -1
- package/dist/services/sandbox.d.ts.map +1 -1
- package/dist/services/sandbox.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -0
- package/src/services/sandbox.ts +239 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +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
|
+
export { type SandboxResources, type SandboxStatus, type SandboxRuntime, type ExecutionStatus, type StreamReader, type SandboxStreamConfig, type SandboxCommand, type SandboxNetworkConfig, type SandboxTimeoutConfig, type SandboxCreateOptions, type Sandbox, type SandboxInfo, type SandboxUserInfo, type SandboxAgentInfo, type SandboxProjectInfo, type SandboxOrgInfo, type ListSandboxesParams, type ListSandboxesResponse, type ListRuntimesParams, type ListRuntimesResponse, type ExecuteOptions, type Execution, type SandboxRunOptions, type SandboxRunResult, type SandboxService, type FileToWrite, SandboxError, } from './services/sandbox';
|
|
12
12
|
export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
|
|
13
13
|
export type { StandardSchemaV1 } from './standard_schema';
|
|
14
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,EACpB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EACjC,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAA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AU,CAAC;AAGrD,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG5D,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,eAAe,GACpB,MAAM,oBAAoB,CAAC"}
|
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,
|
|
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,EA2BN,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"}
|
|
@@ -18,7 +18,36 @@ export interface SandboxResources {
|
|
|
18
18
|
/**
|
|
19
19
|
* Sandbox status
|
|
20
20
|
*/
|
|
21
|
-
export type SandboxStatus = 'creating' | 'idle' | 'running' | 'terminated' | 'failed';
|
|
21
|
+
export type SandboxStatus = 'creating' | 'idle' | 'running' | 'terminated' | 'failed' | 'deleted';
|
|
22
|
+
/**
|
|
23
|
+
* Runtime information for a sandbox
|
|
24
|
+
*/
|
|
25
|
+
export interface SandboxRuntime {
|
|
26
|
+
/**
|
|
27
|
+
* Unique runtime identifier
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Runtime name (e.g., "bun:1", "python:3.14")
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional description
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* URL for runtime icon
|
|
40
|
+
*/
|
|
41
|
+
iconUrl?: string;
|
|
42
|
+
/**
|
|
43
|
+
* URL for runtime documentation or homepage
|
|
44
|
+
*/
|
|
45
|
+
url?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional tags for categorization
|
|
48
|
+
*/
|
|
49
|
+
tags?: string[];
|
|
50
|
+
}
|
|
22
51
|
/**
|
|
23
52
|
* Execution status
|
|
24
53
|
*/
|
|
@@ -110,6 +139,25 @@ export interface SandboxTimeoutConfig {
|
|
|
110
139
|
* Options for creating a sandbox
|
|
111
140
|
*/
|
|
112
141
|
export interface SandboxCreateOptions {
|
|
142
|
+
/**
|
|
143
|
+
* Runtime name (e.g., "bun:1", "python:3.14").
|
|
144
|
+
* If not specified, defaults to "bun:1".
|
|
145
|
+
*/
|
|
146
|
+
runtime?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Runtime ID (e.g., "srt_xxx").
|
|
149
|
+
* Alternative to specifying runtime by name.
|
|
150
|
+
*/
|
|
151
|
+
runtimeId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Optional sandbox name.
|
|
154
|
+
* If not provided, a unique name will be auto-generated.
|
|
155
|
+
*/
|
|
156
|
+
name?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Optional description for the sandbox.
|
|
159
|
+
*/
|
|
160
|
+
description?: string;
|
|
113
161
|
/**
|
|
114
162
|
* Resource limits
|
|
115
163
|
*/
|
|
@@ -162,6 +210,18 @@ export interface Sandbox {
|
|
|
162
210
|
* Current status
|
|
163
211
|
*/
|
|
164
212
|
status: SandboxStatus;
|
|
213
|
+
/**
|
|
214
|
+
* Runtime information for this sandbox
|
|
215
|
+
*/
|
|
216
|
+
runtime?: SandboxRuntime;
|
|
217
|
+
/**
|
|
218
|
+
* Sandbox name
|
|
219
|
+
*/
|
|
220
|
+
name?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Sandbox description
|
|
223
|
+
*/
|
|
224
|
+
description?: string;
|
|
165
225
|
/**
|
|
166
226
|
* Read-only stream for stdout.
|
|
167
227
|
* When no separate streams are configured, stdout and stderr point to the same
|
|
@@ -215,6 +275,62 @@ export interface FileToWrite {
|
|
|
215
275
|
*/
|
|
216
276
|
content: Buffer;
|
|
217
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Information about a user who created the sandbox
|
|
280
|
+
*/
|
|
281
|
+
export interface SandboxUserInfo {
|
|
282
|
+
/**
|
|
283
|
+
* User ID
|
|
284
|
+
*/
|
|
285
|
+
id: string;
|
|
286
|
+
/**
|
|
287
|
+
* User's first name
|
|
288
|
+
*/
|
|
289
|
+
firstName?: string;
|
|
290
|
+
/**
|
|
291
|
+
* User's last name
|
|
292
|
+
*/
|
|
293
|
+
lastName?: string;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Information about an agent associated with the sandbox
|
|
297
|
+
*/
|
|
298
|
+
export interface SandboxAgentInfo {
|
|
299
|
+
/**
|
|
300
|
+
* Agent ID
|
|
301
|
+
*/
|
|
302
|
+
id: string;
|
|
303
|
+
/**
|
|
304
|
+
* Agent name
|
|
305
|
+
*/
|
|
306
|
+
name: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Information about a project associated with the sandbox
|
|
310
|
+
*/
|
|
311
|
+
export interface SandboxProjectInfo {
|
|
312
|
+
/**
|
|
313
|
+
* Project ID
|
|
314
|
+
*/
|
|
315
|
+
id: string;
|
|
316
|
+
/**
|
|
317
|
+
* Project name
|
|
318
|
+
*/
|
|
319
|
+
name: string;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Information about an organization associated with the sandbox
|
|
323
|
+
*/
|
|
324
|
+
export interface SandboxOrgInfo {
|
|
325
|
+
/**
|
|
326
|
+
* Organization ID
|
|
327
|
+
*/
|
|
328
|
+
id: string;
|
|
329
|
+
/**
|
|
330
|
+
* Organization name
|
|
331
|
+
*/
|
|
332
|
+
name: string;
|
|
333
|
+
}
|
|
218
334
|
/**
|
|
219
335
|
* Information about a sandbox
|
|
220
336
|
*/
|
|
@@ -223,10 +339,22 @@ export interface SandboxInfo {
|
|
|
223
339
|
* Unique sandbox identifier
|
|
224
340
|
*/
|
|
225
341
|
sandboxId: string;
|
|
342
|
+
/**
|
|
343
|
+
* Sandbox name
|
|
344
|
+
*/
|
|
345
|
+
name?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Sandbox description
|
|
348
|
+
*/
|
|
349
|
+
description?: string;
|
|
226
350
|
/**
|
|
227
351
|
* Current status
|
|
228
352
|
*/
|
|
229
353
|
status: SandboxStatus;
|
|
354
|
+
/**
|
|
355
|
+
* Sandbox mode (interactive or oneshot)
|
|
356
|
+
*/
|
|
357
|
+
mode?: string;
|
|
230
358
|
/**
|
|
231
359
|
* Creation timestamp (ISO 8601)
|
|
232
360
|
*/
|
|
@@ -235,6 +363,18 @@ export interface SandboxInfo {
|
|
|
235
363
|
* Region where the sandbox is running
|
|
236
364
|
*/
|
|
237
365
|
region?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Runtime ID
|
|
368
|
+
*/
|
|
369
|
+
runtimeId?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Runtime name (e.g., "bun:1")
|
|
372
|
+
*/
|
|
373
|
+
runtimeName?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Runtime icon URL
|
|
376
|
+
*/
|
|
377
|
+
runtimeIconUrl?: string;
|
|
238
378
|
/**
|
|
239
379
|
* Snapshot ID this sandbox was created from
|
|
240
380
|
*/
|
|
@@ -267,6 +407,38 @@ export interface SandboxInfo {
|
|
|
267
407
|
* Resource limits for this sandbox
|
|
268
408
|
*/
|
|
269
409
|
resources?: SandboxResources;
|
|
410
|
+
/**
|
|
411
|
+
* Total CPU time consumed in milliseconds (available when terminated)
|
|
412
|
+
*/
|
|
413
|
+
cpuTimeMs?: number;
|
|
414
|
+
/**
|
|
415
|
+
* Total memory usage in byte-seconds (available when terminated)
|
|
416
|
+
*/
|
|
417
|
+
memoryByteSec?: number;
|
|
418
|
+
/**
|
|
419
|
+
* Total network egress in bytes (available when terminated)
|
|
420
|
+
*/
|
|
421
|
+
networkEgressBytes?: number;
|
|
422
|
+
/**
|
|
423
|
+
* Whether network access is enabled for this sandbox
|
|
424
|
+
*/
|
|
425
|
+
networkEnabled?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* User who created the sandbox (if available)
|
|
428
|
+
*/
|
|
429
|
+
user?: SandboxUserInfo;
|
|
430
|
+
/**
|
|
431
|
+
* Agent associated with the sandbox (if available)
|
|
432
|
+
*/
|
|
433
|
+
agent?: SandboxAgentInfo;
|
|
434
|
+
/**
|
|
435
|
+
* Project associated with the sandbox (if available)
|
|
436
|
+
*/
|
|
437
|
+
project?: SandboxProjectInfo;
|
|
438
|
+
/**
|
|
439
|
+
* Organization associated with the sandbox
|
|
440
|
+
*/
|
|
441
|
+
org: SandboxOrgInfo;
|
|
270
442
|
}
|
|
271
443
|
/**
|
|
272
444
|
* Parameters for listing sandboxes
|
|
@@ -306,6 +478,32 @@ export interface ListSandboxesResponse {
|
|
|
306
478
|
*/
|
|
307
479
|
total: number;
|
|
308
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* Parameters for listing sandbox runtimes
|
|
483
|
+
*/
|
|
484
|
+
export interface ListRuntimesParams {
|
|
485
|
+
/**
|
|
486
|
+
* Maximum number of results (default: 50, max: 100)
|
|
487
|
+
*/
|
|
488
|
+
limit?: number;
|
|
489
|
+
/**
|
|
490
|
+
* Pagination offset
|
|
491
|
+
*/
|
|
492
|
+
offset?: number;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Response from listing sandbox runtimes
|
|
496
|
+
*/
|
|
497
|
+
export interface ListRuntimesResponse {
|
|
498
|
+
/**
|
|
499
|
+
* Array of runtime information
|
|
500
|
+
*/
|
|
501
|
+
runtimes: SandboxRuntime[];
|
|
502
|
+
/**
|
|
503
|
+
* Total count of runtimes
|
|
504
|
+
*/
|
|
505
|
+
total: number;
|
|
506
|
+
}
|
|
309
507
|
/**
|
|
310
508
|
* Options for executing a command in a sandbox
|
|
311
509
|
*/
|
|
@@ -1 +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;
|
|
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,GAAG,SAAS,CAAC;AAElG;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB,QAAQ,GACR,SAA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;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE3D;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzD;;;;;OAKG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEnE;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;oBACZ,MAAM;sBACJ,MAAM;;;;;;;oBADR,MAAM;sBACJ,MAAM;;;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/services/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/services/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAqxB3C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,cAAc,CAAC,EAGvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"zod": "^4.3.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@agentuity/test-utils": "0.1.
|
|
40
|
+
"@agentuity/test-utils": "0.1.10",
|
|
41
41
|
"@types/bun": "latest",
|
|
42
42
|
"bun-types": "latest",
|
|
43
43
|
"esbuild": "^0.25.0",
|
package/src/index.ts
CHANGED
|
@@ -76,6 +76,7 @@ export {
|
|
|
76
76
|
export {
|
|
77
77
|
type SandboxResources,
|
|
78
78
|
type SandboxStatus,
|
|
79
|
+
type SandboxRuntime,
|
|
79
80
|
type ExecutionStatus,
|
|
80
81
|
type StreamReader,
|
|
81
82
|
type SandboxStreamConfig,
|
|
@@ -85,8 +86,14 @@ export {
|
|
|
85
86
|
type SandboxCreateOptions,
|
|
86
87
|
type Sandbox,
|
|
87
88
|
type SandboxInfo,
|
|
89
|
+
type SandboxUserInfo,
|
|
90
|
+
type SandboxAgentInfo,
|
|
91
|
+
type SandboxProjectInfo,
|
|
92
|
+
type SandboxOrgInfo,
|
|
88
93
|
type ListSandboxesParams,
|
|
89
94
|
type ListSandboxesResponse,
|
|
95
|
+
type ListRuntimesParams,
|
|
96
|
+
type ListRuntimesResponse,
|
|
90
97
|
type ExecuteOptions,
|
|
91
98
|
type Execution,
|
|
92
99
|
type SandboxRunOptions,
|
package/src/services/sandbox.ts
CHANGED
|
@@ -23,7 +23,42 @@ export interface SandboxResources {
|
|
|
23
23
|
/**
|
|
24
24
|
* Sandbox status
|
|
25
25
|
*/
|
|
26
|
-
export type SandboxStatus = 'creating' | 'idle' | 'running' | 'terminated' | 'failed';
|
|
26
|
+
export type SandboxStatus = 'creating' | 'idle' | 'running' | 'terminated' | 'failed' | 'deleted';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Runtime information for a sandbox
|
|
30
|
+
*/
|
|
31
|
+
export interface SandboxRuntime {
|
|
32
|
+
/**
|
|
33
|
+
* Unique runtime identifier
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Runtime name (e.g., "bun:1", "python:3.14")
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Optional description
|
|
44
|
+
*/
|
|
45
|
+
description?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* URL for runtime icon
|
|
49
|
+
*/
|
|
50
|
+
iconUrl?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* URL for runtime documentation or homepage
|
|
54
|
+
*/
|
|
55
|
+
url?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Optional tags for categorization
|
|
59
|
+
*/
|
|
60
|
+
tags?: string[];
|
|
61
|
+
}
|
|
27
62
|
|
|
28
63
|
/**
|
|
29
64
|
* Execution status
|
|
@@ -137,6 +172,29 @@ export interface SandboxTimeoutConfig {
|
|
|
137
172
|
* Options for creating a sandbox
|
|
138
173
|
*/
|
|
139
174
|
export interface SandboxCreateOptions {
|
|
175
|
+
/**
|
|
176
|
+
* Runtime name (e.g., "bun:1", "python:3.14").
|
|
177
|
+
* If not specified, defaults to "bun:1".
|
|
178
|
+
*/
|
|
179
|
+
runtime?: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Runtime ID (e.g., "srt_xxx").
|
|
183
|
+
* Alternative to specifying runtime by name.
|
|
184
|
+
*/
|
|
185
|
+
runtimeId?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Optional sandbox name.
|
|
189
|
+
* If not provided, a unique name will be auto-generated.
|
|
190
|
+
*/
|
|
191
|
+
name?: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Optional description for the sandbox.
|
|
195
|
+
*/
|
|
196
|
+
description?: string;
|
|
197
|
+
|
|
140
198
|
/**
|
|
141
199
|
* Resource limits
|
|
142
200
|
*/
|
|
@@ -200,6 +258,21 @@ export interface Sandbox {
|
|
|
200
258
|
*/
|
|
201
259
|
status: SandboxStatus;
|
|
202
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Runtime information for this sandbox
|
|
263
|
+
*/
|
|
264
|
+
runtime?: SandboxRuntime;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Sandbox name
|
|
268
|
+
*/
|
|
269
|
+
name?: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Sandbox description
|
|
273
|
+
*/
|
|
274
|
+
description?: string;
|
|
275
|
+
|
|
203
276
|
/**
|
|
204
277
|
* Read-only stream for stdout.
|
|
205
278
|
* When no separate streams are configured, stdout and stderr point to the same
|
|
@@ -262,6 +335,71 @@ export interface FileToWrite {
|
|
|
262
335
|
content: Buffer;
|
|
263
336
|
}
|
|
264
337
|
|
|
338
|
+
/**
|
|
339
|
+
* Information about a user who created the sandbox
|
|
340
|
+
*/
|
|
341
|
+
export interface SandboxUserInfo {
|
|
342
|
+
/**
|
|
343
|
+
* User ID
|
|
344
|
+
*/
|
|
345
|
+
id: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* User's first name
|
|
349
|
+
*/
|
|
350
|
+
firstName?: string;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* User's last name
|
|
354
|
+
*/
|
|
355
|
+
lastName?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Information about an agent associated with the sandbox
|
|
360
|
+
*/
|
|
361
|
+
export interface SandboxAgentInfo {
|
|
362
|
+
/**
|
|
363
|
+
* Agent ID
|
|
364
|
+
*/
|
|
365
|
+
id: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Agent name
|
|
369
|
+
*/
|
|
370
|
+
name: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Information about a project associated with the sandbox
|
|
375
|
+
*/
|
|
376
|
+
export interface SandboxProjectInfo {
|
|
377
|
+
/**
|
|
378
|
+
* Project ID
|
|
379
|
+
*/
|
|
380
|
+
id: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Project name
|
|
384
|
+
*/
|
|
385
|
+
name: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Information about an organization associated with the sandbox
|
|
390
|
+
*/
|
|
391
|
+
export interface SandboxOrgInfo {
|
|
392
|
+
/**
|
|
393
|
+
* Organization ID
|
|
394
|
+
*/
|
|
395
|
+
id: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Organization name
|
|
399
|
+
*/
|
|
400
|
+
name: string;
|
|
401
|
+
}
|
|
402
|
+
|
|
265
403
|
/**
|
|
266
404
|
* Information about a sandbox
|
|
267
405
|
*/
|
|
@@ -271,11 +409,26 @@ export interface SandboxInfo {
|
|
|
271
409
|
*/
|
|
272
410
|
sandboxId: string;
|
|
273
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Sandbox name
|
|
414
|
+
*/
|
|
415
|
+
name?: string;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Sandbox description
|
|
419
|
+
*/
|
|
420
|
+
description?: string;
|
|
421
|
+
|
|
274
422
|
/**
|
|
275
423
|
* Current status
|
|
276
424
|
*/
|
|
277
425
|
status: SandboxStatus;
|
|
278
426
|
|
|
427
|
+
/**
|
|
428
|
+
* Sandbox mode (interactive or oneshot)
|
|
429
|
+
*/
|
|
430
|
+
mode?: string;
|
|
431
|
+
|
|
279
432
|
/**
|
|
280
433
|
* Creation timestamp (ISO 8601)
|
|
281
434
|
*/
|
|
@@ -286,6 +439,21 @@ export interface SandboxInfo {
|
|
|
286
439
|
*/
|
|
287
440
|
region?: string;
|
|
288
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Runtime ID
|
|
444
|
+
*/
|
|
445
|
+
runtimeId?: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Runtime name (e.g., "bun:1")
|
|
449
|
+
*/
|
|
450
|
+
runtimeName?: string;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Runtime icon URL
|
|
454
|
+
*/
|
|
455
|
+
runtimeIconUrl?: string;
|
|
456
|
+
|
|
289
457
|
/**
|
|
290
458
|
* Snapshot ID this sandbox was created from
|
|
291
459
|
*/
|
|
@@ -325,6 +493,46 @@ export interface SandboxInfo {
|
|
|
325
493
|
* Resource limits for this sandbox
|
|
326
494
|
*/
|
|
327
495
|
resources?: SandboxResources;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Total CPU time consumed in milliseconds (available when terminated)
|
|
499
|
+
*/
|
|
500
|
+
cpuTimeMs?: number;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Total memory usage in byte-seconds (available when terminated)
|
|
504
|
+
*/
|
|
505
|
+
memoryByteSec?: number;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Total network egress in bytes (available when terminated)
|
|
509
|
+
*/
|
|
510
|
+
networkEgressBytes?: number;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Whether network access is enabled for this sandbox
|
|
514
|
+
*/
|
|
515
|
+
networkEnabled?: boolean;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* User who created the sandbox (if available)
|
|
519
|
+
*/
|
|
520
|
+
user?: SandboxUserInfo;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Agent associated with the sandbox (if available)
|
|
524
|
+
*/
|
|
525
|
+
agent?: SandboxAgentInfo;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Project associated with the sandbox (if available)
|
|
529
|
+
*/
|
|
530
|
+
project?: SandboxProjectInfo;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Organization associated with the sandbox
|
|
534
|
+
*/
|
|
535
|
+
org: SandboxOrgInfo;
|
|
328
536
|
}
|
|
329
537
|
|
|
330
538
|
/**
|
|
@@ -372,6 +580,36 @@ export interface ListSandboxesResponse {
|
|
|
372
580
|
total: number;
|
|
373
581
|
}
|
|
374
582
|
|
|
583
|
+
/**
|
|
584
|
+
* Parameters for listing sandbox runtimes
|
|
585
|
+
*/
|
|
586
|
+
export interface ListRuntimesParams {
|
|
587
|
+
/**
|
|
588
|
+
* Maximum number of results (default: 50, max: 100)
|
|
589
|
+
*/
|
|
590
|
+
limit?: number;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Pagination offset
|
|
594
|
+
*/
|
|
595
|
+
offset?: number;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Response from listing sandbox runtimes
|
|
600
|
+
*/
|
|
601
|
+
export interface ListRuntimesResponse {
|
|
602
|
+
/**
|
|
603
|
+
* Array of runtime information
|
|
604
|
+
*/
|
|
605
|
+
runtimes: SandboxRuntime[];
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Total count of runtimes
|
|
609
|
+
*/
|
|
610
|
+
total: number;
|
|
611
|
+
}
|
|
612
|
+
|
|
375
613
|
/**
|
|
376
614
|
* Options for executing a command in a sandbox
|
|
377
615
|
*/
|