@tangle-network/sandbox 1.0.116 → 1.0.118

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.
Files changed (36) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +3 -3
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-Baj0Jv83.d.ts → agent-run-outcome-1zf14Qvo.d.ts} +2 -2
  6. package/dist/auth/index.js +1 -1
  7. package/dist/{browser-interactive-control-controller-BbbyXoS1.d.ts → browser-interactive-control-controller-DjgTiPSK.d.ts} +1 -1
  8. package/dist/{cli-auth-bundle-CeiYJKN-.js → cli-auth-bundle-BGZQl8pf.js} +3 -2
  9. package/dist/{client-JovtyXn7.d.ts → client-51zzwdCg.d.ts} +6 -16
  10. package/dist/{client-BPI3u-XB.js → client-DvLeWxd6.js} +9 -17
  11. package/dist/{core-ClEsx7E7.js → core-CPmZrgBo.js} +3 -3
  12. package/dist/core.d.ts +6 -6
  13. package/dist/core.js +3 -3
  14. package/dist/{index-C7B3bVLg.d.ts → index-DlCzW_SB.d.ts} +30 -184
  15. package/dist/index.d.ts +9 -9
  16. package/dist/index.js +6 -6
  17. package/dist/interactive-control.d.ts +1 -1
  18. package/dist/{interactive-controller-D6utTcix.js → interactive-controller-BQzNEYZu.js} +1 -1
  19. package/dist/{interactive-controller-BI8pMiTR.d.ts → interactive-controller-U_ClwSA2.d.ts} +3 -3
  20. package/dist/{lines-Cra3SJs-.d.ts → lines-xAhkGjwI.d.ts} +1 -1
  21. package/dist/lines.d.ts +1 -1
  22. package/dist/{local-cli-auth-6X-HK6ll.js → local-cli-auth-BZMvbmFe.js} +1 -1
  23. package/dist/{preview-BuwEdvzT.d.ts → preview-Dhe5MKdu.d.ts} +3 -3
  24. package/dist/{profile-schema-DFZTAn1S.js → profile-schema--qCcNrz1.js} +6 -2
  25. package/dist/{public-templates-BFPbBQSO.d.ts → public-templates-B-bkdTUO.d.ts} +2 -2
  26. package/dist/public-templates.d.ts +1 -1
  27. package/dist/runtime.d.ts +5 -5
  28. package/dist/runtime.js +1 -1
  29. package/dist/{sandbox-BB5cGWAB.js → sandbox-gF473YxX.js} +45 -199
  30. package/dist/select-seat-command.d.ts +1 -1
  31. package/dist/tangle/index.d.ts +1 -1
  32. package/dist/tangle/index.js +1 -1
  33. package/dist/{tangle-rjPAj5Lh.js → tangle-TNrvVHbo.js} +1 -1
  34. package/dist/{terminal-stream-types-pMCEfsJv.d.ts → terminal-stream-types-CpPRMcYv.d.ts} +160 -1
  35. package/dist/{types-BEYAZXvg.d.ts → types-DeLaTirQ.d.ts} +24 -99
  36. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-C7B3bVLg.js";
2
- import { Ci as CodeExecutionOptions, Ha as CodeExecutionResult, To as BackendType, Ua as CodeLanguage, Wa as CodeResultPart, bn as SandboxFleetParent, ga as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-BEYAZXvg.js";
3
- import { t as Sandbox } from "../client-JovtyXn7.js";
4
- import { u as PreviewAuthorizer } from "../preview-BuwEdvzT.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-DlCzW_SB.js";
2
+ import { Ci as CodeExecutionOptions, Ha as CodeExecutionResult, To as BackendType, Ua as CodeLanguage, Wa as CodeResultPart, bn as SandboxFleetParent, ga as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-DeLaTirQ.js";
3
+ import { t as Sandbox } from "../client-51zzwdCg.js";
4
+ import { u as PreviewAuthorizer } from "../preview-Dhe5MKdu.js";
5
5
  import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
6
6
  import { JSONSchema } from "zod/v4/core";
7
7
  import { ToolSet } from "ai";
@@ -1,8 +1,8 @@
1
1
  import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CQJwjQkZ.js";
2
- import { k as assertCurrentBackendType } from "../interactive-controller-D6utTcix.js";
3
- import { t as SandboxInstance } from "../sandbox-BB5cGWAB.js";
2
+ import { k as assertCurrentBackendType } from "../interactive-controller-BQzNEYZu.js";
3
+ import { t as SandboxInstance } from "../sandbox-gF473YxX.js";
4
4
  import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-ystNl7Ae.js";
5
- import { t as Sandbox } from "../client-BPI3u-XB.js";
5
+ import { t as Sandbox } from "../client-DvLeWxd6.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -1,2 +1,2 @@
1
- import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BuwEdvzT.js";
1
+ import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-Dhe5MKdu.js";
2
2
  export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
@@ -1,4 +1,4 @@
1
- import { r as agentProfileSchema } from "../profile-schema-DFZTAn1S.js";
1
+ import { r as agentProfileSchema } from "../profile-schema--qCcNrz1.js";
2
2
  import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-C-wv9XN3.js";
3
3
  //#region src/agent/preview-policy.ts
4
4
  /** Channel-neutral preview tool selection from a host-authored profile. */
@@ -1,5 +1,5 @@
1
- import { V as InteractionRequest } from "./terminal-stream-types-pMCEfsJv.js";
2
- import { Gi as AgentToolInvocation, Hi as AgentApprovalRequirement, Ui as AgentQuestionRequest, Wi as AgentRunStatus, Zi as DurablePlanSnapshot, sa as SandboxEvent } from "./types-BEYAZXvg.js";
1
+ import { V as InteractionRequest } from "./terminal-stream-types-CpPRMcYv.js";
2
+ import { Gi as AgentToolInvocation, Hi as AgentApprovalRequirement, Ui as AgentQuestionRequest, Wi as AgentRunStatus, Zi as DurablePlanSnapshot, sa as SandboxEvent } from "./types-DeLaTirQ.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -1,4 +1,4 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-CeiYJKN-.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-BGZQl8pf.js";
2
2
  //#region src/auth/tokens.ts
3
3
  const textEncoder = new TextEncoder();
4
4
  const textDecoder = new TextDecoder();
@@ -1,4 +1,4 @@
1
- import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-pMCEfsJv.js";
1
+ import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-CpPRMcYv.js";
2
2
 
3
3
  //#region src/interactive-types.d.ts
4
4
  /** Cancellation for an interactive SDK request. */
@@ -1,4 +1,4 @@
1
- import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
1
+ import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema--qCcNrz1.js";
2
2
  import { z } from "zod";
3
3
  import "@tangle-network/agent-interface/harness-capabilities";
4
4
  //#region ../../../packages/cli-agent-registry/dist/harness-contracts-CmeBS1Uq.mjs
@@ -1077,7 +1077,7 @@ const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
1077
1077
  z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
1078
1078
  new Set(ALL_BACKEND_TYPES);
1079
1079
  //#endregion
1080
- //#region ../../../packages/cli-agent-registry/dist/specs-m-BPasGj.mjs
1080
+ //#region ../../../packages/cli-agent-registry/dist/specs-CgB3EbXw.mjs
1081
1081
  z.globalRegistry.add(agentProfileSchema, {
1082
1082
  id: "AgentProfile",
1083
1083
  ...agentProfileJsonSchema
@@ -1199,6 +1199,7 @@ const CLI_AGENT_SPECS = [
1199
1199
  runtime: HARNESSES["claude-code"].lifecycle.runtime,
1200
1200
  messageStorageDir: ".claude-code",
1201
1201
  cliDirLayout: {
1202
+ homeSessionData: [".cache/claude-cli-nodejs/-*/mcp-logs-*/*.jsonl"],
1202
1203
  sessionData: [
1203
1204
  "plans/**",
1204
1205
  "file-history/**",
@@ -1,8 +1,8 @@
1
- import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-C7B3bVLg.js";
2
- import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError } from "./terminal-stream-types-pMCEfsJv.js";
3
- import { $i as IntelligenceReport, $n as TeeAttestationReport, $r as ExecOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as HttpClient, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, Dr as DownloadOptions, Ei as ManagedProcessResumeOptions, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Ga as ExecResult, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as CreateIntelligenceReportOptions, Kt as FleetMachineId, M as UsageInfo, Ma as GpuLeaseProviderName, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessRecord, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Ti as ManagedProcessOptions, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vi as BatchRunOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, _o as PublicBatchRunRequest, a as DeleteMatchingSandboxesResult, aa as PromptOptions, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, bo as BatchEvent, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, dn as SandboxFleetInfo, dr as SandboxShapePreset, ea as IntelligenceReportBudget, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, ga as BackendConfig, gn as SandboxFleetMachineSpec, hn as SandboxFleetMachineRecord, i as DeleteMatchingSandboxesOptions, ia as PromptInputPart, ii as SandboxEnvironment, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as SdkTimingHook, ki as ManagedProcessSpec, kn as SandboxFleetTraceOptions, kr as DownloadResult, ln as SandboxFleetDriverCapability, ma as TurnBackendConfig, mo as BatchResult, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as PromptResult, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReportWindow, sa as SandboxEvent, sr as SandboxResources, ta as IntelligenceReportCompareTo, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, vo as PublicBatchRunRequestInput, w as SecretsManager, wa as SecretBindingOptions, wi as ManagedProcessJobs, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-BEYAZXvg.js";
4
- import { t as LinesClient } from "./lines-Cra3SJs-.js";
5
- import { a as PublicTemplatesClient } from "./public-templates-BFPbBQSO.js";
1
+ import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-DlCzW_SB.js";
2
+ import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken, yt as SandboxError } from "./terminal-stream-types-CpPRMcYv.js";
3
+ import { $i as IntelligenceReport, $n as TeeAttestationReport, $r as ExecOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as HttpClient, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, Dr as DownloadOptions, Ei as ManagedProcessResumeOptions, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Ga as ExecResult, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as CreateIntelligenceReportOptions, Kt as FleetMachineId, M as UsageInfo, Ma as GpuLeaseProviderName, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessRecord, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Ti as ManagedProcessOptions, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vi as BatchRunOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, _o as PublicBatchRunRequest, a as DeleteMatchingSandboxesResult, aa as PromptOptions, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, bo as BatchEvent, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, dn as SandboxFleetInfo, dr as SandboxShapePreset, ea as IntelligenceReportBudget, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, ga as BackendConfig, gn as SandboxFleetMachineSpec, hn as SandboxFleetMachineRecord, i as DeleteMatchingSandboxesOptions, ia as PromptInputPart, ii as SandboxEnvironment, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as SdkTimingHook, ki as ManagedProcessSpec, kn as SandboxFleetTraceOptions, kr as DownloadResult, ln as SandboxFleetDriverCapability, ma as TurnBackendConfig, mo as BatchResult, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as PromptResult, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReportWindow, sa as SandboxEvent, sr as SandboxResources, ta as IntelligenceReportCompareTo, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, vo as PublicBatchRunRequestInput, w as SecretsManager, wa as SecretBindingOptions, wi as ManagedProcessJobs, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-DeLaTirQ.js";
4
+ import { t as LinesClient } from "./lines-xAhkGjwI.js";
5
+ import { a as PublicTemplatesClient } from "./public-templates-B-bkdTUO.js";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/backend-registry.d.ts
@@ -107,17 +107,7 @@ declare class SandboxTransport {
107
107
  getBaseUrl(): string;
108
108
  /** Fetch a Platform API path (e.g. the agent-profile catalog) with this key. */
109
109
  platformFetch(path: string, options?: RequestInit): Promise<Response>;
110
- /**
111
- * Make an authenticated HTTP request to the API.
112
- * This is exposed for use by SandboxInstance.
113
- *
114
- * `fetchOptions.timeoutMs` overrides the client-wide `this.timeoutMs`
115
- * for a single request. Slow data-plane operations (snapshot create
116
- * blocks the server up to 600s while the host-agent compresses and
117
- * uploads the rootfs) must pass a higher ceiling, otherwise the
118
- * default client timeout aborts mid-operation with a `TimeoutError`
119
- * even though the server is still working.
120
- */
110
+ /** Authenticated API fetch. Per-request timeout overrides the client ceiling for slow data-plane work. */
121
111
  fetch(path: string, options?: RequestInit, fetchOptions?: {
122
112
  timeoutMs?: number;
123
113
  }): Promise<Response>;
@@ -1,6 +1,6 @@
1
- import { C as encodePromptForWire, D as isBrowserRuntime, F as withoutCreateOnlyModelFields, O as applyRequestedModel, P as withProfileHarness, U as backendTypeSchema, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, o as requestInteractiveSessionToken } from "./interactive-controller-D6utTcix.js";
2
- import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
3
- import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRateLimitCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-BB5cGWAB.js";
1
+ import { C as encodePromptForWire, D as isBrowserRuntime, F as withoutCreateOnlyModelFields, O as applyRequestedModel, P as withProfileHarness, U as backendTypeSchema, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, o as requestInteractiveSessionToken } from "./interactive-controller-BQzNEYZu.js";
2
+ import { r as agentProfileSchema } from "./profile-schema--qCcNrz1.js";
3
+ import { A as normalizeSandboxCreateReceipt, B as createRetryDelayMs, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeProxySecretReceipt, G as waitForCreateRetry, H as isDeployWindowCreateError, I as normalizeSandboxShape, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, U as isRateLimitCreateError, V as generateIdempotencyKey, W as isRetryableCreateError, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as DEPLOY_WINDOW_RETRY_MS } from "./sandbox-gF473YxX.js";
4
4
  import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-ystNl7Ae.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
6
6
  import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
@@ -1211,11 +1211,11 @@ function isLocalSandboxEndpoint(baseUrl) {
1211
1211
  }
1212
1212
  }
1213
1213
  async function resolveLocalCliAuthFiles(backendType) {
1214
- const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-6X-HK6ll.js");
1214
+ const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BZMvbmFe.js");
1215
1215
  return discoverLocalCliAuthFiles(backendType);
1216
1216
  }
1217
1217
  async function loadLocalCliAuthExpectation(backendType) {
1218
- const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-6X-HK6ll.js");
1218
+ const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BZMvbmFe.js");
1219
1219
  return describe(backendType);
1220
1220
  }
1221
1221
  /**
@@ -1301,17 +1301,7 @@ var SandboxTransport = class {
1301
1301
  signal: this.signal ? combineAbortSignals([options?.signal ?? AbortSignal.timeout(this.timeoutMs), this.signal]) : options?.signal ?? AbortSignal.timeout(this.timeoutMs)
1302
1302
  });
1303
1303
  }
1304
- /**
1305
- * Make an authenticated HTTP request to the API.
1306
- * This is exposed for use by SandboxInstance.
1307
- *
1308
- * `fetchOptions.timeoutMs` overrides the client-wide `this.timeoutMs`
1309
- * for a single request. Slow data-plane operations (snapshot create
1310
- * blocks the server up to 600s while the host-agent compresses and
1311
- * uploads the rootfs) must pass a higher ceiling, otherwise the
1312
- * default client timeout aborts mid-operation with a `TimeoutError`
1313
- * even though the server is still working.
1314
- */
1304
+ /** Authenticated API fetch. Per-request timeout overrides the client ceiling for slow data-plane work. */
1315
1305
  async fetch(path, options, fetchOptions) {
1316
1306
  return fetchSandboxApi({
1317
1307
  baseUrl: this.baseUrl,
@@ -1330,8 +1320,10 @@ var SandboxTransport = class {
1330
1320
  }, path, options, fetchOptions);
1331
1321
  }
1332
1322
  parseInfo(data) {
1323
+ const id = data.id ?? "";
1333
1324
  return {
1334
- id: data.id ?? "",
1325
+ id,
1326
+ proxySecretReceipt: normalizeProxySecretReceipt(data.proxySecretReceipt, id),
1335
1327
  name: data.name,
1336
1328
  filesystemIncarnationId: data.filesystemIncarnationId,
1337
1329
  filesystemIncarnationProvenance: data.filesystemIncarnationProvenance,
@@ -1,8 +1,8 @@
1
- import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
2
- import { G as canonicalAgentProfileDigest } from "./sandbox-BB5cGWAB.js";
1
+ import { r as agentProfileSchema } from "./profile-schema--qCcNrz1.js";
2
+ import { K as canonicalAgentProfileDigest } from "./sandbox-gF473YxX.js";
3
3
  import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-ystNl7Ae.js";
4
4
  import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
5
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-CeiYJKN-.js";
5
+ import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BGZQl8pf.js";
6
6
  import { z } from "zod";
7
7
  //#region src/failure-kind.ts
8
8
  const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
package/dist/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-C7B3bVLg.js";
2
- import { Et as ValidationError, St as StateError, Tt as TimeoutError, bt as SandboxFailureDetail, ct as FileWriteConflictError, ft as NetworkError, gt as QuotaError, ht as ProfileFileMountPathError, it as CapabilityError, mt as PartialFailureError, nt as AuthError, pt as NotFoundError, vt as SandboxError, xt as ServerError, yt as SandboxErrorJson } from "./terminal-stream-types-pMCEfsJv.js";
3
- import { $r as ExecOptions, Ct as SessionMessageAdmission, Di as ManagedProcessState, Ei as ManagedProcessResumeOptions, Ga as ExecResult, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, Ja as SandboxEnvRecoveryView, La as WorkspaceImagePublishResult, Oi as ManagedProcessRecord, Ti as ManagedProcessOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, ar as CreateSandboxOptions, gr as NetworkConfig, ia as PromptInputPart, ki as ManagedProcessSpec, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, tt as ConversationTurnOptions, wi as ManagedProcessJobs, zn as SandboxInfo } from "./types-BEYAZXvg.js";
4
- import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-Cra3SJs-.js";
5
- import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-JovtyXn7.js";
6
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-BFPbBQSO.js";
1
+ import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-DlCzW_SB.js";
2
+ import { Ct as StateError, Dt as ValidationError, Et as TimeoutError, St as ServerError, _t as QuotaError, at as CapabilityError, bt as SandboxErrorJson, gt as ProfileFileMountPathError, ht as PartialFailureError, lt as FileWriteConflictError, mt as NotFoundError, pt as NetworkError, rt as AuthError, xt as SandboxFailureDetail, yt as SandboxError } from "./terminal-stream-types-CpPRMcYv.js";
3
+ import { $r as ExecOptions, Ct as SessionMessageAdmission, Di as ManagedProcessState, Ei as ManagedProcessResumeOptions, Ga as ExecResult, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, Ja as SandboxEnvRecoveryView, La as WorkspaceImagePublishResult, Oi as ManagedProcessRecord, Ti as ManagedProcessOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, ar as CreateSandboxOptions, gr as NetworkConfig, ia as PromptInputPart, ki as ManagedProcessSpec, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, tt as ConversationTurnOptions, wi as ManagedProcessJobs, zn as SandboxInfo } from "./types-DeLaTirQ.js";
4
+ import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-xAhkGjwI.js";
5
+ import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-51zzwdCg.js";
6
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-B-bkdTUO.js";
7
7
  export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-BB5cGWAB.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-gF473YxX.js";
2
2
  import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-ystNl7Ae.js";
3
- import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-BPI3u-XB.js";
3
+ import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-DvLeWxd6.js";
4
4
  import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DEg0cqSV.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-ClEsx7E7.js";
6
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CPmZrgBo.js";
7
7
  export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
@@ -1,9 +1,9 @@
1
- import { $ as InteractionData, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, Ot as SandboxCreateReceipt, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, vt as SandboxError, w as AgentInteractiveSessionControlClaim, z as AgentRunCancellationRequest } from "./terminal-stream-types-pMCEfsJv.js";
2
- import { $a as RawEvidenceBoxDirectoryExport, $i as IntelligenceReport, $r as ExecOptions, Ai as HttpClient, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ci as CodeExecutionOptions, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as ForkLookupOptions, G as GitBranch, Ga as ExecResult, Ha as CodeExecutionResult, Hr as FileWriteResult, Ia as WorkspaceImagePublishInput, Ii as Rollout, In as SSHCommandDescriptor, Ir as FileSystem, J as GitStatus, Ja as SandboxEnvRecoveryView, Ji as DurablePlanDecisionOptions, Jr as WriteFileOptions, K as GitCommit, Ka as WriteFileRequest, La as WorkspaceImagePublishResult, Li as RolloutOptions, Ln as SSHCredentials, Mi as BranchOptions, N as WaitForOptions, Ni as ForkCounts, Pi as ForkIdempotency, Q as CommitTaskSessionOptions, Qi as EventStreamOptions, Qn as TeeAttestationOptions, Qr as SearchOptions, Ri as RolloutStartResult, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as CodeLanguage, Un as SandboxRuntimeHealth, Wn as SandboxTerminalAttachOptions, Xa as RawEvidenceArchiveManifest, Xn as StartupDiagnostics, Xr as WriteManyOptions, Yi as DurablePlanDecisionResult, Yn as SandboxTerminals, Yr as WriteManyFile, Zr as SearchMatch, _ as SnapshotInfo, _i as GpuLeaseManager, _r as NetworkManager, aa as PromptOptions, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, co as InteractionResolutionAcknowledgement, ct as ListMessagesOptions, d as SandboxOperationKind, dt as SendSessionMessageRequest, ea as IntelligenceReportBudget, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxTraceOptions, fi as GpuLease, fr as SandboxResourceUsage, ft as SentSessionMessage, ga as BackendConfig, hr as EgressManager, ht as SessionExecutionInfo, ia as PromptInputPart, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as SandboxTraceBundle, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as TurnBackendConfig, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as PromptResult, oo as RawEvidenceUnavailable, ot as DispatchedSession, pr as SandboxRuntimeCapabilities, q as GitDiff, qa as SandboxEnvRecovery, qi as DurablePlan, ra as IntelligenceReportWindow, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as SandboxEvent, st as DriveTurnOptions, ta as IntelligenceReportCompareTo, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ui as DriverInfo, ur as SandboxShape, ut as SendSessionMessageOptions, v as SnapshotOptions, va as BackendManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yt as SessionInfo, z as ProcessManager, zi as WaitForRolloutOptions, zn as SandboxInfo } from "./types-BEYAZXvg.js";
1
+ import { $ as ProxySecretReceipt, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, et as InteractionData, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, kt as SandboxCreateReceipt, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, w as AgentInteractiveSessionControlClaim, yt as SandboxError, z as AgentRunCancellationRequest } from "./terminal-stream-types-CpPRMcYv.js";
2
+ import { $a as RawEvidenceBoxDirectoryExport, $i as IntelligenceReport, $r as ExecOptions, Ai as HttpClient, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ci as CodeExecutionOptions, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as ForkLookupOptions, G as GitBranch, Ga as ExecResult, Ha as CodeExecutionResult, Hr as FileWriteResult, Ia as WorkspaceImagePublishInput, Ii as Rollout, In as SSHCommandDescriptor, Ir as FileSystem, J as GitStatus, Ja as SandboxEnvRecoveryView, Ji as DurablePlanDecisionOptions, Jr as WriteFileOptions, K as GitCommit, Ka as WriteFileRequest, La as WorkspaceImagePublishResult, Li as RolloutOptions, Ln as SSHCredentials, Mi as BranchOptions, N as WaitForOptions, Ni as ForkCounts, Pi as ForkIdempotency, Q as CommitTaskSessionOptions, Qi as EventStreamOptions, Qn as TeeAttestationOptions, Qr as SearchOptions, Ri as RolloutStartResult, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as CodeLanguage, Un as SandboxRuntimeHealth, Wn as SandboxTerminalAttachOptions, Xa as RawEvidenceArchiveManifest, Xn as StartupDiagnostics, Xr as WriteManyOptions, Yi as DurablePlanDecisionResult, Yn as SandboxTerminals, Yr as WriteManyFile, Zr as SearchMatch, _ as SnapshotInfo, _i as GpuLeaseManager, _r as NetworkManager, aa as PromptOptions, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, co as InteractionResolutionAcknowledgement, ct as ListMessagesOptions, d as SandboxOperationKind, dt as SendSessionMessageRequest, ea as IntelligenceReportBudget, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxTraceOptions, fi as GpuLease, fr as SandboxResourceUsage, ft as SentSessionMessage, ga as BackendConfig, hr as EgressManager, ht as SessionExecutionInfo, ia as PromptInputPart, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as SandboxTraceBundle, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as TurnBackendConfig, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as PromptResult, oo as RawEvidenceUnavailable, ot as DispatchedSession, pr as SandboxRuntimeCapabilities, q as GitDiff, qa as SandboxEnvRecovery, qi as DurablePlan, ra as IntelligenceReportWindow, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as SandboxEvent, st as DriveTurnOptions, ta as IntelligenceReportCompareTo, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ui as DriverInfo, ur as SandboxShape, ut as SendSessionMessageOptions, v as SnapshotOptions, va as BackendManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yt as SessionInfo, z as ProcessManager, zi as WaitForRolloutOptions, zn as SandboxInfo } from "./types-DeLaTirQ.js";
3
3
  import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
4
- import { n as SandboxLines } from "./lines-Cra3SJs-.js";
5
- import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-BbbyXoS1.js";
6
- import { r as InteractiveAttachRequest } from "./interactive-controller-BI8pMiTR.js";
4
+ import { n as SandboxLines } from "./lines-xAhkGjwI.js";
5
+ import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-DjgTiPSK.js";
6
+ import { r as InteractiveAttachRequest } from "./interactive-controller-U_ClwSA2.js";
7
7
  import { z } from "zod";
8
8
  import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
9
9
 
@@ -508,6 +508,7 @@ declare class WorkspaceImages {
508
508
  //#endregion
509
509
  //#region src/sandbox-info.d.ts
510
510
  declare abstract class SandboxInfoCapabilities {
511
+ get proxySecretReceipt(): SandboxInfo["proxySecretReceipt"];
511
512
  /** Unique sandbox identifier */
512
513
  get id(): string;
513
514
  /** Human-readable name */
@@ -540,70 +541,26 @@ declare abstract class SandboxInfoCapabilities {
540
541
  get error(): string | undefined;
541
542
  /** GPU lease attached during sandbox creation, when requested. */
542
543
  get gpuLease(): GpuLease | undefined;
543
- /**
544
- * The shape this sandbox was granted: the cgroup and volume limits it runs
545
- * at and the numbers it is billed at. Present on a freshly created box and
546
- * on one resolved by `get`; `undefined` for a box from a list row until it
547
- * is refreshed, and for a sandbox created before the platform recorded it.
548
- */
544
+ /** Actual granted limits and billing shape; absence means unknown, never the requested or
545
+ * default shape. */
549
546
  get resources(): SandboxShape | undefined;
550
547
  /** Web terminal URL for browser-based access */
551
548
  get url(): string | undefined;
552
549
  /** Build and publish this sandbox's workspace without exposing registry credentials to it. */
553
550
  get images(): WorkspaceImages;
554
- /**
555
- * The 12-phase startup breakdown (storage_provision, host_select, edge_bind,
556
- * edge_ready, egress_proxy, docker_pull/create/start, sidecar_boot,
557
- * health_check, …) the platform emitted when this sandbox was provisioned.
558
- *
559
- * Present only on a freshly-created box; `null` for a box resolved by id or
560
- * when the runtime did not report diagnostics. Use `.phases` for the
561
- * operation-name → durationMs map.
562
- *
563
- * @example
564
- * ```typescript
565
- * const d = box.startupDiagnostics();
566
- * if (d) console.log(`provision phases: ${JSON.stringify(d.phases)}`);
567
- * ```
568
- */
551
+ /** Server-attributed startup operations and duration map; available only when the
552
+ * response included diagnostics. */
569
553
  startupDiagnostics(): StartupDiagnostics | null;
570
- /**
571
- * The platform verdict for the create call that returned this sandbox: did
572
- * the call allocate the environment, or did it replay an earlier create that
573
- * carried the same idempotency key.
574
- *
575
- * Present only on a freshly created box; `null` for a box resolved by id and
576
- * `null` when the platform reported no receipt. Delete the environment only
577
- * on a `created` outcome — every other value permits another caller to hold
578
- * it, and a delete then destroys work that caller depends on.
579
- *
580
- * @example
581
- * ```typescript
582
- * const receipt = box.createReceipt();
583
- * if (receipt?.outcome === "created") await box.delete();
584
- * ```
585
- */
554
+ /** Create verdict: created, idempotent replay, or unknown. Missing receipt is unknown; a
555
+ * refreshed or branched handle must not invent a new create fact. */
586
556
  createReceipt(): SandboxCreateReceipt | null;
587
557
  /** Verified identity of the currently running container, if available. */
588
558
  captureProof(): SandboxCreateReceipt["captureProof"] | null;
589
- /**
590
- * Serialize to the public sandbox shape for logs and structured
591
- * output. Secrets in `connection` (currently `authToken`) are
592
- * redacted so that `JSON.stringify(box)` is safe to ship to log
593
- * sinks. Use {@link toDebugJSON} when the bearer is required (e.g.
594
- * one-off CLI commands that print credentials to the user).
595
- */
559
+ /** Public log projection: redacts connection credentials. Use toDebugJSON only when
560
+ * credentials are explicitly required. */
596
561
  toJSON(): SandboxInfo;
597
- /**
598
- * Serialize the sandbox **including secrets** when `includeSecrets`
599
- * is true. The default behavior matches {@link toJSON} and redacts
600
- * `connection.authToken`.
601
- *
602
- * Use only when the caller has an explicit need for the bearer
603
- * (e.g. presenting it once to the human operator). Never wire the
604
- * result of `toDebugJSON({ includeSecrets: true })` into a structured
605
- * logger — the bearer will land in any log sink consuming that output.
606
- */
562
+ /** Includes connection credentials only with includeSecrets:true; default output is
563
+ * redacted. Never send the explicit secret-bearing result to a logger. */
607
564
  toDebugJSON(options?: {
608
565
  includeSecrets?: boolean;
609
566
  }): SandboxInfo;
@@ -614,11 +571,7 @@ declare abstract class SandboxInfoCapabilities {
614
571
  protected refreshFor(reason: RefreshReason, signal?: AbortSignal): Promise<void>;
615
572
  protected refreshInfo(reason: RefreshReason): Promise<void>;
616
573
  protected readStatus(reason: RefreshReason): Promise<void>;
617
- /**
618
- * What the direct regional read route has done for this sandbox: attempts,
619
- * reads it served, reads that fell back to the API, and the last reason.
620
- * Read by the lifecycle probe; safe for a caller to read too.
621
- */
574
+ /** Direct regional read statistics: attempts, failures and fallbacks. */
622
575
  directReadStats(): DirectReadStats;
623
576
  /**
624
577
  * Arm the direct regional read from an API payload this instance did not
@@ -629,56 +582,25 @@ declare abstract class SandboxInfoCapabilities {
629
582
  protected readLifecycleResponse(response: Response): Promise<Record<string, unknown>>;
630
583
  protected applyLifecycleResponse(data: Record<string, unknown> | null): boolean;
631
584
  protected hasFreshStatus(): boolean;
632
- /**
633
- * The check before a runtime call. A handle that has seen the sandbox
634
- * running and ready dispatches at once: the authenticated runtime route
635
- * checks current sandbox state itself, so a status GET before every call was
636
- * a whole round trip through the Worker that only moved the same refusal
637
- * earlier. A stale cache surfaces as the call's own answer, which the
638
- * direct client and the prompt stream turn into a typed `StateError`. A
639
- * handle that has not seen the status, or saw one that is not runnable,
640
- * reads it first.
641
- */
585
+ /** Require the current ready incarnation before a runtime call; stopped or replaced
586
+ * handles must refresh before reusing access. */
642
587
  protected ensureRunning(signal?: AbortSignal): Promise<void>;
643
588
  /** Why the status must be read before a runtime call, or undefined to trust the cache. */
644
589
  protected statusReadReason(): RefreshReason | undefined;
645
590
  protected assertRunnable(): void;
646
591
  protected assertFilesystemIncarnationReady(): void;
647
- /**
648
- * One authenticated runtime HTTP call for this sandbox, relative endpoint
649
- * (`/agents/...`), scoped to the current filesystem incarnation. This is
650
- * the transport `/agents/profiles` rides and the box surface mount
651
- * delivery uses for profile-bundle cache claim/publish.
652
- */
592
+ /** Authenticated runtime request relative to this sandbox; preserves the runtime error
593
+ * and request context. */
653
594
  runtimeFetch(path: string, inputOptions?: RequestInit, fetchOptions?: {
654
595
  timeoutMs?: number;
655
596
  skipProfileReference?: boolean;
656
597
  }): Promise<Response>;
657
- /**
658
- * Parse a sandbox API payload into `SandboxInfo`.
659
- *
660
- * `carryCreateFacts` supplies the create-time facts a refresh must keep:
661
- * the GPU lease, the startup diagnostics, and the create receipt each arrive
662
- * once on the create response and are absent from every later payload. They
663
- * describe ONE environment's creation, so they travel only when the payload
664
- * describes that same environment. A payload for a different sandbox — a
665
- * branch child parsed through its parent — passes no carry, or the child
666
- * would report its parent's create verdict.
667
- */
598
+ /** Parse public sandbox data. Carry create-only facts only for the same handle; branches
599
+ * and unrelated incarnations must not inherit their parent’s create verdict. */
668
600
  protected parseInfo(data: Record<string, unknown>, carryCreateFacts?: Pick<SandboxInfo, "gpuLease" | "startupDiagnostics" | "createReceipt">): SandboxInfo;
669
601
  }
670
- /**
671
- * Why a status read was sent: the `sdk.refresh` span's `desc` and the value of
672
- * the `x-tangle-refresh-reason` header, so a status GET that costs a round
673
- * trip is attributable instead of anonymous.
674
- *
675
- * - `caller`: the caller asked (`refresh()`).
676
- * - `poll`: a wait loop.
677
- * - `unobserved`: this handle has never seen the sandbox's status.
678
- * - `not-running`: the cached status is not a runnable one, so it may have moved.
679
- * - `bearer-refused`, `runtime-refused`: the runtime refused the call, which is
680
- * the only evidence that a cached `running` went stale.
681
- */
602
+ /** Status-read reason recorded in the sdk.refresh span and the supported request header.
603
+ * Browser calls obey the API CORS allowlist. */
682
604
  type RefreshReason = "caller" | "poll" | "unobserved" | "not-running" | "bearer-refused" | "runtime-refused";
683
605
  //#endregion
684
606
  //#region src/sandbox-workspace-git.d.ts
@@ -1047,35 +969,14 @@ declare abstract class SandboxRuntimeOperations extends SandboxLifecycleCapabili
1047
969
  * ```
1048
970
  */
1049
971
  resourceUsage(): Promise<SandboxResourceUsage | null>;
1050
- /**
1051
- * What the DEPLOYED sidecar image can do — capability flags compiled into
1052
- * the image, served by the authenticated `GET /capabilities` route — not
1053
- * SDK method presence. Read this before relying on a newer contract
1054
- * feature (exact run cancellation, event replay) against a deployment you
1055
- * did not ship.
1056
- *
1057
- * Returns `null` when a NEWER deployment serves a `schema` > 1 this SDK
1058
- * cannot read — "unknown, fail closed": treat every capability as
1059
- * unclaimed. A malformed v1 document or any other error throws.
1060
- *
1061
- * The document is a plain JSON body; see `SandboxRuntimeCapabilities` for
1062
- * why no field is header-derived.
1063
- *
1064
- * @example Gate canonical cancellation on the deployment
1065
- * ```typescript
1066
- * const caps = await box.capabilities();
1067
- * if (caps?.cancel.canonicalRunCancellation) {
1068
- * await box.session(sessionId).cancelRun(request);
1069
- * }
1070
- * ```
1071
- */
1072
- /** Grant one owner-authorized stored token for a native continuation; never accepts or returns its value. */
972
+ /** Grant one stored native reference. Canonical admission stays pending until preparation proves HOME; no value crosses this API. */
1073
973
  grantNativeCredential(grant: {
1074
974
  harness: "claude-code" | "codex";
1075
975
  cliAuth: CliAuthReference;
1076
976
  }, options?: {
1077
977
  signal?: AbortSignal;
1078
978
  }): Promise<void>;
979
+ /** Deployed capabilities; newer schemas return null, malformed known schemas or transport failures throw. */
1079
980
  capabilities(): Promise<SandboxRuntimeCapabilities | null>;
1080
981
  /**
1081
982
  * Get information about the infrastructure driver for this sandbox.
@@ -1192,20 +1093,6 @@ declare abstract class SandboxFileWriteCapabilities extends SandboxFileOperation
1192
1093
  //#endregion
1193
1094
  //#region src/sandbox-profile.d.ts
1194
1095
  declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabilities {
1195
- /**
1196
- * Stream events from an agent prompt.
1197
- * Use this for real-time updates during agent execution.
1198
- *
1199
- * Guarantees terminal completion on every non-cancelled path. A clean run
1200
- * emits a `result` summary and ends with `done`. A failure is an in-band
1201
- * `error` followed by `done`, never a thrown generator. Caller cancellation
1202
- * ends the stream silently with no synthetic terminal.
1203
- *
1204
- * Automatically reconnects via the runtime event replay endpoint if the
1205
- * SSE stream drops before a terminal event (`done` or `error`) is
1206
- * received. Reconnection is transparent — replayed events that were
1207
- * already yielded (based on event ID tracking) are deduplicated.
1208
- */
1209
1096
  /**
1210
1097
  * Record that the runtime already holds `profile` under `sha256`, so
1211
1098
  * subsequent turns whose profile has the same canonical content send
@@ -1236,15 +1123,6 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
1236
1123
  primeProfile(profile: object, options?: {
1237
1124
  preserveManagedProfile?: boolean;
1238
1125
  }): Promise<string>;
1239
- /**
1240
- * Build the run request's `backend` body. When the outgoing profile's CONTENT
1241
- * matches the one the runtime already holds (and we are not resending after a
1242
- * cache miss), swap the inline `profile` for its `profileSha256` so a large
1243
- * static corpus does not ride every turn. The match is by serialized content,
1244
- * not object identity, so a mutated-in-place profile — or an equivalent
1245
- * object passed as a per-turn override — is compared correctly: unchanged
1246
- * content references by hash, changed content sends inline.
1247
- */
1248
1126
  /**
1249
1127
  * How this handle's most recent profile file preparation was satisfied
1250
1128
  * (host cache hit, partial, miss, direct delivery, or a held receipt) and
@@ -1256,36 +1134,6 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
1256
1134
  protected buildRunBackendBody(overrideBackend: Partial<BackendConfig> | undefined, forceFullProfile: boolean, requestedModel?: string, signal?: AbortSignal, preserveManagedProfile?: boolean): Promise<Record<string, unknown> | undefined>;
1257
1135
  /** Recover only managed references before any stream event or model admission. */
1258
1136
  protected reprimeManagedRunProfile(options: PromptOptions): Promise<boolean>;
1259
- /**
1260
- * Create a snapshot of the sandbox state.
1261
- * Snapshots can be used to save workspace state for later restoration.
1262
- *
1263
- * If `storage` is provided (BYOS3), the snapshot is created directly
1264
- * directly on the sandbox and uploaded to customer-provided S3 storage.
1265
- *
1266
- * @param options - Snapshot options (tags, paths, storage)
1267
- * @returns Snapshot result with ID and metadata
1268
- *
1269
- * @example Standard snapshot (our storage)
1270
- * ```typescript
1271
- * const snap = await box.snapshot({
1272
- * tags: ["v1.0", "stable"],
1273
- * });
1274
- * console.log(`Snapshot: ${snap.snapshotId}`);
1275
- * ```
1276
- *
1277
- * @example BYOS3 snapshot (customer storage)
1278
- * ```typescript
1279
- * const snap = await box.snapshot({
1280
- * tags: ["production"],
1281
- * storage: {
1282
- * type: "s3",
1283
- * bucket: "my-snapshots",
1284
- * credentials: { accessKeyId: "...", secretAccessKey: "..." },
1285
- * },
1286
- * });
1287
- * ```
1288
- */
1289
1137
  /**
1290
1138
  * The profile provenance receipt for this sandbox: which profile was
1291
1139
  * materialized, its content hash, and when. Absent for a bare sandbox
@@ -1329,6 +1177,7 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
1329
1177
  backend: Partial<BackendConfig>;
1330
1178
  model?: ConversationTurnOptions["model"];
1331
1179
  }): Promise<{
1180
+ proxySecretReceipt?: ProxySecretReceipt;
1332
1181
  expectedPublicProfileRequestDigest: `sha256:${string}`;
1333
1182
  expectedPublicProfileRevision: {
1334
1183
  workspacePlanDigest: `sha256:${string}`;
@@ -1343,14 +1192,11 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
1343
1192
  backend: TurnBackendConfig;
1344
1193
  model?: ConversationTurnOptions["model"];
1345
1194
  }): Promise<{
1195
+ proxySecretReceipt?: ProxySecretReceipt;
1346
1196
  expectedPublicProfileRequestDigest: `sha256:${string}`;
1347
1197
  expectedSecretProfileReceipt: `hmac-sha256:${string}`;
1348
1198
  workspacePlanDigest: `sha256:${string}`;
1349
- conflicts: Array<{
1350
- relPath: string;
1351
- copyRelPath: string;
1352
- reason: "existing" | "symlink";
1353
- }>;
1199
+ conflicts: PublicProfileConflict[];
1354
1200
  }>;
1355
1201
  }
1356
1202
  //#endregion