@tangle-network/sandbox 1.0.170 → 1.0.171

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 (74) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +6 -6
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-run-outcome-BGpRnTPY.d.ts → agent-run-outcome-Sa99LJ15.d.ts} +2 -2
  6. package/dist/{api-request-DNrodWdz.js → api-request-D4Ln_0F5.js} +1 -1
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +2 -2
  9. package/dist/{browser-interactive-control-controller-BYbNLahH.js → browser-interactive-control-controller-DHIS8edi.js} +1 -1
  10. package/dist/{browser-interactive-control-controller-CxQBcgj3.d.ts → browser-interactive-control-controller-DIvMQyer.d.ts} +1 -1
  11. package/dist/{chunked-upload-file-Z-KNaobQ.js → chunked-upload-file-HLSriv3V.js} +2 -2
  12. package/dist/{chunked-upload-NjdTMC2n.js → chunked-upload-vAE2hVcP.js} +3 -2
  13. package/dist/cli-auth-bundle-MqvlO-rb.js +2 -0
  14. package/dist/{client-CDhg9KTL.d.ts → client-Izg3-BU0.d.ts} +5 -5
  15. package/dist/{client-BJJJ56zc.js → client-WCuXnZYf.js} +11 -10
  16. package/dist/collaboration/index.d.ts +1 -1
  17. package/dist/collaboration/index.js +1 -1
  18. package/dist/{collaboration-DIIJHGQY.js → collaboration-CmT6Ygiv.js} +1 -1
  19. package/dist/{core-SLuhiGEu.js → core-DJhKVMw7.js} +5 -5
  20. package/dist/core.d.ts +6 -6
  21. package/dist/core.js +5 -5
  22. package/dist/{direct-http2-Bojg02xf.js → direct-http2-Bqtn2jg3.js} +1 -1
  23. package/dist/{errors-BUzH7U1D.js → errors-CaX0a5Ry.js} +3 -124
  24. package/dist/{file-download-Bo3IypMO.js → file-download-BXgu9BNh.js} +1 -1
  25. package/dist/file-transfer-DTHgLccV.js +123 -0
  26. package/dist/{index-C03nLH88.d.ts → index-JfBawP6-.d.ts} +6 -6
  27. package/dist/index.d.ts +11 -11
  28. package/dist/index.js +11 -11
  29. package/dist/intelligence/index.js +3 -3
  30. package/dist/interactive-control.d.ts +1 -1
  31. package/dist/interactive-control.js +1 -1
  32. package/dist/{interactive-controller-NB7OwefY.d.ts → interactive-controller-C80-OSJN.d.ts} +3 -3
  33. package/dist/{interactive-controller-C3DDPykv.js → interactive-controller-C876Pjaj.js} +5 -5
  34. package/dist/lib/prepared-evidence.js +1 -1
  35. package/dist/lib/prepared-process.js +1 -1
  36. package/dist/{lines-2fj8i5qd.js → lines-DxHJhxCe.js} +1 -1
  37. package/dist/{lines-BbOFiDng.d.ts → lines-adDDEY5_.d.ts} +1 -1
  38. package/dist/lines.d.ts +1 -1
  39. package/dist/lines.js +1 -1
  40. package/dist/{local-cli-auth-CuWtJrZj.js → local-cli-auth-C33U2G-c.js} +1 -1
  41. package/dist/{mcp-local-tBlLJqTb.js → mcp-local-Cqf4Lpp0.js} +98 -92
  42. package/dist/{prepared-evidence-CrTBMhm9.js → prepared-evidence-CP1MmeCQ.js} +1 -1
  43. package/dist/{prepared-process-BD5LvT7P.js → prepared-process-BWVz93cT.js} +1 -1
  44. package/dist/{preview-BCH2YKWT.d.ts → preview-DedSyvEh.d.ts} +3 -3
  45. package/dist/{public-templates-DVZ9NJM0.d.ts → public-templates-Dkxtyl_0.d.ts} +2 -2
  46. package/dist/public-templates.d.ts +1 -1
  47. package/dist/public-templates.js +1 -1
  48. package/dist/{raw-evidence-archive-0S8tObzw.js → raw-evidence-archive-CgbWa4es.js} +2 -2
  49. package/dist/runtime.d.ts +5 -5
  50. package/dist/runtime.js +5 -5
  51. package/dist/{sandbox-PeS-A7or.js → sandbox-Bg0m9FyB.js} +19 -18
  52. package/dist/{secp256k1-CZWrpqxW.js → secp256k1-Cbp9tbkX.js} +1 -1
  53. package/dist/select-seat-command.d.ts +1 -1
  54. package/dist/select-seat-command.js +1 -1
  55. package/dist/session-gateway/index.js +3 -3
  56. package/dist/tangle/index.d.ts +1 -1
  57. package/dist/tangle/index.js +1 -1
  58. package/dist/{tangle-Bm5sav8z.js → tangle-ClUGDa3P.js} +4 -4
  59. package/dist/{types-CCRfg8oS.d.ts → types-tKdvSRqr.d.ts} +3 -3
  60. package/package.json +6 -6
  61. package/dist/cli-auth-bundle-Op0k_zIX.js +0 -2
  62. /package/dist/{abort-signal-Cu4F2VVz.js → abort-signal-PgWPMn_e.js} +0 -0
  63. /package/dist/{cli-auth-bundle-CwJjUmvo-3J2DDPxW.js → cli-auth-bundle-CwJjUmvo-CD3jrgbH.js} +0 -0
  64. /package/dist/{cli-auth-bundle-COQ25k3d.d.ts → cli-auth-bundle-Wg3x2hd2.d.ts} +0 -0
  65. /package/dist/{index-Dslyq85a.d.ts → index-CDtEPygc.d.ts} +0 -0
  66. /package/dist/{index-Dqcr9p97.d.ts → index-YbAo-so_.d.ts} +0 -0
  67. /package/dist/{keep-alive-fetch-BbSFbRCd.js → keep-alive-fetch-C2lFwrMA.js} +0 -0
  68. /package/dist/{preview-operations-BvgwYaoL.js → preview-operations-B3TTvqlm.js} +0 -0
  69. /package/dist/{response-rewrap-CpNkboDX.js → response-rewrap-Cjoxh2wZ.js} +0 -0
  70. /package/dist/{retry-after-header-DUdCC0KJ.js → retry-after-header-Bt-XvU-x.js} +0 -0
  71. /package/dist/{sidecar-proxy-error-5DpLmHeN.js → sidecar-proxy-error-DTJbOAWL.js} +0 -0
  72. /package/dist/{sse-parser-DrI47LyG.js → sse-parser-B4aH89Nq.js} +0 -0
  73. /package/dist/{terminal-stream-types-C6N_wrmY.d.ts → terminal-stream-types-1YKRrkZB.d.ts} +0 -0
  74. /package/dist/{utils-vaFoyyiO.js → utils-CK-x8vXj.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-C03nLH88.js";
2
- import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-CCRfg8oS.js";
3
- import { t as Sandbox } from "../client-CDhg9KTL.js";
4
- import { u as PreviewAuthorizer } from "../preview-BCH2YKWT.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-JfBawP6-.js";
2
+ import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-tKdvSRqr.js";
3
+ import { t as Sandbox } from "../client-Izg3-BU0.js";
4
+ import { u as PreviewAuthorizer } from "../preview-DedSyvEh.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
- import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-tBlLJqTb.js";
2
- import { O as assertCurrentBackendType } from "../interactive-controller-C3DDPykv.js";
3
- import { t as SandboxInstance } from "../sandbox-PeS-A7or.js";
4
- import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BUzH7U1D.js";
5
- import { t as Sandbox } from "../client-BJJJ56zc.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-Cqf4Lpp0.js";
2
+ import { O as assertCurrentBackendType } from "../interactive-controller-C876Pjaj.js";
3
+ import { t as SandboxInstance } from "../sandbox-Bg0m9FyB.js";
4
+ import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-CaX0a5Ry.js";
5
+ import { t as Sandbox } from "../client-WCuXnZYf.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -376,7 +376,7 @@ const FLEET_TOOL_SPECS = {
376
376
  },
377
377
  sandbox_fleet_spawn: {
378
378
  name: "sandbox_fleet_spawn",
379
- description: "Spawn a fleet of N sandboxes from a template, with a coordinator plus N workers sharing a workspace. Returns the fleet id and the machine ids. Each worker has its own persistent code-execution kernel; the same workspace is mounted across them. COSTS SCALE LINEARLY with `workers`. Use sandbox_fleet_destroy when done.",
379
+ description: "Spawn a fleet of N sandboxes from a template: a coordinator plus N workers. Returns the fleet id and the machine ids. Each worker has its own isolated workspace and persistent code-execution kernel; workers share no files. COSTS SCALE LINEARLY with `workers`. Use sandbox_fleet_destroy when done.",
380
380
  inputSchema: {
381
381
  type: "object",
382
382
  properties: {
@@ -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-BCH2YKWT.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-DedSyvEh.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,5 +1,5 @@
1
1
  import { r as agentProfileSchema } from "../profile-schema-C1KpT-wS.js";
2
- import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BvgwYaoL.js";
2
+ import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-B3TTvqlm.js";
3
3
  //#region src/agent/preview-policy.ts
4
4
  /** Channel-neutral preview tool selection from a host-authored profile. */
5
5
  const PREVIEW_TOOLS = [
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
66
66
  if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
67
67
  const tools = config.tools ?? PREVIEW_TOOLS;
68
68
  if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
69
- const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-tBlLJqTb.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-Cqf4Lpp0.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
70
70
  const handle = await createMcpServer(config.box, {
71
71
  name: "tangle-previews",
72
72
  sessionId: config.sessionId,
@@ -1,5 +1,5 @@
1
- import { V as InteractionRequest } from "./terminal-stream-types-C6N_wrmY.js";
2
- import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-CCRfg8oS.js";
1
+ import { V as InteractionRequest } from "./terminal-stream-types-1YKRrkZB.js";
2
+ import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-tKdvSRqr.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -1,4 +1,4 @@
1
- import { t as rewrapResponse } from "./response-rewrap-CpNkboDX.js";
1
+ import { t as rewrapResponse } from "./response-rewrap-Cjoxh2wZ.js";
2
2
  //#region src/lib/api-request.mjs
3
3
  function withRequestContextHeaders(response, path, method, body = response.body) {
4
4
  const headers = new Headers(response.headers);
@@ -1,3 +1,3 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-COQ25k3d.js";
2
- import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-Dslyq85a.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-Wg3x2hd2.js";
2
+ import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-CDtEPygc.js";
3
3
  export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
@@ -1,5 +1,5 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-CwJjUmvo-3J2DDPxW.js";
2
- import "../cli-auth-bundle-Op0k_zIX.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-CwJjUmvo-CD3jrgbH.js";
2
+ import "../cli-auth-bundle-MqvlO-rb.js";
3
3
  //#region src/auth/tokens.ts
4
4
  const textEncoder = new TextEncoder();
5
5
  const textDecoder = new TextDecoder();
@@ -1,5 +1,5 @@
1
1
  import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-DMaNgn0S.js";
2
- import { n as awaitWithAbort } from "./abort-signal-Cu4F2VVz.js";
2
+ import { n as awaitWithAbort } from "./abort-signal-PgWPMn_e.js";
3
3
  import { z } from "zod";
4
4
  //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.13/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-C6N_wrmY.js";
1
+ import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-1YKRrkZB.js";
2
2
 
3
3
  //#region src/interactive-types.d.ts
4
4
  /** Cancellation for an interactive SDK request. */
@@ -1,5 +1,5 @@
1
- import { A as FILE_UPLOAD_SESSION_MAX_BYTES } from "./errors-BUzH7U1D.js";
2
- import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-NjdTMC2n.js";
1
+ import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-DTHgLccV.js";
2
+ import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-vAE2hVcP.js";
3
3
  import { createHash } from "node:crypto";
4
4
  import { open } from "node:fs/promises";
5
5
  //#region src/lib/chunked-upload-file.ts
@@ -1,5 +1,6 @@
1
- import { A as FILE_UPLOAD_SESSION_MAX_BYTES, O as isFileTooLargeErrorBody, S as ServerError, T as TimeoutError, h as NetworkError, k as isPayloadTooLargeErrorBody, n as parseErrorResponse, x as SandboxError, y as QuotaError } from "./errors-BUzH7U1D.js";
2
- import { t as abortableSleep } from "./abort-signal-Cu4F2VVz.js";
1
+ import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-DTHgLccV.js";
2
+ import { S as ServerError, T as TimeoutError, h as NetworkError, n as parseErrorResponse, x as SandboxError, y as QuotaError } from "./errors-CaX0a5Ry.js";
3
+ import { t as abortableSleep } from "./abort-signal-PgWPMn_e.js";
3
4
  //#region src/generated/sandbox-upload-operations.ts
4
5
  function uploadSessionInit(transport, input, init = {}) {
5
6
  return transport.fetch(`/fs/upload-session`, {
@@ -0,0 +1,2 @@
1
+ import "./cli-auth-bundle-CwJjUmvo-CD3jrgbH.js";
2
+ export {};
@@ -1,8 +1,8 @@
1
- import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-C03nLH88.js";
2
- import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, bt as SandboxError, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken } from "./terminal-stream-types-C6N_wrmY.js";
3
- import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _o as PublicBatchRunRequestInput, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, go as PublicBatchRunRequest, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, po as BatchResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yo as BatchEvent, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-CCRfg8oS.js";
4
- import { t as LinesClient } from "./lines-BbOFiDng.js";
5
- import { a as PublicTemplatesClient } from "./public-templates-DVZ9NJM0.js";
1
+ import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-JfBawP6-.js";
2
+ import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, bt as SandboxError, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken } from "./terminal-stream-types-1YKRrkZB.js";
3
+ import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _o as PublicBatchRunRequestInput, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, go as PublicBatchRunRequest, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, po as BatchResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yo as BatchEvent, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-tKdvSRqr.js";
4
+ import { t as LinesClient } from "./lines-adDDEY5_.js";
5
+ import { a as PublicTemplatesClient } from "./public-templates-Dkxtyl_0.js";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/backend-registry.d.ts
@@ -1,12 +1,13 @@
1
- import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-C3DDPykv.js";
1
+ import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-C876Pjaj.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
3
- import { A as normalizeSandboxCreateReceipt, B as CAPACITY_ETA_WAIT_MAX_MS, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeConnection, G as extendableDeadline, I as normalizeEgressPolicyFields, J as isDeployWindowCreateError, K as generateIdempotencyKey, L as normalizeProxySecretReceipt, N as dateOf, O as isRetryableProfileFileMaterializeFailure, P as parseLifecycleTimes, R as normalizeSandboxShape, T as splitInlineProfileFileMounts, U as DEPLOY_WINDOW_RETRY_MS, W as createRetryDelayMs, X as isRetryableCreateError, Y as isRateLimitCreateError, d as sandboxLedgerUsd, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as isCapacityShortageCreateError, z as CAPACITY_ETA_MARGIN_MS } from "./sandbox-PeS-A7or.js";
4
- import { D as isInsideReservedDir, E as ValidationError, F as SANDBOX_AGENT_HOME, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BUzH7U1D.js";
5
- import { r as combineAbortSignals, t as abortableSleep } from "./abort-signal-Cu4F2VVz.js";
6
- import { t as fetchSandboxApi } from "./api-request-DNrodWdz.js";
7
- import { n as fetchWithKeepAlive } from "./keep-alive-fetch-BbSFbRCd.js";
8
- import { t as parseSSEStream } from "./sse-parser-DrI47LyG.js";
9
- import { t as LinesClient } from "./lines-2fj8i5qd.js";
3
+ import { A as normalizeSandboxCreateReceipt, B as CAPACITY_ETA_WAIT_MAX_MS, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeConnection, G as extendableDeadline, I as normalizeEgressPolicyFields, J as isDeployWindowCreateError, K as generateIdempotencyKey, L as normalizeProxySecretReceipt, N as dateOf, O as isRetryableProfileFileMaterializeFailure, P as parseLifecycleTimes, R as normalizeSandboxShape, T as splitInlineProfileFileMounts, U as DEPLOY_WINDOW_RETRY_MS, W as createRetryDelayMs, X as isRetryableCreateError, Y as isRateLimitCreateError, d as sandboxLedgerUsd, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as isCapacityShortageCreateError, z as CAPACITY_ETA_MARGIN_MS } from "./sandbox-Bg0m9FyB.js";
4
+ import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-DTHgLccV.js";
5
+ import { E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-CaX0a5Ry.js";
6
+ import { r as combineAbortSignals, t as abortableSleep } from "./abort-signal-PgWPMn_e.js";
7
+ import { t as fetchSandboxApi } from "./api-request-D4Ln_0F5.js";
8
+ import { n as fetchWithKeepAlive } from "./keep-alive-fetch-C2lFwrMA.js";
9
+ import { t as parseSSEStream } from "./sse-parser-B4aH89Nq.js";
10
+ import { t as LinesClient } from "./lines-DxHJhxCe.js";
10
11
  import { PublicTemplatesClient } from "./public-templates.js";
11
12
  import { z } from "zod";
12
13
  //#region ../../../packages/runtime-contracts/dist/git-policy.js
@@ -1211,11 +1212,11 @@ function isLocalSandboxEndpoint(baseUrl) {
1211
1212
  }
1212
1213
  }
1213
1214
  async function resolveLocalCliAuthFiles(backendType) {
1214
- const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CuWtJrZj.js");
1215
+ const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-C33U2G-c.js");
1215
1216
  return discoverLocalCliAuthFiles(backendType);
1216
1217
  }
1217
1218
  async function loadLocalCliAuthExpectation(backendType) {
1218
- const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CuWtJrZj.js");
1219
+ const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-C33U2G-c.js");
1219
1220
  return describe(backendType);
1220
1221
  }
1221
1222
  /**
@@ -1,2 +1,2 @@
1
- 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-Dqcr9p97.js";
1
+ 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-YbAo-so_.js";
2
2
  export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,2 +1,2 @@
1
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DIIJHGQY.js";
1
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-CmT6Ygiv.js";
2
2
  export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,4 +1,4 @@
1
- import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "./errors-BUzH7U1D.js";
1
+ import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "./errors-CaX0a5Ry.js";
2
2
  //#region src/collaboration/client.ts
3
3
  const DEFAULT_TIMEOUT_MS = 3e4;
4
4
  function normalizeBaseUrl(url) {
@@ -1,9 +1,9 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
2
- import { Z as canonicalAgentProfileDigest } from "./sandbox-PeS-A7or.js";
3
- import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BUzH7U1D.js";
4
- import { n as awaitWithAbort } from "./abort-signal-Cu4F2VVz.js";
5
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-CwJjUmvo-3J2DDPxW.js";
6
- import "./cli-auth-bundle-Op0k_zIX.js";
2
+ import { Z as canonicalAgentProfileDigest } from "./sandbox-Bg0m9FyB.js";
3
+ import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-CaX0a5Ry.js";
4
+ import { n as awaitWithAbort } from "./abort-signal-PgWPMn_e.js";
5
+ import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-CwJjUmvo-CD3jrgbH.js";
6
+ import "./cli-auth-bundle-MqvlO-rb.js";
7
7
  import { z } from "zod";
8
8
  //#region src/failure-kind.ts
9
9
  const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
package/dist/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-C03nLH88.js";
2
- import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, rt as parseErrorResponse, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-C6N_wrmY.js";
3
- import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-CCRfg8oS.js";
4
- import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BbOFiDng.js";
5
- import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-CDhg9KTL.js";
6
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DVZ9NJM0.js";
1
+ import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-JfBawP6-.js";
2
+ import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, rt as parseErrorResponse, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-1YKRrkZB.js";
3
+ import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-tKdvSRqr.js";
4
+ import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-adDDEY5_.js";
5
+ import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-Izg3-BU0.js";
6
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-Dkxtyl_0.js";
7
7
  export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-PeS-A7or.js";
2
- import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, n as parseErrorResponse, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BUzH7U1D.js";
3
- import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-BJJJ56zc.js";
4
- import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-2fj8i5qd.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-Bg0m9FyB.js";
2
+ import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, n as parseErrorResponse, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-CaX0a5Ry.js";
3
+ import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-WCuXnZYf.js";
4
+ import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DxHJhxCe.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-SLuhiGEu.js";
6
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DJhKVMw7.js";
7
7
  export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
@@ -1,4 +1,4 @@
1
- import { t as emitTiming } from "./keep-alive-fetch-BbSFbRCd.js";
1
+ import { t as emitTiming } from "./keep-alive-fetch-C2lFwrMA.js";
2
2
  //#region src/lib/direct-http2.ts
3
3
  const sessions = /* @__PURE__ */ new Map();
4
4
  const inFlight = /* @__PURE__ */ new WeakMap();
@@ -1,126 +1,5 @@
1
- import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
2
- //#region ../../../packages/runtime-contracts/dist/file-api-roots.js
3
- /**
4
- * The agent user's home directory inside a sandbox. A profile mount path
5
- * that starts with `~/` resolves under it.
6
- */
7
- const SANDBOX_AGENT_HOME = "/home/agent";
8
- /**
9
- * Absolute roots that the sidecar file API accepts in addition to the
10
- * workspace root. This list is the single source: the sidecar's
11
- * `resolveWorkspacePath` and the SDK's profile mount routing both read it.
12
- *
13
- * A root in this list is not writable on every runtime:
14
- * - Docker with an egress proxy has a read-only root filesystem. Only the
15
- * workspace, the /tmp tmpfs and the /opt/cache volume are writable there.
16
- * A write to /output or /home/user then fails deterministically.
17
- * - Firecracker writes its root through a per-VM copy-on-write snapshot, and
18
- * the sidecar runs as root, so every root here is writable. With
19
- * FC_SHARED_ROOTFS the root is read-only, and so are /tmp and /var/tmp:
20
- * fc-init mounts tmpfs only on /dev/shm.
21
- */
22
- const SANDBOX_FILE_API_ABSOLUTE_ROOTS = [
23
- "/tmp",
24
- "/output",
25
- "/home/user",
26
- SANDBOX_AGENT_HOME,
27
- "/opt/cache"
28
- ];
29
- /** Stable code for a profile file mount path that the sidecar refuses. */
30
- const PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE = "PROFILE_FILE_MOUNT_OUTSIDE_ROOTS";
31
- /**
32
- * Return true when the sidecar refuses a profile file mount path:
33
- * - any path with a `.` or `..` segment, relative or absolute, because its
34
- * target is not the path as written;
35
- * - an absolute path outside {@link SANDBOX_FILE_API_ABSOLUTE_ROOTS}.
36
- *
37
- * Other relative paths resolve in the workspace, and `~/` paths resolve in
38
- * the agent home, so neither is refused.
39
- */
40
- function isProfileFileMountOutsideRoots(path) {
41
- const segments = path.split("/").filter((segment) => segment.length > 0);
42
- if (segments.some((segment) => segment === "." || segment === "..")) return true;
43
- if (!path.startsWith("/")) return false;
44
- const normalized = `/${segments.join("/")}`;
45
- return !SANDBOX_FILE_API_ABSOLUTE_ROOTS.some((root) => normalized === root || normalized.startsWith(`${root}/`));
46
- }
47
- /** The refusal text for a profile file mount path that the sidecar refuses. */
48
- function profileFileMountOutsideRootsMessage(path) {
49
- 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.`;
50
- }
51
- //#endregion
52
- //#region ../../../packages/runtime-contracts/dist/file-limits.js
53
- const MEBIBYTE$1 = 1024 * 1024;
54
- 10 * MEBIBYTE$1;
55
- const FILE_DECODED_WRITE_MAX_BYTES = 5 * MEBIBYTE$1;
56
- 5 * MEBIBYTE$1;
57
- 10 * MEBIBYTE$1;
58
- 5 * MEBIBYTE$1;
59
- //#endregion
60
- //#region ../../../packages/runtime-contracts/dist/generated/file-operation-limits.js
61
- const FILE_OPERATION_LIMITS = {
62
- "batchPaths": 100,
63
- "treeDepth": {
64
- "minimum": 1,
65
- "maximum": 20
66
- }
67
- };
68
- //#endregion
69
- //#region ../../../packages/runtime-contracts/dist/request-limits.js
70
- /**
71
- * Raw WIRE/TRANSPORT caps: request-byte limits checked while the body
72
- * streams in (bodyLimit middleware, Content-Length, encoded proxy bodies),
73
- * before anything is parsed or decoded. Rejections against these carry
74
- * code `PAYLOAD_TOO_LARGE` (`payload-too-large.ts`) — the remedy is to
75
- * split the delivery. Decoded/parsed-content caps (code `FILE_TOO_LARGE`)
76
- * live in `file-io.ts`.
77
- */
78
- const MEBIBYTE = 1024 * 1024;
79
- /**
80
- * Gateway (CF Worker) proxy cap on any request body it forwards — both
81
- * pass-through requests and route-constructed (`options.body`) proxy
82
- * payloads. Workers buffer forwarded bodies (streaming upstream stalls),
83
- * so this bounds Worker memory per request.
84
- */
85
- const SANDBOX_PROXY_REQUEST_MAX_BYTES = MEBIBYTE;
86
- 32 * MEBIBYTE;
87
- /**
88
- * Max assembled size of one chunked-upload session — the ceiling of the
89
- * sanctioned >1 MiB delivery path. Parts stage in sidecar memory until
90
- * commit, so this bounds per-session memory, not the destination
91
- * filesystem.
92
- */
93
- const FILE_UPLOAD_SESSION_MAX_BYTES = 64 * MEBIBYTE;
94
- 128 * MEBIBYTE;
95
- //#endregion
96
- //#region ../../../packages/runtime-contracts/dist/size-limit-errors.js
97
- /** Canonical error codes for wire-size and decoded-content rejections. */
98
- const PAYLOAD_TOO_LARGE_CODE = "PAYLOAD_TOO_LARGE";
99
- const FILE_TOO_LARGE_CODE = "FILE_TOO_LARGE";
100
- function isRecord(value) {
101
- return value !== null && typeof value === "object" && !Array.isArray(value);
102
- }
103
- function isPositiveInteger(value) {
104
- return typeof value === "number" && Number.isInteger(value) && value > 0;
105
- }
106
- function isSizeLimitErrorBodyFor(value, code) {
107
- if (!isRecord(value) || value.success !== false || !isRecord(value.error)) return false;
108
- const error = value.error;
109
- return error.code === code && typeof error.message === "string" && typeof error.surface === "string" && isPositiveInteger(error.limitBytes) && (error.actualBytes === void 0 || isPositiveInteger(error.actualBytes));
110
- }
111
- function isPayloadTooLargeErrorBody(value) {
112
- return isSizeLimitErrorBodyFor(value, PAYLOAD_TOO_LARGE_CODE);
113
- }
114
- function isFileTooLargeErrorBody(value) {
115
- return isSizeLimitErrorBodyFor(value, FILE_TOO_LARGE_CODE);
116
- }
117
- //#endregion
118
- //#region ../../../packages/runtime-contracts/dist/file-transfer.js
119
- /** Platform control-plane trees are never customer file or retained-workspace content. */
120
- function isInsideReservedDir(path) {
121
- return path.replaceAll("\\", "/").split("/").includes(".sidecar");
122
- }
123
- //#endregion
1
+ import "./file-transfer-DTHgLccV.js";
2
+ import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-Bt-XvU-x.js";
124
3
  //#region src/error-classes.ts
125
4
  /**
126
5
  * Base error class for all Sandbox SDK errors.
@@ -754,4 +633,4 @@ var TerminalStreamError = class extends Error {
754
633
  }
755
634
  };
756
635
  //#endregion
757
- export { FILE_UPLOAD_SESSION_MAX_BYTES as A, StateError as C, isInsideReservedDir as D, ValidationError as E, SANDBOX_AGENT_HOME as F, SANDBOX_FILE_API_ABSOLUTE_ROOTS as I, isProfileFileMountOutsideRoots as L, FILE_OPERATION_LIMITS as M, FILE_DECODED_WRITE_MAX_BYTES as N, isFileTooLargeErrorBody as O, PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE as P, profileFileMountOutsideRootsMessage as R, ServerError as S, TimeoutError as T, PartialFailureError as _, AuthError as a, ResumeEnvRequiredError as b, CompliancePlacementError as c, FileWriteConflictError as d, GpuProviderNotConfiguredError as f, NotFoundError as g, NetworkError as h, readResponseJson as i, SANDBOX_PROXY_REQUEST_MAX_BYTES as j, isPayloadTooLargeErrorBody as k, EdgeNotReadyError as l, NON_RETRYABLE_CREATE_QUOTA_REASONS as m, parseErrorResponse as n, BranchFanoutExceedsHostError as o, KeyBudgetExhaustedError as p, parseResponseError as r, CapabilityError as s, TerminalStreamError as t, EgressProxyRecoveryError as u, ProfileFileMountPathError as v, StreamInterruptedError as w, SandboxError as x, QuotaError as y };
636
+ export { StateError as C, ValidationError as E, ServerError as S, TimeoutError as T, PartialFailureError as _, AuthError as a, ResumeEnvRequiredError as b, CompliancePlacementError as c, FileWriteConflictError as d, GpuProviderNotConfiguredError as f, NotFoundError as g, NetworkError as h, readResponseJson as i, EdgeNotReadyError as l, NON_RETRYABLE_CREATE_QUOTA_REASONS as m, parseErrorResponse as n, BranchFanoutExceedsHostError as o, KeyBudgetExhaustedError as p, parseResponseError as r, CapabilityError as s, TerminalStreamError as t, EgressProxyRecoveryError as u, ProfileFileMountPathError as v, StreamInterruptedError as w, SandboxError as x, QuotaError as y };
@@ -1,5 +1,5 @@
1
1
  import { n as bytesToHex, t as sha256 } from "./sha2-vu4U-x2L.js";
2
- import { E as ValidationError } from "./errors-BUzH7U1D.js";
2
+ import { E as ValidationError } from "./errors-CaX0a5Ry.js";
3
3
  //#region src/lib/file-download.ts
4
4
  function downloadBounds(options) {
5
5
  for (const [name, value] of Object.entries({
@@ -0,0 +1,123 @@
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/generated/file-operation-limits.js
60
+ const FILE_OPERATION_LIMITS = {
61
+ "batchPaths": 100,
62
+ "treeDepth": {
63
+ "minimum": 1,
64
+ "maximum": 20
65
+ }
66
+ };
67
+ //#endregion
68
+ //#region ../../../packages/runtime-contracts/dist/request-limits.js
69
+ /**
70
+ * Raw WIRE/TRANSPORT caps: request-byte limits checked while the body
71
+ * streams in (bodyLimit middleware, Content-Length, encoded proxy bodies),
72
+ * before anything is parsed or decoded. Rejections against these carry
73
+ * code `PAYLOAD_TOO_LARGE` (`payload-too-large.ts`) — the remedy is to
74
+ * split the delivery. Decoded/parsed-content caps (code `FILE_TOO_LARGE`)
75
+ * live in `file-io.ts`.
76
+ */
77
+ const MEBIBYTE = 1024 * 1024;
78
+ /**
79
+ * Gateway (CF Worker) proxy cap on any request body it forwards — both
80
+ * pass-through requests and route-constructed (`options.body`) proxy
81
+ * payloads. Workers buffer forwarded bodies (streaming upstream stalls),
82
+ * so this bounds Worker memory per request.
83
+ */
84
+ const SANDBOX_PROXY_REQUEST_MAX_BYTES = MEBIBYTE;
85
+ 32 * MEBIBYTE;
86
+ /**
87
+ * Max assembled size of one chunked-upload session — the ceiling of the
88
+ * sanctioned >1 MiB delivery path. Parts stage in sidecar memory until
89
+ * commit, so this bounds per-session memory, not the destination
90
+ * filesystem.
91
+ */
92
+ const FILE_UPLOAD_SESSION_MAX_BYTES = 64 * MEBIBYTE;
93
+ 128 * MEBIBYTE;
94
+ //#endregion
95
+ //#region ../../../packages/runtime-contracts/dist/size-limit-errors.js
96
+ /** Canonical error codes for wire-size and decoded-content rejections. */
97
+ const PAYLOAD_TOO_LARGE_CODE = "PAYLOAD_TOO_LARGE";
98
+ const FILE_TOO_LARGE_CODE = "FILE_TOO_LARGE";
99
+ function isRecord(value) {
100
+ return value !== null && typeof value === "object" && !Array.isArray(value);
101
+ }
102
+ function isPositiveInteger(value) {
103
+ return typeof value === "number" && Number.isInteger(value) && value > 0;
104
+ }
105
+ function isSizeLimitErrorBodyFor(value, code) {
106
+ if (!isRecord(value) || value.success !== false || !isRecord(value.error)) return false;
107
+ const error = value.error;
108
+ return error.code === code && typeof error.message === "string" && typeof error.surface === "string" && isPositiveInteger(error.limitBytes) && (error.actualBytes === void 0 || isPositiveInteger(error.actualBytes));
109
+ }
110
+ function isPayloadTooLargeErrorBody(value) {
111
+ return isSizeLimitErrorBodyFor(value, PAYLOAD_TOO_LARGE_CODE);
112
+ }
113
+ function isFileTooLargeErrorBody(value) {
114
+ return isSizeLimitErrorBodyFor(value, FILE_TOO_LARGE_CODE);
115
+ }
116
+ //#endregion
117
+ //#region ../../../packages/runtime-contracts/dist/file-transfer.js
118
+ /** Platform control-plane trees are never customer file or retained-workspace content. */
119
+ function isInsideReservedDir(path) {
120
+ return path.replaceAll("\\", "/").split("/").includes(".sidecar");
121
+ }
122
+ //#endregion
123
+ export { SANDBOX_PROXY_REQUEST_MAX_BYTES as a, PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE as c, isProfileFileMountOutsideRoots as d, profileFileMountOutsideRootsMessage as f, FILE_UPLOAD_SESSION_MAX_BYTES as i, SANDBOX_AGENT_HOME as l, isFileTooLargeErrorBody as n, FILE_OPERATION_LIMITS as o, isPayloadTooLargeErrorBody as r, FILE_DECODED_WRITE_MAX_BYTES as s, isInsideReservedDir as t, SANDBOX_FILE_API_ABSOLUTE_ROOTS as u };