@tangle-network/sandbox 0.45.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.
package/README.md CHANGED
@@ -33,6 +33,9 @@ export SANDBOX_BASE_URL=https://sandbox.tangle.tools
33
33
  | Browser-safe trace reads from Tangle Intelligence | `@tangle-network/sandbox/intelligence` |
34
34
 
35
35
  Install an optional peer dependency only when the selected integration requires it.
36
+ The AI SDK tool pack supports the declared AI 6 and AI 7 peer ranges.
37
+ The Mastra tool pack validates arguments before it calls a Sandbox operation.
38
+ Both tool packs pass the selected session to operations that support sessions.
36
39
 
37
40
  ## Credential boundary
38
41
 
@@ -1,7 +1,8 @@
1
- import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-CQ2YTLtO.js";
2
- import { D as CodeExecutionResult, E as CodeExecutionOptions, Ei as SessionListOptions, O as CodeLanguage, d as BackendConfig, k as CodeResultPart, wi as SessionInfo } from "../types-B3C-MizG.js";
3
- import { i as Sandbox } from "../client-C_mFKZwS.js";
1
+ import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-cTa_FF5p.js";
2
+ import { D as CodeExecutionResult, Di as SessionInfo, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, k as CodeResultPart, ki as SessionListOptions } from "../types-C3Kw-Tml.js";
3
+ import { i as Sandbox } from "../client-DdmHMuCL.js";
4
4
  import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
5
+ import { JSONSchema } from "zod/v4/core";
5
6
 
6
7
  //#region src/agent/instances.d.ts
7
8
  /**
@@ -97,7 +98,7 @@ declare module "../sandbox.js" {
97
98
  /** JSON-schema-ish object describing tool inputs. Plain object literal — no Zod required. */
98
99
  type ToolJSONSchema = {
99
100
  type: "object";
100
- properties: Record<string, unknown>;
101
+ properties: Record<string, JSONSchema.JSONSchema>;
101
102
  required?: string[];
102
103
  additionalProperties?: boolean;
103
104
  };
@@ -502,7 +503,6 @@ interface MastraToolPackOptions {
502
503
  allow?: ToolName[];
503
504
  sessionId?: string;
504
505
  }
505
- type AnyTool$1 = unknown;
506
506
  /**
507
507
  * Build a Mastra tool pack bound to one sandbox.
508
508
  *
@@ -516,7 +516,7 @@ type AnyTool$1 = unknown;
516
516
  * await agent.generate("Plot sin(x).");
517
517
  * ```
518
518
  */
519
- declare function mastraTools(box: SandboxInstance, options?: MastraToolPackOptions): Promise<Record<string, AnyTool$1>>;
519
+ declare function mastraTools(box: SandboxInstance, options?: MastraToolPackOptions): Promise<Record<string, unknown>>;
520
520
  //#endregion
521
521
  //#region src/agent/tools/openai.d.ts
522
522
  interface OpenAITool {
@@ -1,8 +1,9 @@
1
- import { f as assertCurrentBackendType } from "../runtime-api-C10Hg1OF.js";
1
+ import { h as assertCurrentBackendType } from "../runtime-api-D7CdKcbu.js";
2
2
  import { c as NotFoundError, h as ValidationError, p as StateError } from "../errors-CdDyExth.js";
3
- import { n as Sandbox } from "../client-C2AGfwGT.js";
4
- import { t as SandboxInstance } from "../sandbox-9IUdHeyj.js";
3
+ import { n as Sandbox } from "../client-BSNkAx2K.js";
4
+ import { t as SandboxInstance } from "../sandbox-BRZLdcud.js";
5
5
  import { createRequire } from "node:module";
6
+ import { z } from "zod";
6
7
  //#region src/agent/instances.ts
7
8
  const managers = /* @__PURE__ */ new WeakMap();
8
9
  function generateAgentId() {
@@ -682,6 +683,23 @@ function selectFleetSpecs(allow) {
682
683
  }
683
684
  //#endregion
684
685
  //#region src/agent/tools/fleet/index.ts
686
+ /**
687
+ * Fleet tool packs — one per framework. The shape mirrors the per-box
688
+ * packs (`anthropicTools`, `openaiTools`, etc.), bound to a Sandbox
689
+ * instead of a single SandboxInstance because fleet lifecycle is multi-
690
+ * machine and outlives any one sandbox handle.
691
+ *
692
+ * Fleet tools default-OFF in the agent's allow-list discipline: the
693
+ * operator passes `allow: ["sandbox_fleet_spawn", "sandbox_fleet_dispatch", ...]`
694
+ * to opt in. This is a cost gate — a single `sandbox_fleet_spawn({workers: 16})`
695
+ * provisions 17 sandboxes (16 workers + 1 coordinator) and bills linearly.
696
+ *
697
+ * Operationally: the agent threads `fleetId` through its tool-use history.
698
+ * After a `sandbox_fleet_spawn` returns `{fleetId, machineIds}`, every
699
+ * subsequent fleet call carries that `fleetId`. The agent is also
700
+ * responsible for calling `sandbox_fleet_destroy` when the campaign ends;
701
+ * orphaned fleets keep accruing cost.
702
+ */
685
703
  function anthropicFleetTools(client, options = {}) {
686
704
  const specs = selectFleetSpecs(options.allow);
687
705
  const handlers = buildFleetHandlers(specs, { client });
@@ -770,7 +788,7 @@ async function vercelAiFleetTools(client, options = {}) {
770
788
  const result = {};
771
789
  for (const spec of specs) result[spec.name] = ai.tool({
772
790
  description: spec.description,
773
- inputSchema: ai.jsonSchema(spec.inputSchema),
791
+ inputSchema: z.fromJSONSchema(spec.inputSchema).pipe(z.record(z.string(), z.unknown())),
774
792
  execute: async (args) => {
775
793
  const h = handlers.get(spec.name);
776
794
  if (!h) throw new Error(`Unknown fleet tool: ${spec.name}`);
@@ -782,7 +800,7 @@ async function vercelAiFleetTools(client, options = {}) {
782
800
  async function mastraFleetTools(client, options = {}) {
783
801
  let mastra;
784
802
  try {
785
- mastra = await import("@mastra/core");
803
+ mastra = await import("@mastra/core/tools");
786
804
  } catch {
787
805
  throw new Error("mastraFleetTools(): the `@mastra/core` package is not installed. Install via `pnpm add @mastra/core`.");
788
806
  }
@@ -792,11 +810,11 @@ async function mastraFleetTools(client, options = {}) {
792
810
  for (const spec of specs) result[spec.name] = mastra.createTool({
793
811
  id: spec.name,
794
812
  description: spec.description,
795
- inputSchema: mastra.jsonSchema ? mastra.jsonSchema(spec.inputSchema) : spec.inputSchema,
813
+ inputSchema: z.fromJSONSchema(spec.inputSchema).pipe(z.record(z.string(), z.unknown())),
796
814
  execute: async (input) => {
797
815
  const h = handlers.get(spec.name);
798
816
  if (!h) throw new Error(`Unknown fleet tool: ${spec.name}`);
799
- return { result: serializeToolResult(await h(input?.context ?? {})) };
817
+ return { result: serializeToolResult(await h(input)) };
800
818
  }
801
819
  });
802
820
  return result;
@@ -994,6 +1012,15 @@ function buildLifecycleHandlers(specs, ctx) {
994
1012
  //#endregion
995
1013
  //#region src/agent/tools/mastra.ts
996
1014
  /**
1015
+ * Mastra tool pack.
1016
+ *
1017
+ * Returns a `Record<id, Tool>` ready for `new Agent({ tools })`.
1018
+ * The registry's JSON schemas become validated object inputs.
1019
+ *
1020
+ * `@mastra/core` is dynamically imported. Install it in your app:
1021
+ * pnpm add @mastra/core
1022
+ */
1023
+ /**
997
1024
  * Build a Mastra tool pack bound to one sandbox.
998
1025
  *
999
1026
  * @example
@@ -1009,7 +1036,7 @@ function buildLifecycleHandlers(specs, ctx) {
1009
1036
  async function mastraTools(box, options = {}) {
1010
1037
  let mastra;
1011
1038
  try {
1012
- mastra = await import("@mastra/core");
1039
+ mastra = await import("@mastra/core/tools");
1013
1040
  } catch {
1014
1041
  throw new Error("mastraTools(): the `@mastra/core` package is not installed. Install it via `pnpm add @mastra/core`.");
1015
1042
  }
@@ -1024,9 +1051,9 @@ async function mastraTools(box, options = {}) {
1024
1051
  result[spec.name] = mastra.createTool({
1025
1052
  id: spec.name,
1026
1053
  description: spec.description,
1027
- inputSchema: mastra.jsonSchema ? mastra.jsonSchema(spec.inputSchema) : spec.inputSchema,
1054
+ inputSchema: z.fromJSONSchema(spec.inputSchema).pipe(z.record(z.string(), z.unknown())),
1028
1055
  execute: async (input) => {
1029
- return { result: serializeToolResult(await handler(input?.context ?? {})) };
1056
+ return { result: serializeToolResult(await handler(input)) };
1030
1057
  }
1031
1058
  });
1032
1059
  }
@@ -1,4 +1,4 @@
1
- import { a as AgentQuestionRequest, hr as SandboxEvent, i as AgentApprovalRequirement, nt as DurablePlanSnapshot, o as AgentRunStatus, s as AgentToolInvocation } from "./types-B3C-MizG.js";
1
+ import { a as AgentQuestionRequest, hr as SandboxEvent, i as AgentApprovalRequirement, nt as DurablePlanSnapshot, o as AgentRunStatus, s as AgentToolInvocation } from "./types-C3Kw-Tml.js";
2
2
  import { InteractionRequest } from "@tangle-network/agent-interface";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
@@ -1,7 +1,7 @@
1
- import { c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, l as encodeTextForWire, m as normalizeRuntimeBackendConfig, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, u as parseSSEStream, y as backendTypeSchema } from "./runtime-api-C10Hg1OF.js";
1
+ import { S as backendTypeSchema, _ as normalizeRuntimeBackendConfig, d as encodePromptForWire, f as encodeTextForWire, h as assertCurrentBackendType, l as SANDBOX_PROXY_REQUEST_MAX_BYTES, m as applyRequestedModel, p as parseSSEStream } from "./runtime-api-D7CdKcbu.js";
2
2
  import { c as NotFoundError, d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, l as PartialFailureError, m as TimeoutError, s as NetworkError, t as AuthError } from "./errors-CdDyExth.js";
3
3
  import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
4
- import { E as normalizeConnection, O as exportTraceBundle, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-9IUdHeyj.js";
4
+ import { D as normalizeSandboxShape, E as normalizeConnection, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, k as exportTraceBundle, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-BRZLdcud.js";
5
5
  import { agentProfileSchema } from "@tangle-network/agent-interface";
6
6
  import { z } from "zod";
7
7
  //#region src/backend-registry.ts
@@ -2764,8 +2764,8 @@ var Sandbox = class {
2764
2764
  return this.create({
2765
2765
  ...options,
2766
2766
  ownerContext: "isolated",
2767
- secrets: [],
2768
- sshEnabled: false
2767
+ secrets: options.secrets ?? [],
2768
+ sshEnabled: options.sshEnabled ?? false
2769
2769
  }, requestOptions);
2770
2770
  }
2771
2771
  async create(inputOptions, requestOptions) {
@@ -2794,7 +2794,7 @@ var Sandbox = class {
2794
2794
  auth: options.git.auth
2795
2795
  } : void 0;
2796
2796
  const environment = options?.environment;
2797
- const backend = await hydrateLocalCliBackendAuth(options?.backend, this.baseUrl, this.trustLocalCliAuth);
2797
+ const backend = options?.ownerContext === "isolated" ? options.backend : await hydrateLocalCliBackendAuth(options?.backend, this.baseUrl, this.trustLocalCliAuth);
2798
2798
  const resolvedBackend = backend ? {
2799
2799
  ...backend,
2800
2800
  type: backend.type ?? "opencode"
@@ -2943,7 +2943,16 @@ var Sandbox = class {
2943
2943
  }
2944
2944
  if (!response) throw createTimeoutError();
2945
2945
  const data = await response.json();
2946
- const instance = createSandboxInstanceFromResponse(this, this.parseInfo(data), handleBackend);
2946
+ const info = this.parseInfo(data);
2947
+ const injectedSecrets = data.createReceipt?.injectedSecrets;
2948
+ if (options?.ownerContext === "isolated" && (info.createReceipt?.ownerContext !== "isolated" || injectedSecrets !== void 0 && (!Array.isArray(injectedSecrets) || injectedSecrets.length !== 0))) throw new PartialFailureError("The host did not confirm isolated owner context. No post-create work was started. Inspect the recorded sandbox and retry identity before allocating a replacement.", "SANDBOX_ISOLATION_UNVERIFIED", 502, {
2949
+ origin: "sandbox-api",
2950
+ endpoint: "/v1/sandboxes"
2951
+ }, [{
2952
+ sandboxId: info.id,
2953
+ idempotencyKey
2954
+ }]);
2955
+ const instance = createSandboxInstanceFromResponse(this, info, handleBackend, data);
2947
2956
  if (instance.status === "provisioning" || instance.status === "pending") {
2948
2957
  const remainingMs = Math.max(0, deadline - Date.now());
2949
2958
  await instance.waitFor("running", {
@@ -3080,7 +3089,7 @@ var Sandbox = class {
3080
3089
  throw parseErrorResponse(response.status, body, void 0, response.headers);
3081
3090
  }
3082
3091
  const data = await response.json();
3083
- return createSandboxInstanceFromResponse(this, this.parseInfo(data));
3092
+ return createSandboxInstanceFromResponse(this, this.parseInfo(data), void 0, data);
3084
3093
  }
3085
3094
  /**
3086
3095
  * Mint the terminal-capable token for one exact interactive session.
@@ -3093,6 +3102,33 @@ var Sandbox = class {
3093
3102
  return requestInteractiveSessionToken(this, ref, options);
3094
3103
  }
3095
3104
  /**
3105
+ * The named sandbox sizes, which one is the platform's default, and the
3106
+ * largest shape this account can be granted on the serving deployment.
3107
+ *
3108
+ * The platform owns these numbers; a client that sizes a request from
3109
+ * `ceiling` is never refused with `RESOURCES_EXCEED_LIMIT`, and
3110
+ * {@link sandboxResourcesForSize} accepts `presets` so a named tier expands
3111
+ * to what this deployment actually sells.
3112
+ *
3113
+ * @example
3114
+ * ```typescript
3115
+ * const shapes = await client.shapes();
3116
+ * const box = await client.create({
3117
+ * resources: sandboxResourcesForSize("medium", shapes.presets),
3118
+ * });
3119
+ * ```
3120
+ */
3121
+ async shapes() {
3122
+ const response = await this.fetch("/v1/shapes");
3123
+ if (!response.ok) {
3124
+ const body = await response.text();
3125
+ throw parseErrorResponse(response.status, body, void 0, response.headers);
3126
+ }
3127
+ const data = await response.json();
3128
+ if (!Array.isArray(data?.presets) || typeof data.default !== "string" || !data.ceiling || typeof data.ceiling.cpuCores !== "number" || typeof data.ceiling.memoryMB !== "number" || typeof data.ceiling.diskGB !== "number") throw new SandboxError("GET /v1/shapes returned no usable shape catalogue", "INVALID_RESPONSE", 502);
3129
+ return data;
3130
+ }
3131
+ /**
3096
3132
  * Return the identity the public Sandbox API observed for this credential.
3097
3133
  *
3098
3134
  * This is useful for deployment checks that must confirm which account and
@@ -3367,6 +3403,7 @@ var Sandbox = class {
3367
3403
  expiresAt: data.expiresAt ? new Date(data.expiresAt) : void 0,
3368
3404
  error: data.error,
3369
3405
  gpuLease: data.gpuLease,
3406
+ resources: normalizeSandboxShape(data.resources),
3370
3407
  startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? void 0,
3371
3408
  createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? void 0
3372
3409
  };
@@ -1,6 +1,6 @@
1
- import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-CQ2YTLtO.js";
1
+ import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-cTa_FF5p.js";
2
2
  import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CcaBTVg3.js";
3
- import { At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Br as SandboxFleetWorkspaceReconcileResult, Cr as SandboxFleetInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, F as CreateIntelligenceReportOptions, Fn as PromptOptions, Ft as FleetMachineId, Gn as ReapExpiredSandboxFleetsOptions, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, I as CreateRequestOptions, In as PromptResult, It as FleetPromptDispatchOptions, Jn as ReconcileSandboxFleetsResult, Kn as ReapExpiredSandboxFleetsResult, L as CreateSandboxFleetOptions, Li as SshKeysManager, Lr as SandboxFleetTraceOptions, Lt as FleetPromptDispatchResult, Mt as FleetDriveTurnRequest, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Ot as FleetDispatchResultBuffer, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Pt as FleetExecDispatchResult, Qi as TokenRefreshHandler, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetUsage, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Vi as SubscriptionInfo, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, _r as SandboxFleetArtifactSpec, an as IntelligenceReport, b as BatchRunRequest, br as SandboxFleetDispatchResponse, fa as BatchEvent, ft as ExecOptions, gr as SandboxFleetArtifact, ia as UsageInfo, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, ln as IntelligenceReportWindow, mi as SecretsManager, mn as ListSandboxOptions, mr as SandboxEnvironment, on as IntelligenceReportBudget, pn as ListSandboxFleetOptions, pt as ExecResult, qn as ReconcileSandboxFleetsOptions, sn as IntelligenceReportCompareTo, sr as SandboxConfig, v as BatchResult, vr as SandboxFleetCostEstimate, xr as SandboxFleetDriverCapability, y as BatchRunOptions, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-B3C-MizG.js";
3
+ import { At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Br as SandboxFleetWorkspaceReconcileResult, Cr as SandboxFleetInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, F as CreateIntelligenceReportOptions, Fn as PromptOptions, Ft as FleetMachineId, Gi as SubscriptionInfo, Gn as ReapExpiredSandboxFleetsOptions, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, I as CreateRequestOptions, In as PromptResult, It as FleetPromptDispatchOptions, Jn as ReconcileSandboxFleetsResult, Kn as ReapExpiredSandboxFleetsResult, L as CreateSandboxFleetOptions, Lr as SandboxFleetTraceOptions, Lt as FleetPromptDispatchResult, Mt as FleetDriveTurnRequest, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Ot as FleetDispatchResultBuffer, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Pt as FleetExecDispatchResult, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetUsage, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Vi as SshKeysManager, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, _i as SecretsManager, _r as SandboxFleetArtifactSpec, an as IntelligenceReport, b as BatchRunRequest, br as SandboxFleetDispatchResponse, ca as UsageInfo, ft as ExecOptions, ga as BatchEvent, gr as SandboxFleetArtifact, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, ln as IntelligenceReportWindow, mn as ListSandboxOptions, mr as SandboxEnvironment, na as TokenRefreshHandler, on as IntelligenceReportBudget, pn as ListSandboxFleetOptions, pt as ExecResult, qn as ReconcileSandboxFleetsOptions, sn as IntelligenceReportCompareTo, sr as SandboxConfig, ti as SandboxShapesInfo, v as BatchResult, vr as SandboxFleetCostEstimate, xr as SandboxFleetDriverCapability, y as BatchRunOptions, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-C3Kw-Tml.js";
4
4
  import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
5
5
  import { z } from "zod";
6
6
 
@@ -500,6 +500,24 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
500
500
  * and makes one scoped-token request without loading the sandbox first.
501
501
  */
502
502
  mintInteractiveSessionToken(ref: AgentInteractiveSessionRef, options?: MintInteractiveSessionTokenOptions): Promise<ScopedToken>;
503
+ /**
504
+ * The named sandbox sizes, which one is the platform's default, and the
505
+ * largest shape this account can be granted on the serving deployment.
506
+ *
507
+ * The platform owns these numbers; a client that sizes a request from
508
+ * `ceiling` is never refused with `RESOURCES_EXCEED_LIMIT`, and
509
+ * {@link sandboxResourcesForSize} accepts `presets` so a named tier expands
510
+ * to what this deployment actually sells.
511
+ *
512
+ * @example
513
+ * ```typescript
514
+ * const shapes = await client.shapes();
515
+ * const box = await client.create({
516
+ * resources: sandboxResourcesForSize("medium", shapes.presets),
517
+ * });
518
+ * ```
519
+ */
520
+ shapes(): Promise<SandboxShapesInfo>;
503
521
  /**
504
522
  * Return the identity the public Sandbox API observed for this credential.
505
523
  *
package/dist/core.d.ts CHANGED
@@ -1,5 +1,13 @@
1
- import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-CQ2YTLtO.js";
2
- import { $r as SandboxStatus, B as CreateSandboxOptions, Cn as PreviewLinkInfo, M as ConversationTurnOptions, N as ConversationTurnResult, Pn as PromptInputPart, Tn as PreviewLinkWaitOptions, Wr as SandboxInfo, ft as ExecOptions, pt as ExecResult, sr as SandboxConfig, vn as NetworkConfig, wn as PreviewLinkManager } from "./types-B3C-MizG.js";
3
- import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-C_mFKZwS.js";
1
+ import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-cTa_FF5p.js";
2
+ import { B as CreateSandboxOptions, Cn as PreviewLinkInfo, M as ConversationTurnOptions, N as ConversationTurnResult, Pn as PromptInputPart, Tn as PreviewLinkWaitOptions, Wr as SandboxInfo, ft as ExecOptions, ji as SessionMessageAdmission, ni as SandboxStatus, pt as ExecResult, sr as SandboxConfig, vn as NetworkConfig, wn as PreviewLinkManager } from "./types-C3Kw-Tml.js";
3
+ import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-DdmHMuCL.js";
4
4
  import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, l as PartialFailureError, m as ServerError, n as CapabilityError, p as SandboxFailureDetail, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
5
- export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
5
+
6
+ //#region src/core.d.ts
7
+ /** Local SDK protocol support only, not a deployed-host readiness assertion.
8
+ * Version 1 refuses unconfirmed isolated receipts before materializing any
9
+ * profile/files and suppresses ambient CLI credential discovery. Callers must
10
+ * still inspect the host receipt and their own customer/workspace binding. */
11
+ declare const ISOLATED_CREATION_ATTESTATION_VERSION: 1;
12
+ //#endregion
13
+ export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, ISOLATED_CREATION_ATTESTATION_VERSION, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, type SessionMessageAdmission, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
package/dist/core.js CHANGED
@@ -1,4 +1,11 @@
1
1
  import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, p as StateError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
2
- import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-C2AGfwGT.js";
3
- import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-9IUdHeyj.js";
4
- export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
2
+ import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-BSNkAx2K.js";
3
+ import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-BRZLdcud.js";
4
+ //#region src/core.ts
5
+ /** Local SDK protocol support only, not a deployed-host readiness assertion.
6
+ * Version 1 refuses unconfirmed isolated receipts before materializing any
7
+ * profile/files and suppresses ambient CLI credential discovery. Callers must
8
+ * still inspect the host receipt and their own customer/workspace binding. */
9
+ const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
10
+ //#endregion
11
+ export { AuthError, CapabilityError, FileWriteConflictError, ISOLATED_CREATION_ATTESTATION_VERSION, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
@@ -1,5 +1,5 @@
1
- import { n as HttpClient, r as SandboxInstance } from "./sandbox-CQ2YTLtO.js";
2
- import { B as CreateSandboxOptions } from "./types-B3C-MizG.js";
1
+ import { n as HttpClient, r as SandboxInstance } from "./sandbox-cTa_FF5p.js";
2
+ import { B as CreateSandboxOptions } from "./types-C3Kw-Tml.js";
3
3
 
4
4
  //#region src/tangle/abi.d.ts
5
5
  /**
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { $ as SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-CQ2YTLtO.js";
1
+ import { $ as SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-cTa_FF5p.js";
2
2
  import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CcaBTVg3.js";
3
3
  import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BELrFH4f.js";
4
- import { $ as DriverType, $i as TokenUsage, $n as RolloutChildResult, $r as SandboxStatus, $t as GpuLeaseManager, A as CommitTaskSessionOptions, Ai as SessionStatus, An as ProcessManager, Ar as SandboxFleetManifestMachine, At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Bi as StorageConfig, Bn as ProvisionStep, Br as SandboxFleetWorkspaceReconcileResult, Bt as ForkLookupOptions, C as BranchOptions, Ci as SessionForkOptions, Cn as PreviewLinkInfo, Cr as SandboxFleetInfo, Ct as FileTreeResult, Di as SessionMessage, Dn as ProcessInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, Ei as SessionListOptions, En as Process, Er as SandboxFleetMachineMeteredUsage, Et as FileWriteResult, F as CreateIntelligenceReportOptions, Fi as SnapshotOptions, Fn as PromptOptions, Fr as SandboxFleetTraceEvent, Ft as FleetMachineId, G as DirectoryPermission, Gi as TaskSessionInfo, Gn as ReapExpiredSandboxFleetsOptions, Gr as SandboxIntelligenceEnvelope, Gt as GitConfig, H as CreateTaskSessionOptions, Hi as TaskSessionChanges, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, Ht as GitAuth, I as CreateRequestOptions, Ii as SnapshotResult, In as PromptResult, Ir as SandboxFleetTraceExport, It as FleetPromptDispatchOptions, J as DownloadOptions, Ji as TeeAttestationReport, Jn as ReconcileSandboxFleetsResult, Jr as SandboxRemovalState, Jt as GpuLease, K as DispatchPromptOptions, Ki as TaskSessionProfile, Kn as ReapExpiredSandboxFleetsResult, Kr as SandboxPortBinding, Kt as GitDiff, L as CreateSandboxFleetOptions, Ln as ProvisionEvent, Lr as SandboxFleetTraceOptions, M as ConversationTurnOptions, Mi as SnapshotDeleteOutcome, Mn as ProcessSpawnOptions, Mr as SandboxFleetPolicy, Mt as FleetDriveTurnRequest, N as ConversationTurnResult, Ni as SnapshotIdempotency, Nn as ProcessStatus, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Oi as SessionMessageInputPart, On as ProcessListOptions, Or as SandboxFleetMachineSpec, Ot as FleetDispatchResultBuffer, P as CreateGpuLeaseOptions, Pi as SnapshotInfo, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Q as DriverInfo, Qi as TokenRefreshHandler, Qn as Rollout, Qr as SandboxRuntimeHealth, Qt as GpuLeaseExecResult, Ri as StartupDiagnostics, Rn as ProvisionResult, Rr as SandboxFleetUsage, Rt as ForkCounts, S as BatchTaskResult, Si as SessionFailureReason, Sn as PermissionsManager, Sr as SandboxFleetDriverTimings, St as FileTreeOptions, T as ChunkedUploadResult, Ti as SessionInterruptOptions, Tn as PreviewLinkWaitOptions, Tr as SandboxFleetMachine, Tt as FileUsageResult, U as DeleteOptions, Ui as TaskSessionCommitResult, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Ut as GitBranch, V as CreateSessionOptions, Vi as SubscriptionInfo, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Vt as GPU_LEASE_PROVIDER_NAMES, W as DevServerInfo, Wi as TaskSessionFileChange, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, Wt as GitCommit, X as DriveTurnOptions, Xi as TeePublicKey, Xr as SandboxResources, Xt as GpuLeaseCommandResult, Y as DownloadProgress, Yi as TeeAttestationResponse, Yn as RenameOptions, Yr as SandboxResourceUsage, Yt as GpuLeaseBilling, Z as DriverConfig, Zi as TeePublicKeyResponse, Zr as SandboxRuntimeCapabilities, Zt as GpuLeaseExecOptions, _ as BatchBackend, _a as ALL_BACKEND_TYPES, _i as SentSessionMessage, _n as MkdirOptions, _r as SandboxFleetArtifactSpec, _t as FileReadError, aa as WaitForOptions, ai as SandboxTerminals, an as IntelligenceReport, ar as SSHCommandDescriptor, at as EffectiveBackendSource, b as BatchRunRequest, bi as SessionExecutionInfo, bn as NonHostAgentDriverConfig, br as SandboxFleetDispatchResponse, bt as FileSystem, c as AttachGpuLeaseOptions, ca as WriteFileOptions, ci as SandboxTraceExport, cn as IntelligenceReportSubjectType, cr as SandboxConnection, ct as EgressPolicy, d as BackendConfig, da as BatchBackendStats, di as SearchMatch, dn as ListMessagesOptions, dr as SandboxDeleteAcknowledgement, dt as ExactProcessSpawnOptions, ea as TurnDriveResult, ei as SandboxTerminalAttachOptions, en as GpuLeaseProviderName, er as RolloutOptions, et as DurablePlan, f as BackendInfo, fa as BatchEvent, fi as SearchOptions, fn as ListOptions, fr as SandboxDeleteOptions, ft as ExecOptions, g as BackendStatus, ga as PublicBatchRunRequest, gi as SendSessionMessageRequest, gn as McpServerConfig, gr as SandboxFleetArtifact, gt as FileReadBatchResult, h as BackendRuntimeConfigUpdate, ha as BatchTaskUsage, hi as SendSessionMessageOptions, hn as MAX_EGRESS_DENIALS_LIMIT, hr as SandboxEvent, ht as FileReadBatchOptions, ia as UsageInfo, ii as SandboxTerminalRequestOptions, in as InstalledTool, ir as RolloutTurnPart, it as EffectiveBackendProfile, j as CompletedTurnResult, ji as SnapshotDeleteAcknowledgement, jn as ProcessSignal, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, ki as SessionResultOptions, kn as ProcessLogEntry, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, la as WriteManyFile, li as SandboxTraceOptions, ln as IntelligenceReportWindow, lr as SandboxCreateOutcome, lt as EnsureDevServerOptions, m as BackendMcpServerStatus, ma as BatchSidecarGroup, mi as SecretsManager, mn as ListSandboxOptions, mr as SandboxEnvironment, mt as FileInfo, n as AccessPolicyRule, na as UploadOptions, ni as SandboxTerminalInfo, nn as HostAgentDriverConfig, nr as RolloutStartResult, oa as WaitForRolloutOptions, oi as SandboxTraceBundle, on as IntelligenceReportBudget, or as SSHCredentials, ot as EgressDenial, p as BackendManager, pa as BatchEventDataMap, pi as SecretInfo, pn as ListSandboxFleetOptions, pr as SandboxDeleteOutcome, pt as ExecResult, q as DispatchedSession, qi as TeeAttestationOptions, qn as ReconcileSandboxFleetsOptions, qr as SandboxPortPreviewLink, qt as GitStatus, r as AddUserOptions, ra as UploadProgress, ri as SandboxTerminalManager, rn as HostAgentRuntimeBackend, rr as RolloutStatus, rt as EffectiveBackend, sa as WorkspaceOperationLookup, si as SandboxTraceEvent, sn as IntelligenceReportCompareTo, sr as SandboxConfig, st as EgressManager, t as AcceleratorKind, ta as UpdateUserOptions, ti as SandboxTerminalCreateOptions, tn as GpuLeaseStatus, tr as RolloutScorer, tt as DurablePlanDecisionResult, u as BackendCapabilities, ua as WriteManyOptions, ui as SandboxUser, ur as SandboxCreateReceipt, ut as EventStreamOptions, v as BatchResult, va as BackendType, vi as SessionBackendCredentials, vn as NetworkConfig, vr as SandboxFleetCostEstimate, vt as FileReadResult, w as ChunkedUploadOptions, wi as SessionInfo, wn as PreviewLinkManager, wr as SandboxFleetIntelligenceEnvelope, wt as FileUsageOptions, x as BatchTask, xi as SessionExecutionStatus, xn as PermissionLevel, xr as SandboxFleetDriverCapability, xt as FileTreeFile, y as BatchRunOptions, ya as parseBackendType, yi as SessionEventStreamOptions, yn as NetworkManager, yr as SandboxFleetDispatchFailureClass, yt as FileRenameResult, z as CreateSandboxFleetWithCoordinatorOptions, zi as StartupOperation, zn as ProvisionStatus, zr as SandboxFleetWorkspace, zt as ForkIdempotency } from "./types-B3C-MizG.js";
5
- import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-C_mFKZwS.js";
4
+ import { $ as DriverType, $i as TeeAttestationResponse, $n as RolloutChildResult, $r as SandboxShape, $t as GpuLeaseManager, A as CommitTaskSessionOptions, Ai as SessionMessage, An as ProcessManager, Ar as SandboxFleetManifestMachine, At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Bi as SnapshotResult, Bn as ProvisionStep, Br as SandboxFleetWorkspaceReconcileResult, Bt as ForkLookupOptions, C as BranchOptions, Ca as parseBackendType, Ci as SessionExecutionInfo, Cn as PreviewLinkInfo, Cr as SandboxFleetInfo, Ct as FileTreeResult, Di as SessionInfo, Dn as ProcessInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, Ei as SessionForkOptions, En as Process, Er as SandboxFleetMachineMeteredUsage, Et as FileWriteResult, F as CreateIntelligenceReportOptions, Fi as SnapshotDeleteAcknowledgement, Fn as PromptOptions, Fr as SandboxFleetTraceEvent, Ft as FleetMachineId, G as DirectoryPermission, Gi as SubscriptionInfo, Gn as ReapExpiredSandboxFleetsOptions, Gr as SandboxIntelligenceEnvelope, Gt as GitConfig, H as CreateTaskSessionOptions, Hi as StartupDiagnostics, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, Ht as GitAuth, I as CreateRequestOptions, Ii as SnapshotDeleteOutcome, In as PromptResult, Ir as SandboxFleetTraceExport, It as FleetPromptDispatchOptions, J as DownloadOptions, Ji as TaskSessionFileChange, Jn as ReconcileSandboxFleetsResult, Jr as SandboxRemovalState, Jt as GpuLease, K as DispatchPromptOptions, Ki as TaskSessionChanges, Kn as ReapExpiredSandboxFleetsResult, Kr as SandboxPortBinding, Kt as GitDiff, L as CreateSandboxFleetOptions, Li as SnapshotIdempotency, Ln as ProvisionEvent, Lr as SandboxFleetTraceOptions, M as ConversationTurnOptions, Mi as SessionMessageInputPart, Mn as ProcessSpawnOptions, Mr as SandboxFleetPolicy, Mt as FleetDriveTurnRequest, N as ConversationTurnResult, Ni as SessionResultOptions, Nn as ProcessStatus, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Oi as SessionInterruptOptions, On as ProcessListOptions, Or as SandboxFleetMachineSpec, Ot as FleetDispatchResultBuffer, P as CreateGpuLeaseOptions, Pi as SessionStatus, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Q as DriverInfo, Qi as TeeAttestationReport, Qn as Rollout, Qr as SandboxRuntimeHealth, Qt as GpuLeaseExecResult, Ri as SnapshotInfo, Rn as ProvisionResult, Rr as SandboxFleetUsage, Rt as ForkCounts, S as BatchTaskResult, Sa as BackendType, Si as SessionEventStreamOptions, Sn as PermissionsManager, Sr as SandboxFleetDriverTimings, St as FileTreeOptions, T as ChunkedUploadResult, Ti as SessionFailureReason, Tn as PreviewLinkWaitOptions, Tr as SandboxFleetMachine, Tt as FileUsageResult, U as DeleteOptions, Ui as StartupOperation, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Ut as GitBranch, V as CreateSessionOptions, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Vt as GPU_LEASE_PROVIDER_NAMES, W as DevServerInfo, Wi as StorageConfig, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, Wt as GitCommit, X as DriveTurnOptions, Xi as TaskSessionProfile, Xr as SandboxResources, Xt as GpuLeaseCommandResult, Y as DownloadProgress, Yi as TaskSessionInfo, Yn as RenameOptions, Yr as SandboxResourceUsage, Yt as GpuLeaseBilling, Z as DriverConfig, Zi as TeeAttestationOptions, Zr as SandboxRuntimeCapabilities, Zt as GpuLeaseExecOptions, _ as BatchBackend, _a as BatchEventDataMap, _i as SecretsManager, _n as MkdirOptions, _r as SandboxFleetArtifactSpec, _t as FileReadError, aa as UpdateUserOptions, ai as SandboxTerminalInfo, an as IntelligenceReport, ar as SSHCommandDescriptor, at as EffectiveBackendSource, b as BatchRunRequest, ba as PublicBatchRunRequest, bi as SentSessionMessage, bn as NonHostAgentDriverConfig, br as SandboxFleetDispatchResponse, bt as FileSystem, c as AttachGpuLeaseOptions, ca as UsageInfo, ci as SandboxTerminals, cn as IntelligenceReportSubjectType, cr as SandboxConnection, ct as EgressPolicy, d as BackendConfig, da as WorkspaceOperationLookup, di as SandboxTraceExport, dn as ListMessagesOptions, dr as SandboxDeleteAcknowledgement, dt as ExactProcessSpawnOptions, ea as TeePublicKey, ei as SandboxShapePreset, en as GpuLeaseProviderName, er as RolloutOptions, et as DurablePlan, f as BackendInfo, fa as WriteFileOptions, fi as SandboxTraceOptions, fn as ListOptions, fr as SandboxDeleteOptions, ft as ExecOptions, g as BackendStatus, ga as BatchEvent, gi as SecretInfo, gn as McpServerConfig, gr as SandboxFleetArtifact, gt as FileReadBatchResult, h as BackendRuntimeConfigUpdate, ha as BatchBackendStats, hi as SearchOptions, hn as MAX_EGRESS_DENIALS_LIMIT, hr as SandboxEvent, ht as FileReadBatchOptions, ia as TurnDriveResult, ii as SandboxTerminalCreateOptions, in as InstalledTool, ir as RolloutTurnPart, it as EffectiveBackendProfile, j as CompletedTurnResult, ji as SessionMessageAdmission, jn as ProcessSignal, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, ki as SessionListOptions, kn as ProcessLogEntry, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, la as WaitForOptions, li as SandboxTraceBundle, ln as IntelligenceReportWindow, lr as SandboxCreateOutcome, lt as EnsureDevServerOptions, m as BackendMcpServerStatus, ma as WriteManyOptions, mi as SearchMatch, mn as ListSandboxOptions, mr as SandboxEnvironment, mt as FileInfo, n as AccessPolicyRule, na as TokenRefreshHandler, ni as SandboxStatus, nn as HostAgentDriverConfig, nr as RolloutStartResult, oa as UploadOptions, oi as SandboxTerminalManager, on as IntelligenceReportBudget, or as SSHCredentials, ot as EgressDenial, p as BackendManager, pa as WriteManyFile, pi as SandboxUser, pn as ListSandboxFleetOptions, pr as SandboxDeleteOutcome, pt as ExecResult, q as DispatchedSession, qi as TaskSessionCommitResult, qn as ReconcileSandboxFleetsOptions, qr as SandboxPortPreviewLink, qt as GitStatus, r as AddUserOptions, ra as TokenUsage, ri as SandboxTerminalAttachOptions, rn as HostAgentRuntimeBackend, rr as RolloutStatus, rt as EffectiveBackend, sa as UploadProgress, si as SandboxTerminalRequestOptions, sn as IntelligenceReportCompareTo, sr as SandboxConfig, st as EgressManager, t as AcceleratorKind, ta as TeePublicKeyResponse, ti as SandboxShapesInfo, tn as GpuLeaseStatus, tr as RolloutScorer, tt as DurablePlanDecisionResult, u as BackendCapabilities, ua as WaitForRolloutOptions, ui as SandboxTraceEvent, ur as SandboxCreateReceipt, ut as EventStreamOptions, v as BatchResult, va as BatchSidecarGroup, vi as SendSessionMessageOptions, vn as NetworkConfig, vr as SandboxFleetCostEstimate, vt as FileReadResult, w as ChunkedUploadOptions, wi as SessionExecutionStatus, wn as PreviewLinkManager, wr as SandboxFleetIntelligenceEnvelope, wt as FileUsageOptions, x as BatchTask, xa as ALL_BACKEND_TYPES, xi as SessionBackendCredentials, xn as PermissionLevel, xr as SandboxFleetDriverCapability, xt as FileTreeFile, y as BatchRunOptions, ya as BatchTaskUsage, yi as SendSessionMessageRequest, yn as NetworkManager, yr as SandboxFleetDispatchFailureClass, yt as FileRenameResult, z as CreateSandboxFleetWithCoordinatorOptions, zi as SnapshotOptions, zn as ProvisionStatus, zr as SandboxFleetWorkspace, zt as ForkIdempotency } from "./types-C3Kw-Tml.js";
5
+ import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-DdmHMuCL.js";
6
6
  import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CS-t6tPU.js";
7
7
  import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-BzAxTiqF.js";
8
8
  import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, i as EgressProxyRecoveryError, l as PartialFailureError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxFailureDetail, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
9
- import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BpQhOdXp.js";
10
- import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DT_pNtbV.js";
9
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-B_DRpTxx.js";
10
+ import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-B6eCXD1R.js";
11
11
  import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
12
12
  import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
13
13
  import { z } from "zod";
@@ -480,11 +480,9 @@ declare function generateDockerfile(spec: ImageSpec): string;
480
480
  //#region src/lib/agent-response-text.d.ts
481
481
  declare function getSandboxEventText(event: SandboxEvent): string | undefined;
482
482
  /**
483
- * Fold one event into the running response text. `token` events APPEND their
484
- * incremental delta/value; every other text-bearing event (`result`,
485
- * `message.part.updated`) carries the cumulative text, so it REPLACES — unless
486
- * it is a strict continuation of what we already have, in which case it is
487
- * appended once. An event with no meaningful text leaves `current` untouched.
483
+ * Fold one event into the running response text. Explicit deltas append,
484
+ * including whitespace and repeated chunks. Cumulative message parts and
485
+ * final results replace the text. Blank snapshots leave `current` untouched.
488
486
  *
489
487
  * Whitespace handling differs by kind: an incremental `token` keeps its RAW text
490
488
  * (a lone space delta is a word separator — dropping it concatenates words), but
@@ -4153,39 +4151,50 @@ declare function materializeProfileFileMounts(box: ProfileFileMountBox, files: r
4153
4151
  /** The concrete cpu/memory/disk for each named tier. */
4154
4152
  type SizePresetResources = Required<Pick<SandboxResources, "cpuCores" | "memoryMB" | "diskGB">>;
4155
4153
  /**
4156
- * The concrete compute behind each {@link SandboxSizePreset} — the SINGLE source
4157
- * of truth for what a tier means. `@tangle-network/agent-interface` owns the
4158
- * tier NAMES (so the lowest layer can reference a size); this owns the numbers.
4154
+ * The compute behind each {@link SandboxSizePreset} as the sandbox API
4155
+ * defines it. The API owns these numbers and serves them from
4156
+ * `GET /v1/shapes` ({@link Sandbox.shapes}); this table is the offline
4157
+ * mirror for a caller that must resolve a tier before it holds a client (a
4158
+ * workflow definition, a tool spec) and is pinned to the API's table by a
4159
+ * drift test. `@tangle-network/agent-interface` owns the tier NAMES so the
4160
+ * lowest layer can reference a size.
4159
4161
  *
4160
- * Values stay within the sandbox-api default plan caps (8 vCPU / 16 GB / 100 GB)
4161
- * and keep memory at or above the driver's firecracker-snapshot floor (1536 MB),
4162
- * so a requested tier is never silently bumped. `diskGB` is in gigabytes;
4163
- * `memoryMB` in megabytes. The server still clamps every request to the owner's
4164
- * actual plan limits — these are the unclamped tier definitions, not guarantees.
4162
+ * `large` equals the deployment's default per-box ceiling (8 vCPU / 16 GB /
4163
+ * 100 GB), so every tier is creatable on a deployment that leaves
4164
+ * `MAX_SANDBOX_*` unset. The server still clamps an advisory request and
4165
+ * refuses an explicit one above the account's ceiling — read `shapes()` for
4166
+ * that ceiling.
4165
4167
  */
4166
4168
  declare const SANDBOX_SIZE_PRESETS: Record<SandboxSizePreset, SizePresetResources>;
4167
4169
  /**
4168
- * Default tier when a caller provisions without picking a size. The smallest
4169
- * tier that comfortably runs an agent harness (opencode + a repo clone + a
4170
- * build) — deliberately NOT a maxed box, so a thin task is cheap by default and
4171
- * a heavy one opts up explicitly.
4170
+ * The platform's default tier, served as `default` by `GET /v1/shapes`. An
4171
+ * unsized create is granted this tier's CPU and memory and reports the grant
4172
+ * in `resources`; its DISK is currently held below this tier (see that
4173
+ * endpoint's description), so expand the tier locally only when you also send
4174
+ * it as a request.
4172
4175
  */
4173
4176
  declare const DEFAULT_SANDBOX_SIZE: SandboxSizePreset;
4174
- /** The resources for a named tier, as a fresh object (never the shared preset).
4175
- * Fails loud on an unknown key rather than spreading `undefined` into an empty
4176
- * resources object — a silent zero would send no compute request downstream. */
4177
- declare function sandboxResourcesForSize(size: SandboxSizePreset): SandboxResources;
4177
+ /**
4178
+ * The resources for a named tier, as a fresh object (never the shared preset).
4179
+ * Pass the `presets` from {@link Sandbox.shapes} to expand the tier to what
4180
+ * the serving deployment defines; without them the pinned mirror applies.
4181
+ * Fails loud on an unknown key rather than spreading `undefined` into an
4182
+ * empty resources object — a silent zero would send no compute request
4183
+ * downstream.
4184
+ */
4185
+ declare function sandboxResourcesForSize(size: SandboxSizePreset, presets?: ReadonlyArray<SandboxShapePreset>): SandboxResources;
4178
4186
  /**
4179
4187
  * Resolve a caller's size intent to concrete {@link SandboxResources}. Raw
4180
4188
  * `resources` win (an explicit cpu/memory request is authoritative); else a
4181
- * named `size` expands to its preset; else `undefined` (the caller applies its
4182
- * own default). Raw and preset are intentionally exclusive at the schema layer —
4183
- * if both arrive here, the explicit numbers take precedence rather than being
4184
- * silently merged.
4189
+ * named `size` expands to its preset; else `undefined` (the API applies
4190
+ * {@link DEFAULT_SANDBOX_SIZE}). Raw and preset are intentionally exclusive at
4191
+ * the schema layer — if both arrive here, the explicit numbers take precedence
4192
+ * rather than being silently merged.
4185
4193
  */
4186
4194
  declare function resolveSandboxResources(opts: {
4187
4195
  size?: SandboxSizePreset;
4188
4196
  resources?: SandboxResources;
4197
+ presets?: ReadonlyArray<SandboxShapePreset>;
4189
4198
  }): SandboxResources | undefined;
4190
4199
  //#endregion
4191
4200
  //#region src/router-search.d.ts
@@ -4438,4 +4447,4 @@ interface RouterEvalMatrixCaseResult {
4438
4447
  }
4439
4448
  declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
4440
4449
  //#endregion
4441
- export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
4450
+ export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };