@tangle-network/sandbox 0.43.0 → 0.46.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.
@@ -1,6 +1,6 @@
1
1
  import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CcaBTVg3.js";
2
2
  import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-BELrFH4f.js";
3
- import { $ as DurablePlanDecisionResult, A as CommitTaskSessionOptions, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, C as BranchOptions, Ci as SessionInterruptOptions, D as CodeExecutionResult, Di as SessionResultOptions, E as CodeExecutionOptions, Fn as ProvisionEvent, G as DispatchedSession, Gi as TeeAttestationOptions, Gt as GitStatus, Hr as SandboxInfo, Ht as GitCommit, Ii as StartupDiagnostics, In as ProvisionResult, It as ForkCounts, J as DriveTurnOptions, Jn as RestoreSnapshotOptions, Kt as GpuLease, Lt as ForkIdempotency, Mi as SnapshotInfo, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, Ni as SnapshotOptions, Nn as PromptOptions, O as CodeLanguage, On as ProcessManager, Pi as SnapshotResult, Pn as PromptResult, Q as DurablePlan, Qi as TurnDriveResult, Qn as RolloutOptions, Qr as SandboxTerminalAttachOptions, Rt as ForkLookupOptions, Si as SessionInfo, Sn as PreviewLinkManager, Ti as SessionMessage, Ui as TaskSessionInfo, Vi as TaskSessionCommitResult, Vt as GitBranch, W as DispatchPromptOptions, Wr as SandboxPortBinding, Wt as GitDiff, X as DriverInfo, Xn as Rollout, Xr as SandboxRuntimeHealth, Yi as TeePublicKeyResponse, Yn as ResumeOptions, Yr as SandboxRuntimeCapabilities, Zr as SandboxStatus, Zt as GpuLeaseManager, _i as SessionEventStreamOptions, _n as NetworkManager, aa as WorkspaceOperationLookup, an as IntelligenceReportCompareTo, at as EgressManager, bn as PermissionsManager, ca as WriteManyOptions, cn as JsonValue, cr as SandboxCreateReceipt, ct as EventStreamOptions, d as BackendConfig, dt as ExecResult, er as RolloutStartResult, hi as SentSessionMessage, ia as WaitForRolloutOptions, ii as SandboxTraceBundle, in as IntelligenceReportBudget, ir as SSHCredentials, j as CompletedTurnResult, ki as SnapshotDeleteAcknowledgement, li as SearchMatch, ln as ListMessagesOptions, lr as SandboxDeleteAcknowledgement, mi as SendSessionMessageRequest, nn as InstalledTool, oa as WriteFileOptions, or as SandboxConnection, p as BackendManager, pi as SendSessionMessageOptions, pr as SandboxEvent, qi as TeeAttestationResponse, qr as SandboxResourceUsage, ra as WaitForOptions, ri as SandboxTerminals, rn as IntelligenceReport, rr as SSHCommandDescriptor, sa as WriteManyFile, si as SandboxTraceOptions, sn as IntelligenceReportWindow, ui as SearchOptions, ur as SandboxDeleteOptions, ut as ExecOptions, vi as SessionExecutionInfo, vt as FileSystem, wi as SessionListOptions, wt as FileWriteResult, xi as SessionForkOptions, z as CreateSessionOptions } from "./types-DKtPjwgd.js";
3
+ import { $i as TeeAttestationResponse, $r as SandboxShape, $t as GpuLeaseManager, A as CommitTaskSessionOptions, Ai as SessionMessage, An as ProcessManager, Bi as SnapshotResult, Bt as ForkLookupOptions, C as BranchOptions, Ci as SessionExecutionInfo, D as CodeExecutionResult, Di as SessionInfo, E as CodeExecutionOptions, Ei as SessionForkOptions, Et as FileWriteResult, Fi as SnapshotDeleteAcknowledgement, Fn as PromptOptions, H as CreateTaskSessionOptions, Hi as StartupDiagnostics, In as PromptResult, Jt as GpuLease, K as DispatchPromptOptions, Ki as TaskSessionChanges, Kr as SandboxPortBinding, Kt as GitDiff, Ln as ProvisionEvent, M as ConversationTurnOptions, N as ConversationTurnResult, Ni as SessionResultOptions, O as CodeLanguage, Oi as SessionInterruptOptions, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Q as DriverInfo, Qn as Rollout, Qr as SandboxRuntimeHealth, Ri as SnapshotInfo, Rn as ProvisionResult, Rt as ForkCounts, Si as SessionEventStreamOptions, Sn as PermissionsManager, Ut as GitBranch, V as CreateSessionOptions, Wr as SandboxInfo, Wt as GitCommit, X as DriveTurnOptions, Xn as RestoreSnapshotOptions, Yi as TaskSessionInfo, Yr as SandboxResourceUsage, Zi as TeeAttestationOptions, Zn as ResumeOptions, Zr as SandboxRuntimeCapabilities, an as IntelligenceReport, ar as SSHCommandDescriptor, bi as SentSessionMessage, bt as FileSystem, ci as SandboxTerminals, cr as SandboxConnection, d as BackendConfig, da as WorkspaceOperationLookup, dn as ListMessagesOptions, dr as SandboxDeleteAcknowledgement, er as RolloutOptions, et as DurablePlan, fa as WriteFileOptions, fi as SandboxTraceOptions, fr as SandboxDeleteOptions, ft as ExecOptions, hi as SearchOptions, hr as SandboxEvent, ia as TurnDriveResult, in as InstalledTool, j as CompletedTurnResult, ji as SessionMessageAdmission, ki as SessionListOptions, la as WaitForOptions, li as SandboxTraceBundle, ln as IntelligenceReportWindow, ma as WriteManyOptions, mi as SearchMatch, ni as SandboxStatus, nr as RolloutStartResult, on as IntelligenceReportBudget, or as SSHCredentials, p as BackendManager, pa as WriteManyFile, pt as ExecResult, q as DispatchedSession, qi as TaskSessionCommitResult, qt as GitStatus, ri as SandboxTerminalAttachOptions, sn as IntelligenceReportCompareTo, st as EgressManager, ta as TeePublicKeyResponse, tt as DurablePlanDecisionResult, ua as WaitForRolloutOptions, un as JsonValue, ur as SandboxCreateReceipt, ut as EventStreamOptions, vi as SendSessionMessageOptions, wn as PreviewLinkManager, yi as SendSessionMessageRequest, yn as NetworkManager, zi as SnapshotOptions, zt as ForkIdempotency } from "./types-C3Kw-Tml.js";
4
4
  import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
5
5
  import { z } from "zod";
6
6
 
@@ -115,6 +115,22 @@ declare function buildControlPlaneMcpConfig(options: BuildControlPlaneMcpConfigO
115
115
  config: SandboxMcpConfig;
116
116
  };
117
117
  //#endregion
118
+ //#region src/direct-read-route.d.ts
119
+ type DirectReadFallbackReason = "expired" | "refused" | "unreachable" | "timeout" | "malformed" | "cooldown";
120
+ /** What the route has done, for the caller and for the probe. */
121
+ interface DirectReadStats {
122
+ /** Reads offered to this route. */
123
+ attempts: number;
124
+ /** Direct reads that proved the state had not moved; no API call followed. */
125
+ unchanged: number;
126
+ /** Direct reads that saw a change and sent the caller to the API. */
127
+ changed: number;
128
+ /** Reads that went to the API because the direct route could NOT serve. */
129
+ fallbacks: number;
130
+ /** Why the last fallback happened; null until one does. */
131
+ lastReason: DirectReadFallbackReason | null;
132
+ }
133
+ //#endregion
118
134
  //#region ../../../packages/runtime-contracts/dist/interaction-response.d.ts
119
135
  /** Canonical result returned after a response is recorded by Sidecar. */
120
136
  declare const interactionResolutionAcknowledgementSchema: z.ZodObject<{
@@ -398,6 +414,9 @@ interface SandboxSessionHost extends InteractiveSessionHost {
398
414
  _sessionStatus(id: string): Promise<SessionInfo | null>;
399
415
  _sessionEvents(id: string, opts?: SessionEventStreamOptions): AsyncGenerator<SandboxEvent>;
400
416
  _sessionRuns(id: string): Promise<SessionExecutionInfo[]>;
417
+ _sessionAdmission(id: string, turnId: string, options?: {
418
+ signal?: AbortSignal;
419
+ }): Promise<SessionMessageAdmission | null>;
401
420
  _sessionResult(id: string, options?: SessionResultOptions, session?: SessionInfo): Promise<PromptResult>;
402
421
  _sessionDelete(id: string): Promise<void>;
403
422
  _sessionSendMessage(id: string, request: SendSessionMessageRequest, options?: SendSessionMessageOptions): Promise<SentSessionMessage>;
@@ -465,6 +484,12 @@ declare class SandboxSession {
465
484
  * count provider runs without inferring execution from model-written files.
466
485
  */
467
486
  runs(): Promise<SessionExecutionInfo[]>;
487
+ /** Read the exact execution admitted for a turn, including server-owned plan follow-ups.
488
+ * This never admits work or verifies the input of a proposed retry.
489
+ */
490
+ admission(turnId: string, options?: {
491
+ signal?: AbortSignal;
492
+ }): Promise<SessionMessageAdmission | null>;
468
493
  /**
469
494
  * Await a terminal result. With `executionId`, drains only that execution;
470
495
  * without it, reads status and selects the latest execution. Event replay
@@ -758,6 +783,12 @@ declare class SandboxInstance {
758
783
  * never by object identity, and a changed profile is sent inline.
759
784
  */
760
785
  private deferredProfileReference?;
786
+ /**
787
+ * Direct regional status reads for THIS sandbox. Inert until the API
788
+ * relays a grant, and it retreats to the API path on any failure — see
789
+ * direct-read-route.ts.
790
+ */
791
+ private readonly directRead;
761
792
  constructor(client: HttpClient, info: SandboxInfo, defaultRuntimeBackend?: BackendConfig);
762
793
  /** Unique sandbox identifier */
763
794
  get id(): string;
@@ -787,6 +818,13 @@ declare class SandboxInstance {
787
818
  get error(): string | undefined;
788
819
  /** GPU lease attached during sandbox creation, when requested. */
789
820
  get gpuLease(): GpuLease | undefined;
821
+ /**
822
+ * The shape this sandbox was granted: the cgroup and volume limits it runs
823
+ * at and the numbers it is billed at. Present on a freshly created box and
824
+ * on one resolved by `get`; `undefined` for a box from a list row until it
825
+ * is refreshed, and for a sandbox created before the platform recorded it.
826
+ */
827
+ get resources(): SandboxShape | undefined;
790
828
  /** Web terminal URL for browser-based access */
791
829
  get url(): string | undefined;
792
830
  /** Build and publish this sandbox's workspace without exposing registry credentials to it. */
@@ -882,6 +920,17 @@ declare class SandboxInstance {
882
920
  */
883
921
  refresh(signal?: AbortSignal): Promise<void>;
884
922
  private refreshInfo;
923
+ /**
924
+ * What the direct regional read route has done for this sandbox: attempts,
925
+ * reads it served, reads that fell back to the API, and the last reason.
926
+ * Read by the lifecycle probe; safe for a caller to read too.
927
+ */
928
+ directReadStats(): DirectReadStats;
929
+ /**
930
+ * Arm the direct regional read from an API payload this instance did not
931
+ * fetch itself. @internal — called by `createSandboxInstanceFromResponse`.
932
+ */
933
+ adoptDirectRead(payload: Record<string, unknown>): void;
885
934
  /**
886
935
  * Fetch fresh TEE attestation evidence for this sandbox.
887
936
  *
@@ -1989,6 +2038,10 @@ declare class SandboxInstance {
1989
2038
  * callers can treat it as terminal without their own retry bookkeeping.
1990
2039
  */
1991
2040
  driveTurn(message: string | PromptInputPart[], opts: DriveTurnOptions): Promise<TurnDriveResult>;
2041
+ /** Advance exactly the named turn while retaining the native conversation.
2042
+ * Admission receipts are independent of expiring event logs. A previous
2043
+ * turn's terminal session status cannot settle a newly submitted message. */
2044
+ driveConversationTurn(message: string | PromptInputPart[], opts: ConversationTurnOptions): Promise<ConversationTurnResult>;
1992
2045
  /**
1993
2046
  * Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
1994
2047
  * Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
@@ -2000,6 +2053,10 @@ declare class SandboxInstance {
2000
2053
  _sessionStatus(id: string): Promise<SessionInfo | null>;
2001
2054
  /** @internal — invoked by SandboxSession.runs(). */
2002
2055
  _sessionRuns(id: string): Promise<SessionExecutionInfo[]>;
2056
+ /** @internal — invoked by SandboxSession.admission(). */
2057
+ _sessionAdmission(id: string, turnId: string, options?: {
2058
+ signal?: AbortSignal;
2059
+ }): Promise<SessionMessageAdmission | null>;
2003
2060
  /** @internal — invoked by SandboxSession.events(). */
2004
2061
  _sessionEvents(id: string, opts?: SessionEventStreamOptions, stopOnTurnTerminal?: boolean): AsyncGenerator<SandboxEvent>;
2005
2062
  /** Replay one execution without subscribing to other runs on its session. */
@@ -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-BpO7MMIC.js";
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-B6eCXD1R.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
@@ -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-O1Hi84be.js";
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-D7KgC1Xb.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-CWoNC94K.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-BRZLdcud.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
  *
@@ -1409,6 +1449,8 @@ interface SandboxResources {
1409
1449
  * ```
1410
1450
  */
1411
1451
  interface CreateSandboxOptions {
1452
+ /** Suppress implicit owner secrets, startup scripts, and Hub authority. */
1453
+ ownerContext?: "inherit" | "isolated";
1412
1454
  /**
1413
1455
  * Environment or container image to run.
1414
1456
  *
@@ -1950,6 +1992,10 @@ type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
1950
1992
  interface SandboxCreateReceipt {
1951
1993
  outcome: SandboxCreateOutcome;
1952
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";
1953
1999
  /**
1954
2000
  * Names of the stored secrets this call decrypted into the sandbox.
1955
2001
  * Read it to size what the box can read. The set is sorted and
@@ -1992,6 +2038,15 @@ interface SandboxInfo {
1992
2038
  error?: string;
1993
2039
  /** GPU lease attached during sandbox creation, when requested. */
1994
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;
1995
2050
  /**
1996
2051
  * Startup phase breakdown, present only on the create response (the
1997
2052
  * platform emits it once, at provision time). Use
@@ -2553,8 +2608,29 @@ interface PromptOptions {
2553
2608
  * provider, or base URL replaces the default backend configuration.
2554
2609
  */
2555
2610
  backend?: Partial<BackendConfig>;
2556
- /** Timeout in milliseconds */
2611
+ /**
2612
+ * Per-run budget in milliseconds. Bounds the client-side stream and is
2613
+ * forwarded to the runtime, where the backend's first-output watchdog
2614
+ * honors it. It sets the execution's time limit only when `ttlMs` is unset,
2615
+ * and is then subject to the same deployment maximum as `ttlMs`.
2616
+ */
2557
2617
  timeoutMs?: number;
2618
+ /**
2619
+ * Execution time limit in milliseconds. A positive integer; the runtime
2620
+ * cancels the execution when it elapses and the terminal error names the
2621
+ * limit. A value above the deployment's maximum (six hours by default) is
2622
+ * refused with `EXECUTION_TTL_EXCEEDS_LIMIT` before the run starts, by the
2623
+ * sandbox API on proxied calls and by the runtime itself on every call. The
2624
+ * code is the same from both; the surrounding error body follows each
2625
+ * service's own envelope, so read the code rather than the shape. Unset, the
2626
+ * runtime falls back to `timeoutMs`, then to its one-hour default.
2627
+ *
2628
+ * This limit governs how long the run may LIVE. A blocking call that waits
2629
+ * for the run is separately bounded by the runtime's one-hour request
2630
+ * timeout; a longer limit needs a streaming or session-message call, which
2631
+ * answers before the run finishes.
2632
+ */
2633
+ ttlMs?: number;
2558
2634
  /** Additional context */
2559
2635
  context?: Record<string, unknown>;
2560
2636
  /**
@@ -3074,6 +3150,14 @@ interface SessionExecutionInfo {
3074
3150
  eventCount: number;
3075
3151
  lastEventId: string;
3076
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
+ }
3077
3161
  /** Secret-free model tuple selected by the sandbox runtime. */
3078
3162
  /**
3079
3163
  * Which layer supplied the model id that executed. `request` means the model
@@ -3157,6 +3241,8 @@ interface SessionListOptions {
3157
3241
  }
3158
3242
  /** Options for creating a runtime agent session. */
3159
3243
  interface CreateSessionOptions {
3244
+ /** Workspace conversations survive idle-session collection until explicitly deleted. */
3245
+ retention?: "idle" | "workspace";
3160
3246
  /** Stable caller-supplied idempotency key. Repeating create with the same
3161
3247
  * id returns the existing session without creating another workspace or
3162
3248
  * backend session. Omit to let the runtime mint a random id. */
@@ -3204,6 +3290,10 @@ type SessionMessageInputPart = PromptInputPart | {
3204
3290
  /** Message body accepted by `SandboxSession.sendMessage`. */
3205
3291
  interface SendSessionMessageRequest {
3206
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;
3207
3297
  parts: SessionMessageInputPart[];
3208
3298
  system?: string;
3209
3299
  agent?: string;
@@ -3231,6 +3321,7 @@ interface SentSessionMessage {
3231
3321
  parts: [];
3232
3322
  userMessageId: string;
3233
3323
  processing: true;
3324
+ runControlRef?: AgentExactRunControlRef;
3234
3325
  }
3235
3326
  /** Canonical portable profile attached to a task session. */
3236
3327
  type TaskSessionProfile = AgentProfile & {
@@ -3451,6 +3542,31 @@ interface DispatchedSession {
3451
3542
  * the turn through `SandboxSession.sendMessage()`. The session owns execution
3452
3543
  * and gateway replay after the request returns.
3453
3544
  */
3545
+ /** Repeated messages in one native session, unlike the one-session-per-task driver. */
3546
+ interface ConversationTurnOptions {
3547
+ sessionId: string;
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;
3555
+ /** False is a passive settlement/cancellation lookup; never admits new work. */
3556
+ allowDispatch?: boolean;
3557
+ timeoutMs?: number;
3558
+ signal?: AbortSignal;
3559
+ wallCapMs?: number;
3560
+ }
3561
+ type ConversationTurnResult = (TurnDriveResult & {
3562
+ executionId?: string;
3563
+ }) | {
3564
+ state: "not_admitted";
3565
+ } | {
3566
+ state: "awaiting_input";
3567
+ executionId: string;
3568
+ requests: _$_tangle_network_agent_interface0.InteractionRequest[];
3569
+ };
3454
3570
  interface DriveTurnOptions {
3455
3571
  /** Deterministic session id — required, it is the resume key. Every
3456
3572
  * tick for the same logical turn MUST pass the same id so a re-invoke
@@ -3482,10 +3598,11 @@ interface DriveTurnOptions {
3482
3598
  * one pass. Discriminated on `state`:
3483
3599
  * - `completed` — the turn finished with a text payload; `result` is
3484
3600
  * the full cached AgentExecutionResult-shape record.
3601
+ * - Waiting states preserve the response request and original result.
3485
3602
  * - `running` — the session is queued or executing; re-invoke after a
3486
3603
  * delay of your choosing.
3487
3604
  * - `failed` — terminal and deterministic: a failed/cancelled session,
3488
- * a wall-cap cancellation, or a completed turn that carried no text.
3605
+ * a wall-cap cancellation, or an invalid terminal result.
3489
3606
  * Re-invoking will not change the outcome.
3490
3607
  */
3491
3608
  type TurnDriveResult = {
@@ -3501,6 +3618,19 @@ type TurnDriveResult = {
3501
3618
  state: "awaiting_plan_decision";
3502
3619
  plan: DurablePlanSnapshot;
3503
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>;
3504
3634
  } | {
3505
3635
  state: "running"; /** When the session began executing, if the runtime reported it. */
3506
3636
  startedAt?: Date; /** Milliseconds since `startedAt` at the moment of the poll. */
@@ -6430,4 +6560,4 @@ interface CodeExecutionOptions {
6430
6560
  idempotencyKey?: string;
6431
6561
  }
6432
6562
  //#endregion
6433
- export { DurablePlanDecisionResult as $, UpdateUserOptions as $i, RolloutScorer as $n, SandboxTerminalCreateOptions as $r, GpuLeaseStatus as $t, CommitTaskSessionOptions as A, SnapshotDeleteOutcome as Ai, ProcessSpawnOptions as An, SandboxFleetPolicy as Ar, FleetDriveTurnRequest as At, CreateTaskSessionOptions as B, TaskSessionChanges as Bi, PublicTemplateVersionInfo as Bn, SandboxFleetWorkspaceSnapshotResult as Br, GitAuth as Bt, BranchOptions as C, SessionInterruptOptions as Ci, PreviewLinkWaitOptions as Cn, SandboxFleetMachine as Cr, FileUsageResult as Ct, CodeExecutionResult as D, SessionResultOptions as Di, ProcessLogEntry as Dn, SandboxFleetManifest as Dr, FleetDispatchResultBufferOptions as Dt, CodeExecutionOptions as E, SessionMessageInputPart as Ei, ProcessListOptions as En, SandboxFleetMachineSpec as Er, FleetDispatchResultBuffer as Et, CreateSandboxFleetOptions as F, SshKeysManager as Fi, ProvisionEvent as Fn, SandboxFleetTraceOptions as Fr, FleetPromptDispatchResult as Ft, DispatchedSession as G, TeeAttestationOptions as Gi, ReconcileSandboxFleetsOptions as Gn, SandboxPortPreviewLink as Gr, GitStatus as Gt, DevServerInfo as H, TaskSessionFileChange as Hi, PublishPublicTemplateVersionOptions as Hn, SandboxInfo as Hr, GitCommit as Ht, CreateSandboxFleetTokenOptions as I, StartupDiagnostics as Ii, ProvisionResult as In, SandboxFleetUsage as Ir, ForkCounts as It, DriveTurnOptions as J, TeePublicKey as Ji, RestoreSnapshotOptions as Jn, SandboxResources as Jr, GpuLeaseCommandResult as Jt, DownloadOptions as K, TeeAttestationReport as Ki, ReconcileSandboxFleetsResult as Kn, SandboxRemovalState as Kr, GpuLease as Kt, CreateSandboxFleetWithCoordinatorOptions as L, StartupOperation as Li, ProvisionStatus as Ln, SandboxFleetWorkspace as Lr, ForkIdempotency as Lt, CreateGpuLeaseOptions as M, SnapshotInfo as Mi, PromptInputPart as Mn, SandboxFleetTraceBundle as Mr, FleetExecDispatchResult as Mt, CreateIntelligenceReportOptions as N, SnapshotOptions as Ni, PromptOptions as Nn, SandboxFleetTraceEvent as Nr, FleetMachineId as Nt, CodeLanguage as O, SessionStatus as Oi, ProcessManager as On, SandboxFleetManifestMachine as Or, FleetDispatchStreamOptions as Ot, CreateRequestOptions as P, SnapshotResult as Pi, PromptResult as Pn, SandboxFleetTraceExport as Pr, FleetPromptDispatchOptions as Pt, DurablePlan as Q, TurnDriveResult as Qi, RolloutOptions as Qn, SandboxTerminalAttachOptions as Qr, GpuLeaseProviderName as Qt, CreateSandboxOptions as R, StorageConfig as Ri, ProvisionStep as Rn, SandboxFleetWorkspaceReconcileResult as Rr, ForkLookupOptions as Rt, BatchTaskResult as S, SessionInfo as Si, PreviewLinkManager as Sn, SandboxFleetIntelligenceEnvelope as Sr, FileUsageOptions as St, ChunkedUploadResult as T, SessionMessage as Ti, ProcessInfo as Tn, SandboxFleetMachineRecord as Tr, FleetDispatchCancelResult as Tt, DirectoryPermission as U, TaskSessionInfo as Ui, ReapExpiredSandboxFleetsOptions as Un, SandboxIntelligenceEnvelope as Ur, GitConfig as Ut, DeleteOptions as V, TaskSessionCommitResult as Vi, PublishPublicTemplateOptions as Vn, SandboxIdentity as Vr, GitBranch as Vt, DispatchPromptOptions as W, TaskSessionProfile as Wi, ReapExpiredSandboxFleetsResult as Wn, SandboxPortBinding as Wr, GitDiff as Wt, DriverInfo as X, TokenRefreshHandler as Xi, Rollout as Xn, SandboxRuntimeHealth as Xr, GpuLeaseExecResult as Xt, DriverConfig as Y, TeePublicKeyResponse as Yi, ResumeOptions as Yn, SandboxRuntimeCapabilities as Yr, GpuLeaseExecOptions as Yt, DriverType as Z, TokenUsage as Zi, RolloutChildResult as Zn, SandboxStatus as Zr, GpuLeaseManager as Zt, BatchBackend as _, parseBackendType as _a, SessionEventStreamOptions as _i, NetworkManager as _n, SandboxFleetDispatchFailureClass as _r, FileRenameResult as _t, AgentQuestionRequest as a, WorkspaceOperationLookup as aa, SandboxTraceEvent as ai, IntelligenceReportCompareTo as an, SandboxConfig as ar, EgressManager as at, BatchRunRequest as b, SessionFailureReason as bi, PermissionsManager as bn, SandboxFleetDriverTimings as br, FileTreeOptions as bt, AttachGpuLeaseOptions as c, WriteManyOptions as ca, SandboxUser as ci, JsonValue as cn, SandboxCreateReceipt as cr, EventStreamOptions as ct, BackendConfig as d, BatchEventDataMap as da, SecretInfo as di, ListSandboxFleetOptions as dn, SandboxDeleteOutcome as dr, ExecResult as dt, UploadOptions as ea, SandboxTerminalInfo as ei, HostAgentDriverConfig as en, RolloutStartResult as er, DurablePlanSnapshot as et, BackendInfo as f, BatchSidecarGroup as fa, SecretsManager as fi, ListSandboxOptions as fn, SandboxEnvironment as fr, FileInfo as ft, BackendStatus as g, BackendType as ga, SessionBackendCredentials as gi, NetworkConfig as gn, SandboxFleetCostEstimate as gr, FileReadResult as gt, BackendRuntimeConfigUpdate as h, ALL_BACKEND_TYPES as ha, SentSessionMessage as hi, MkdirOptions as hn, SandboxFleetArtifactSpec as hr, FileReadError as ht, AgentApprovalRequirement as i, WaitForRolloutOptions as ia, SandboxTraceBundle as ii, IntelligenceReportBudget as in, SSHCredentials as ir, EgressDenial as it, CompletedTurnResult as j, SnapshotIdempotency as ji, ProcessStatus as jn, SandboxFleetToken as jr, FleetExecDispatchOptions as jt, CodeResultPart as k, SnapshotDeleteAcknowledgement as ki, ProcessSignal as kn, SandboxFleetOperationsSummary as kr, FleetDriveTurnOutcome as kt, AttachSandboxFleetMachineOptions as l, BatchBackendStats as la, SearchMatch as li, ListMessagesOptions as ln, SandboxDeleteAcknowledgement as lr, ExactProcessSpawnOptions as lt, BackendMcpServerStatus as m, PublicBatchRunRequest as ma, SendSessionMessageRequest as mi, McpServerConfig as mn, SandboxFleetArtifact as mr, FileReadBatchResult as mt, AccessPolicyRule as n, UsageInfo as na, SandboxTerminalRequestOptions as ni, InstalledTool as nn, RolloutTurnPart as nr, EffectiveBackendProfile as nt, AgentRunStatus as o, WriteFileOptions as oa, SandboxTraceExport as oi, IntelligenceReportSubjectType as on, SandboxConnection as or, EgressPolicy as ot, BackendManager as p, BatchTaskUsage as pa, SendSessionMessageOptions as pi, MAX_EGRESS_DENIALS_LIMIT as pn, SandboxEvent as pr, FileReadBatchOptions as pt, DownloadProgress as q, TeeAttestationResponse as qi, RenameOptions as qn, SandboxResourceUsage as qr, GpuLeaseBilling as qt, AddUserOptions as r, WaitForOptions as ra, SandboxTerminals as ri, IntelligenceReport as rn, SSHCommandDescriptor as rr, EffectiveBackendSource as rt, AgentToolInvocation as s, WriteManyFile as sa, SandboxTraceOptions as si, IntelligenceReportWindow as sn, SandboxCreateOutcome as sr, EnsureDevServerOptions as st, AcceleratorKind as t, UploadProgress as ta, SandboxTerminalManager as ti, HostAgentRuntimeBackend as tn, RolloutStatus as tr, EffectiveBackend as tt, BackendCapabilities as u, BatchEvent as ua, SearchOptions as ui, ListOptions as un, SandboxDeleteOptions as ur, ExecOptions as ut, BatchResult as v, SessionExecutionInfo as vi, NonHostAgentDriverConfig as vn, SandboxFleetDispatchResponse as vr, FileSystem as vt, ChunkedUploadOptions as w, SessionListOptions as wi, Process as wn, SandboxFleetMachineMeteredUsage as wr, FileWriteResult as wt, BatchTask as x, SessionForkOptions as xi, PreviewLinkInfo as xn, SandboxFleetInfo as xr, FileTreeResult as xt, BatchRunOptions as y, SessionExecutionStatus as yi, PermissionLevel as yn, SandboxFleetDriverCapability as yr, FileTreeFile as yt, CreateSessionOptions as z, SubscriptionInfo as zi, PublicTemplateInfo as zn, SandboxFleetWorkspaceRestoreResult as zr, GPU_LEASE_PROVIDER_NAMES as zt };
6563
+ export { DriverType as $, TeeAttestationResponse as $i, RolloutChildResult as $n, SandboxShape as $r, GpuLeaseManager as $t, CommitTaskSessionOptions as A, SessionMessage as Ai, ProcessManager as An, SandboxFleetManifestMachine as Ar, FleetDispatchStreamOptions as At, CreateSandboxOptions as B, SnapshotResult as Bi, ProvisionStep as Bn, SandboxFleetWorkspaceReconcileResult as Br, ForkLookupOptions as Bt, BranchOptions as C, parseBackendType as Ca, SessionExecutionInfo as Ci, PreviewLinkInfo as Cn, SandboxFleetInfo as Cr, FileTreeResult as Ct, CodeExecutionResult as D, SessionInfo as Di, ProcessInfo as Dn, SandboxFleetMachineRecord as Dr, FleetDispatchCancelResult as Dt, CodeExecutionOptions as E, SessionForkOptions as Ei, Process as En, SandboxFleetMachineMeteredUsage as Er, FileWriteResult as Et, CreateIntelligenceReportOptions as F, SnapshotDeleteAcknowledgement as Fi, PromptOptions as Fn, SandboxFleetTraceEvent as Fr, FleetMachineId as Ft, DirectoryPermission as G, SubscriptionInfo as Gi, ReapExpiredSandboxFleetsOptions as Gn, SandboxIntelligenceEnvelope as Gr, GitConfig as Gt, CreateTaskSessionOptions as H, StartupDiagnostics as Hi, PublicTemplateVersionInfo as Hn, SandboxFleetWorkspaceSnapshotResult as Hr, GitAuth as Ht, CreateRequestOptions as I, SnapshotDeleteOutcome as Ii, PromptResult as In, SandboxFleetTraceExport as Ir, FleetPromptDispatchOptions as It, DownloadOptions as J, TaskSessionFileChange as Ji, ReconcileSandboxFleetsResult as Jn, SandboxRemovalState as Jr, GpuLease as Jt, DispatchPromptOptions as K, TaskSessionChanges as Ki, ReapExpiredSandboxFleetsResult as Kn, SandboxPortBinding as Kr, GitDiff as Kt, CreateSandboxFleetOptions as L, SnapshotIdempotency as Li, ProvisionEvent as Ln, SandboxFleetTraceOptions as Lr, FleetPromptDispatchResult as Lt, ConversationTurnOptions as M, SessionMessageInputPart as Mi, ProcessSpawnOptions as Mn, SandboxFleetPolicy as Mr, FleetDriveTurnRequest as Mt, ConversationTurnResult as N, SessionResultOptions as Ni, ProcessStatus as Nn, SandboxFleetToken as Nr, FleetExecDispatchOptions as Nt, CodeLanguage as O, SessionInterruptOptions as Oi, ProcessListOptions as On, SandboxFleetMachineSpec as Or, FleetDispatchResultBuffer as Ot, CreateGpuLeaseOptions as P, SessionStatus as Pi, PromptInputPart as Pn, SandboxFleetTraceBundle as Pr, FleetExecDispatchResult as Pt, DriverInfo as Q, TeeAttestationReport as Qi, Rollout as Qn, SandboxRuntimeHealth as Qr, GpuLeaseExecResult as Qt, CreateSandboxFleetTokenOptions as R, SnapshotInfo as Ri, ProvisionResult as Rn, SandboxFleetUsage as Rr, ForkCounts as Rt, BatchTaskResult as S, BackendType as Sa, SessionEventStreamOptions as Si, PermissionsManager as Sn, SandboxFleetDriverTimings as Sr, FileTreeOptions as St, ChunkedUploadResult as T, SessionFailureReason as Ti, PreviewLinkWaitOptions as Tn, SandboxFleetMachine as Tr, FileUsageResult as Tt, DeleteOptions as U, StartupOperation as Ui, PublishPublicTemplateOptions as Un, SandboxIdentity as Ur, GitBranch as Ut, CreateSessionOptions as V, SshKeysManager as Vi, PublicTemplateInfo as Vn, SandboxFleetWorkspaceRestoreResult as Vr, GPU_LEASE_PROVIDER_NAMES as Vt, DevServerInfo as W, StorageConfig as Wi, PublishPublicTemplateVersionOptions as Wn, SandboxInfo as Wr, GitCommit as Wt, DriveTurnOptions as X, TaskSessionProfile as Xi, RestoreSnapshotOptions as Xn, SandboxResources as Xr, GpuLeaseCommandResult as Xt, DownloadProgress as Y, TaskSessionInfo as Yi, RenameOptions as Yn, SandboxResourceUsage as Yr, GpuLeaseBilling as Yt, DriverConfig as Z, TeeAttestationOptions as Zi, ResumeOptions as Zn, SandboxRuntimeCapabilities as Zr, GpuLeaseExecOptions as Zt, BatchBackend as _, BatchEventDataMap as _a, SecretsManager as _i, MkdirOptions as _n, SandboxFleetArtifactSpec as _r, FileReadError as _t, AgentQuestionRequest as a, UpdateUserOptions as aa, SandboxTerminalInfo as ai, IntelligenceReport as an, SSHCommandDescriptor as ar, EffectiveBackendSource as at, BatchRunRequest as b, PublicBatchRunRequest as ba, SentSessionMessage as bi, NonHostAgentDriverConfig as bn, SandboxFleetDispatchResponse as br, FileSystem as bt, AttachGpuLeaseOptions as c, UsageInfo as ca, SandboxTerminals as ci, IntelligenceReportSubjectType as cn, SandboxConnection as cr, EgressPolicy as ct, BackendConfig as d, WorkspaceOperationLookup as da, SandboxTraceExport as di, ListMessagesOptions as dn, SandboxDeleteAcknowledgement as dr, ExactProcessSpawnOptions as dt, TeePublicKey as ea, SandboxShapePreset as ei, GpuLeaseProviderName as en, RolloutOptions as er, DurablePlan as et, BackendInfo as f, WriteFileOptions as fa, SandboxTraceOptions as fi, ListOptions as fn, SandboxDeleteOptions as fr, ExecOptions as ft, BackendStatus as g, BatchEvent as ga, SecretInfo as gi, McpServerConfig as gn, SandboxFleetArtifact as gr, FileReadBatchResult as gt, BackendRuntimeConfigUpdate as h, BatchBackendStats as ha, SearchOptions as hi, MAX_EGRESS_DENIALS_LIMIT as hn, SandboxEvent as hr, FileReadBatchOptions as ht, AgentApprovalRequirement as i, TurnDriveResult as ia, SandboxTerminalCreateOptions as ii, InstalledTool as in, RolloutTurnPart as ir, EffectiveBackendProfile as it, CompletedTurnResult as j, SessionMessageAdmission as ji, ProcessSignal as jn, SandboxFleetOperationsSummary as jr, FleetDriveTurnOutcome as jt, CodeResultPart as k, SessionListOptions as ki, ProcessLogEntry as kn, SandboxFleetManifest as kr, FleetDispatchResultBufferOptions as kt, AttachSandboxFleetMachineOptions as l, WaitForOptions as la, SandboxTraceBundle as li, IntelligenceReportWindow as ln, SandboxCreateOutcome as lr, EnsureDevServerOptions as lt, BackendMcpServerStatus as m, WriteManyOptions as ma, SearchMatch as mi, ListSandboxOptions as mn, SandboxEnvironment as mr, FileInfo as mt, AccessPolicyRule as n, TokenRefreshHandler as na, SandboxStatus as ni, HostAgentDriverConfig as nn, RolloutStartResult as nr, DurablePlanSnapshot as nt, AgentRunStatus as o, UploadOptions as oa, SandboxTerminalManager as oi, IntelligenceReportBudget as on, SSHCredentials as or, EgressDenial as ot, BackendManager as p, WriteManyFile as pa, SandboxUser as pi, ListSandboxFleetOptions as pn, SandboxDeleteOutcome as pr, ExecResult as pt, DispatchedSession as q, TaskSessionCommitResult as qi, ReconcileSandboxFleetsOptions as qn, SandboxPortPreviewLink as qr, GitStatus as qt, AddUserOptions as r, TokenUsage as ra, SandboxTerminalAttachOptions as ri, HostAgentRuntimeBackend as rn, RolloutStatus as rr, EffectiveBackend as rt, AgentToolInvocation as s, UploadProgress as sa, SandboxTerminalRequestOptions as si, IntelligenceReportCompareTo as sn, SandboxConfig as sr, EgressManager as st, AcceleratorKind as t, TeePublicKeyResponse as ta, SandboxShapesInfo as ti, GpuLeaseStatus as tn, RolloutScorer as tr, DurablePlanDecisionResult as tt, BackendCapabilities as u, WaitForRolloutOptions as ua, SandboxTraceEvent as ui, JsonValue as un, SandboxCreateReceipt as ur, EventStreamOptions as ut, BatchResult as v, BatchSidecarGroup as va, SendSessionMessageOptions as vi, NetworkConfig as vn, SandboxFleetCostEstimate as vr, FileReadResult as vt, ChunkedUploadOptions as w, SessionExecutionStatus as wi, PreviewLinkManager as wn, SandboxFleetIntelligenceEnvelope as wr, FileUsageOptions as wt, BatchTask as x, ALL_BACKEND_TYPES as xa, SessionBackendCredentials as xi, PermissionLevel as xn, SandboxFleetDriverCapability as xr, FileTreeFile as xt, BatchRunOptions as y, BatchTaskUsage as ya, SendSessionMessageRequest as yi, NetworkManager as yn, SandboxFleetDispatchFailureClass as yr, FileRenameResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, SnapshotOptions as zi, ProvisionStatus as zn, SandboxFleetWorkspace as zr, ForkIdempotency as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.43.0",
3
+ "version": "0.46.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,9 +138,9 @@
136
138
  "ws": "^8.20.0",
137
139
  "yjs": "13.6.30",
138
140
  "@repo/shared": "0.0.0",
139
- "@tangle-network/cli-agent-registry": "0.4.5",
141
+ "@tangle-network/cli-agent-registry": "0.4.6",
140
142
  "@tangle-network/agent-profile-materialize": "0.20.1",
141
- "@tangle-network/runtime-contracts": "0.6.10",
143
+ "@tangle-network/runtime-contracts": "0.7.0",
142
144
  "@tangle-network/sse-core": "0.0.0"
143
145
  },
144
146
  "scripts": {