@tangle-network/sandbox 0.9.0 → 0.9.1-develop.20260624210934.e2730e8

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.
@@ -679,6 +679,45 @@ interface SandboxConnection {
679
679
  /** Web terminal URL if `webTerminalEnabled` was true during creation */
680
680
  webTerminalUrl?: string;
681
681
  }
682
+ /**
683
+ * One attributed step in a sandbox cold-start, as emitted by the
684
+ * platform startup pipeline. Mirrors the platform
685
+ * `StartupOperationTiming` shape one-to-one.
686
+ *
687
+ * - `operation` is by convention `<service>.<phase>`
688
+ * (e.g. `host-agent.container_create`).
689
+ * - `durationMs` is wall-clock time the step took. The platform
690
+ * marks it optional on `skipped` steps, so it is optional here too.
691
+ */
692
+ interface StartupOperation {
693
+ /** `<service>.<phase>` operation name. */
694
+ operation: string;
695
+ /** Service that performed the step, when attributed. */
696
+ service?: string;
697
+ /** Terminal status of the step (e.g. `completed`, `skipped`, `error`). */
698
+ status?: string;
699
+ /** Wall-clock duration of the step in milliseconds, when measured. */
700
+ durationMs?: number;
701
+ /** PII-scrubbed step detail (counts, ids, error codes). */
702
+ metadata?: Record<string, unknown>;
703
+ }
704
+ /**
705
+ * The startup breakdown for a sandbox cold-start. Returned by
706
+ * {@link SandboxInstance.startupDiagnostics} so a customer can read where
707
+ * provisioning time went (host selection, container create/start, health
708
+ * checks, runtime readiness, workspace setup, etc.).
709
+ *
710
+ * `operations` is the raw ordered list from the platform. `phases`
711
+ * is a derived convenience map of operation name → `durationMs` for the
712
+ * steps that reported a duration; steps without a measured duration are
713
+ * omitted from `phases` but still present in `operations`.
714
+ */
715
+ interface StartupDiagnostics {
716
+ /** Ordered startup steps exactly as the platform emitted them. */
717
+ operations: StartupOperation[];
718
+ /** Derived map of operation name → measured duration in milliseconds. */
719
+ phases: Record<string, number>;
720
+ }
682
721
  /**
683
722
  * Full sandbox information returned from the API.
684
723
  */
@@ -703,6 +742,13 @@ interface SandboxInfo {
703
742
  expiresAt?: Date;
704
743
  /** Error message if status is 'failed' */
705
744
  error?: string;
745
+ /**
746
+ * Startup phase breakdown, present only on the create response (the
747
+ * platform emits it once, at provision time). Use
748
+ * {@link SandboxInstance.startupDiagnostics} rather than reading this
749
+ * directly.
750
+ */
751
+ startupDiagnostics?: StartupDiagnostics;
706
752
  /** Resolved egress policy */
707
753
  egressPolicy?: EgressPolicy;
708
754
  /** Source of the egress policy */
@@ -937,13 +983,77 @@ interface InstalledTool {
937
983
  /**
938
984
  * Result of an agent prompt.
939
985
  */
986
+ /**
987
+ * Granular outcome of an agent run.
988
+ * - `success` — reached a terminal event with no run-level error and no failed
989
+ * tool. A tool-only turn (no text) succeeds.
990
+ * - `failed` — a run-level error event, or any failed (`isError`) tool, or the
991
+ * stream ended with no terminal event.
992
+ * - `blocked_on_approval` — a tool hit a hub approval gate; resolve it, then
993
+ * re-run. See {@link AgentApprovalRequirement}.
994
+ * - `awaiting_question` — the agent asked a question and the turn ended without
995
+ * an answer. See {@link AgentQuestionRequest}.
996
+ */
997
+ type AgentRunStatus = "success" | "failed" | "blocked_on_approval" | "awaiting_question";
998
+ /**
999
+ * A tool the agent invoked during a run. `isError` flags a failed call
1000
+ * (errored, timed out, or rejected — e.g. a hub approval gate). Failed tools
1001
+ * are recorded, not dropped, so callers can inspect what the agent attempted.
1002
+ */
1003
+ interface AgentToolInvocation {
1004
+ toolName: string;
1005
+ input?: unknown;
1006
+ result?: unknown;
1007
+ isError?: boolean;
1008
+ }
1009
+ /**
1010
+ * A hub approval gate the agent hit mid-run. Present on a result when
1011
+ * `status === "blocked_on_approval"`. Approve with the CLI
1012
+ * (`tangle hub approvals approve <approvalId>`) or the hub SDK, then re-run.
1013
+ */
1014
+ interface AgentApprovalRequirement {
1015
+ /**
1016
+ * Approval id to act on. `undefined` when the in-sandbox hub bridge did not
1017
+ * preserve the structured approval object — surfaced honestly rather than
1018
+ * invented; inspect `message` in that case.
1019
+ */
1020
+ approvalId?: string;
1021
+ /** Hub connection the gated tool belongs to, when known. */
1022
+ connectionId?: string;
1023
+ /** The tool error message that surfaced the gate. */
1024
+ message?: string;
1025
+ }
1026
+ /**
1027
+ * A question the agent asked mid-run. Present on a result when
1028
+ * `status === "awaiting_question"`. Answer via
1029
+ * `box.session(id).answer({ [questionId]: [...selected] })`, then re-run.
1030
+ */
1031
+ interface AgentQuestionRequest {
1032
+ /** Question id to pass to `session.answer`. */
1033
+ questionId: string;
1034
+ /** The questions payload the agent emitted (prompt + options per entry). */
1035
+ questions: unknown;
1036
+ }
940
1037
  interface PromptResult {
941
- /** Whether the prompt completed successfully */
1038
+ /**
1039
+ * Whether the run succeeded. Shorthand for `status === "success"`: true only
1040
+ * when the run reached a terminal event with no run-level error and no failed
1041
+ * tool. (Text presence is no longer part of this — a tool-only turn
1042
+ * succeeds.)
1043
+ */
942
1044
  success: boolean;
1045
+ /** Granular run outcome. */
1046
+ status: AgentRunStatus;
943
1047
  /** Agent's response text */
944
1048
  response?: string;
945
- /** Error message if failed */
1049
+ /** Error message when the run did not succeed */
946
1050
  error?: string;
1051
+ /** Tool calls the agent made this run, including failures (`isError`). */
1052
+ toolInvocations?: AgentToolInvocation[];
1053
+ /** Set when `status === "blocked_on_approval"`. */
1054
+ approval?: AgentApprovalRequirement;
1055
+ /** Set when `status === "awaiting_question"`. */
1056
+ question?: AgentQuestionRequest;
947
1057
  /** Trace ID for debugging */
948
1058
  traceId?: string;
949
1059
  /** Duration in milliseconds */
@@ -953,6 +1063,8 @@ interface PromptResult {
953
1063
  inputTokens: number;
954
1064
  outputTokens: number;
955
1065
  };
1066
+ /** Provider-reported model cost in USD, when the runtime emitted it. */
1067
+ costUsd?: number;
956
1068
  }
957
1069
  type PromptInputPart = {
958
1070
  type: "text";
@@ -1251,6 +1363,15 @@ interface WaitForOptions {
1251
1363
  */
1252
1364
  onProgress?: (event: ProvisionEvent) => void;
1253
1365
  }
1366
+ /**
1367
+ * Options for resuming a stopped sandbox.
1368
+ */
1369
+ interface ResumeOptions {
1370
+ /** Timeout in milliseconds for the resume request */
1371
+ timeoutMs?: number;
1372
+ /** AbortSignal for cancellation */
1373
+ signal?: AbortSignal;
1374
+ }
1254
1375
  /**
1255
1376
  * Usage information for the account.
1256
1377
  */
@@ -1385,6 +1506,27 @@ interface TaskResult extends PromptResult {
1385
1506
  /** Session ID for the task (can be used to continue) */
1386
1507
  sessionId: string;
1387
1508
  }
1509
+ /**
1510
+ * Live whole-sandbox resource usage, read from the container cgroup.
1511
+ *
1512
+ * Memory is point-in-time (`memoryCurrentMb`) plus a high-water mark
1513
+ * (`memoryPeakMb`). CPU is a cumulative counter in microseconds; compute
1514
+ * utilization from two samples: `cpu% = Δcpu_usec / (Δwall_ms * 10)`.
1515
+ */
1516
+ interface SandboxResourceUsage {
1517
+ /** Cgroup version (1 or 2). */
1518
+ cgroupVersion: number;
1519
+ /** Current resident memory, MB. */
1520
+ memoryCurrentMb: number;
1521
+ /** Peak resident memory since start, MB (null when unavailable). */
1522
+ memoryPeakMb: number | null;
1523
+ /** Memory limit, MB (null when unlimited). */
1524
+ memoryLimitMb: number | null;
1525
+ /** Cumulative CPU time consumed, microseconds. */
1526
+ cpuUsageUsec: number;
1527
+ /** Epoch ms when sampled. */
1528
+ sampledAtMs: number;
1529
+ }
1388
1530
  /**
1389
1531
  * Lifecycle state of an agent session inside a sandbox.
1390
1532
  */
@@ -4304,7 +4446,9 @@ declare function otelTraceIdForTangleTrace(traceId: string): string;
4304
4446
  * HTTP client interface for making requests.
4305
4447
  */
4306
4448
  interface HttpClient {
4307
- fetch(path: string, options?: RequestInit): Promise<Response>;
4449
+ fetch(path: string, options?: RequestInit, fetchOptions?: {
4450
+ timeoutMs?: number;
4451
+ }): Promise<Response>;
4308
4452
  getApiKey?(): string | undefined;
4309
4453
  }
4310
4454
  /**
@@ -4381,6 +4525,22 @@ declare class SandboxInstance {
4381
4525
  get error(): string | undefined;
4382
4526
  /** Web terminal URL for browser-based access */
4383
4527
  get url(): string | undefined;
4528
+ /**
4529
+ * The 12-phase startup breakdown (storage_provision, host_select, edge_bind,
4530
+ * edge_ready, egress_proxy, docker_pull/create/start, sidecar_boot,
4531
+ * health_check, …) the platform emitted when this sandbox was provisioned.
4532
+ *
4533
+ * Present only on a freshly-created box; `null` for a box resolved by id or
4534
+ * when the runtime did not report diagnostics. Use `.phases` for the
4535
+ * operation-name → durationMs map.
4536
+ *
4537
+ * @example
4538
+ * ```typescript
4539
+ * const d = box.startupDiagnostics();
4540
+ * if (d) console.log(`provision phases: ${JSON.stringify(d.phases)}`);
4541
+ * ```
4542
+ */
4543
+ startupDiagnostics(): StartupDiagnostics | null;
4384
4544
  /**
4385
4545
  * Serialize to the public sandbox shape for logs and structured
4386
4546
  * output. Secrets in `connection` (currently `authToken`) are
@@ -4577,12 +4737,26 @@ declare class SandboxInstance {
4577
4737
  * Stream events from an agent prompt.
4578
4738
  * Use this for real-time updates during agent execution.
4579
4739
  *
4740
+ * Guarantees a terminal event on every non-cancelled path: a clean run
4741
+ * ends with the runtime's `result`/`done`; a failure (pre-stream HTTP
4742
+ * error, mid-stream network drop, timeout, or reconnect exhaustion) is
4743
+ * surfaced as an in-band `error` event followed by a synthetic `done`,
4744
+ * never a thrown generator. Caller-initiated cancellation (aborting
4745
+ * `options.signal`) ends the stream silently with no synthetic terminal.
4746
+ *
4580
4747
  * Automatically reconnects via the runtime event replay endpoint if the
4581
- * SSE stream drops before a terminal event (`result` or `done`) is received.
4582
- * Reconnection is transparent — replayed events that were already yielded
4583
- * (based on event ID tracking) are deduplicated.
4748
+ * SSE stream drops before a terminal event (`result` or `done`) is
4749
+ * received. Reconnection is transparent — replayed events that were
4750
+ * already yielded (based on event ID tracking) are deduplicated.
4584
4751
  */
4585
4752
  streamPrompt(message: string | PromptInputPart[], options?: PromptOptions): AsyncGenerator<SandboxEvent>;
4753
+ /**
4754
+ * Inner prompt stream: opens the SSE connection and reconnects on silent
4755
+ * drops. May throw (pre-stream HTTP error, timeout, reconnect exhausted);
4756
+ * the public `streamPrompt` wrapper converts those throws into a terminal
4757
+ * `error` + `done` so callers never see a thrown generator.
4758
+ */
4759
+ private streamPromptInner;
4586
4760
  /**
4587
4761
  * Stream sandbox lifecycle and activity events.
4588
4762
  */
@@ -4681,6 +4855,21 @@ declare class SandboxInstance {
4681
4855
  * ```
4682
4856
  */
4683
4857
  search(pattern: string, options?: SearchOptions): AsyncGenerator<SearchMatch>;
4858
+ /**
4859
+ * Live whole-sandbox resource usage (memory + CPU) from the container cgroup.
4860
+ *
4861
+ * Returns `null` when cgroup stats are unavailable (non-Linux host). Memory is
4862
+ * in MB; `memoryPeakMb` is the high-water mark since the sandbox started. CPU
4863
+ * is a cumulative microsecond counter — sample twice and compute
4864
+ * `cpu% = ΔcpuUsageUsec / (ΔsampledAtMs * 10)` for utilization.
4865
+ *
4866
+ * @example
4867
+ * ```typescript
4868
+ * const r = await box.resourceUsage();
4869
+ * if (r) console.log(`peak ${r.memoryPeakMb} MB`);
4870
+ * ```
4871
+ */
4872
+ resourceUsage(): Promise<SandboxResourceUsage | null>;
4684
4873
  /**
4685
4874
  * Git capability object for repository operations.
4686
4875
  *
@@ -5133,7 +5322,7 @@ declare class SandboxInstance {
5133
5322
  /**
5134
5323
  * Resume a stopped sandbox.
5135
5324
  */
5136
- resume(): Promise<void>;
5325
+ resume(options?: ResumeOptions): Promise<void>;
5137
5326
  /**
5138
5327
  * Delete the sandbox permanently.
5139
5328
  */
@@ -5334,4 +5523,4 @@ declare class SandboxInstance {
5334
5523
  _answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
5335
5524
  }
5336
5525
  //#endregion
5337
- export { CreateRequestOptions as $, SandboxFleetToken as $n, AgentProfile as $r, MkdirOptions as $t, AddUserOptions as A, SSHCommandDescriptor as An, SnapshotInfo as Ar, ForkOptions as At, BatchResult as B, SandboxFleetDispatchResponse as Bn, TeeAttestationResponse as Br, HostAgentRuntimeBackend as Bt, SandboxMcpConfig as C, PublishPublicTemplateOptions as Cn, SecretInfo as Cr, FleetDispatchResultBufferOptions as Ct, buildSandboxMcpConfig as D, ReconcileSandboxFleetsOptions as Dn, SessionListOptions as Dr, FleetMachineId as Dt, buildControlPlaneMcpConfig as E, ReapExpiredSandboxFleetsResult as En, SessionInfo as Er, FleetExecDispatchResult as Et, BackendManager as F, SandboxEvent as Fn, SubscriptionInfo as Fr, GitConfig as Ft, CheckpointResult as G, SandboxFleetMachine as Gn, TurnDriveResult as Gr, IntelligenceReportSubjectType as Gt, BatchTaskResult as H, SandboxFleetDriverTimings as Hn, TeePublicKeyResponse as Hr, IntelligenceReport as Ht, BackendStatus as I, SandboxFleetArtifact as In, TaskOptions as Ir, GitDiff as It, CodeLanguage as J, SandboxFleetMachineSpec as Jn, UploadProgress as Jr, ListOptions as Jt, CodeExecutionOptions as K, SandboxFleetMachineMeteredUsage as Kn, UpdateUserOptions as Kr, IntelligenceReportWindow as Kt, BackendType as L, SandboxFleetArtifactSpec as Ln, TaskResult as Lr, GitStatus as Lt, BackendCapabilities as M, SandboxClientConfig as Mn, SnapshotResult as Mr, GitAuth as Mt, BackendConfig as N, SandboxConnection as Nn, SshKeysManager as Nr, GitBranch as Nt, AcceleratorKind as O, ReconcileSandboxFleetsResult as On, SessionMessage as Or, FleetPromptDispatchOptions as Ot, BackendInfo as P, SandboxEnvironment as Pn, StorageConfig as Pr, GitCommit as Pt, CreateIntelligenceReportOptions as Q, SandboxFleetPolicy as Qn, WriteManyOptions as Qr, MintScopedTokenOptions as Qt, BatchEvent as R, SandboxFleetCostEstimate as Rn, TeeAttestationOptions as Rr, GpuType as Rt, SANDBOX_MCP_SERVER_NAME as S, PublicTemplateVersionInfo as Sn, SearchOptions as Sr, FleetDispatchResultBuffer as St, SandboxMcpServerEntry as T, ReapExpiredSandboxFleetsOptions as Tn, SessionEventStreamOptions as Tr, FleetExecDispatchOptions as Tt, CheckpointInfo as U, SandboxFleetInfo as Un, TokenRefreshHandler as Ur, IntelligenceReportBudget as Ut, BatchTask as V, SandboxFleetDriverCapability as Vn, TeePublicKey as Vr, InstalledTool as Vt, CheckpointOptions as W, SandboxFleetIntelligenceEnvelope as Wn, ToolsConfig as Wr, IntelligenceReportCompareTo as Wt, CodeResultPart as X, SandboxFleetManifestMachine as Xn, WaitForOptions as Xr, ListSandboxOptions as Xt, CodeResult as Y, SandboxFleetManifest as Yn, UsageInfo as Yr, ListSandboxFleetOptions as Yt, CompletedTurnResult as Z, SandboxFleetOperationsSummary as Zn, WriteManyFile as Zr, McpServerConfig as Zt, RespondToPermissionOptions as _, ProvisionEvent as _n, SandboxTraceOptions as _r, ExecOptions as _t, TraceExportSink as a, AgentProfileModelHints as ai, PreviewLinkInfo as an, SandboxFleetWorkspace as ar, DirectoryPermission as at, BuildSandboxMcpConfigOptions as b, ProvisionStep as bn, ScopedTokenScope as br, FileSystem as bt, otelTraceIdForTangleTrace as c, AgentProfileResourceRef as ci, ProcessInfo as cn, SandboxFleetWorkspaceSnapshotResult as cr, DownloadOptions as ct, InteractiveAuthFile as d, AgentProfileValidationResult as di, ProcessSignal as dn, SandboxPermissionsConfig as dr, DriverConfig as dt, AgentProfileCapabilities as ei, NetworkConfig as en, SandboxFleetTraceBundle as er, CreateSandboxFleetOptions as et, InteractiveSessionHandle as f, AgentSubagentProfile as fi, ProcessSpawnOptions as fn, SandboxResources as fr, DriverInfo as ft, PermissionResponseResult as g, mergeAgentProfiles as gi, PromptResult as gn, SandboxTraceExport as gr, EventStreamOptions as gt, InterruptResult as h, defineInlineResource as hi, PromptOptions as hn, SandboxTraceEvent as hr, EgressPolicy as ht, TraceExportResult as i, AgentProfileMcpServer as ii, PermissionsManager as in, SandboxFleetUsage as ir, DeleteOptions as it, AttachSandboxFleetMachineOptions as j, SSHCredentials as jn, SnapshotOptions as jr, ForkResult as jt, AccessPolicyRule as k, RunCodeOptions as kn, SessionStatus as kr, FleetPromptDispatchResult as kt, toOtelJson as l, AgentProfileResources as li, ProcessLogEntry as ln, SandboxInfo as lr, DownloadProgress as lt, InteractiveSessionInfo as m, defineGitHubResource as mi, PromptInputPart as mn, SandboxTraceBundle as mr, EgressManager as mt, SandboxInstance as n, AgentProfileConnection as ni, NonHostAgentDriverConfig as nn, SandboxFleetTraceExport as nr, CreateSandboxFleetWithCoordinatorOptions as nt, buildTraceExportPayload as o, AgentProfilePermissionValue as oi, PreviewLinkManager as on, SandboxFleetWorkspaceReconcileResult as or, DispatchPromptOptions as ot, InteractiveSessionHost as p, defineAgentProfile as pi, ProcessStatus as pn, SandboxStatus as pr, DriverType as pt, CodeExecutionResult as q, SandboxFleetMachineRecord as qn, UploadOptions as qr, ListMessagesOptions as qt, TraceExportFormat as r, AgentProfileFileMount as ri, PermissionLevel as rn, SandboxFleetTraceOptions as rr, CreateSandboxOptions as rt, exportTraceBundle as s, AgentProfilePrompt as si, Process as sn, SandboxFleetWorkspaceRestoreResult as sr, DispatchedSession as st, HttpClient as t, AgentProfileConfidential as ti, NetworkManager as tn, SandboxFleetTraceEvent as tr, CreateSandboxFleetTokenOptions as tt, SandboxSession as u, AgentProfileValidationIssue as ui, ProcessManager as un, SandboxIntelligenceEnvelope as ur, DriveTurnOptions as ut, StartInteractiveOptions as v, ProvisionResult as vn, SandboxUser as vr, ExecResult as vt, SandboxMcpEndpoint as w, PublishPublicTemplateVersionOptions as wn, SecretsManager as wr, FleetDispatchStreamOptions as wt, CONTROL_PLANE_MCP_SERVER_NAME as x, PublicTemplateInfo as xn, SearchMatch as xr, FleetDispatchCancelResult as xt, BuildControlPlaneMcpConfigOptions as y, ProvisionStatus as yn, ScopedToken as yr, FileInfo as yt, BatchOptions as z, SandboxFleetDispatchFailureClass as zn, TeeAttestationReport as zr, HostAgentDriverConfig as zt };
5526
+ export { CreateRequestOptions as $, SandboxFleetToken as $n, WaitForOptions as $r, MkdirOptions as $t, AddUserOptions as A, SSHCommandDescriptor as An, SessionStatus as Ar, ForkOptions as At, BatchResult as B, SandboxFleetDispatchResponse as Bn, TaskResult as Br, HostAgentRuntimeBackend as Bt, SandboxMcpConfig as C, PublishPublicTemplateOptions as Cn, SearchOptions as Cr, FleetDispatchResultBufferOptions as Ct, buildSandboxMcpConfig as D, ReconcileSandboxFleetsOptions as Dn, SessionInfo as Dr, FleetMachineId as Dt, buildControlPlaneMcpConfig as E, ReapExpiredSandboxFleetsResult as En, SessionEventStreamOptions as Er, FleetExecDispatchResult as Et, BackendManager as F, SandboxEvent as Fn, StartupDiagnostics as Fr, GitConfig as Ft, CheckpointResult as G, SandboxFleetMachine as Gn, TeePublicKeyResponse as Gr, IntelligenceReportSubjectType as Gt, BatchTaskResult as H, SandboxFleetDriverTimings as Hn, TeeAttestationReport as Hr, IntelligenceReport as Ht, BackendStatus as I, SandboxFleetArtifact as In, StartupOperation as Ir, GitDiff as It, CodeLanguage as J, SandboxFleetMachineSpec as Jn, TurnDriveResult as Jr, ListOptions as Jt, CodeExecutionOptions as K, SandboxFleetMachineMeteredUsage as Kn, TokenRefreshHandler as Kr, IntelligenceReportWindow as Kt, BackendType as L, SandboxFleetArtifactSpec as Ln, StorageConfig as Lr, GitStatus as Lt, BackendCapabilities as M, SandboxClientConfig as Mn, SnapshotOptions as Mr, GitAuth as Mt, BackendConfig as N, SandboxConnection as Nn, SnapshotResult as Nr, GitBranch as Nt, AcceleratorKind as O, ReconcileSandboxFleetsResult as On, SessionListOptions as Or, FleetPromptDispatchOptions as Ot, BackendInfo as P, SandboxEnvironment as Pn, SshKeysManager as Pr, GitCommit as Pt, CreateIntelligenceReportOptions as Q, SandboxFleetPolicy as Qn, UsageInfo as Qr, MintScopedTokenOptions as Qt, BatchEvent as R, SandboxFleetCostEstimate as Rn, SubscriptionInfo as Rr, GpuType as Rt, SANDBOX_MCP_SERVER_NAME as S, PublicTemplateVersionInfo as Sn, SearchMatch as Sr, FleetDispatchResultBuffer as St, SandboxMcpServerEntry as T, ReapExpiredSandboxFleetsOptions as Tn, SecretsManager as Tr, FleetExecDispatchOptions as Tt, CheckpointInfo as U, SandboxFleetInfo as Un, TeeAttestationResponse as Ur, IntelligenceReportBudget as Ut, BatchTask as V, SandboxFleetDriverCapability as Vn, TeeAttestationOptions as Vr, InstalledTool as Vt, CheckpointOptions as W, SandboxFleetIntelligenceEnvelope as Wn, TeePublicKey as Wr, IntelligenceReportCompareTo as Wt, CodeResultPart as X, SandboxFleetManifestMachine as Xn, UploadOptions as Xr, ListSandboxOptions as Xt, CodeResult as Y, SandboxFleetManifest as Yn, UpdateUserOptions as Yr, ListSandboxFleetOptions as Yt, CompletedTurnResult as Z, SandboxFleetOperationsSummary as Zn, UploadProgress as Zr, McpServerConfig as Zt, RespondToPermissionOptions as _, defineGitHubResource as _i, ProvisionEvent as _n, SandboxTraceExport as _r, ExecOptions as _t, TraceExportSink as a, AgentProfileConnection as ai, PreviewLinkInfo as an, SandboxFleetWorkspace as ar, DirectoryPermission as at, BuildSandboxMcpConfigOptions as b, ProvisionStep as bn, ScopedToken as br, FileSystem as bt, otelTraceIdForTangleTrace as c, AgentProfileModelHints as ci, ProcessInfo as cn, SandboxFleetWorkspaceSnapshotResult as cr, DownloadOptions as ct, InteractiveAuthFile as d, AgentProfileResourceRef as di, ProcessSignal as dn, SandboxPermissionsConfig as dr, DriverConfig as dt, WriteManyFile as ei, NetworkConfig as en, SandboxFleetTraceBundle as er, CreateSandboxFleetOptions as et, InteractiveSessionHandle as f, AgentProfileResources as fi, ProcessSpawnOptions as fn, SandboxResourceUsage as fr, DriverInfo as ft, PermissionResponseResult as g, defineAgentProfile as gi, PromptResult as gn, SandboxTraceEvent as gr, EventStreamOptions as gt, InterruptResult as h, AgentSubagentProfile as hi, PromptOptions as hn, SandboxTraceBundle as hr, EgressPolicy as ht, TraceExportResult as i, AgentProfileConfidential as ii, PermissionsManager as in, SandboxFleetUsage as ir, DeleteOptions as it, AttachSandboxFleetMachineOptions as j, SSHCredentials as jn, SnapshotInfo as jr, ForkResult as jt, AccessPolicyRule as k, RunCodeOptions as kn, SessionMessage as kr, FleetPromptDispatchResult as kt, toOtelJson as l, AgentProfilePermissionValue as li, ProcessLogEntry as ln, SandboxInfo as lr, DownloadProgress as lt, InteractiveSessionInfo as m, AgentProfileValidationResult as mi, PromptInputPart as mn, SandboxStatus as mr, EgressManager as mt, SandboxInstance as n, AgentProfile as ni, NonHostAgentDriverConfig as nn, SandboxFleetTraceExport as nr, CreateSandboxFleetWithCoordinatorOptions as nt, buildTraceExportPayload as o, AgentProfileFileMount as oi, PreviewLinkManager as on, SandboxFleetWorkspaceReconcileResult as or, DispatchPromptOptions as ot, InteractiveSessionHost as p, AgentProfileValidationIssue as pi, ProcessStatus as pn, SandboxResources as pr, DriverType as pt, CodeExecutionResult as q, SandboxFleetMachineRecord as qn, ToolsConfig as qr, ListMessagesOptions as qt, TraceExportFormat as r, AgentProfileCapabilities as ri, PermissionLevel as rn, SandboxFleetTraceOptions as rr, CreateSandboxOptions as rt, exportTraceBundle as s, AgentProfileMcpServer as si, Process as sn, SandboxFleetWorkspaceRestoreResult as sr, DispatchedSession as st, HttpClient as t, WriteManyOptions as ti, NetworkManager as tn, SandboxFleetTraceEvent as tr, CreateSandboxFleetTokenOptions as tt, SandboxSession as u, AgentProfilePrompt as ui, ProcessManager as un, SandboxIntelligenceEnvelope as ur, DriveTurnOptions as ut, StartInteractiveOptions as v, defineInlineResource as vi, ProvisionResult as vn, SandboxTraceOptions as vr, ExecResult as vt, SandboxMcpEndpoint as w, PublishPublicTemplateVersionOptions as wn, SecretInfo as wr, FleetDispatchStreamOptions as wt, CONTROL_PLANE_MCP_SERVER_NAME as x, PublicTemplateInfo as xn, ScopedTokenScope as xr, FleetDispatchCancelResult as xt, BuildControlPlaneMcpConfigOptions as y, mergeAgentProfiles as yi, ProvisionStatus as yn, SandboxUser as yr, FileInfo as yt, BatchOptions as z, SandboxFleetDispatchFailureClass as zn, TaskOptions as zr, HostAgentDriverConfig as zt };