@tangle-network/sandbox 0.62.14 → 0.62.16

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 (39) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/{agent-run-outcome-BjZ1EHSq.d.ts → agent-run-outcome-DelYPNu3.d.ts} +1 -1
  5. package/dist/auth/index.js +1 -1
  6. package/dist/{chunked-upload-ClCKGr59.js → chunked-upload-B867njKv.js} +2 -59
  7. package/dist/{chunked-upload-file-RaMaNFN_.js → chunked-upload-file-Bs5qcfRB.js} +2 -1
  8. package/dist/{client-CdNw2DEF.js → client-C1hSgXB-.js} +9 -8
  9. package/dist/{client-C7KaqyfN.d.ts → client-CAA0Vnkx.d.ts} +5 -5
  10. package/dist/collaboration/index.js +1 -1
  11. package/dist/{collaboration-DZCyTGdn.js → collaboration-CXtTwK3x.js} +1 -1
  12. package/dist/core.d.ts +8 -8
  13. package/dist/core.js +4 -4
  14. package/dist/{errors-DSJBKmGZ.js → errors-Bfhg_Zc6.js} +130 -1
  15. package/dist/{errors-BSmxfVt0.d.ts → errors-DNxN33_n.d.ts} +14 -2
  16. package/dist/{index-BiJDEVsu.d.ts → index-5Iv50Yu9.d.ts} +2 -2
  17. package/dist/index.d.ts +10 -10
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence/index.js +1 -1
  20. package/dist/{interactive-controller-B2VcB_SK.js → interactive-controller-B8W1CCXk.js} +18 -18
  21. package/dist/{lines-CodL_Yhd.d.ts → lines-joXwwKub.d.ts} +1 -1
  22. package/dist/lines.d.ts +1 -1
  23. package/dist/lines.js +1 -1
  24. package/dist/{local-cli-auth-BSFX2vnt.js → local-cli-auth-yn7YxF87.js} +1 -1
  25. package/dist/{managed-process-BEgMYGGu.d.ts → managed-process-Cri6fY06.d.ts} +1 -1
  26. package/dist/{preview-BamI9Yoe.d.ts → preview-BWkrbSW-.d.ts} +3 -3
  27. package/dist/{public-templates-CAMfH_Yr.d.ts → public-templates-DtRGMy8F.d.ts} +2 -2
  28. package/dist/public-templates.d.ts +1 -1
  29. package/dist/public-templates.js +1 -1
  30. package/dist/runtime.d.ts +4 -4
  31. package/dist/runtime.js +4 -4
  32. package/dist/{sandbox-BGyIDjUH.js → sandbox-ChgyE6cI.js} +128 -24
  33. package/dist/{sandbox-I390rjrp.d.ts → sandbox-I9ZSVMP7.d.ts} +12 -4
  34. package/dist/tangle/index.d.ts +1 -1
  35. package/dist/tangle/index.js +1 -1
  36. package/dist/{tangle-9PQPjv8y.js → tangle-CSMVbnXg.js} +2 -2
  37. package/dist/{types-Bal6rlUP.d.ts → types-C-VC0oGh.d.ts} +12 -2
  38. package/package.json +3 -3
  39. /package/dist/{cli-auth-bundle-BvXQd1UX.js → cli-auth-bundle-DBRU4ifV.js} +0 -0
@@ -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 { A as assertCurrentBackendType, B as deriveAgentResultOutcome, C as sessionHeaders, D as encodeTextForWire, E as encodePromptForWire, F as requestedSecretProfilePublicDigest, M as mergeRuntimeBackendConfig, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, R as withoutRuntimeSecrets, S as appendSessionIdQuery, T as validateAcceptedDispatchRunRef, _ as TRACE_ID_HEADER, a as terminalUpgradeHeadersSupported, b as resolveTraceId, d as SandboxRuntimeApi, f as isRetryableCredentialRefusal, g as waitForRetryAfter, h as sessionMessageRequestBody, i as TerminalStreamError, k as applyRequestedModel, l as requestScopedToken, m as normalizeSessionInfo, n as InteractiveSessionController, p as normalizeEffectiveBackend, r as TerminalStream, s as assertScopedTokenActive, u as canUseNodeHttp2, v as isTraceId, w as resolveDispatchRunIdentity, x as traceHeaders, y as mintTraceId, z as createAgentRunOutcomeTracker } from "./interactive-controller-B8W1CCXk.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,
@@ -1332,11 +1430,16 @@ function parseCompletedTurnResult(value, expected) {
1332
1430
  const record = value;
1333
1431
  if (typeof record.turnId !== "string" || typeof record.sessionId !== "string" || typeof record.completedAt !== "string" || record.completedAt.length === 0 || record.result === null || typeof record.result !== "object" || Array.isArray(record.result)) invalidCompletedTurn("a malformed record");
1334
1432
  if (record.turnId !== expected.turnId || record.sessionId !== expected.sessionId) invalidCompletedTurn("a record for another turn or session");
1433
+ const { effectiveBackend: rawEffectiveBackend, ...result } = record.result;
1434
+ const effectiveBackend = normalizeEffectiveBackend(rawEffectiveBackend);
1335
1435
  return {
1336
1436
  turnId: record.turnId,
1337
1437
  sessionId: record.sessionId,
1338
1438
  completedAt: record.completedAt,
1339
- result: record.result
1439
+ result: {
1440
+ ...result,
1441
+ ...effectiveBackend ? { effectiveBackend } : {}
1442
+ }
1340
1443
  };
1341
1444
  }
1342
1445
  //#endregion
@@ -2571,8 +2674,9 @@ var ProfileFileDelivery = class {
2571
2674
  pending = Promise.resolve();
2572
2675
  unsupportedBoxes = /* @__PURE__ */ new WeakSet();
2573
2676
  prepare(box, profile, signal, existingFiles = "allow-identical") {
2574
- const { leanProfile, deferredFiles } = splitInlineProfileFileMounts(structuredClone(profile));
2575
- validateDeferredProfileFileMounts(deferredFiles);
2677
+ const split = splitInlineProfileFileMounts(structuredClone(profile));
2678
+ const { leanProfile } = split;
2679
+ const deferredFiles = validateDeferredProfileFileMounts(split.deferredFiles, { failOnError: profile.resources?.failOnError !== false });
2576
2680
  if (deferredFiles.length === 0) return Promise.resolve(leanProfile);
2577
2681
  const bundle = profileFileBundleKey(deferredFiles);
2578
2682
  const prepared = this.pending.then(async () => {
@@ -6605,7 +6709,7 @@ var SandboxInstance = class SandboxInstance {
6605
6709
  totalBytes: size,
6606
6710
  percentage: 0
6607
6711
  });
6608
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-RaMaNFN_.js");
6712
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-Bs5qcfRB.js");
6609
6713
  await uploadChunkedFromFile({ fetch: (path, init) => this.runtimeFetch(path, init) }, remotePath, localPath, {
6610
6714
  mode: options?.permissions,
6611
6715
  onProgress: options?.onProgress ? (progress) => {
@@ -9977,4 +10081,4 @@ function quoteForShell(value) {
9977
10081
  return `'${value.replace(/'/g, "'\\''")}'`;
9978
10082
  }
9979
10083
  //#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 };
10084
+ 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 };
@@ -1,10 +1,10 @@
1
1
  import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
2
- import { $a as WriteFileOptions, $t as ForkCounts, A as CommitTaskSessionOptions, An as JsonValue, Bi as SandboxTerminalAttachOptions, C as BranchOptions, Ca as SnapshotProvenance, Ci as SandboxInfo, Cn as HttpClient, Cr as RestoreSnapshotOptions, D as CodeExecutionResult, Da as StartupDiagnostics, Di as SandboxOperationState, Dn as IntelligenceReportCompareTo, Dr as RolloutOptions, E as CodeExecutionOptions, Ei as SandboxOperationKind, En as IntelligenceReportBudget, Fa as TaskSessionInfo, Fi as SandboxRuntimeHealth, Ft as FileWriteResult, Ga as TurnDriveResult, Gi as SandboxTerminals, Gn as NetworkManager, H as CreateTaskSessionOptions, Hr as SandboxEvent, Ii as SandboxShape, Ir as SandboxConnection, Jn as PermissionsManager, Ki as SandboxTraceBundle, La as TeeAttestationOptions, Lr as SandboxDeleteAcknowledgement, M as ConversationTurnOptions, Ma as TaskSessionChanges, N as ConversationTurnResult, Na as TaskSessionCommitResult, Nr as SSHCommandDescriptor, O as CodeLanguage, Oi as SandboxPortBinding, Pi as SandboxRuntimeCapabilities, Pr as SSHCredentials, Q as DispatchedSession, Qa as WorkspaceOperationLookup, Qi as SearchOptions, Rr as SandboxDeleteOptions, Sa as SnapshotOptions, St as ExecResult, Ta as SnapshotResult, Ti as SandboxOperationInfo, Tn as IntelligenceReport, Tr as Rollout, V as CreateSessionOptions, Va as TeePublicKeyResponse, Wa as TurnBackendConfig, Xa as WaitForOptions, Xn as PreviewLinkManager, Yi as SandboxTraceOptions, Z as DispatchPromptOptions, Za as WaitForRolloutOptions, Zi as SearchMatch, aa as SessionEventStreamOptions, an as GitCommit, ao as SandboxEnvRecovery, at as DriverInfo, cn as GitStatus, cr as PromptResult, ct as DurablePlanDecisionOptions, d as BackendConfig, da as SessionInterruptOptions, do as RawEvidenceBoxDirectoryExport, en as ForkIdempotency, eo as WriteManyFile, fa as SessionListOptions, fo as RawEvidenceBoxExportOptions, ga as SessionResultOptions, gt as EgressManager, in as GitBranch, io as SandboxCreateReceipt, j as CompletedTurnResult, ji as SandboxResourceUsage, jn as ListMessagesOptions, ka as StopOptions, kn as IntelligenceReportWindow, kr as RolloutStartResult, kt as FileSystem, la as SessionForkOptions, ln as GpuLease, lr as ProvisionEvent, lt as DurablePlanDecisionResult, ma as SessionMessageAdmission, mn as GpuLeaseManager, mo as RawEvidenceExportOptions, na as SendSessionMessageRequest, nr as ProcessManager, oa as SessionExecutionInfo, oo as SandboxEnvRecoveryView, or as PromptInputPart, p as BackendManager, pa as SessionMessage, pi as SandboxFleetTraceBundle, po as RawEvidenceDirectoryExport, pr as PublicProfileConflict, ra as SentSessionMessage, rt as DriveTurnOptions, sn as GitDiff, sr as PromptOptions, st as DurablePlan, ta as SendSessionMessageOptions, tn as ForkLookupOptions, to as WriteManyOptions, ua as SessionInfo, ur as ProvisionResult, va as SnapshotDeleteAcknowledgement, vo as WorkspaceImagePublishResult$1, wn as InstalledTool, wr as ResumeOptions, xa as SnapshotInfo, xt as ExecOptions, yo as InteractionResolutionAcknowledgement, yt as EventStreamOptions, za as TeeAttestationResponse, zi as SandboxStatus } from "./types-Bal6rlUP.js";
2
+ import { $ as DispatchedSession, $a as WorkspaceOperationLookup, $i as SearchOptions, A as CommitTaskSessionOptions, Aa as StopOptions, An as IntelligenceReportWindow, Ar as RolloutStartResult, At as FileSystem, Ba as TeeAttestationResponse, Bi as SandboxStatus, C as BranchOptions, Ca as SnapshotOptions, Ct as ExecResult, D as CodeExecutionResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, E as CodeExecutionOptions, Ea as SnapshotResult, Ei as SandboxOperationInfo, En as IntelligenceReport, Er as Rollout, Fi as SandboxRuntimeCapabilities, Fr as SSHCredentials, Ga as TurnBackendConfig, H as CreateSessionOptions, Ha as TeePublicKeyResponse, Ia as TaskSessionInfo, Ii as SandboxRuntimeHealth, It as FileWriteResult, Ka as TurnDriveResult, Ki as SandboxTerminals, Kn as NetworkManager, Li as SandboxShape, Lr as SandboxConnection, M as CompletedTurnResult, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, N as ConversationTurnOptions, Na as TaskSessionChanges, O as CodeLanguage, Oa as StartupDiagnostics, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Or as RolloutOptions, P as ConversationTurnResult, Pa as TaskSessionCommitResult, Pr as SSHCommandDescriptor, Q as DispatchPromptOptions, Qa as WaitForRolloutOptions, Qi as SearchMatch, Ra as TeeAttestationOptions, Rr as SandboxDeleteAcknowledgement, Sa as SnapshotInfo, St as ExecOptions, Tn as InstalledTool, Tr as ResumeOptions, U as CreateTaskSessionOptions, Ur as SandboxEvent, Vi as SandboxTerminalAttachOptions, Xi as SandboxTraceOptions, Yn as PermissionsManager, Za as WaitForOptions, Zn as PreviewLinkManager, _a as SessionResultOptions, _t as EgressManager, an as GitBranch, ao as SandboxCreateReceipt, bo as InteractionResolutionAcknowledgement, bt as EventStreamOptions, cn as GitDiff, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionInfo, dr as ProvisionResult, en as ForkCounts, eo as WriteFileOptions, fa as SessionInterruptOptions, fo as RawEvidenceBoxDirectoryExport, ha as SessionMessageAdmission, hn as GpuLeaseManager, ho as RawEvidenceExportOptions, ia as SentSessionMessage, it as DriveTurnOptions, jn as JsonValue, ki as SandboxPortBinding, ln as GitStatus, lr as PromptResult, lt as DurablePlanDecisionOptions, ma as SessionMessage, mi as SandboxFleetTraceBundle, mo as RawEvidenceDirectoryExport, mr as PublicProfileConflict, na as SendSessionMessageOptions, nn as ForkLookupOptions, no as WriteManyOptions, oa as SessionEventStreamOptions, on as GitCommit, oo as SandboxEnvRecovery, ot as DriverInfo, p as BackendManager, pa as SessionListOptions, po as RawEvidenceBoxExportOptions, qi as SandboxTraceBundle, ra as SendSessionMessageRequest, rr as ProcessManager, sa as SessionExecutionInfo, so as SandboxEnvRecoveryView, sr as PromptInputPart, tn as ForkIdempotency, to as WriteManyFile, ua as SessionForkOptions, un as GpuLease, ur as ProvisionEvent, ut as DurablePlanDecisionResult, wa as SnapshotProvenance, wi as SandboxInfo, wn as HttpClient, wr as RestoreSnapshotOptions, ya as SnapshotDeleteAcknowledgement, yo as WorkspaceImagePublishResult$1, zr as SandboxDeleteOptions } from "./types-C-VC0oGh.js";
3
3
  import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
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
- import { z as SandboxLines } from "./lines-CodL_Yhd.js";
7
- import { h as SandboxError } from "./errors-BSmxfVt0.js";
6
+ import { z as SandboxLines } from "./lines-joXwwKub.js";
7
+ import { g as SandboxError } from "./errors-DNxN33_n.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-5Iv50Yu9.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-CSMVbnXg.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-ChgyE6cI.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
  /**
@@ -4292,8 +4292,18 @@ interface CompletedTurnResult {
4292
4292
  completedAt: string;
4293
4293
  /** The cached AgentExecutionResult-shape payload (text, toolInvocations,
4294
4294
  * sessionId, tokenUsage, etc.). */
4295
- result: Record<string, unknown>;
4295
+ result: CompletedTurnPayload;
4296
4296
  }
4297
+ /**
4298
+ * The cached result of a completed turn. `effectiveBackend` is the provider
4299
+ * and model that served the turn, the same field the live `result` and `done`
4300
+ * events carry. It is absent when the runtime did not record it, for example
4301
+ * on a record written before the runtime stored attribution: treat that as
4302
+ * unknown, never as the session's default model.
4303
+ */
4304
+ type CompletedTurnPayload = Record<string, unknown> & {
4305
+ effectiveBackend?: EffectiveBackend;
4306
+ };
4297
4307
  /**
4298
4308
  * Returned by `box.dispatchPrompt()` — minimum the caller needs to track
4299
4309
  * the session afterward. The sandbox keeps running the prompt; use
@@ -8082,4 +8092,4 @@ interface ManagedProcessJobs {
8082
8092
  cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
8083
8093
  }
8084
8094
  //#endregion
8085
- export { DockerDriverConfig as $, WriteFileOptions as $a, SecretInfo as $i, ProcessInfo as $n, SandboxFleetIntelligenceEnvelope as $r, ForkCounts as $t, CommitTaskSessionOptions as A, StorageConfig as Aa, SandboxRemovalState as Ai, JsonValue as An, RolloutStatus as Ar, FileTreeFile as At, CreateSandboxOptions as B, TeePublicKey as Ba, SandboxTerminalAttachOptions as Bi, ManagedProcessSpec as Bn, SandboxEgressUsage as Br, FleetDispatchCancelResult as Bt, BranchOptions as C, SnapshotProvenance as Ca, SandboxInfo as Ci, HttpClient as Cn, BatchEventDataMap as Co, RestoreSnapshotOptions as Cr, FileInfo as Ct, CodeExecutionResult as D, StartupDiagnostics as Da, SandboxOperationState as Di, IntelligenceReportCompareTo as Dn, BackendType as Do, RolloutOptions as Dr, FileReadResult as Dt, CodeExecutionOptions as E, SshKeysManager as Ea, SandboxOperationKind as Ei, IntelligenceReportBudget as En, ALL_BACKEND_TYPES as Eo, RolloutChildResult as Er, FileReadError as Et, CreateIntelligenceReportOptions as F, TaskSessionInfo as Fa, SandboxRuntimeHealth as Fi, MAX_EGRESS_DENIALS_LIMIT as Fn, SandboxConfig as Fr, FileWriteResult as Ft, DeleteMatchingSandboxesFilter as G, TurnDriveResult as Ga, SandboxTerminals as Gi, NetworkManager as Gn, SandboxFleetArtifact as Gr, FleetDriveTurnRequest as Gt, CreateTaskSessionOptions as H, TokenRefreshHandler as Ha, SandboxTerminalInfo as Hi, McpServerConfig as Hn, SandboxEvent as Hr, FleetDispatchResultBufferOptions as Ht, CreateRequestOptions as I, TaskSessionProfile as Ia, SandboxShape as Ii, ManagedProcessJobs as In, SandboxConnection as Ir, FleetAgentId as It, DeleteOptions as J, UploadProgress as Ja, SandboxTraceExport as Ji, PermissionsManager as Jn, SandboxFleetDispatchFailureClass as Jr, FleetMachineId as Jt, DeleteMatchingSandboxesOptions as K, UpdateUserOptions as Ka, SandboxTraceBundle as Ki, NonHostAgentDriverConfig as Kn, SandboxFleetArtifactSpec as Kr, FleetExecDispatchOptions as Kt, CreateSandboxFleetOptions as L, TeeAttestationOptions as La, SandboxShapePreset as Li, ManagedProcessOptions as Ln, SandboxDeleteAcknowledgement as Lr, FleetAgentPlacement as Lt, ConversationTurnOptions as M, TaskSessionChanges as Ma, SandboxResources as Mi, ListOptions as Mn, RouterRoutingOptions as Mr, FileTreeResult as Mt, ConversationTurnResult as N, TaskSessionCommitResult as Na, SandboxRunGeneration as Ni, ListSandboxFleetOptions as Nn, SSHCommandDescriptor as Nr, FileUsageOptions as Nt, CodeLanguage as O, StartupOperation as Oa, SandboxPortBinding as Oi, IntelligenceReportSubjectType as On, parseBackendType as Oo, RolloutScorer as Or, FileRenameResult as Ot, CreateGpuLeaseOptions as P, TaskSessionFileChange as Pa, SandboxRuntimeCapabilities as Pi, ListSandboxOptions as Pn, SSHCredentials as Pr, FileUsageResult as Pt, DispatchedSession as Q, WorkspaceOperationLookup as Qa, SearchOptions as Qi, Process as Qn, SandboxFleetInfo as Qr, FleetRunOptions as Qt, CreateSandboxFleetTokenOptions as R, TeeAttestationReport as Ra, SandboxShapesInfo as Ri, ManagedProcessRecord as Rn, SandboxDeleteOptions as Rr, FleetAgentResult as Rt, BatchTaskResult as S, SnapshotOptions as Sa, SandboxIdentity as Si, HostAgentRuntimeBackend as Sn, BatchEvent as So, RenameOptions as Sr, ExecResult as St, ChunkedUploadResult as T, SnapshotResult as Ta, SandboxOperationInfo as Ti, IntelligenceReport as Tn, BatchTaskUsage as To, Rollout as Tr, FileReadBatchResult as Tt, DeleteMatchingSandboxOutcome as U, TokenUsage as Ua, SandboxTerminalManager as Ui, MkdirOptions as Un, SandboxFleetAgent as Ur, FleetDispatchStreamOptions as Ut, CreateSessionOptions as V, TeePublicKeyResponse as Va, SandboxTerminalCreateOptions as Vi, ManagedProcessState as Vn, SandboxEnvironment as Vr, FleetDispatchResultBuffer as Vt, DeleteMatchingSandboxResult as W, TurnBackendConfig as Wa, SandboxTerminalRequestOptions as Wi, NetworkConfig as Wn, SandboxFleetAgentSpec as Wr, FleetDriveTurnOutcome as Wt, DirectoryPermission as X, WaitForOptions as Xa, SandboxUser as Xi, PreviewLinkManager as Xn, SandboxFleetDriverCapability as Xr, FleetPromptDispatchResult as Xt, DevServerInfo as Y, UsageInfo as Ya, SandboxTraceOptions as Yi, PreviewLinkInfo as Yn, SandboxFleetDispatchResponse as Yr, FleetPromptDispatchOptions as Yt, DispatchPromptOptions as Z, WaitForRolloutOptions as Za, SearchMatch as Zi, PreviewLinkWaitOptions as Zn, SandboxFleetDriverTimings as Zr, FleetRunEvent as Zt, BatchBackend as _, SessionStatus as _a, SandboxFleetUsage as _i, GpuLeaseProviderStatus as _n, RawEvidenceRecordsFile as _o, PublishPublicTemplateVersionOptions as _r, EgressPolicy as _t, AgentQuestionRequest as a, SessionEventStreamOptions as aa, SandboxFleetManifestMachine as ai, GitCommit as an, SandboxEnvRecovery as ao, ProcessStatus as ar, DriverInfo as at, BatchRunRequest as b, SnapshotIdempotency as ba, SandboxFleetWorkspaceRestoreResult as bi, GpuLeaseStatus as bn, PublicBatchRunRequest as bo, ReconcileSandboxFleetsOptions as br, ExactProcessSpawnOptions as bt, AttachGpuLeaseOptions as c, SessionFailureReason as ca, SandboxFleetPlacement as ci, GitStatus as cn, RawEvidenceArchiveManifest as co, PromptResult as cr, DurablePlanDecisionOptions as ct, BackendConfig as d, SessionInterruptOptions as da, SandboxFleetSpend as di, GpuLeaseCommandResult as dn, RawEvidenceBoxDirectoryExport as do, ProvisionStatus as dr, DurablePlanSnapshot as dt, SecretsManager as ea, SandboxFleetMachine as ei, ForkIdempotency as en, WriteManyFile as eo, ProcessListOptions as er, DownloadOptions as et, BackendInfo as f, SessionListOptions as fa, SandboxFleetToken as fi, GpuLeaseExecOptions as fn, RawEvidenceBoxExportOptions as fo, ProvisionStep as fr, EffectiveBackend as ft, BackendStatus as g, SessionResultOptions as ga, SandboxFleetTraceOptions as gi, GpuLeaseProviderState as gn, RawEvidencePayloadFile as go, PublishPublicTemplateOptions as gr, EgressManager as gt, BackendRuntimeConfigUpdate as h, SessionMessageInputPart as ha, SandboxFleetTraceExport as hi, GpuLeaseProviderName as hn, RawEvidenceNativeFile as ho, PublicTemplateVersionInfo as hr, EgressDenial as ht, AgentApprovalRequirement as i, SessionBackendCredentials as ia, SandboxFleetManifest as ii, GitBranch as in, SandboxCreateReceipt as io, ProcessSpawnOptions as ir, DriverConfig as it, CompletedTurnResult as j, SubscriptionInfo as ja, SandboxResourceUsage as ji, ListMessagesOptions as jn, RolloutTurnPart as jr, FileTreeOptions as jt, CodeResultPart as k, StopOptions as ka, SandboxPortPreviewLink as ki, IntelligenceReportWindow as kn, RolloutStartResult as kr, FileSystem as kt, AttachSandboxFleetMachineOptions as l, SessionForkOptions as la, SandboxFleetPolicy as li, GpuLease as ln, RawEvidenceArchiveManifestNative as lo, ProvisionEvent as lr, DurablePlanDecisionResult as lt, BackendMcpServerStatus as m, SessionMessageAdmission as ma, SandboxFleetTraceEvent as mi, GpuLeaseManager as mn, RawEvidenceExportOptions as mo, PublicTemplateInfo as mr, EffectiveBackendSource as mt, AccessPolicyRule as n, SendSessionMessageRequest as na, SandboxFleetMachineRecord as ni, GPU_LEASE_PROVIDER_NAMES as nn, SdkTimingHook as no, ProcessManager as nr, DownloadResult as nt, AgentRunStatus as o, SessionExecutionInfo as oa, SandboxFleetOperationsSummary as oi, GitConfig as on, SandboxEnvRecoveryView as oo, PromptInputPart as or, DriverType as ot, BackendManager as p, SessionMessage as pa, SandboxFleetTraceBundle as pi, GpuLeaseExecResult as pn, RawEvidenceDirectoryExport as po, PublicProfileConflict as pr, EffectiveBackendProfile as pt, DeleteMatchingSandboxesResult as q, UploadOptions as qa, SandboxTraceEvent as qi, PermissionLevel as qn, SandboxFleetCostEstimate as qr, FleetExecDispatchResult as qt, AddUserOptions as r, SentSessionMessage as ra, SandboxFleetMachineSpec as ri, GitAuth as rn, SandboxCreateOutcome as ro, ProcessSignal as rr, DriveTurnOptions as rt, AgentToolInvocation as s, SessionExecutionStatus as sa, SandboxFleetParent as si, GitDiff as sn, NativeStoreHomeCopy as so, PromptOptions as sr, DurablePlan as st, AcceleratorKind as t, SendSessionMessageOptions as ta, SandboxFleetMachineMeteredUsage as ti, ForkLookupOptions as tn, WriteManyOptions as to, ProcessLogEntry as tr, DownloadProgress as tt, BackendCapabilities as u, SessionInfo as ua, SandboxFleetProfileRef as ui, GpuLeaseBilling as un, RawEvidenceBoxArchiveManifest as uo, ProvisionResult as ur, DurablePlanFollowUpResume as ut, BatchResult as v, SnapshotDeleteAcknowledgement as va, SandboxFleetWorkspace as vi, GpuLeaseProviders as vn, WorkspaceImagePublishResult as vo, ReapExpiredSandboxFleetsOptions as vr, EnsureDevServerOptions as vt, ChunkedUploadOptions as w, SnapshotRemoteSync as wa, SandboxIntelligenceEnvelope as wi, InstalledTool as wn, BatchSidecarGroup as wo, ResumeOptions as wr, FileReadBatchOptions as wt, BatchTask as x, SnapshotInfo as xa, SandboxFleetWorkspaceSnapshotResult as xi, HostAgentDriverConfig as xn, BatchBackendStats as xo, ReconcileSandboxFleetsResult as xr, ExecOptions as xt, BatchRunOptions as y, SnapshotDeleteOutcome as ya, SandboxFleetWorkspaceReconcileResult as yi, GpuLeaseProvidersOptions as yn, InteractionResolutionAcknowledgement as yo, ReapExpiredSandboxFleetsResult as yr, EventStreamOptions as yt, CreateSandboxFleetWithCoordinatorOptions as z, TeeAttestationResponse as za, SandboxStatus as zi, ManagedProcessResumeOptions as zn, SandboxDeleteOutcome as zr, FleetAgentRunStatus as zt };
8095
+ export { DispatchedSession as $, WorkspaceOperationLookup as $a, SearchOptions as $i, Process as $n, SandboxFleetInfo as $r, FleetRunOptions as $t, CommitTaskSessionOptions as A, StopOptions as Aa, SandboxPortPreviewLink as Ai, IntelligenceReportWindow as An, RolloutStartResult as Ar, FileSystem as At, CreateSandboxFleetWithCoordinatorOptions as B, TeeAttestationResponse as Ba, SandboxStatus as Bi, ManagedProcessResumeOptions as Bn, SandboxDeleteOutcome as Br, FleetAgentRunStatus as Bt, BranchOptions as C, SnapshotOptions as Ca, SandboxIdentity as Ci, HostAgentRuntimeBackend as Cn, BatchEvent as Co, RenameOptions as Cr, ExecResult as Ct, CodeExecutionResult as D, SshKeysManager as Da, SandboxOperationKind as Di, IntelligenceReportBudget as Dn, ALL_BACKEND_TYPES as Do, RolloutChildResult as Dr, FileReadError as Dt, CodeExecutionOptions as E, SnapshotResult as Ea, SandboxOperationInfo as Ei, IntelligenceReport as En, BatchTaskUsage as Eo, Rollout as Er, FileReadBatchResult as Et, CreateGpuLeaseOptions as F, TaskSessionFileChange as Fa, SandboxRuntimeCapabilities as Fi, ListSandboxOptions as Fn, SSHCredentials as Fr, FileUsageResult as Ft, DeleteMatchingSandboxResult as G, TurnBackendConfig as Ga, SandboxTerminalRequestOptions as Gi, NetworkConfig as Gn, SandboxFleetAgentSpec as Gr, FleetDriveTurnOutcome as Gt, CreateSessionOptions as H, TeePublicKeyResponse as Ha, SandboxTerminalCreateOptions as Hi, ManagedProcessState as Hn, SandboxEnvironment as Hr, FleetDispatchResultBuffer as Ht, CreateIntelligenceReportOptions as I, TaskSessionInfo as Ia, SandboxRuntimeHealth as Ii, MAX_EGRESS_DENIALS_LIMIT as In, SandboxConfig as Ir, FileWriteResult as It, DeleteMatchingSandboxesResult as J, UploadOptions as Ja, SandboxTraceEvent as Ji, PermissionLevel as Jn, SandboxFleetCostEstimate as Jr, FleetExecDispatchResult as Jt, DeleteMatchingSandboxesFilter as K, TurnDriveResult as Ka, SandboxTerminals as Ki, NetworkManager as Kn, SandboxFleetArtifact as Kr, FleetDriveTurnRequest as Kt, CreateRequestOptions as L, TaskSessionProfile as La, SandboxShape as Li, ManagedProcessJobs as Ln, SandboxConnection as Lr, FleetAgentId as Lt, CompletedTurnResult as M, SubscriptionInfo as Ma, SandboxResourceUsage as Mi, ListMessagesOptions as Mn, RolloutTurnPart as Mr, FileTreeOptions as Mt, ConversationTurnOptions as N, TaskSessionChanges as Na, SandboxResources as Ni, ListOptions as Nn, RouterRoutingOptions as Nr, FileTreeResult as Nt, CodeLanguage as O, StartupDiagnostics as Oa, SandboxOperationState as Oi, IntelligenceReportCompareTo as On, BackendType as Oo, RolloutOptions as Or, FileReadResult as Ot, ConversationTurnResult as P, TaskSessionCommitResult as Pa, SandboxRunGeneration as Pi, ListSandboxFleetOptions as Pn, SSHCommandDescriptor as Pr, FileUsageOptions as Pt, DispatchPromptOptions as Q, WaitForRolloutOptions as Qa, SearchMatch as Qi, PreviewLinkWaitOptions as Qn, SandboxFleetDriverTimings as Qr, FleetRunEvent as Qt, CreateSandboxFleetOptions as R, TeeAttestationOptions as Ra, SandboxShapePreset as Ri, ManagedProcessOptions as Rn, SandboxDeleteAcknowledgement as Rr, FleetAgentPlacement as Rt, BatchTaskResult as S, SnapshotInfo as Sa, SandboxFleetWorkspaceSnapshotResult as Si, HostAgentDriverConfig as Sn, BatchBackendStats as So, ReconcileSandboxFleetsResult as Sr, ExecOptions as St, ChunkedUploadResult as T, SnapshotRemoteSync as Ta, SandboxIntelligenceEnvelope as Ti, InstalledTool as Tn, BatchSidecarGroup as To, ResumeOptions as Tr, FileReadBatchOptions as Tt, CreateTaskSessionOptions as U, TokenRefreshHandler as Ua, SandboxTerminalInfo as Ui, McpServerConfig as Un, SandboxEvent as Ur, FleetDispatchResultBufferOptions as Ut, CreateSandboxOptions as V, TeePublicKey as Va, SandboxTerminalAttachOptions as Vi, ManagedProcessSpec as Vn, SandboxEgressUsage as Vr, FleetDispatchCancelResult as Vt, DeleteMatchingSandboxOutcome as W, TokenUsage as Wa, SandboxTerminalManager as Wi, MkdirOptions as Wn, SandboxFleetAgent as Wr, FleetDispatchStreamOptions as Wt, DevServerInfo as X, UsageInfo as Xa, SandboxTraceOptions as Xi, PreviewLinkInfo as Xn, SandboxFleetDispatchResponse as Xr, FleetPromptDispatchOptions as Xt, DeleteOptions as Y, UploadProgress as Ya, SandboxTraceExport as Yi, PermissionsManager as Yn, SandboxFleetDispatchFailureClass as Yr, FleetMachineId as Yt, DirectoryPermission as Z, WaitForOptions as Za, SandboxUser as Zi, PreviewLinkManager as Zn, SandboxFleetDriverCapability as Zr, FleetPromptDispatchResult as Zt, BatchBackend as _, SessionResultOptions as _a, SandboxFleetTraceOptions as _i, GpuLeaseProviderState as _n, RawEvidencePayloadFile as _o, PublishPublicTemplateOptions as _r, EgressManager as _t, AgentQuestionRequest as a, SessionBackendCredentials as aa, SandboxFleetManifest as ai, GitBranch as an, SandboxCreateReceipt as ao, ProcessSpawnOptions as ar, DriverConfig as at, BatchRunRequest as b, SnapshotDeleteOutcome as ba, SandboxFleetWorkspaceReconcileResult as bi, GpuLeaseProvidersOptions as bn, InteractionResolutionAcknowledgement as bo, ReapExpiredSandboxFleetsResult as br, EventStreamOptions as bt, AttachGpuLeaseOptions as c, SessionExecutionStatus as ca, SandboxFleetParent as ci, GitDiff as cn, NativeStoreHomeCopy as co, PromptOptions as cr, DurablePlan as ct, BackendConfig as d, SessionInfo as da, SandboxFleetProfileRef as di, GpuLeaseBilling as dn, RawEvidenceBoxArchiveManifest as do, ProvisionResult as dr, DurablePlanFollowUpResume as dt, SecretInfo as ea, SandboxFleetIntelligenceEnvelope as ei, ForkCounts as en, WriteFileOptions as eo, ProcessInfo as er, DockerDriverConfig as et, BackendInfo as f, SessionInterruptOptions as fa, SandboxFleetSpend as fi, GpuLeaseCommandResult as fn, RawEvidenceBoxDirectoryExport as fo, ProvisionStatus as fr, DurablePlanSnapshot as ft, BackendStatus as g, SessionMessageInputPart as ga, SandboxFleetTraceExport as gi, GpuLeaseProviderName as gn, RawEvidenceNativeFile as go, PublicTemplateVersionInfo as gr, EgressDenial as gt, BackendRuntimeConfigUpdate as h, SessionMessageAdmission as ha, SandboxFleetTraceEvent as hi, GpuLeaseManager as hn, RawEvidenceExportOptions as ho, PublicTemplateInfo as hr, EffectiveBackendSource as ht, AgentApprovalRequirement as i, SentSessionMessage as ia, SandboxFleetMachineSpec as ii, GitAuth as in, SandboxCreateOutcome as io, ProcessSignal as ir, DriveTurnOptions as it, CompletedTurnPayload as j, StorageConfig as ja, SandboxRemovalState as ji, JsonValue as jn, RolloutStatus as jr, FileTreeFile as jt, CodeResultPart as k, StartupOperation as ka, SandboxPortBinding as ki, IntelligenceReportSubjectType as kn, parseBackendType as ko, RolloutScorer as kr, FileRenameResult as kt, AttachSandboxFleetMachineOptions as l, SessionFailureReason as la, SandboxFleetPlacement as li, GitStatus as ln, RawEvidenceArchiveManifest as lo, PromptResult as lr, DurablePlanDecisionOptions as lt, BackendMcpServerStatus as m, SessionMessage as ma, SandboxFleetTraceBundle as mi, GpuLeaseExecResult as mn, RawEvidenceDirectoryExport as mo, PublicProfileConflict as mr, EffectiveBackendProfile as mt, AccessPolicyRule as n, SendSessionMessageOptions as na, SandboxFleetMachineMeteredUsage as ni, ForkLookupOptions as nn, WriteManyOptions as no, ProcessLogEntry as nr, DownloadProgress as nt, AgentRunStatus as o, SessionEventStreamOptions as oa, SandboxFleetManifestMachine as oi, GitCommit as on, SandboxEnvRecovery as oo, ProcessStatus as or, DriverInfo as ot, BackendManager as p, SessionListOptions as pa, SandboxFleetToken as pi, GpuLeaseExecOptions as pn, RawEvidenceBoxExportOptions as po, ProvisionStep as pr, EffectiveBackend as pt, DeleteMatchingSandboxesOptions as q, UpdateUserOptions as qa, SandboxTraceBundle as qi, NonHostAgentDriverConfig as qn, SandboxFleetArtifactSpec as qr, FleetExecDispatchOptions as qt, AddUserOptions as r, SendSessionMessageRequest as ra, SandboxFleetMachineRecord as ri, GPU_LEASE_PROVIDER_NAMES as rn, SdkTimingHook as ro, ProcessManager as rr, DownloadResult as rt, AgentToolInvocation as s, SessionExecutionInfo as sa, SandboxFleetOperationsSummary as si, GitConfig as sn, SandboxEnvRecoveryView as so, PromptInputPart as sr, DriverType as st, AcceleratorKind as t, SecretsManager as ta, SandboxFleetMachine as ti, ForkIdempotency as tn, WriteManyFile as to, ProcessListOptions as tr, DownloadOptions as tt, BackendCapabilities as u, SessionForkOptions as ua, SandboxFleetPolicy as ui, GpuLease as un, RawEvidenceArchiveManifestNative as uo, ProvisionEvent as ur, DurablePlanDecisionResult as ut, BatchResult as v, SessionStatus as va, SandboxFleetUsage as vi, GpuLeaseProviderStatus as vn, RawEvidenceRecordsFile as vo, PublishPublicTemplateVersionOptions as vr, EgressPolicy as vt, ChunkedUploadOptions as w, SnapshotProvenance as wa, SandboxInfo as wi, HttpClient as wn, BatchEventDataMap as wo, RestoreSnapshotOptions as wr, FileInfo as wt, BatchTask as x, SnapshotIdempotency as xa, SandboxFleetWorkspaceRestoreResult as xi, GpuLeaseStatus as xn, PublicBatchRunRequest as xo, ReconcileSandboxFleetsOptions as xr, ExactProcessSpawnOptions as xt, BatchRunOptions as y, SnapshotDeleteAcknowledgement as ya, SandboxFleetWorkspace as yi, GpuLeaseProviders as yn, WorkspaceImagePublishResult as yo, ReapExpiredSandboxFleetsOptions as yr, EnsureDevServerOptions as yt, CreateSandboxFleetTokenOptions as z, TeeAttestationReport as za, SandboxShapesInfo as zi, ManagedProcessRecord as zn, SandboxDeleteOptions as zr, FleetAgentResult as zt };
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.16",
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": "cdfd2b291dbcac5742f2397804928c6e5d29154b",
172
+ "mergedAt": "2026-10-19T15:40:33-06:00"
173
173
  },
174
174
  "scripts": {
175
175
  "build": "node scripts/build-dist.mjs",