@tangle-network/sandbox 0.62.14 → 0.62.15

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 (34) hide show
  1. package/dist/agent/index.d.ts +3 -3
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/auth/index.js +1 -1
  5. package/dist/{chunked-upload-ClCKGr59.js → chunked-upload-B867njKv.js} +2 -59
  6. package/dist/{chunked-upload-file-RaMaNFN_.js → chunked-upload-file-Bs5qcfRB.js} +2 -1
  7. package/dist/{client-CdNw2DEF.js → client-Bfc6UMn7.js} +9 -8
  8. package/dist/{client-C7KaqyfN.d.ts → client-CnP49sg1.d.ts} +3 -3
  9. package/dist/collaboration/index.js +1 -1
  10. package/dist/{collaboration-DZCyTGdn.js → collaboration-CXtTwK3x.js} +1 -1
  11. package/dist/core.d.ts +5 -5
  12. package/dist/core.js +4 -4
  13. package/dist/{errors-DSJBKmGZ.js → errors-Bfhg_Zc6.js} +130 -1
  14. package/dist/{errors-BSmxfVt0.d.ts → errors-H96CGXWZ.d.ts} +13 -1
  15. package/dist/{index-BiJDEVsu.d.ts → index-CygLpbAJ.d.ts} +1 -1
  16. package/dist/index.d.ts +6 -6
  17. package/dist/index.js +7 -7
  18. package/dist/intelligence/index.js +1 -1
  19. package/dist/{interactive-controller-B2VcB_SK.js → interactive-controller-CDtsgRnx.js} +2 -2
  20. package/dist/lines.js +1 -1
  21. package/dist/{local-cli-auth-BSFX2vnt.js → local-cli-auth-yn7YxF87.js} +1 -1
  22. package/dist/{preview-BamI9Yoe.d.ts → preview-Bz14bj-R.d.ts} +2 -2
  23. package/dist/{public-templates-CAMfH_Yr.d.ts → public-templates-CrcJd0Ho.d.ts} +1 -1
  24. package/dist/public-templates.d.ts +1 -1
  25. package/dist/public-templates.js +1 -1
  26. package/dist/runtime.d.ts +2 -2
  27. package/dist/runtime.js +4 -4
  28. package/dist/{sandbox-BGyIDjUH.js → sandbox-NDSp3I1V.js} +122 -23
  29. package/dist/{sandbox-I390rjrp.d.ts → sandbox-NDYZY46C.d.ts} +10 -2
  30. package/dist/tangle/index.d.ts +1 -1
  31. package/dist/tangle/index.js +1 -1
  32. package/dist/{tangle-9PQPjv8y.js → tangle-Cwu6ql_V.js} +2 -2
  33. package/package.json +3 -3
  34. /package/dist/{cli-auth-bundle-BvXQd1UX.js → cli-auth-bundle-DBRU4ifV.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-I390rjrp.js";
1
+ import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-NDYZY46C.js";
2
2
  import { D as CodeExecutionResult, Do as BackendType, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, fa as SessionListOptions, k as CodeResultPart, si as SandboxFleetParent, ua as SessionInfo } from "../types-Bal6rlUP.js";
3
- import { i as Sandbox } from "../client-C7KaqyfN.js";
4
- import { u as PreviewAuthorizer } from "../preview-BamI9Yoe.js";
3
+ import { i as Sandbox } from "../client-CnP49sg1.js";
4
+ import { u as PreviewAuthorizer } from "../preview-Bz14bj-R.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-BYHcA72Z.js";
2
- import { k as assertCurrentBackendType } from "../interactive-controller-B2VcB_SK.js";
3
- import { _ as StateError, b as ValidationError, d as NotFoundError } from "../errors-DSJBKmGZ.js";
4
- import { n as Sandbox } from "../client-CdNw2DEF.js";
5
- import { t as SandboxInstance } from "../sandbox-BGyIDjUH.js";
2
+ import { k as assertCurrentBackendType } from "../interactive-controller-CDtsgRnx.js";
3
+ import { d as NotFoundError, v as StateError, x as ValidationError } from "../errors-Bfhg_Zc6.js";
4
+ import { n as Sandbox } from "../client-Bfc6UMn7.js";
5
+ import { t as SandboxInstance } from "../sandbox-NDSp3I1V.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-BamI9Yoe.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-Bz14bj-R.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 { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-BvXQd1UX.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-DBRU4ifV.js";
2
2
  //#region src/auth/tokens.ts
3
3
  const textEncoder = new TextEncoder();
4
4
  const textDecoder = new TextDecoder();
@@ -1,61 +1,4 @@
1
- import { g as ServerError, h as SandboxError, p as QuotaError, u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
2
- //#region ../../../packages/runtime-contracts/dist/file-limits.js
3
- const MEBIBYTE$1 = 1024 * 1024;
4
- 10 * MEBIBYTE$1;
5
- const FILE_DECODED_WRITE_MAX_BYTES = 5 * MEBIBYTE$1;
6
- 5 * MEBIBYTE$1;
7
- 10 * MEBIBYTE$1;
8
- 5 * MEBIBYTE$1;
9
- //#endregion
10
- //#region ../../../packages/runtime-contracts/dist/request-limits.js
11
- /**
12
- * Raw WIRE/TRANSPORT caps: request-byte limits checked while the body
13
- * streams in (bodyLimit middleware, Content-Length, encoded proxy bodies),
14
- * before anything is parsed or decoded. Rejections against these carry
15
- * code `PAYLOAD_TOO_LARGE` (`payload-too-large.ts`) — the remedy is to
16
- * split the delivery. Decoded/parsed-content caps (code `FILE_TOO_LARGE`)
17
- * live in `file-io.ts`.
18
- */
19
- const MEBIBYTE = 1024 * 1024;
20
- /**
21
- * Gateway (CF Worker) proxy cap on any request body it forwards — both
22
- * pass-through requests and route-constructed (`options.body`) proxy
23
- * payloads. Workers buffer forwarded bodies (streaming upstream stalls),
24
- * so this bounds Worker memory per request.
25
- */
26
- const SANDBOX_PROXY_REQUEST_MAX_BYTES = MEBIBYTE;
27
- 32 * MEBIBYTE;
28
- /**
29
- * Max assembled size of one chunked-upload session — the ceiling of the
30
- * sanctioned >1 MiB delivery path. Parts stage in sidecar memory until
31
- * commit, so this bounds per-session memory, not the destination
32
- * filesystem.
33
- */
34
- const FILE_UPLOAD_SESSION_MAX_BYTES = 64 * MEBIBYTE;
35
- 128 * MEBIBYTE;
36
- //#endregion
37
- //#region ../../../packages/runtime-contracts/dist/size-limit-errors.js
38
- /** Canonical error codes for wire-size and decoded-content rejections. */
39
- const PAYLOAD_TOO_LARGE_CODE = "PAYLOAD_TOO_LARGE";
40
- const FILE_TOO_LARGE_CODE = "FILE_TOO_LARGE";
41
- function isRecord(value) {
42
- return value !== null && typeof value === "object" && !Array.isArray(value);
43
- }
44
- function isPositiveInteger(value) {
45
- return typeof value === "number" && Number.isInteger(value) && value > 0;
46
- }
47
- function isSizeLimitErrorBodyFor(value, code) {
48
- if (!isRecord(value) || value.success !== false || !isRecord(value.error)) return false;
49
- const error = value.error;
50
- return error.code === code && typeof error.message === "string" && typeof error.surface === "string" && isPositiveInteger(error.limitBytes) && (error.actualBytes === void 0 || isPositiveInteger(error.actualBytes));
51
- }
52
- function isPayloadTooLargeErrorBody(value) {
53
- return isSizeLimitErrorBodyFor(value, PAYLOAD_TOO_LARGE_CODE);
54
- }
55
- function isFileTooLargeErrorBody(value) {
56
- return isSizeLimitErrorBodyFor(value, FILE_TOO_LARGE_CODE);
57
- }
58
- //#endregion
1
+ import { D as FILE_UPLOAD_SESSION_MAX_BYTES, E as isPayloadTooLargeErrorBody, S as parseErrorResponse, T as isFileTooLargeErrorBody, _ as ServerError, b as TimeoutError, g as SandboxError, m as QuotaError, u as NetworkError } from "./errors-Bfhg_Zc6.js";
59
2
  //#region src/lib/chunked-upload.ts
60
3
  /**
61
4
  * Chunked upload — the sanctioned SDK path for delivering payloads larger
@@ -432,4 +375,4 @@ var ChunkedUploadInterruptedError = class extends Error {
432
375
  }
433
376
  };
434
377
  //#endregion
435
- export { planCompression as a, FILE_UPLOAD_SESSION_MAX_BYTES as c, partCount as i, SANDBOX_PROXY_REQUEST_MAX_BYTES as l, commitSession as n, putPart as o, initUploadSession as r, uploadChunked as s, abortSession as t, FILE_DECODED_WRITE_MAX_BYTES as u };
378
+ export { planCompression as a, partCount as i, commitSession as n, putPart as o, initUploadSession as r, uploadChunked as s, abortSession as t };
@@ -1,4 +1,5 @@
1
- import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-ClCKGr59.js";
1
+ import { D as FILE_UPLOAD_SESSION_MAX_BYTES } from "./errors-Bfhg_Zc6.js";
2
+ import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-B867njKv.js";
2
3
  import { createHash } from "node:crypto";
3
4
  import { open } from "node:fs/promises";
4
5
  //#region src/lib/chunked-upload-file.ts
@@ -1,8 +1,8 @@
1
1
  import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
2
- import { A as foldModelRoutingFields, D as parseSSEStream, F as withProfileHarness, I as withoutCreateOnlyModelFields, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, T as encodePromptForWire, c as requestInteractiveSessionToken, k as assertCurrentBackendType } from "./interactive-controller-B2VcB_SK.js";
3
- import { C as readResponseJson, S as parseResponseError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, p as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
2
+ import { A as foldModelRoutingFields, D as parseSSEStream, F as withProfileHarness, I as withoutCreateOnlyModelFields, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, T as encodePromptForWire, c as requestInteractiveSessionToken, k as assertCurrentBackendType } from "./interactive-controller-CDtsgRnx.js";
3
+ import { C as parseResponseError, S as parseErrorResponse, _ as ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, m as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, w as readResponseJson, x as ValidationError } from "./errors-Bfhg_Zc6.js";
4
4
  import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
5
- import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-BGyIDjUH.js";
5
+ import { A as normalizeSandboxShape, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, N as exportTraceBundle, O as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, j as rewrapResponse, k as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as isRetryableProfileFileMaterializeFailure } from "./sandbox-NDSp3I1V.js";
6
6
  import { n as fetchWithKeepAlive } from "./keep-alive-fetch-qPVvvkgJ.js";
7
7
  import { LinesClient } from "./lines.js";
8
8
  import { PublicTemplatesClient } from "./public-templates.js";
@@ -3340,11 +3340,11 @@ function withRequestContextHeaders(response, path, method, body = response.body)
3340
3340
  return rewrapResponse(response, headers, body);
3341
3341
  }
3342
3342
  async function resolveLocalCliAuthFiles(backendType) {
3343
- const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BSFX2vnt.js");
3343
+ const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-yn7YxF87.js");
3344
3344
  return discoverLocalCliAuthFiles(backendType);
3345
3345
  }
3346
3346
  async function describeLocalCliAuthExpectation(backendType) {
3347
- const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BSFX2vnt.js");
3347
+ const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-yn7YxF87.js");
3348
3348
  return describe(backendType);
3349
3349
  }
3350
3350
  /**
@@ -3668,7 +3668,7 @@ var Sandbox = class Sandbox {
3668
3668
  handleProfile = split.leanProfile;
3669
3669
  if (deferredProfileFiles.length > 0) {
3670
3670
  profileFilesFailOnError = profile.resources?.failOnError !== false;
3671
- validateDeferredProfileFileMounts(deferredProfileFiles);
3671
+ deferredProfileFiles = validateDeferredProfileFileMounts(deferredProfileFiles, { failOnError: profileFilesFailOnError });
3672
3672
  }
3673
3673
  }
3674
3674
  handleBackend = {
@@ -3862,7 +3862,7 @@ var Sandbox = class Sandbox {
3862
3862
  console.warn(`[sandbox.create] ${message}`);
3863
3863
  return instance;
3864
3864
  }
3865
- throw new PartialFailureError(message, "PROFILE_FILES_MATERIALIZE_FAILED", 502, void 0, paths.map((path) => ({ path })));
3865
+ throw new PartialFailureError(message, "PROFILE_FILES_MATERIALIZE_INTERRUPTED", 502, void 0, paths.map((path) => ({ path })));
3866
3866
  }
3867
3867
  try {
3868
3868
  await instance.materializeProfileFiles(resolvedBackend.profile, void 0, "replace");
@@ -3873,7 +3873,8 @@ var Sandbox = class Sandbox {
3873
3873
  console.warn(`[sandbox.create] ${message}`);
3874
3874
  return instance;
3875
3875
  }
3876
- throw new PartialFailureError(message, "PROFILE_FILES_MATERIALIZE_FAILED", 502, void 0, paths.map((path) => ({ path })), err);
3876
+ const retryable = isRetryableProfileFileMaterializeFailure(err);
3877
+ throw new PartialFailureError(message, retryable ? "PROFILE_FILES_MATERIALIZE_INTERRUPTED" : "PROFILE_FILES_MATERIALIZE_FAILED", retryable ? 502 : 422, void 0, paths.map((path) => ({ path })), err);
3877
3878
  }
3878
3879
  }
3879
3880
  if (deferredProfileForPriming !== void 0) try {
@@ -1,9 +1,9 @@
1
- import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-I390rjrp.js";
1
+ import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-NDYZY46C.js";
2
2
  import { B as CreateSandboxOptions, Bt as FleetDispatchCancelResult, Ci as SandboxInfo, Cn as HttpClient, Dn as IntelligenceReportCompareTo, Ea as SshKeysManager, En as IntelligenceReportBudget, F as CreateIntelligenceReportOptions, Fr as SandboxConfig, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, Ha as TokenRefreshHandler, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, It as FleetAgentId, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Pn as ListSandboxOptions, Qr as SandboxFleetInfo, Qt as FleetRunOptions, R as CreateSandboxFleetTokenOptions, Ri as SandboxShapesInfo, Rt as FleetAgentResult, Si as SandboxIdentity, So as BatchEvent, St as ExecResult, Tn as IntelligenceReport, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, Wt as FleetDriveTurnOutcome, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Ya as UsageInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Zt as FleetRunEvent, _i as SandboxFleetUsage, b as BatchRunRequest, bi as SandboxFleetWorkspaceRestoreResult, br as ReconcileSandboxFleetsOptions, cr as PromptResult, d as BackendConfig, di as SandboxFleetSpend, ea as SecretsManager, fi as SandboxFleetToken, gi as SandboxFleetTraceOptions, ii as SandboxFleetManifest, ja as SubscriptionInfo, kn as IntelligenceReportWindow, l as AttachSandboxFleetMachineOptions, li as SandboxFleetPolicy, ni as SandboxFleetMachineRecord, no as SdkTimingHook, oi as SandboxFleetOperationsSummary, or as PromptInputPart, pi as SandboxFleetTraceBundle, q as DeleteMatchingSandboxesResult, qr as SandboxFleetCostEstimate, qt as FleetExecDispatchResult, ri as SandboxFleetMachineSpec, si as SandboxFleetParent, sr as PromptOptions, v as BatchResult, vr as ReapExpiredSandboxFleetsOptions, xi as SandboxFleetWorkspaceSnapshotResult, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, yi as SandboxFleetWorkspaceReconcileResult, yr as ReapExpiredSandboxFleetsResult, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-Bal6rlUP.js";
3
3
  import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
4
4
  import { L as LinesClient } from "./lines-CodL_Yhd.js";
5
- import { h as SandboxError } from "./errors-BSmxfVt0.js";
6
- import { a as PublicTemplatesClient } from "./public-templates-CAMfH_Yr.js";
5
+ import { g as SandboxError } from "./errors-H96CGXWZ.js";
6
+ import { a as PublicTemplatesClient } from "./public-templates-CrcJd0Ho.js";
7
7
  import { z } from "zod";
8
8
  import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
9
9
 
@@ -1,2 +1,2 @@
1
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DZCyTGdn.js";
1
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-CXtTwK3x.js";
2
2
  export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,4 +1,4 @@
1
- import { u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
1
+ import { S as parseErrorResponse, b as TimeoutError, u as NetworkError } from "./errors-Bfhg_Zc6.js";
2
2
  //#region src/collaboration/client.ts
3
3
  const DEFAULT_TIMEOUT_MS = 3e4;
4
4
  function normalizeBaseUrl(url) {
package/dist/core.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-I390rjrp.js";
1
+ import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-NDYZY46C.js";
2
2
  import { B as CreateSandboxOptions, Bn as ManagedProcessSpec, Ci as SandboxInfo, Fr as SandboxConfig, In as ManagedProcessJobs, Ln as ManagedProcessOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Rn as ManagedProcessRecord, St as ExecResult, Vn as ManagedProcessState, Wn as NetworkConfig, Xn as PreviewLinkManager, Yn as PreviewLinkInfo, Zn as PreviewLinkWaitOptions, ao as SandboxEnvRecovery, ma as SessionMessageAdmission, oo as SandboxEnvRecoveryView, or as PromptInputPart, xt as ExecOptions, zi as SandboxStatus, zn as ManagedProcessResumeOptions } from "./types-Bal6rlUP.js";
3
3
  import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-CodL_Yhd.js";
4
- import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-BSmxfVt0.js";
5
- import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-C7KaqyfN.js";
6
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
4
+ import { C as TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } from "./errors-H96CGXWZ.js";
5
+ import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-CnP49sg1.js";
6
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CrcJd0Ho.js";
7
7
  import { t as ManagedProcessClient } from "./managed-process-BEgMYGGu.js";
8
8
 
9
9
  //#region src/core.d.ts
@@ -13,4 +13,4 @@ import { t as ManagedProcessClient } from "./managed-process-BEgMYGGu.js";
13
13
  * still inspect the host receipt and their own customer/workspace binding. */
14
14
  declare const ISOLATED_CREATION_ATTESTATION_VERSION: 1;
15
15
  //#endregion
16
- export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type EnsureInstanceOptions, type ExecOptions, type ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineMember, type LineMemberInstance, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, LinesClient, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type ProfileFileDeliveryReport, type PromptInputPart, type PublicTemplatePublishArtifact, PublicTemplatePublishError, type PublicTemplatePublishJob, type PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, type SandboxConfig, type SandboxEnvRecovery, type SandboxEnvRecoveryView, 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, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
16
+ export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type EnsureInstanceOptions, type ExecOptions, type ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineMember, type LineMemberInstance, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, LinesClient, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type ProfileFileDeliveryReport, ProfileFileMountPathError, type PromptInputPart, type PublicTemplatePublishArtifact, PublicTemplatePublishError, type PublicTemplatePublishJob, type PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, type SandboxConfig, type SandboxEnvRecovery, type SandboxEnvRecoveryView, 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, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
package/dist/core.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as StateError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
2
- import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-CdNw2DEF.js";
3
- import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-BGyIDjUH.js";
1
+ import { _ as ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError } from "./errors-Bfhg_Zc6.js";
2
+ import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-Bfc6UMn7.js";
3
+ import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-NDSp3I1V.js";
4
4
  import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
6
  import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
@@ -11,4 +11,4 @@ import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTE
11
11
  * still inspect the host receipt and their own customer/workspace binding. */
12
12
  const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
13
13
  //#endregion
14
- 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, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
14
+ 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, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
@@ -1,5 +1,117 @@
1
+ //#region ../../../packages/runtime-contracts/dist/file-api-roots.js
2
+ /**
3
+ * The agent user's home directory inside a sandbox. A profile mount path
4
+ * that starts with `~/` resolves under it.
5
+ */
6
+ const SANDBOX_AGENT_HOME = "/home/agent";
7
+ /**
8
+ * Absolute roots that the sidecar file API accepts in addition to the
9
+ * workspace root. This list is the single source: the sidecar's
10
+ * `resolveWorkspacePath` and the SDK's profile mount routing both read it.
11
+ *
12
+ * A root in this list is not writable on every runtime:
13
+ * - Docker with an egress proxy has a read-only root filesystem. Only the
14
+ * workspace, the /tmp tmpfs and the /opt/cache volume are writable there.
15
+ * A write to /output or /home/user then fails deterministically.
16
+ * - Firecracker writes its root through a per-VM copy-on-write snapshot, and
17
+ * the sidecar runs as root, so every root here is writable. With
18
+ * FC_SHARED_ROOTFS the root is read-only, and so are /tmp and /var/tmp:
19
+ * fc-init mounts tmpfs only on /dev/shm.
20
+ */
21
+ const SANDBOX_FILE_API_ABSOLUTE_ROOTS = [
22
+ "/tmp",
23
+ "/output",
24
+ "/home/user",
25
+ SANDBOX_AGENT_HOME,
26
+ "/opt/cache"
27
+ ];
28
+ /** Stable code for a profile file mount path that the sidecar refuses. */
29
+ const PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE = "PROFILE_FILE_MOUNT_OUTSIDE_ROOTS";
30
+ /**
31
+ * Return true when the sidecar refuses a profile file mount path:
32
+ * - any path with a `.` or `..` segment, relative or absolute, because its
33
+ * target is not the path as written;
34
+ * - an absolute path outside {@link SANDBOX_FILE_API_ABSOLUTE_ROOTS}.
35
+ *
36
+ * Other relative paths resolve in the workspace, and `~/` paths resolve in
37
+ * the agent home, so neither is refused.
38
+ */
39
+ function isProfileFileMountOutsideRoots(path) {
40
+ const segments = path.split("/").filter((segment) => segment.length > 0);
41
+ if (segments.some((segment) => segment === "." || segment === "..")) return true;
42
+ if (!path.startsWith("/")) return false;
43
+ const normalized = `/${segments.join("/")}`;
44
+ return !SANDBOX_FILE_API_ABSOLUTE_ROOTS.some((root) => normalized === root || normalized.startsWith(`${root}/`));
45
+ }
46
+ /** The refusal text for a profile file mount path that the sidecar refuses. */
47
+ function profileFileMountOutsideRootsMessage(path) {
48
+ return `Profile file mount path ${path} is outside the sandbox file roots (${SANDBOX_FILE_API_ABSOLUTE_ROOTS.join(", ")}, ~/ or a path relative to the workspace, with no . or .. segment). Mount the file under one of them.`;
49
+ }
50
+ //#endregion
51
+ //#region ../../../packages/runtime-contracts/dist/file-limits.js
52
+ const MEBIBYTE$1 = 1024 * 1024;
53
+ 10 * MEBIBYTE$1;
54
+ const FILE_DECODED_WRITE_MAX_BYTES = 5 * MEBIBYTE$1;
55
+ 5 * MEBIBYTE$1;
56
+ 10 * MEBIBYTE$1;
57
+ 5 * MEBIBYTE$1;
58
+ //#endregion
59
+ //#region ../../../packages/runtime-contracts/dist/request-limits.js
60
+ /**
61
+ * Raw WIRE/TRANSPORT caps: request-byte limits checked while the body
62
+ * streams in (bodyLimit middleware, Content-Length, encoded proxy bodies),
63
+ * before anything is parsed or decoded. Rejections against these carry
64
+ * code `PAYLOAD_TOO_LARGE` (`payload-too-large.ts`) — the remedy is to
65
+ * split the delivery. Decoded/parsed-content caps (code `FILE_TOO_LARGE`)
66
+ * live in `file-io.ts`.
67
+ */
68
+ const MEBIBYTE = 1024 * 1024;
69
+ /**
70
+ * Gateway (CF Worker) proxy cap on any request body it forwards — both
71
+ * pass-through requests and route-constructed (`options.body`) proxy
72
+ * payloads. Workers buffer forwarded bodies (streaming upstream stalls),
73
+ * so this bounds Worker memory per request.
74
+ */
75
+ const SANDBOX_PROXY_REQUEST_MAX_BYTES = MEBIBYTE;
76
+ 32 * MEBIBYTE;
77
+ /**
78
+ * Max assembled size of one chunked-upload session — the ceiling of the
79
+ * sanctioned >1 MiB delivery path. Parts stage in sidecar memory until
80
+ * commit, so this bounds per-session memory, not the destination
81
+ * filesystem.
82
+ */
83
+ const FILE_UPLOAD_SESSION_MAX_BYTES = 64 * MEBIBYTE;
84
+ 128 * MEBIBYTE;
85
+ //#endregion
86
+ //#region ../../../packages/runtime-contracts/dist/size-limit-errors.js
87
+ /** Canonical error codes for wire-size and decoded-content rejections. */
88
+ const PAYLOAD_TOO_LARGE_CODE = "PAYLOAD_TOO_LARGE";
89
+ const FILE_TOO_LARGE_CODE = "FILE_TOO_LARGE";
90
+ function isRecord(value) {
91
+ return value !== null && typeof value === "object" && !Array.isArray(value);
92
+ }
93
+ function isPositiveInteger(value) {
94
+ return typeof value === "number" && Number.isInteger(value) && value > 0;
95
+ }
96
+ function isSizeLimitErrorBodyFor(value, code) {
97
+ if (!isRecord(value) || value.success !== false || !isRecord(value.error)) return false;
98
+ const error = value.error;
99
+ return error.code === code && typeof error.message === "string" && typeof error.surface === "string" && isPositiveInteger(error.limitBytes) && (error.actualBytes === void 0 || isPositiveInteger(error.actualBytes));
100
+ }
101
+ function isPayloadTooLargeErrorBody(value) {
102
+ return isSizeLimitErrorBodyFor(value, PAYLOAD_TOO_LARGE_CODE);
103
+ }
104
+ function isFileTooLargeErrorBody(value) {
105
+ return isSizeLimitErrorBodyFor(value, FILE_TOO_LARGE_CODE);
106
+ }
107
+ //#endregion
1
108
  //#region src/errors.ts
2
109
  /**
110
+ * Sandbox SDK Errors
111
+ *
112
+ * Error classes for the Sandbox client SDK.
113
+ */
114
+ /**
3
115
  * Base error class for all Sandbox SDK errors.
4
116
  */
5
117
  var SandboxError = class extends Error {
@@ -181,6 +293,22 @@ var ValidationError = class extends SandboxError {
181
293
  }
182
294
  };
183
295
  /**
296
+ * A profile file mount names a path that the sidecar file API refuses: an
297
+ * absolute path outside `SANDBOX_FILE_API_ABSOLUTE_ROOTS`. create() throws it
298
+ * before it provisions a sandbox, and a turn throws it before any write. The
299
+ * status is 422 and the code is `PROFILE_FILE_MOUNT_OUTSIDE_ROOTS`: a retry
300
+ * with the same profile gets the same refusal.
301
+ */
302
+ var ProfileFileMountPathError = class extends SandboxError {
303
+ /** The refused mount path, exactly as the profile gave it. */
304
+ path;
305
+ constructor(path, message, code, metadata) {
306
+ super(message, code, 422, metadata);
307
+ this.name = "ProfileFileMountPathError";
308
+ this.path = path;
309
+ }
310
+ };
311
+ /**
184
312
  * The sandbox is not in a valid state for the requested operation.
185
313
  */
186
314
  var StateError = class extends SandboxError {
@@ -520,6 +648,7 @@ function parseErrorResponse(status, body, context, headers) {
520
648
  if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
521
649
  if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
522
650
  if (code === "EGRESS_PROXY_RECOVERY_REQUIRED") return new EgressProxyRecoveryError(message, metadata);
651
+ if (code === "PROFILE_FILE_MOUNT_OUTSIDE_ROOTS" && typeof data.path === "string") return new ProfileFileMountPathError(data.path, message, code, metadata);
523
652
  if (code === "RESUME_ENV_REQUIRED") {
524
653
  const keys = data.missingEnvKeys;
525
654
  return new ResumeEnvRequiredError(message, Array.isArray(keys) ? keys.filter((key) => typeof key === "string") : [], metadata);
@@ -563,4 +692,4 @@ function readResponseJson(response) {
563
692
  });
564
693
  }
565
694
  //#endregion
566
- export { readResponseJson as C, parseResponseError as S, StateError as _, EgressProxyRecoveryError as a, ValidationError as b, KeyBudgetExhaustedError as c, NotFoundError as d, PartialFailureError as f, ServerError as g, SandboxError as h, EdgeNotReadyError as i, NON_RETRYABLE_CREATE_QUOTA_REASONS as l, ResumeEnvRequiredError as m, BranchFanoutExceedsHostError as n, FileWriteConflictError as o, QuotaError as p, CapabilityError as r, GpuProviderNotConfiguredError as s, AuthError as t, NetworkError as u, StreamInterruptedError as v, parseErrorResponse as x, TimeoutError as y };
695
+ export { PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE as A, parseResponseError as C, FILE_UPLOAD_SESSION_MAX_BYTES as D, isPayloadTooLargeErrorBody as E, SANDBOX_FILE_API_ABSOLUTE_ROOTS as M, isProfileFileMountOutsideRoots as N, SANDBOX_PROXY_REQUEST_MAX_BYTES as O, profileFileMountOutsideRootsMessage as P, parseErrorResponse as S, isFileTooLargeErrorBody as T, ServerError as _, EgressProxyRecoveryError as a, TimeoutError as b, KeyBudgetExhaustedError as c, NotFoundError as d, PartialFailureError as f, SandboxError as g, ResumeEnvRequiredError as h, EdgeNotReadyError as i, SANDBOX_AGENT_HOME as j, FILE_DECODED_WRITE_MAX_BYTES as k, NON_RETRYABLE_CREATE_QUOTA_REASONS as l, QuotaError as m, BranchFanoutExceedsHostError as n, FileWriteConflictError as o, ProfileFileMountPathError as p, CapabilityError as r, GpuProviderNotConfiguredError as s, AuthError as t, NetworkError as u, StateError as v, readResponseJson as w, ValidationError as x, StreamInterruptedError as y };
@@ -139,6 +139,18 @@ declare class ValidationError extends SandboxError {
139
139
  readonly fields?: Record<string, string>;
140
140
  constructor(message: string, fields?: Record<string, string>, metadata?: SandboxErrorMetadata, code?: string);
141
141
  }
142
+ /**
143
+ * A profile file mount names a path that the sidecar file API refuses: an
144
+ * absolute path outside `SANDBOX_FILE_API_ABSOLUTE_ROOTS`. create() throws it
145
+ * before it provisions a sandbox, and a turn throws it before any write. The
146
+ * status is 422 and the code is `PROFILE_FILE_MOUNT_OUTSIDE_ROOTS`: a retry
147
+ * with the same profile gets the same refusal.
148
+ */
149
+ declare class ProfileFileMountPathError extends SandboxError {
150
+ /** The refused mount path, exactly as the profile gave it. */
151
+ readonly path: string;
152
+ constructor(path: string, message: string, code: string, metadata?: SandboxErrorMetadata);
153
+ }
142
154
  /**
143
155
  * The sandbox is not in a valid state for the requested operation.
144
156
  */
@@ -306,4 +318,4 @@ declare class ServerError extends SandboxError {
306
318
  constructor(message: string, status?: number, metadata?: SandboxErrorMetadata, code?: string);
307
319
  }
308
320
  //#endregion
309
- export { ValidationError as C, TimeoutError as S, SandboxFailureDetail as _, EgressProxyRecoveryError as a, StreamInterruptedError as b, GpuProviderRequirement as c, NotFoundError as d, PartialFailureError as f, SandboxErrorJson as g, SandboxError as h, EdgeNotReadyError as i, KeyBudgetExhaustedError as l, ResumeEnvRequiredError as m, BranchFanoutExceedsHostError as n, FileWriteConflictError as o, QuotaError as p, CapabilityError as r, GpuProviderNotConfiguredError as s, AuthError as t, NetworkError as u, ServerError as v, StreamInterruptionReason as x, StateError as y };
321
+ export { TimeoutError as C, StreamInterruptionReason as S, SandboxErrorJson as _, EgressProxyRecoveryError as a, StateError as b, GpuProviderRequirement as c, NotFoundError as d, PartialFailureError as f, SandboxError as g, ResumeEnvRequiredError as h, EdgeNotReadyError as i, KeyBudgetExhaustedError as l, QuotaError as m, BranchFanoutExceedsHostError as n, FileWriteConflictError as o, ProfileFileMountPathError as p, CapabilityError as r, GpuProviderNotConfiguredError as s, AuthError as t, NetworkError as u, SandboxFailureDetail as v, ValidationError as w, StreamInterruptedError as x, ServerError as y };
@@ -1,4 +1,4 @@
1
- import { n as SandboxInstance } from "./sandbox-I390rjrp.js";
1
+ import { n as SandboxInstance } from "./sandbox-NDYZY46C.js";
2
2
  import { B as CreateSandboxOptions, Cn as HttpClient } from "./types-Bal6rlUP.js";
3
3
 
4
4
  //#region src/tangle/abi.d.ts
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-I390rjrp.js";
1
+ import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-NDYZY46C.js";
2
2
  import { $ as DockerDriverConfig, $a as WriteFileOptions, $i as SecretInfo, $n as ProcessInfo, $r as SandboxFleetIntelligenceEnvelope, $t as ForkCounts, A as CommitTaskSessionOptions, Aa as StorageConfig, Ai as SandboxRemovalState, Ar as RolloutStatus, At as FileTreeFile, B as CreateSandboxOptions, Ba as TeePublicKey, Bi as SandboxTerminalAttachOptions, Bn as ManagedProcessSpec, Br as SandboxEgressUsage, Bt as FleetDispatchCancelResult, C as BranchOptions, Ci as SandboxInfo, Co as BatchEventDataMap, Ct as FileInfo, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Do as BackendType, Dr as RolloutOptions, Dt as FileReadResult, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Eo as ALL_BACKEND_TYPES, Er as RolloutChildResult, Et as FileReadError, F as CreateIntelligenceReportOptions, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Fn as MAX_EGRESS_DENIALS_LIMIT, Fr as SandboxConfig, Ft as FileWriteResult, G as DeleteMatchingSandboxesFilter, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, Gr as SandboxFleetArtifact, Gt as FleetDriveTurnRequest, H as CreateTaskSessionOptions, Ha as TokenRefreshHandler, Hi as SandboxTerminalInfo, Hn as McpServerConfig, Hr as SandboxEvent, Ht as FleetDispatchResultBufferOptions, I as CreateRequestOptions, Ia as TaskSessionProfile, Ii as SandboxShape, In as ManagedProcessJobs, Ir as SandboxConnection, It as FleetAgentId, J as DeleteOptions, Ja as UploadProgress, Ji as SandboxTraceExport, Jn as PermissionsManager, Jr as SandboxFleetDispatchFailureClass, Jt as FleetMachineId, K as DeleteMatchingSandboxesOptions, Ka as UpdateUserOptions, Ki as SandboxTraceBundle, Kn as NonHostAgentDriverConfig, Kr as SandboxFleetArtifactSpec, Kt as FleetExecDispatchOptions, L as CreateSandboxFleetOptions, La as TeeAttestationOptions, Li as SandboxShapePreset, Ln as ManagedProcessOptions, Lr as SandboxDeleteAcknowledgement, Lt as FleetAgentPlacement, M as ConversationTurnOptions, Ma as TaskSessionChanges, Mi as SandboxResources, Mn as ListOptions, Mr as RouterRoutingOptions, Mt as FileTreeResult, N as ConversationTurnResult, Na as TaskSessionCommitResult, Ni as SandboxRunGeneration, Nn as ListSandboxFleetOptions, Nr as SSHCommandDescriptor, Nt as FileUsageOptions, Oa as StartupOperation, Oi as SandboxPortBinding, On as IntelligenceReportSubjectType, Oo as parseBackendType, Or as RolloutScorer, Ot as FileRenameResult, P as CreateGpuLeaseOptions, Pa as TaskSessionFileChange, Pi as SandboxRuntimeCapabilities, Pn as ListSandboxOptions, Pr as SSHCredentials, Pt as FileUsageResult, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Qn as Process, Qr as SandboxFleetInfo, Qt as FleetRunOptions, Ra as TeeAttestationReport, Ri as SandboxShapesInfo, Rn as ManagedProcessRecord, Rr as SandboxDeleteOptions, Rt as FleetAgentResult, S as BatchTaskResult, Sa as SnapshotOptions, Si as SandboxIdentity, Sn as HostAgentRuntimeBackend, So as BatchEvent, Sr as RenameOptions, St as ExecResult, T as ChunkedUploadResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, To as BatchTaskUsage, Tr as Rollout, Tt as FileReadBatchResult, U as DeleteMatchingSandboxOutcome, Ua as TokenUsage, Ui as SandboxTerminalManager, Un as MkdirOptions, Ur as SandboxFleetAgent, Ut as FleetDispatchStreamOptions, V as CreateSessionOptions, Va as TeePublicKeyResponse, Vi as SandboxTerminalCreateOptions, Vn as ManagedProcessState, Vr as SandboxEnvironment, Vt as FleetDispatchResultBuffer, W as DeleteMatchingSandboxResult, Wa as TurnBackendConfig, Wi as SandboxTerminalRequestOptions, Wn as NetworkConfig, Wr as SandboxFleetAgentSpec, Wt as FleetDriveTurnOutcome, X as DirectoryPermission, Xa as WaitForOptions, Xi as SandboxUser, Xn as PreviewLinkManager, Xr as SandboxFleetDriverCapability, Xt as FleetPromptDispatchResult, Y as DevServerInfo, Ya as UsageInfo, Yi as SandboxTraceOptions, Yn as PreviewLinkInfo, Yr as SandboxFleetDispatchResponse, Yt as FleetPromptDispatchOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, Zn as PreviewLinkWaitOptions, Zr as SandboxFleetDriverTimings, Zt as FleetRunEvent, _ as BatchBackend, _a as SessionStatus, _i as SandboxFleetUsage, _n as GpuLeaseProviderStatus, _o as RawEvidenceRecordsFile, _r as PublishPublicTemplateVersionOptions, _t as EgressPolicy, aa as SessionEventStreamOptions, ai as SandboxFleetManifestMachine, an as GitCommit, ao as SandboxEnvRecovery, ar as ProcessStatus, at as DriverInfo, b as BatchRunRequest, ba as SnapshotIdempotency, bi as SandboxFleetWorkspaceRestoreResult, bn as GpuLeaseStatus, bo as PublicBatchRunRequest, br as ReconcileSandboxFleetsOptions, bt as ExactProcessSpawnOptions, c as AttachGpuLeaseOptions, ca as SessionFailureReason, ci as SandboxFleetPlacement, cn as GitStatus, co as RawEvidenceArchiveManifest, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, di as SandboxFleetSpend, dn as GpuLeaseCommandResult, do as RawEvidenceBoxDirectoryExport, dr as ProvisionStatus, ea as SecretsManager, ei as SandboxFleetMachine, en as ForkIdempotency, eo as WriteManyFile, er as ProcessListOptions, et as DownloadOptions, f as BackendInfo, fa as SessionListOptions, fi as SandboxFleetToken, fn as GpuLeaseExecOptions, fo as RawEvidenceBoxExportOptions, fr as ProvisionStep, ft as EffectiveBackend, g as BackendStatus, ga as SessionResultOptions, gi as SandboxFleetTraceOptions, gn as GpuLeaseProviderState, go as RawEvidencePayloadFile, gr as PublishPublicTemplateOptions, gt as EgressManager, h as BackendRuntimeConfigUpdate, ha as SessionMessageInputPart, hi as SandboxFleetTraceExport, hn as GpuLeaseProviderName, ho as RawEvidenceNativeFile, hr as PublicTemplateVersionInfo, ht as EgressDenial, ia as SessionBackendCredentials, ii as SandboxFleetManifest, in as GitBranch, io as SandboxCreateReceipt, ir as ProcessSpawnOptions, it as DriverConfig, j as CompletedTurnResult, ja as SubscriptionInfo, ji as SandboxResourceUsage, jn as ListMessagesOptions, jr as RolloutTurnPart, jt as FileTreeOptions, ka as StopOptions, ki as SandboxPortPreviewLink, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, l as AttachSandboxFleetMachineOptions, la as SessionForkOptions, li as SandboxFleetPolicy, ln as GpuLease, lo as RawEvidenceArchiveManifestNative, lr as ProvisionEvent, lt as DurablePlanDecisionResult, m as BackendMcpServerStatus, ma as SessionMessageAdmission, mi as SandboxFleetTraceEvent, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, mr as PublicTemplateInfo, mt as EffectiveBackendSource, n as AccessPolicyRule, na as SendSessionMessageRequest, ni as SandboxFleetMachineRecord, nn as GPU_LEASE_PROVIDER_NAMES, nr as ProcessManager, nt as DownloadResult, oa as SessionExecutionInfo, oi as SandboxFleetOperationsSummary, on as GitConfig, oo as SandboxEnvRecoveryView, or as PromptInputPart, ot as DriverType, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, pn as GpuLeaseExecResult, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, pt as EffectiveBackendProfile, q as DeleteMatchingSandboxesResult, qa as UploadOptions, qi as SandboxTraceEvent, qn as PermissionLevel, qr as SandboxFleetCostEstimate, r as AddUserOptions, ra as SentSessionMessage, ri as SandboxFleetMachineSpec, rn as GitAuth, ro as SandboxCreateOutcome, rr as ProcessSignal, rt as DriveTurnOptions, sa as SessionExecutionStatus, si as SandboxFleetParent, sn as GitDiff, so as NativeStoreHomeCopy, sr as PromptOptions, st as DurablePlan, t as AcceleratorKind, ta as SendSessionMessageOptions, ti as SandboxFleetMachineMeteredUsage, tn as ForkLookupOptions, to as WriteManyOptions, tr as ProcessLogEntry, tt as DownloadProgress, u as BackendCapabilities, ua as SessionInfo, ui as SandboxFleetProfileRef, un as GpuLeaseBilling, uo as RawEvidenceBoxArchiveManifest, ur as ProvisionResult, ut as DurablePlanFollowUpResume, v as BatchResult, va as SnapshotDeleteAcknowledgement, vi as SandboxFleetWorkspace, vn as GpuLeaseProviders, vr as ReapExpiredSandboxFleetsOptions, vt as EnsureDevServerOptions, w as ChunkedUploadOptions, wa as SnapshotRemoteSync, wi as SandboxIntelligenceEnvelope, wn as InstalledTool, wo as BatchSidecarGroup, wt as FileReadBatchOptions, x as BatchTask, xa as SnapshotInfo, xi as SandboxFleetWorkspaceSnapshotResult, xn as HostAgentDriverConfig, xo as BatchBackendStats, xr as ReconcileSandboxFleetsResult, xt as ExecOptions, y as BatchRunOptions, ya as SnapshotDeleteOutcome, yi as SandboxFleetWorkspaceReconcileResult, yn as GpuLeaseProvidersOptions, yr as ReapExpiredSandboxFleetsResult, yt as EventStreamOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeeAttestationResponse, zi as SandboxStatus, zn as ManagedProcessResumeOptions, zr as SandboxDeleteOutcome, zt as FleetAgentRunStatus } from "./types-Bal6rlUP.js";
3
3
  import { _ as TerminalInteractiveSessionIdentity, a as TerminalStreamError, b as TerminalReadyTimings, d as MintInteractiveSessionTokenOptions, f as MintScopedTokenOptions, g as TerminalExitInfo, h as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamBearerToken, l as TerminalStreamToken, m as ScopedTokenScope, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, r as TerminalStreamApiKey, s as TerminalStreamOptions, t as TerminalAttachTimings, u as terminalUpgradeHeadersSupported, v as TerminalOutputMessage, x as TerminalStreamAuthFormat, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
4
4
  import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
5
5
  import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
6
6
  import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-CodL_Yhd.js";
7
- import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, x as StreamInterruptionReason, y as StateError } from "./errors-BSmxfVt0.js";
8
- import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-C7KaqyfN.js";
9
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
7
+ import { C as TimeoutError, S as StreamInterruptionReason, _ as SandboxErrorJson, a as EgressProxyRecoveryError, b as StateError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxError, h as ResumeEnvRequiredError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as QuotaError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, x as StreamInterruptedError, y as ServerError } from "./errors-H96CGXWZ.js";
8
+ import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-CnP49sg1.js";
9
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CrcJd0Ho.js";
10
10
  import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DfA_usrZ.js";
11
11
  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-CWUW8pqr.js";
12
12
  import { t as ManagedProcessClient } from "./managed-process-BEgMYGGu.js";
13
13
  import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BjZ1EHSq.js";
14
- import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-BiJDEVsu.js";
14
+ import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-CygLpbAJ.js";
15
15
  import { z } from "zod";
16
16
  import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
17
17
  import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
@@ -4704,4 +4704,4 @@ interface RouterEvalMatrixCaseResult {
4704
4704
  }
4705
4705
  declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
4706
4706
  //#endregion
4707
- 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, BranchFanoutExceedsHostError, 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 DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DockerDriverConfig, type DownloadOptions, type DownloadProgress, type DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionOptions, type DurablePlanDecisionResult, type DurablePlanFollowUpResume, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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 GpuLeaseProviderState, type GpuLeaseProviderStatus, type GpuLeaseProviders, type GpuLeaseProvidersOptions, type GpuLeaseStatus, GpuProviderNotConfiguredError, type GpuProviderRequirement, type HostAgentDriverConfig, type HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NativeStoreHomeCopy, 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 ProfileFileDeliveryReport, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicProfileConflict, type PublicTemplateInfo, type PublicTemplatePublishArtifact, PublicTemplatePublishError, type PublicTemplatePublishJob, type PublicTemplatePublishRequestOptions, type PublicTemplateVersionInfo, PublicTemplatesClient, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceArchiveManifestNative, type RawEvidenceBoxArchiveManifest, type RawEvidenceBoxDirectoryExport, type RawEvidenceBoxExportOptions, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, 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 RouterRoutingOptions, type RouterSearchConfig, type RouterSearchConfigOptions, type RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, type RunsHttpClient, 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 SandboxEgressUsage, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, SandboxOperation, SandboxOperationFailedError, type SandboxOperationInfo, type SandboxOperationKind, type SandboxOperationState, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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 SnapshotRemoteSync, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StopOptions, type StorageConfig, StreamInterruptedError, type StreamInterruptionReason, 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 TerminalAttachTimings, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, type TerminalReadyTimings, TerminalStream, type TerminalStreamApiKey, type TerminalStreamAuthFormat, type TerminalStreamBearerToken, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnBackendConfig, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
4707
+ 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, BranchFanoutExceedsHostError, 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 DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DockerDriverConfig, type DownloadOptions, type DownloadProgress, type DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionOptions, type DurablePlanDecisionResult, type DurablePlanFollowUpResume, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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 GpuLeaseProviderState, type GpuLeaseProviderStatus, type GpuLeaseProviders, type GpuLeaseProvidersOptions, type GpuLeaseStatus, GpuProviderNotConfiguredError, type GpuProviderRequirement, type HostAgentDriverConfig, type HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NativeStoreHomeCopy, 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 ProfileFileDeliveryReport, ProfileFileMountPathError, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicProfileConflict, type PublicTemplateInfo, type PublicTemplatePublishArtifact, PublicTemplatePublishError, type PublicTemplatePublishJob, type PublicTemplatePublishRequestOptions, type PublicTemplateVersionInfo, PublicTemplatesClient, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceArchiveManifestNative, type RawEvidenceBoxArchiveManifest, type RawEvidenceBoxDirectoryExport, type RawEvidenceBoxExportOptions, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, 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 RouterRoutingOptions, type RouterSearchConfig, type RouterSearchConfigOptions, type RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, type RunsHttpClient, 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 SandboxEgressUsage, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, SandboxOperation, SandboxOperationFailedError, type SandboxOperationInfo, type SandboxOperationKind, type SandboxOperationState, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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 SnapshotRemoteSync, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StopOptions, type StorageConfig, StreamInterruptedError, type StreamInterruptionReason, 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 TerminalAttachTimings, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, type TerminalReadyTimings, TerminalStream, type TerminalStreamApiKey, type TerminalStreamAuthFormat, type TerminalStreamBearerToken, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnBackendConfig, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-D6bYbvMB.js";
2
- import { B as deriveAgentRunOutcome, D as parseSSEStream, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentResultOutcome } from "./interactive-controller-B2VcB_SK.js";
3
- import { _ as StateError, a as EgressProxyRecoveryError, b as ValidationError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StreamInterruptedError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
4
- import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-CdNw2DEF.js";
2
+ import { B as deriveAgentRunOutcome, D as parseSSEStream, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentResultOutcome } from "./interactive-controller-CDtsgRnx.js";
3
+ import { _ as ServerError, a as EgressProxyRecoveryError, b as TimeoutError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as SandboxError, h as ResumeEnvRequiredError, i as EdgeNotReadyError, m as QuotaError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError, y as StreamInterruptedError } from "./errors-Bfhg_Zc6.js";
4
+ import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-Bfc6UMn7.js";
5
5
  import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
6
- import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-BGyIDjUH.js";
6
+ import { C as ManagedProcessClient, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, F as toOtelJson, M as buildTraceExportPayload, N as exportTraceBundle, O as validateDeferredProfileFileMounts, P as otelTraceIdForTangleTrace, S as isToolBearingEvent, T as materializeProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as applySandboxEventText, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-NDSp3I1V.js";
7
7
  import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
8
8
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
9
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DZCyTGdn.js";
9
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-CXtTwK3x.js";
10
10
  import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
11
- import { s as TangleSandboxClient } from "./tangle-9PQPjv8y.js";
11
+ import { s as TangleSandboxClient } from "./tangle-Cwu6ql_V.js";
12
12
  import { z } from "zod";
13
13
  import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
14
14
  //#region src/confidential.ts
@@ -1483,4 +1483,4 @@ function stripUndefined(value) {
1483
1483
  return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
1484
1484
  }
1485
1485
  //#endregion
1486
- export { ALL_BACKEND_TYPES, AuthError, BranchFanoutExceedsHostError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, GpuProviderNotConfiguredError, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxOperation, SandboxOperationFailedError, SandboxSession, SandboxTaskSession, ServerError, StateError, StreamInterruptedError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
1486
+ export { ALL_BACKEND_TYPES, AuthError, BranchFanoutExceedsHostError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, GpuProviderNotConfiguredError, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxOperation, SandboxOperationFailedError, SandboxSession, SandboxTaskSession, ServerError, StateError, StreamInterruptedError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
@@ -1,4 +1,4 @@
1
- import { u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "../errors-DSJBKmGZ.js";
1
+ import { S as parseErrorResponse, b as TimeoutError, u as NetworkError } from "../errors-Bfhg_Zc6.js";
2
2
  //#region src/intelligence/index.ts
3
3
  /**
4
4
  * `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
@@ -1,7 +1,7 @@
1
1
  import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
2
- import { S as parseResponseError, b as ValidationError, g as ServerError, h as SandboxError, r as CapabilityError, u as NetworkError } from "./errors-DSJBKmGZ.js";
2
+ import { C as parseResponseError, _ as ServerError, g as SandboxError, r as CapabilityError, u as NetworkError, x as ValidationError } from "./errors-Bfhg_Zc6.js";
3
3
  import { c as assertInteractiveSessionRef, d as awaitWithAbort, f as combineAbortSignals, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint } from "./browser-interactive-control-controller-BJf0P_J4.js";
4
- import { s as uploadChunked } from "./chunked-upload-ClCKGr59.js";
4
+ import { s as uploadChunked } from "./chunked-upload-B867njKv.js";
5
5
  import { z } from "zod";
6
6
  import { AgentExactRunControlRefSchema, AgentExecutionOutcomeSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionRefSchema, AgentRuntimeAttachmentsSchema, DurablePlanSchema, InteractionRequestSchema, PlanContinuationSchema, agentInteractiveSessionControlClaimMatchesRef, agentProfileSchema, canonicalCandidateDigest } from "@tangle-network/agent-interface";
7
7
  //#region src/agent-run-outcome-inspection.ts
package/dist/lines.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as ValidationError, x as parseErrorResponse } from "./errors-DSJBKmGZ.js";
1
+ import { S as parseErrorResponse, x as ValidationError } from "./errors-Bfhg_Zc6.js";
2
2
  //#region src/lines.ts
3
3
  /**
4
4
  * Lines: give a sandbox a phone number or messaging address.
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-BvXQd1UX.js";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DBRU4ifV.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { homedir } from "node:os";
@@ -1,6 +1,6 @@
1
- import { n as SandboxInstance } from "./sandbox-I390rjrp.js";
1
+ import { n as SandboxInstance } from "./sandbox-NDYZY46C.js";
2
2
  import { Yn as PreviewLinkInfo, vt as EnsureDevServerOptions } from "./types-Bal6rlUP.js";
3
- import { i as Sandbox } from "./client-C7KaqyfN.js";
3
+ import { i as Sandbox } from "./client-CnP49sg1.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
1
  import { Cn as HttpClient, _r as PublishPublicTemplateVersionOptions, gr as PublishPublicTemplateOptions, hr as PublicTemplateVersionInfo, mr as PublicTemplateInfo } from "./types-Bal6rlUP.js";
2
- import { h as SandboxError } from "./errors-BSmxfVt0.js";
2
+ import { g as SandboxError } from "./errors-H96CGXWZ.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/public-templates.d.ts
@@ -1,2 +1,2 @@
1
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CAMfH_Yr.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CrcJd0Ho.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
@@ -1,4 +1,4 @@
1
- import { C as readResponseJson, h as SandboxError } from "./errors-DSJBKmGZ.js";
1
+ import { g as SandboxError, w as readResponseJson } from "./errors-Bfhg_Zc6.js";
2
2
  import { z } from "zod";
3
3
  //#region src/public-templates.ts
4
4
  const publicationStatus = z.enum([
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@ import { $a as WriteFileOptions, A as CommitTaskSessionOptions, Fa as TaskSessio
2
2
  import { n as TerminalStream, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
3
3
  import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
4
4
  import { t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
5
- import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-BSmxfVt0.js";
5
+ import { C as TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } from "./errors-H96CGXWZ.js";
6
6
  import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BjZ1EHSq.js";
7
7
 
8
8
  //#region src/lib/chunked-upload.d.ts
@@ -135,4 +135,4 @@ declare class SandboxRuntimeClient extends SandboxRuntimeApi {
135
135
  }
136
136
  declare function createSandboxRuntimeClient(config: SandboxRuntimeClientConfig): SandboxRuntimeClient;
137
137
  //#endregion
138
- export { type AgentRunOutcome, type AgentRunOutcomeTracker, AuthError, BrowserInteractiveSessionController, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, FileWriteConflictError, type FileWriteResult, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type ScopedToken, ServerError, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionMessage, type SessionMessageAdmission, StateError, type TerminalStream, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, browserInteractiveControlHolderId, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, projectAgentTerminalRecord, uploadChunked };
138
+ export { type AgentRunOutcome, type AgentRunOutcomeTracker, AuthError, BrowserInteractiveSessionController, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, FileWriteConflictError, type FileWriteResult, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type ScopedToken, ServerError, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionMessage, type SessionMessageAdmission, StateError, type TerminalStream, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, browserInteractiveControlHolderId, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, projectAgentTerminalRecord, uploadChunked };
package/dist/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
- import { B as deriveAgentRunOutcome, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, t as BrowserInteractiveSessionController, u as SandboxRuntimeApi, z as deriveAgentResultOutcome } from "./interactive-controller-B2VcB_SK.js";
2
- import { _ as StateError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
1
+ import { B as deriveAgentRunOutcome, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, t as BrowserInteractiveSessionController, u as SandboxRuntimeApi, z as deriveAgentResultOutcome } from "./interactive-controller-CDtsgRnx.js";
2
+ import { _ as ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError } from "./errors-Bfhg_Zc6.js";
3
3
  import { f as combineAbortSignals, n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BJf0P_J4.js";
4
- import { s as uploadChunked } from "./chunked-upload-ClCKGr59.js";
4
+ import { s as uploadChunked } from "./chunked-upload-B867njKv.js";
5
5
  //#region src/runtime-client.ts
6
6
  const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
7
7
  function requireToken(token) {
@@ -82,4 +82,4 @@ function createSandboxRuntimeClient(config) {
82
82
  return new SandboxRuntimeClient(config);
83
83
  }
84
84
  //#endregion
85
- export { AuthError, BrowserInteractiveSessionController, CapabilityError, FileWriteConflictError, InteractiveSessionNotRunningError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, browserInteractiveControlHolderId, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, projectAgentTerminalRecord, uploadChunked };
85
+ export { AuthError, BrowserInteractiveSessionController, CapabilityError, FileWriteConflictError, InteractiveSessionNotRunningError, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, browserInteractiveControlHolderId, createAgentRunOutcomeTracker, createSandboxRuntimeClient, deriveAgentResultOutcome, deriveAgentRunOutcome, projectAgentTerminalRecord, uploadChunked };
@@ -1,11 +1,11 @@
1
1
  import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
2
- import { C as resolveDispatchRunIdentity, D as parseSSEStream, E as encodeTextForWire, L as withoutRuntimeSecrets, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, O as applyRequestedModel, P as requestedSecretProfilePublicDigest, R as createAgentRunOutcomeTracker, S as canUseNodeHttp2, T as encodePromptForWire, _ as mintTraceId, a as terminalUpgradeHeadersSupported, b as appendSessionIdQuery, d as isRetryableCredentialRefusal, f as normalizeSessionInfo, g as isTraceId, h as TRACE_ID_HEADER, i as TerminalStreamError, j as mergeRuntimeBackendConfig, k as assertCurrentBackendType, l as requestScopedToken, m as waitForRetryAfter, n as InteractiveSessionController, p as sessionMessageRequestBody, r as TerminalStream, s as assertScopedTokenActive, u as SandboxRuntimeApi, v as resolveTraceId, w as validateAcceptedDispatchRunRef, x as sessionHeaders, y as traceHeaders, z as deriveAgentResultOutcome } from "./interactive-controller-B2VcB_SK.js";
3
- import { C as readResponseJson, S as parseResponseError, _ as StateError, b as ValidationError, d as NotFoundError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as StreamInterruptedError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
2
+ import { C as resolveDispatchRunIdentity, D as parseSSEStream, E as encodeTextForWire, L as withoutRuntimeSecrets, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, O as applyRequestedModel, P as requestedSecretProfilePublicDigest, R as createAgentRunOutcomeTracker, S as canUseNodeHttp2, T as encodePromptForWire, _ as mintTraceId, a as terminalUpgradeHeadersSupported, b as appendSessionIdQuery, d as isRetryableCredentialRefusal, f as normalizeSessionInfo, g as isTraceId, h as TRACE_ID_HEADER, i as TerminalStreamError, j as mergeRuntimeBackendConfig, k as assertCurrentBackendType, l as requestScopedToken, m as waitForRetryAfter, n as InteractiveSessionController, p as sessionMessageRequestBody, r as TerminalStream, s as assertScopedTokenActive, u as SandboxRuntimeApi, v as resolveTraceId, w as validateAcceptedDispatchRunRef, x as sessionHeaders, y as traceHeaders, z as deriveAgentResultOutcome } from "./interactive-controller-CDtsgRnx.js";
3
+ import { A as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, C as parseResponseError, M as SANDBOX_FILE_API_ABSOLUTE_ROOTS, N as isProfileFileMountOutsideRoots, O as SANDBOX_PROXY_REQUEST_MAX_BYTES, P as profileFileMountOutsideRootsMessage, S as parseErrorResponse, _ as ServerError, b as TimeoutError, d as NotFoundError, g as SandboxError, i as EdgeNotReadyError, j as SANDBOX_AGENT_HOME, m as QuotaError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, w as readResponseJson, x as ValidationError, y as StreamInterruptedError } from "./errors-Bfhg_Zc6.js";
4
4
  import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
5
5
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-qPVvvkgJ.js";
6
6
  import { SandboxLines } from "./lines.js";
7
- import { l as SANDBOX_PROXY_REQUEST_MAX_BYTES, s as uploadChunked } from "./chunked-upload-ClCKGr59.js";
8
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BvXQd1UX.js";
7
+ import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DBRU4ifV.js";
8
+ import { s as uploadChunked } from "./chunked-upload-B867njKv.js";
9
9
  import { z } from "zod";
10
10
  import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, PlanContinuationSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
11
11
  import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
@@ -338,7 +338,7 @@ const UNDECIDED_WRITE_STATUSES = new Set([
338
338
  ]);
339
339
  const PROFILE_FILE_MOUNT_PACE_MS = 0;
340
340
  const PROFILE_BIN_DIR_RE$1 = /(^|\/)(s?bin)\//;
341
- const PROFILE_AGENT_HOME = ["/home", "agent"].join("/");
341
+ const PROFILE_AGENT_HOME = SANDBOX_AGENT_HOME;
342
342
  /**
343
343
  * Wire budget for a single-shot `POST /files/write` of a mount.
344
344
  * Materialization runs over whatever connection the box has — on the
@@ -357,12 +357,8 @@ function fitsSingleShotWrite(content, contentBytes) {
357
357
  if (contentBytes * 6 <= PROFILE_FILE_WRITE_WIRE_BUDGET_BYTES) return true;
358
358
  return new TextEncoder().encode(JSON.stringify(content)).byteLength <= PROFILE_FILE_WRITE_WIRE_BUDGET_BYTES;
359
359
  }
360
- const DEFAULT_PROFILE_FILE_API_ABSOLUTE_PREFIXES = [
361
- PROFILE_AGENT_HOME,
362
- ["/home", "user"].join("/"),
363
- "/tmp",
364
- "/output"
365
- ];
360
+ /** The sidecar file API's absolute roots, read from their single owner. */
361
+ const DEFAULT_PROFILE_FILE_API_ABSOLUTE_PREFIXES = SANDBOX_FILE_API_ABSOLUTE_ROOTS;
366
362
  function inlineContent(mount) {
367
363
  const resource = mount.resource;
368
364
  if (resource.kind !== "inline") throw new Error(`materializeProfileFileMounts: ${mount.path} requires an inline resource`);
@@ -376,16 +372,31 @@ function inlineContent(mount) {
376
372
  * client-detectable bad input (traversal paths, control characters,
377
373
  * non-string content) fails without paying for a sandbox that would only be
378
374
  * orphaned by the post-provision throw.
375
+ *
376
+ * A path the sidecar file API refuses (an absolute path outside
377
+ * `SANDBOX_FILE_API_ABSOLUTE_ROOTS`) follows the profile's resource policy:
378
+ * with `failOnError` true (the default) it throws
379
+ * {@link ProfileFileMountPathError} (422); with `failOnError: false` the
380
+ * mount is dropped with a warning. Returns the mounts to deliver.
379
381
  */
380
- function validateDeferredProfileFileMounts(files) {
382
+ function validateDeferredProfileFileMounts(files, options = {}) {
383
+ const kept = [];
381
384
  const paths = /* @__PURE__ */ new Set();
382
385
  for (const mount of files) {
383
386
  inlineContent(mount);
384
387
  validateProfileFilePath(mount.path);
388
+ if (isProfileFileMountOutsideRoots(mount.path)) {
389
+ const message = `materializeProfileFileMounts: ${profileFileMountOutsideRootsMessage(mount.path)}`;
390
+ if (options.failOnError !== false) throw new ProfileFileMountPathError(mount.path, message, PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE);
391
+ console.warn(`[sandbox.profile] dropped profile file mount (resources.failOnError is false): ${message}`);
392
+ continue;
393
+ }
385
394
  const path = (mount.path.startsWith("~/") ? `${PROFILE_AGENT_HOME}/${mount.path.slice(2)}` : mount.path).replace(/\/+/g, "/");
386
395
  if (paths.has(path)) throw new Error(`materializeProfileFileMounts: duplicate file path ${mount.path}`);
387
396
  paths.add(path);
397
+ kept.push(mount);
388
398
  }
399
+ return kept;
389
400
  }
390
401
  /**
391
402
  * Split inline `resources.skills` out of a profile the way
@@ -592,6 +603,81 @@ function transientExecError(err) {
592
603
  };
593
604
  return { retryable: false };
594
605
  }
606
+ /**
607
+ * A materialization step failure. `detail` holds the sandbox's own output
608
+ * (stderr). It is kept apart from the message, which names the mount path,
609
+ * so classification never reads the caller's path as a cause.
610
+ */
611
+ var ProfileFileMaterializeError = class extends Error {
612
+ exitCode;
613
+ detail;
614
+ /** True when the SDK itself decided the failure, with no sandbox call. */
615
+ decided;
616
+ constructor(message, options = {}) {
617
+ super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
618
+ this.name = "ProfileFileMaterializeError";
619
+ this.exitCode = options.exitCode;
620
+ this.detail = options.detail;
621
+ this.decided = options.decided === true;
622
+ }
623
+ };
624
+ /**
625
+ * HTTP answers below 500 that do not decide a write after create: a route
626
+ * that is still settling (401, 404), a timeout, a conflict, too early, or a
627
+ * rate limit.
628
+ */
629
+ const UNSETTLED_HTTP_STATUSES = new Set([
630
+ 401,
631
+ 404,
632
+ 408,
633
+ 409,
634
+ 425,
635
+ 429
636
+ ]);
637
+ /** Sandbox output that names a cause a repeat cannot change. */
638
+ const DECIDED_CAUSE_RE = /\bEROFS\b|read-only file system|\bEACCES\b|\bEPERM\b|permission denied|operation not permitted|checksum mismatch|refusing|outside allowed roots|reserved control-plane|duplicate profile file target/i;
639
+ /**
640
+ * Whether a failed materialization may succeed when repeated. Only a clear
641
+ * deterministic cause makes it terminal:
642
+ * - a read-only file system, permission denied, a refused path or a
643
+ * checksum mismatch in the sandbox's output;
644
+ * - a 4xx write refusal other than {@link UNSETTLED_HTTP_STATUSES};
645
+ * - a delivery the SDK refused itself.
646
+ *
647
+ * A transport failure, a timeout, any 5xx (Cloudflare 520-530 included), an
648
+ * unsettled 4xx or an exit code of 128 or more (a signal or OOM kill) is
649
+ * retryable, and so is any failure with no clear cause. Text is read only
650
+ * from the sandbox's output and from errors the SDK did not raise, never from
651
+ * an SDK message that names the mount path.
652
+ */
653
+ function isRetryableProfileFileMaterializeFailure(err) {
654
+ let decided = false;
655
+ const seen = /* @__PURE__ */ new Set();
656
+ for (let link = err; link && typeof link === "object";) {
657
+ if (seen.has(link)) break;
658
+ seen.add(link);
659
+ if (link instanceof ProfileFileMountExecTimeoutError || link instanceof NetworkError || link instanceof TimeoutError) return true;
660
+ const status = errorStatus(link);
661
+ if (status !== void 0) {
662
+ if (status >= 500 || UNSETTLED_HTTP_STATUSES.has(status)) return true;
663
+ if (status >= 400) decided = true;
664
+ }
665
+ if (link instanceof ProfileFileMaterializeError) {
666
+ if (link.exitCode !== void 0 && link.exitCode >= 128) return true;
667
+ if (link.decided) decided = true;
668
+ if (link.detail !== void 0 && DECIDED_CAUSE_RE.test(link.detail)) decided = true;
669
+ } else {
670
+ const { code, message } = link;
671
+ if (typeof code === "string" && TRANSIENT_EXEC_CODE_RE.test(code)) return true;
672
+ if (typeof message === "string") {
673
+ if (TRANSIENT_EXEC_MESSAGE_RE.test(message)) return true;
674
+ if (DECIDED_CAUSE_RE.test(message)) decided = true;
675
+ }
676
+ }
677
+ link = link.cause;
678
+ }
679
+ return !decided;
680
+ }
595
681
  function isUndecidedWriteFailure(err) {
596
682
  if (err instanceof NetworkError) return true;
597
683
  if (!err || typeof err !== "object") return false;
@@ -655,13 +741,19 @@ async function execProfileFileMount(box, mount, content, options, execState) {
655
741
  await sleep(Math.min(retryAfter ?? backoff, PROFILE_FILE_MOUNT_RETRY_MAX_MS));
656
742
  continue;
657
743
  }
658
- throw new Error(`materializeProfileFileMounts: exec failed for ${path}`, { cause: err });
744
+ throw new ProfileFileMaterializeError(`materializeProfileFileMounts: exec failed for ${path}`, { cause: err });
659
745
  }
660
746
  }
661
747
  };
662
748
  const step = async (cmd) => {
663
749
  const result = await run(`${homeGuard}${cmd}`);
664
- if (result.exitCode !== 0) throw new Error(`materializeProfileFileMounts: failed to write ${path} (exit ${result.exitCode}): ${result.stderr.slice(0, 500)}`);
750
+ if (result.exitCode !== 0) {
751
+ const stderr = result.stderr.slice(0, 500);
752
+ throw new ProfileFileMaterializeError(`materializeProfileFileMounts: failed to write ${path} (exit ${result.exitCode}): ${stderr}`, {
753
+ exitCode: result.exitCode,
754
+ detail: stderr
755
+ });
756
+ }
665
757
  };
666
758
  await step(dir ? `mkdir -p ${shellPath(dir)}` : ":");
667
759
  for (let i = 0; i < b64Chunks.length; i++) {
@@ -696,7 +788,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
696
788
  const mode = profileFileMode(mount);
697
789
  const contentBytes = new TextEncoder().encode(content).byteLength;
698
790
  if (!fitsSingleShotWrite(content, contentBytes)) {
699
- if (typeof uploadDataFn !== "function") throw new Error(`materializeProfileFileMounts: ${mount.path} (${contentBytes} bytes decoded) does not fit a gateway-safe single-shot write once JSON-serialized, and the box does not expose fs.uploadData for chunked delivery`);
791
+ if (typeof uploadDataFn !== "function") throw new ProfileFileMaterializeError(`materializeProfileFileMounts: ${mount.path} (${contentBytes} bytes decoded) does not fit a gateway-safe single-shot write once JSON-serialized, and the box does not expose fs.uploadData for chunked delivery`, { decided: true });
700
792
  viaUpload.push({
701
793
  path: target,
702
794
  content,
@@ -725,7 +817,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
725
817
  maxRetries
726
818
  }), maxRetries);
727
819
  } catch (err) {
728
- throw new Error("materializeProfileFileMounts: file API batch write failed", { cause: err });
820
+ throw new ProfileFileMaterializeError("materializeProfileFileMounts: file API batch write failed", { cause: err });
729
821
  }
730
822
  let homeFilesWrittenByApi = 0;
731
823
  if (viaHomeFileApi.length > 0) {
@@ -741,7 +833,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
741
833
  }), maxRetries);
742
834
  homeFilesWrittenByApi = viaHomeFileApi.length;
743
835
  } catch (err) {
744
- if (!isFileApiRootOnlyError(err)) throw new Error("materializeProfileFileMounts: home file API batch write failed", { cause: err });
836
+ if (!isFileApiRootOnlyError(err)) throw new ProfileFileMaterializeError("materializeProfileFileMounts: home file API batch write failed", { cause: err });
745
837
  viaExec.push(...viaHomeFileApi.map(({ mount, content }) => ({
746
838
  mount,
747
839
  content
@@ -757,7 +849,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
757
849
  maxRetries
758
850
  });
759
851
  } catch (err) {
760
- throw new Error(`materializeProfileFileMounts: uploadData failed for ${item.path}`, { cause: err });
852
+ throw new ProfileFileMaterializeError(`materializeProfileFileMounts: uploadData failed for ${item.path}`, { cause: err });
761
853
  }
762
854
  }
763
855
  const execState = { started: false };
@@ -867,7 +959,13 @@ async function materializeAbsentProfileFiles(box, files, options) {
867
959
  throw error;
868
960
  }
869
961
  const applied = await execWithTimeout(box, `node -e ${shellSingleQuote(APPLY_STAGED_PROFILE_FILES)} ${shellSingleQuote(stage)}`, options.execTimeoutMs ?? PROFILE_FILE_MOUNT_EXEC_TIMEOUT_MS);
870
- if (applied.exitCode !== 0) throw new Error(`materializeProfileFileMounts: ${applied.stderr.slice(0, 1500)}`);
962
+ if (applied.exitCode !== 0) {
963
+ const stderr = applied.stderr.slice(0, 1500);
964
+ throw new ProfileFileMaterializeError(`materializeProfileFileMounts: ${stderr}`, {
965
+ exitCode: applied.exitCode,
966
+ detail: stderr
967
+ });
968
+ }
871
969
  return {
872
970
  ...result,
873
971
  written: files.length,
@@ -2571,8 +2669,9 @@ var ProfileFileDelivery = class {
2571
2669
  pending = Promise.resolve();
2572
2670
  unsupportedBoxes = /* @__PURE__ */ new WeakSet();
2573
2671
  prepare(box, profile, signal, existingFiles = "allow-identical") {
2574
- const { leanProfile, deferredFiles } = splitInlineProfileFileMounts(structuredClone(profile));
2575
- validateDeferredProfileFileMounts(deferredFiles);
2672
+ const split = splitInlineProfileFileMounts(structuredClone(profile));
2673
+ const { leanProfile } = split;
2674
+ const deferredFiles = validateDeferredProfileFileMounts(split.deferredFiles, { failOnError: profile.resources?.failOnError !== false });
2576
2675
  if (deferredFiles.length === 0) return Promise.resolve(leanProfile);
2577
2676
  const bundle = profileFileBundleKey(deferredFiles);
2578
2677
  const prepared = this.pending.then(async () => {
@@ -6605,7 +6704,7 @@ var SandboxInstance = class SandboxInstance {
6605
6704
  totalBytes: size,
6606
6705
  percentage: 0
6607
6706
  });
6608
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-RaMaNFN_.js");
6707
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-Bs5qcfRB.js");
6609
6708
  await uploadChunkedFromFile({ fetch: (path, init) => this.runtimeFetch(path, init) }, remotePath, localPath, {
6610
6709
  mode: options?.permissions,
6611
6710
  onProgress: options?.onProgress ? (progress) => {
@@ -9977,4 +10076,4 @@ function quoteForShell(value) {
9977
10076
  return `'${value.replace(/'/g, "'\\''")}'`;
9978
10077
  }
9979
10078
  //#endregion
9980
- export { rewrapResponse as A, ManagedProcessClient as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, exportTraceBundle as M, otelTraceIdForTangleTrace as N, normalizeConnection as O, toOtelJson as P, isToolBearingEvent as S, splitInlineProfileFileMounts as T, SandboxOperationFailedError as _, normalizeStartupDiagnostics as a, collectAgentResponseText as b, MAX_EGRESS_DENIALS_LIMIT as c, InteractiveSessionHandle as d, agentInteractiveSessionPromptRequestDigest as f, SandboxOperation as g, createInteractiveTerminalSession as h, normalizeSandboxCreateReceipt as i, buildTraceExportPayload as j, normalizeSandboxShape as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, WorkspaceImages as o, InteractiveTerminalFrameLog as p, normalizeCaptureProof as r, GPU_LEASE_PROVIDER_NAMES as s, SandboxInstance as t, SandboxSession as u, applySandboxEventText as v, materializeProfileFileMounts as w, getSandboxEventText as x, collectAgentFinalMessageText as y };
10079
+ export { normalizeSandboxShape as A, ManagedProcessClient as C, splitInlineProfileSkills as D, splitInlineProfileFileMounts as E, toOtelJson as F, buildTraceExportPayload as M, exportTraceBundle as N, validateDeferredProfileFileMounts as O, otelTraceIdForTangleTrace as P, isToolBearingEvent as S, materializeProfileFileMounts as T, SandboxOperationFailedError as _, normalizeStartupDiagnostics as a, collectAgentResponseText as b, MAX_EGRESS_DENIALS_LIMIT as c, InteractiveSessionHandle as d, agentInteractiveSessionPromptRequestDigest as f, SandboxOperation as g, createInteractiveTerminalSession as h, normalizeSandboxCreateReceipt as i, rewrapResponse as j, normalizeConnection as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, WorkspaceImages as o, InteractiveTerminalFrameLog as p, normalizeCaptureProof as r, GPU_LEASE_PROVIDER_NAMES as s, SandboxInstance as t, SandboxSession as u, applySandboxEventText as v, isRetryableProfileFileMaterializeFailure as w, getSandboxEventText as x, collectAgentFinalMessageText as y };
@@ -4,7 +4,7 @@ import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n a
4
4
  import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-B6sySQFu.js";
5
5
  import { r as InteractiveAttachRequest } from "./interactive-controller-BSWoA0YE.js";
6
6
  import { z as SandboxLines } from "./lines-CodL_Yhd.js";
7
- import { h as SandboxError } from "./errors-BSmxfVt0.js";
7
+ import { g as SandboxError } from "./errors-H96CGXWZ.js";
8
8
  import { z } from "zod";
9
9
  import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
10
10
 
@@ -422,8 +422,16 @@ type ProfileFileMountBox = {
422
422
  * client-detectable bad input (traversal paths, control characters,
423
423
  * non-string content) fails without paying for a sandbox that would only be
424
424
  * orphaned by the post-provision throw.
425
+ *
426
+ * A path the sidecar file API refuses (an absolute path outside
427
+ * `SANDBOX_FILE_API_ABSOLUTE_ROOTS`) follows the profile's resource policy:
428
+ * with `failOnError` true (the default) it throws
429
+ * {@link ProfileFileMountPathError} (422); with `failOnError: false` the
430
+ * mount is dropped with a warning. Returns the mounts to deliver.
425
431
  */
426
- declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount[]): void;
432
+ declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount[], options?: {
433
+ /** The profile's `resources.failOnError`; false drops refused mounts. */failOnError?: boolean;
434
+ }): AgentProfileFileMount[];
427
435
  interface SplitInlineProfileSkillsResult {
428
436
  /** Profile with inline skill refs removed (github refs kept — they resolve
429
437
  * server-side). Suitable for the create body, whose wire cap the full skill
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-BiJDEVsu.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-CygLpbAJ.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,2 +1,2 @@
1
- import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-9PQPjv8y.js";
1
+ import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Cwu6ql_V.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,5 +1,5 @@
1
- import { C as readResponseJson } from "./errors-DSJBKmGZ.js";
2
- import { n as createSandboxInstanceFromResponse } from "./sandbox-BGyIDjUH.js";
1
+ import { w as readResponseJson } from "./errors-Bfhg_Zc6.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-NDSp3I1V.js";
3
3
  import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-B6gap92T.js";
4
4
  //#region src/tangle/abi.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.62.14",
3
+ "version": "0.62.15",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -168,8 +168,8 @@
168
168
  "@tangle-network/sse-core": "0.0.0"
169
169
  },
170
170
  "tangleRelease": {
171
- "sourceSha": "9d0e11dcdc3ee03a7a61ac5b4d8baa96d263cdc5",
172
- "mergedAt": "2026-10-19T12:50:10-06:00"
171
+ "sourceSha": "88684a72e3023f878ddd904ae5a50bca8b8aeb23",
172
+ "mergedAt": "2026-10-19T13:24:14-06:00"
173
173
  },
174
174
  "scripts": {
175
175
  "build": "node scripts/build-dist.mjs",