@tangle-network/sandbox 0.45.0 → 0.47.0
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/README.md +25 -0
- package/dist/agent/index.d.ts +6 -6
- package/dist/agent/index.js +37 -10
- package/dist/{agent-run-outcome-BpQhOdXp.d.ts → agent-run-outcome-CDpN0lAh.d.ts} +1 -1
- package/dist/{client-C_mFKZwS.d.ts → client-BVnci7-6.d.ts} +51 -2
- package/dist/{client-C2AGfwGT.js → client-DWX9LVU8.js} +177 -7
- package/dist/core.d.ts +12 -4
- package/dist/core.js +10 -3
- package/dist/{index-DT_pNtbV.d.ts → index-ByUvixzl.d.ts} +2 -2
- package/dist/index.d.ts +40 -31
- package/dist/index.js +45 -30
- package/dist/{runtime-api-C10Hg1OF.js → runtime-api-D7CdKcbu.js} +120 -28
- package/dist/runtime.d.ts +11 -10
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CQ2YTLtO.d.ts → sandbox-CpCVgm4V.d.ts} +54 -1
- package/dist/{sandbox-9IUdHeyj.js → sandbox-f9NE1NPU.js} +379 -85
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-B-w03_fQ.js → tangle-CBTGyeMO.js} +1 -1
- package/dist/{types-B3C-MizG.d.ts → types-CDksqyD4.d.ts} +167 -3
- package/package.json +7 -5
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-ByUvixzl.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-CBTGyeMO.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as parseErrorResponse } from "./errors-CdDyExth.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-f9NE1NPU.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CcaBTVg3.js";
|
|
2
2
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
3
|
-
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort } from "@tangle-network/agent-interface";
|
|
3
|
+
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
@@ -1354,6 +1354,46 @@ interface SandboxResources {
|
|
|
1354
1354
|
*/
|
|
1355
1355
|
advisoryFields?: ReadonlyArray<"cpuCores" | "memoryMB" | "diskGB">;
|
|
1356
1356
|
}
|
|
1357
|
+
/**
|
|
1358
|
+
* The shape a sandbox was GRANTED: the cgroup and volume limits it runs at,
|
|
1359
|
+
* and the numbers the ledger bills. One vocabulary with the request
|
|
1360
|
+
* ({@link SandboxResources}), but never advisory and never clamped after the
|
|
1361
|
+
* fact — this is what the create resolved.
|
|
1362
|
+
*/
|
|
1363
|
+
interface SandboxShape {
|
|
1364
|
+
/** Whole cores; the cgroup CPU quota is `cpuCores * 1e9` NanoCpus. */
|
|
1365
|
+
cpuCores: number;
|
|
1366
|
+
/** Cgroup memory limit in MiB. */
|
|
1367
|
+
memoryMB: number;
|
|
1368
|
+
/** Workspace volume quota in GiB. */
|
|
1369
|
+
diskGB: number;
|
|
1370
|
+
/** The host pool that placed the sandbox (e.g. `general`), once reported. */
|
|
1371
|
+
pool?: string;
|
|
1372
|
+
/** Execution time limit per prompt in ms; absent means the deployment default. */
|
|
1373
|
+
ttlMs?: number;
|
|
1374
|
+
}
|
|
1375
|
+
/** One named size from `GET /v1/shapes`. */
|
|
1376
|
+
interface SandboxShapePreset {
|
|
1377
|
+
name: SandboxSizePreset;
|
|
1378
|
+
cpuCores: number;
|
|
1379
|
+
memoryMB: number;
|
|
1380
|
+
diskGB: number;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* `GET /v1/shapes`: the named sizes, which one is the platform's default, and
|
|
1384
|
+
* the largest shape this account can be granted on the serving deployment.
|
|
1385
|
+
* The ceiling is the one the create path refuses above, so a request sized
|
|
1386
|
+
* at or below it is never refused with `RESOURCES_EXCEED_LIMIT`.
|
|
1387
|
+
*/
|
|
1388
|
+
interface SandboxShapesInfo {
|
|
1389
|
+
presets: SandboxShapePreset[];
|
|
1390
|
+
default: SandboxSizePreset;
|
|
1391
|
+
ceiling: {
|
|
1392
|
+
cpuCores: number;
|
|
1393
|
+
memoryMB: number;
|
|
1394
|
+
diskGB: number;
|
|
1395
|
+
};
|
|
1396
|
+
}
|
|
1357
1397
|
/**
|
|
1358
1398
|
* Configuration for creating a new sandbox.
|
|
1359
1399
|
*
|
|
@@ -1952,6 +1992,10 @@ type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
|
|
|
1952
1992
|
interface SandboxCreateReceipt {
|
|
1953
1993
|
outcome: SandboxCreateOutcome;
|
|
1954
1994
|
idempotencyKeyApplied: boolean;
|
|
1995
|
+
/** Host-confirmed credential-inheritance policy, not a VM-isolation or
|
|
1996
|
+
* privacy-from-operator attestation. Missing on older hosts and on unverified
|
|
1997
|
+
* replays; isolated creation requires an explicit isolated verdict. */
|
|
1998
|
+
ownerContext?: "inherit" | "isolated";
|
|
1955
1999
|
/**
|
|
1956
2000
|
* Names of the stored secrets this call decrypted into the sandbox.
|
|
1957
2001
|
* Read it to size what the box can read. The set is sorted and
|
|
@@ -1994,6 +2038,15 @@ interface SandboxInfo {
|
|
|
1994
2038
|
error?: string;
|
|
1995
2039
|
/** GPU lease attached during sandbox creation, when requested. */
|
|
1996
2040
|
gpuLease?: GpuLease;
|
|
2041
|
+
/**
|
|
2042
|
+
* The shape the sandbox was granted. Always present on the create response
|
|
2043
|
+
* and on a `get` whose billing record could be read; absent on a list row
|
|
2044
|
+
* and when the platform has no record to read, where it reports no grant
|
|
2045
|
+
* rather than a default the box may not be running at. A sandbox created
|
|
2046
|
+
* before the platform recorded shapes reports what its billing row holds,
|
|
2047
|
+
* which for such a row is the repair value the ledger charges.
|
|
2048
|
+
*/
|
|
2049
|
+
resources?: SandboxShape;
|
|
1997
2050
|
/**
|
|
1998
2051
|
* Startup phase breakdown, present only on the create response (the
|
|
1999
2052
|
* platform emits it once, at provision time). Use
|
|
@@ -3097,6 +3150,14 @@ interface SessionExecutionInfo {
|
|
|
3097
3150
|
eventCount: number;
|
|
3098
3151
|
lastEventId: string;
|
|
3099
3152
|
}
|
|
3153
|
+
/** Admission identity survives replay retention; unavailable never means completed. */
|
|
3154
|
+
interface SessionMessageAdmission {
|
|
3155
|
+
sessionId: string;
|
|
3156
|
+
turnId: string;
|
|
3157
|
+
executionId: string;
|
|
3158
|
+
status: SessionExecutionStatus | "unavailable";
|
|
3159
|
+
runControlRef?: AgentExactRunControlRef;
|
|
3160
|
+
}
|
|
3100
3161
|
/** Secret-free model tuple selected by the sandbox runtime. */
|
|
3101
3162
|
/**
|
|
3102
3163
|
* Which layer supplied the model id that executed. `request` means the model
|
|
@@ -3229,6 +3290,10 @@ type SessionMessageInputPart = PromptInputPart | {
|
|
|
3229
3290
|
/** Message body accepted by `SandboxSession.sendMessage`. */
|
|
3230
3291
|
interface SendSessionMessageRequest {
|
|
3231
3292
|
messageId?: string;
|
|
3293
|
+
/** Per-turn overrides within the session's native backend. */
|
|
3294
|
+
backend?: Partial<BackendConfig>;
|
|
3295
|
+
/** Exact caller-owned execution identity for canonical cancellation. */
|
|
3296
|
+
runControlRef?: AgentExactRunControlRef;
|
|
3232
3297
|
parts: SessionMessageInputPart[];
|
|
3233
3298
|
system?: string;
|
|
3234
3299
|
agent?: string;
|
|
@@ -3256,6 +3321,7 @@ interface SentSessionMessage {
|
|
|
3256
3321
|
parts: [];
|
|
3257
3322
|
userMessageId: string;
|
|
3258
3323
|
processing: true;
|
|
3324
|
+
runControlRef?: AgentExactRunControlRef;
|
|
3259
3325
|
}
|
|
3260
3326
|
/** Canonical portable profile attached to a task session. */
|
|
3261
3327
|
type TaskSessionProfile = AgentProfile & {
|
|
@@ -3480,6 +3546,12 @@ interface DispatchedSession {
|
|
|
3480
3546
|
interface ConversationTurnOptions {
|
|
3481
3547
|
sessionId: string;
|
|
3482
3548
|
turnId: string;
|
|
3549
|
+
/** Per-turn backend, profile, runtime attachments, and interaction settings. */
|
|
3550
|
+
backend?: Partial<BackendConfig>;
|
|
3551
|
+
/** Model shorthand; conflicts with backend.model.model are rejected. */
|
|
3552
|
+
model?: string;
|
|
3553
|
+
/** Exact execution identity retained by admission and cancellation. */
|
|
3554
|
+
runControlRef?: AgentExactRunControlRef;
|
|
3483
3555
|
/** False is a passive settlement/cancellation lookup; never admits new work. */
|
|
3484
3556
|
allowDispatch?: boolean;
|
|
3485
3557
|
timeoutMs?: number;
|
|
@@ -3526,10 +3598,11 @@ interface DriveTurnOptions {
|
|
|
3526
3598
|
* one pass. Discriminated on `state`:
|
|
3527
3599
|
* - `completed` — the turn finished with a text payload; `result` is
|
|
3528
3600
|
* the full cached AgentExecutionResult-shape record.
|
|
3601
|
+
* - Waiting states preserve the response request and original result.
|
|
3529
3602
|
* - `running` — the session is queued or executing; re-invoke after a
|
|
3530
3603
|
* delay of your choosing.
|
|
3531
3604
|
* - `failed` — terminal and deterministic: a failed/cancelled session,
|
|
3532
|
-
* a wall-cap cancellation, or
|
|
3605
|
+
* a wall-cap cancellation, or an invalid terminal result.
|
|
3533
3606
|
* Re-invoking will not change the outcome.
|
|
3534
3607
|
*/
|
|
3535
3608
|
type TurnDriveResult = {
|
|
@@ -3545,6 +3618,19 @@ type TurnDriveResult = {
|
|
|
3545
3618
|
state: "awaiting_plan_decision";
|
|
3546
3619
|
plan: DurablePlanSnapshot;
|
|
3547
3620
|
result: Record<string, unknown>;
|
|
3621
|
+
} | {
|
|
3622
|
+
state: "blocked_on_approval";
|
|
3623
|
+
approval: AgentApprovalRequirement;
|
|
3624
|
+
result: Record<string, unknown>;
|
|
3625
|
+
} | {
|
|
3626
|
+
state: "awaiting_question";
|
|
3627
|
+
question: AgentQuestionRequest;
|
|
3628
|
+
interaction?: _$_tangle_network_agent_interface0.InteractionRequest;
|
|
3629
|
+
result: Record<string, unknown>;
|
|
3630
|
+
} | {
|
|
3631
|
+
state: "awaiting_interaction";
|
|
3632
|
+
interaction: _$_tangle_network_agent_interface0.InteractionRequest;
|
|
3633
|
+
result: Record<string, unknown>;
|
|
3548
3634
|
} | {
|
|
3549
3635
|
state: "running"; /** When the session began executing, if the runtime reported it. */
|
|
3550
3636
|
startedAt?: Date; /** Milliseconds since `startedAt` at the moment of the poll. */
|
|
@@ -3687,6 +3773,84 @@ interface SandboxDeleteAcknowledgement {
|
|
|
3687
3773
|
*/
|
|
3688
3774
|
removal?: SandboxRemovalState;
|
|
3689
3775
|
}
|
|
3776
|
+
/**
|
|
3777
|
+
* Which sandboxes {@link Sandbox.deleteMatching} removes: the caller's own
|
|
3778
|
+
* sandboxes whose metadata matches every entry.
|
|
3779
|
+
*/
|
|
3780
|
+
interface DeleteMatchingSandboxesFilter {
|
|
3781
|
+
/**
|
|
3782
|
+
* Metadata key to required value prefix, 1 to 8 entries. A sandbox matches
|
|
3783
|
+
* when each named key holds a string that starts with its prefix, for
|
|
3784
|
+
* example `{ retainedIdempotencyKey: "runtime:<runId>:" }` for every
|
|
3785
|
+
* sandbox one Agent Runtime run created.
|
|
3786
|
+
*/
|
|
3787
|
+
metadataPrefix: Record<string, string>;
|
|
3788
|
+
}
|
|
3789
|
+
interface DeleteMatchingSandboxesOptions {
|
|
3790
|
+
/** Delete each matched sandbox's branch children with it. */
|
|
3791
|
+
cascade?: boolean;
|
|
3792
|
+
/** Hold each delete until the runtime's removal proof, as {@link SandboxDeleteOptions.until}. */
|
|
3793
|
+
until?: "removed";
|
|
3794
|
+
/** AbortSignal for cancellation */
|
|
3795
|
+
signal?: AbortSignal;
|
|
3796
|
+
/**
|
|
3797
|
+
* Timeout for each request. The API deletes a bounded batch per request,
|
|
3798
|
+
* so the default is 120 s, or 300 s with `until: "removed"`.
|
|
3799
|
+
*/
|
|
3800
|
+
timeoutMs?: number;
|
|
3801
|
+
}
|
|
3802
|
+
/**
|
|
3803
|
+
* What happened to one matched sandbox.
|
|
3804
|
+
*
|
|
3805
|
+
* - `destroyed`: this call removed it.
|
|
3806
|
+
* - `already_absent`: it was gone when the delete reached it.
|
|
3807
|
+
* - `failed`: the delete was refused; `status`, `code` and `error` say why,
|
|
3808
|
+
* and the sandbox may still exist.
|
|
3809
|
+
*/
|
|
3810
|
+
type DeleteMatchingSandboxOutcome = "destroyed" | "already_absent" | "failed";
|
|
3811
|
+
interface DeleteMatchingSandboxResult {
|
|
3812
|
+
id: string;
|
|
3813
|
+
/**
|
|
3814
|
+
* True when the sandbox is confirmed gone: `destroyed` or `already_absent`.
|
|
3815
|
+
* With `until: "removed"`, a destroyed sandbox also needs its removal proof:
|
|
3816
|
+
* one whose wait ran out reports `removal: "pending"` and `confirmed: false`.
|
|
3817
|
+
*/
|
|
3818
|
+
confirmed: boolean;
|
|
3819
|
+
outcome: DeleteMatchingSandboxOutcome;
|
|
3820
|
+
removal?: SandboxRemovalState;
|
|
3821
|
+
/** Branch children deleted with it when `cascade` was set. */
|
|
3822
|
+
deletedChildren?: string[];
|
|
3823
|
+
/** The compute charge settles through the durable queue instead of inline. */
|
|
3824
|
+
settlementDeferred?: boolean;
|
|
3825
|
+
/** HTTP status of the refused delete. */
|
|
3826
|
+
status?: number;
|
|
3827
|
+
code?: string;
|
|
3828
|
+
error?: string;
|
|
3829
|
+
/** Live branch children that refused the delete (`CHILDREN_EXIST`). */
|
|
3830
|
+
children?: string[];
|
|
3831
|
+
}
|
|
3832
|
+
interface DeleteMatchingSandboxesResult {
|
|
3833
|
+
/**
|
|
3834
|
+
* True only when every orchestrator was listed and every matching sandbox
|
|
3835
|
+
* is confirmed gone. This is the teardown verdict; read `sandboxes` for
|
|
3836
|
+
* the per-sandbox evidence.
|
|
3837
|
+
*
|
|
3838
|
+
* It covers the sandboxes the call listed. Stop creating matching sandboxes
|
|
3839
|
+
* before calling, and call again once in-flight creates have settled: a
|
|
3840
|
+
* create that registers after the listing, or retries with the same
|
|
3841
|
+
* idempotency key, can leave a match behind a `true`.
|
|
3842
|
+
*/
|
|
3843
|
+
complete: boolean;
|
|
3844
|
+
/** False when an orchestrator could not be listed, so a match may be missing. */
|
|
3845
|
+
listingComplete: boolean;
|
|
3846
|
+
/**
|
|
3847
|
+
* Matching sandboxes not yet attempted when the call stopped. Nonzero only
|
|
3848
|
+
* when the call reached its request bound; call again for them.
|
|
3849
|
+
*/
|
|
3850
|
+
remaining: number;
|
|
3851
|
+
/** The latest result for each sandbox this call attempted. */
|
|
3852
|
+
sandboxes: DeleteMatchingSandboxResult[];
|
|
3853
|
+
}
|
|
3690
3854
|
/**
|
|
3691
3855
|
* Whether the operation bound to an idempotency key is decided.
|
|
3692
3856
|
*
|
|
@@ -6474,4 +6638,4 @@ interface CodeExecutionOptions {
|
|
|
6474
6638
|
idempotencyKey?: string;
|
|
6475
6639
|
}
|
|
6476
6640
|
//#endregion
|
|
6477
|
-
export {
|
|
6641
|
+
export { DownloadOptions as $, TaskSessionFileChange as $i, ReconcileSandboxFleetsResult as $n, SandboxRemovalState as $r, GpuLease as $t, CommitTaskSessionOptions as A, SessionFailureReason as Ai, PreviewLinkWaitOptions as An, SandboxFleetMachine as Ar, FileUsageResult as At, CreateSandboxOptions as B, SnapshotDeleteAcknowledgement as Bi, PromptOptions as Bn, SandboxFleetTraceEvent as Br, FleetMachineId as Bt, BranchOptions as C, BatchSidecarGroup as Ca, SendSessionMessageOptions as Ci, NetworkConfig as Cn, SandboxFleetCostEstimate as Cr, FileReadResult as Ct, CodeExecutionResult as D, BackendType as Da, SessionEventStreamOptions as Di, PermissionsManager as Dn, SandboxFleetDriverTimings as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, ALL_BACKEND_TYPES as Ea, SessionBackendCredentials as Ei, PermissionLevel as En, SandboxFleetDriverCapability as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, SessionMessage as Fi, ProcessManager as Fn, SandboxFleetManifestMachine as Fr, FleetDispatchStreamOptions as Ft, DeleteMatchingSandboxesFilter as G, SnapshotResult as Gi, ProvisionStep as Gn, SandboxFleetWorkspaceReconcileResult as Gr, ForkLookupOptions as Gt, CreateTaskSessionOptions as H, SnapshotIdempotency as Hi, ProvisionEvent as Hn, SandboxFleetTraceOptions as Hr, FleetPromptDispatchResult as Ht, CreateRequestOptions as I, SessionMessageAdmission as Ii, ProcessSignal as In, SandboxFleetOperationsSummary as Ir, FleetDriveTurnOutcome as It, DeleteOptions as J, StartupOperation as Ji, PublishPublicTemplateOptions as Jn, SandboxIdentity as Jr, GitBranch as Jt, DeleteMatchingSandboxesOptions as K, SshKeysManager as Ki, PublicTemplateInfo as Kn, SandboxFleetWorkspaceRestoreResult as Kr, GPU_LEASE_PROVIDER_NAMES as Kt, CreateSandboxFleetOptions as L, SessionMessageInputPart as Li, ProcessSpawnOptions as Ln, SandboxFleetPolicy as Lr, FleetDriveTurnRequest as Lt, ConversationTurnOptions as M, SessionInfo as Mi, ProcessInfo as Mn, SandboxFleetMachineRecord as Mr, FleetDispatchCancelResult as Mt, ConversationTurnResult as N, SessionInterruptOptions as Ni, ProcessListOptions as Nn, SandboxFleetMachineSpec as Nr, FleetDispatchResultBuffer as Nt, CodeLanguage as O, parseBackendType as Oa, SessionExecutionInfo as Oi, PreviewLinkInfo as On, SandboxFleetInfo as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, SessionListOptions as Pi, ProcessLogEntry as Pn, SandboxFleetManifest as Pr, FleetDispatchResultBufferOptions as Pt, DispatchedSession as Q, TaskSessionCommitResult as Qi, ReconcileSandboxFleetsOptions as Qn, SandboxPortPreviewLink as Qr, GitStatus as Qt, CreateSandboxFleetTokenOptions as R, SessionResultOptions as Ri, ProcessStatus as Rn, SandboxFleetToken as Rr, FleetExecDispatchOptions as Rt, BatchTaskResult as S, BatchEventDataMap as Sa, SecretsManager as Si, MkdirOptions as Sn, SandboxFleetArtifactSpec as Sr, FileReadError as St, ChunkedUploadResult as T, PublicBatchRunRequest as Ta, SentSessionMessage as Ti, NonHostAgentDriverConfig as Tn, SandboxFleetDispatchResponse as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, SnapshotInfo as Ui, ProvisionResult as Un, SandboxFleetUsage as Ur, ForkCounts as Ut, CreateSessionOptions as V, SnapshotDeleteOutcome as Vi, PromptResult as Vn, SandboxFleetTraceExport as Vr, FleetPromptDispatchOptions as Vt, DeleteMatchingSandboxResult as W, SnapshotOptions as Wi, ProvisionStatus as Wn, SandboxFleetWorkspace as Wr, ForkIdempotency as Wt, DirectoryPermission as X, SubscriptionInfo as Xi, ReapExpiredSandboxFleetsOptions as Xn, SandboxIntelligenceEnvelope as Xr, GitConfig as Xt, DevServerInfo as Y, StorageConfig as Yi, PublishPublicTemplateVersionOptions as Yn, SandboxInfo as Yr, GitCommit as Yt, DispatchPromptOptions as Z, TaskSessionChanges as Zi, ReapExpiredSandboxFleetsResult as Zn, SandboxPortBinding as Zr, GitDiff as Zt, BatchBackend as _, WriteFileOptions as _a, SandboxTraceOptions as _i, ListOptions as _n, SandboxDeleteOptions as _r, ExecOptions as _t, AgentQuestionRequest as a, TeePublicKey as aa, SandboxShapePreset as ai, GpuLeaseProviderName as an, RolloutOptions as ar, DurablePlan as at, BatchRunRequest as b, BatchBackendStats as ba, SearchOptions as bi, MAX_EGRESS_DENIALS_LIMIT as bn, SandboxEvent as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, TokenUsage as ca, SandboxTerminalAttachOptions as ci, HostAgentRuntimeBackend as cn, RolloutStatus as cr, EffectiveBackend as ct, BackendConfig as d, UploadOptions as da, SandboxTerminalManager as di, IntelligenceReportBudget as dn, SSHCredentials as dr, EgressDenial as dt, TaskSessionInfo as ea, SandboxResourceUsage as ei, GpuLeaseBilling as en, RenameOptions as er, DownloadProgress as et, BackendInfo as f, UploadProgress as fa, SandboxTerminalRequestOptions as fi, IntelligenceReportCompareTo as fn, SandboxConfig as fr, EgressManager as ft, BackendStatus as g, WorkspaceOperationLookup as ga, SandboxTraceExport as gi, ListMessagesOptions as gn, SandboxDeleteAcknowledgement as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, WaitForRolloutOptions as ha, SandboxTraceEvent as hi, JsonValue as hn, SandboxCreateReceipt as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, TeeAttestationResponse as ia, SandboxShape as ii, GpuLeaseManager as in, RolloutChildResult as ir, DriverType as it, CompletedTurnResult as j, SessionForkOptions as ji, Process as jn, SandboxFleetMachineMeteredUsage as jr, FileWriteResult as jt, CodeResultPart as k, SessionExecutionStatus as ki, PreviewLinkManager as kn, SandboxFleetIntelligenceEnvelope as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TurnDriveResult as la, SandboxTerminalCreateOptions as li, InstalledTool as ln, RolloutTurnPart as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, WaitForOptions as ma, SandboxTraceBundle as mi, IntelligenceReportWindow as mn, SandboxCreateOutcome as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, TeeAttestationOptions as na, SandboxRuntimeCapabilities as ni, GpuLeaseExecOptions as nn, ResumeOptions as nr, DriverConfig as nt, AgentRunStatus as o, TeePublicKeyResponse as oa, SandboxShapesInfo as oi, GpuLeaseStatus as on, RolloutScorer as or, DurablePlanDecisionResult as ot, BackendManager as p, UsageInfo as pa, SandboxTerminals as pi, IntelligenceReportSubjectType as pn, SandboxConnection as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, StartupDiagnostics as qi, PublicTemplateVersionInfo as qn, SandboxFleetWorkspaceSnapshotResult as qr, GitAuth as qt, AddUserOptions as r, TeeAttestationReport as ra, SandboxRuntimeHealth as ri, GpuLeaseExecResult as rn, Rollout as rr, DriverInfo as rt, AgentToolInvocation as s, TokenRefreshHandler as sa, SandboxStatus as si, HostAgentDriverConfig as sn, RolloutStartResult as sr, DurablePlanSnapshot as st, AcceleratorKind as t, TaskSessionProfile as ta, SandboxResources as ti, GpuLeaseCommandResult as tn, RestoreSnapshotOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, UpdateUserOptions as ua, SandboxTerminalInfo as ui, IntelligenceReport as un, SSHCommandDescriptor as ur, EffectiveBackendSource as ut, BatchResult as v, WriteManyFile as va, SandboxUser as vi, ListSandboxFleetOptions as vn, SandboxDeleteOutcome as vr, ExecResult as vt, ChunkedUploadOptions as w, BatchTaskUsage as wa, SendSessionMessageRequest as wi, NetworkManager as wn, SandboxFleetDispatchFailureClass as wr, FileRenameResult as wt, BatchTask as x, BatchEvent as xa, SecretInfo as xi, McpServerConfig as xn, SandboxFleetArtifact as xr, FileReadBatchResult as xt, BatchRunOptions as y, WriteManyOptions as ya, SearchMatch as yi, ListSandboxOptions as yn, SandboxEnvironment as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, SessionStatus as zi, PromptInputPart as zn, SandboxFleetTraceBundle as zr, FleetExecDispatchResult as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"@mastra/core": "^1.36.0",
|
|
104
104
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
105
|
-
"ai": "^6.0.175",
|
|
105
|
+
"ai": "^6.0.175 || ^7.0.107",
|
|
106
106
|
"openai": "^6.36.0",
|
|
107
107
|
"viem": "^2.0.0"
|
|
108
108
|
},
|
|
@@ -125,8 +125,10 @@
|
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@hocuspocus/provider": "^4.0.0",
|
|
128
|
+
"@mastra/core": "1.67.0",
|
|
128
129
|
"@types/node": "25.6.0",
|
|
129
130
|
"@vitest/coverage-v8": "^4.1.5",
|
|
131
|
+
"ai": "7.0.107",
|
|
130
132
|
"dotenv": "^16.4.5",
|
|
131
133
|
"openai": "^6.36.0",
|
|
132
134
|
"proper-lockfile": "4.1.2",
|
|
@@ -136,10 +138,10 @@
|
|
|
136
138
|
"ws": "^8.20.0",
|
|
137
139
|
"yjs": "13.6.30",
|
|
138
140
|
"@repo/shared": "0.0.0",
|
|
139
|
-
"@tangle-network/runtime-contracts": "0.6.10",
|
|
140
|
-
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
141
141
|
"@tangle-network/sse-core": "0.0.0",
|
|
142
|
-
"@tangle-network/cli-agent-registry": "0.4.
|
|
142
|
+
"@tangle-network/cli-agent-registry": "0.4.6",
|
|
143
|
+
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
144
|
+
"@tangle-network/runtime-contracts": "0.7.0"
|
|
143
145
|
},
|
|
144
146
|
"scripts": {
|
|
145
147
|
"build": "node scripts/build-dist.mjs",
|