@tangle-network/sandbox 1.0.310 → 1.0.312

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 (54) 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/preview.js +2 -2
  5. package/dist/{agent-execution-preparation-N1ksNIIJ.js → agent-execution-preparation-CatenlMs.js} +3 -3
  6. package/dist/{agent-execution-preparation-receipt-j1Z7Om0k.js → agent-execution-preparation-receipt-BFGr2nAM.js} +4 -4
  7. package/dist/{agent-run-outcome-DOYV7jkF.d.ts → agent-run-outcome-Dt9GKYcK.d.ts} +2 -2
  8. package/dist/{api-request-BTRMCKui.js → api-request-d_c1h__g.js} +1 -1
  9. package/dist/auth/index.d.ts +1 -1
  10. package/dist/auth/index.js +2 -2
  11. package/dist/{browser-interactive-control-controller-BD0GL8aF.d.ts → browser-interactive-control-controller-BCk4F3KE.d.ts} +2 -2
  12. package/dist/{browser-interactive-control-controller-CD56Y7rp.js → browser-interactive-control-controller-CqrpUND_.js} +14 -14
  13. package/dist/{cli-auth-bundle-B4SGUcYM-CukXOw4n.js → cli-auth-bundle-B4SGUcYM-B5SuPHb_.js} +1 -1
  14. package/dist/{cli-auth-bundle-B3jfdNXg.d.ts → cli-auth-bundle-DTAVpYLy.d.ts} +1 -1
  15. package/dist/cli-auth-bundle-vWBeEFSk.js +2 -0
  16. package/dist/{client-mrjznkDX.d.ts → client-C_e3dHcZ.d.ts} +6 -6
  17. package/dist/{client-B-nRY6F2.js → client-CrArChIt.js} +6 -6
  18. package/dist/collaboration/index.js +1 -1
  19. package/dist/{collaboration-BqFQlQ6p.js → collaboration-BXqy0Vqg.js} +1 -1
  20. package/dist/core.d.ts +6 -6
  21. package/dist/core.js +3 -3
  22. package/dist/gpu-lease/index.js +1 -1
  23. package/dist/{harness--g8UQ5TZ.js → harness-DW2I_kp7.js} +4 -4
  24. package/dist/{index-clVn6PbJ.d.ts → index-CtOabBjl.d.ts} +9 -9
  25. package/dist/{index-B5e7Pa7p.d.ts → index-Dxxq7J79.d.ts} +15 -15
  26. package/dist/index.d.ts +10 -10
  27. package/dist/index.js +9 -147
  28. package/dist/intelligence/index.js +1 -1
  29. package/dist/interactive-control.d.ts +1 -1
  30. package/dist/interactive-control.js +1 -1
  31. package/dist/{interactive-controller-DEGlQO7a.d.ts → interactive-controller-BdGiwuUs.d.ts} +4 -4
  32. package/dist/{interactive-controller-Du6qBQr_.js → interactive-controller-Bw7H9yDw.js} +5 -5
  33. package/dist/{lines-06LuVwN4.d.ts → lines-BniGLMGB.d.ts} +1 -1
  34. package/dist/lines.d.ts +1 -1
  35. package/dist/{local-cli-auth-DNNXF4cB.js → local-cli-auth-CZBHxG9t.js} +1 -1
  36. package/dist/{mcp-local-DuYQUWvp.js → mcp-local-io-gmHrl.js} +2 -2
  37. package/dist/{preview-p8dlj7O9.d.ts → preview-DCBYG9r_.d.ts} +3 -3
  38. package/dist/{profile-schema-B11dRfGB.js → profile-schema-C_MbI9mE.js} +27 -38
  39. package/dist/{public-templates-CLSj67ap.d.ts → public-templates-C0qrfRXs.d.ts} +2 -2
  40. package/dist/public-templates.d.ts +1 -1
  41. package/dist/runtime.d.ts +5 -5
  42. package/dist/runtime.js +3 -3
  43. package/dist/{sandbox-ygtE4HzS.js → sandbox-CQQNiQft.js} +158 -20
  44. package/dist/{select-seat-D0YBpIJl.js → select-seat-V4GysL74.js} +4 -4
  45. package/dist/select-seat-command.d.ts +2 -2
  46. package/dist/select-seat-command.js +1 -1
  47. package/dist/session-gateway/index.js +1 -1
  48. package/dist/tangle/index.d.ts +1 -1
  49. package/dist/tangle/index.js +1 -1
  50. package/dist/{tangle-Bjc9cYUL.js → tangle-Ccirv2nB.js} +2 -2
  51. package/dist/{terminal-stream-types-BSyus9Qn.d.ts → terminal-stream-types-BMGTVpuf.d.ts} +1 -1
  52. package/dist/{types-U26ydnZu.d.ts → types-CJP4O3xL.d.ts} +3 -3
  53. package/package.json +5 -5
  54. package/dist/cli-auth-bundle-DIZ0PWyR.js +0 -2
@@ -1,6 +1,6 @@
1
- import { C as boundedIdentifierSchema, O as isBoundedJsonMaterial, _ as CONTRACT_MAX_ARRAY_LENGTH, a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_JSON_NODES } from "./harness--g8UQ5TZ.js";
1
+ import { C as boundedIdentifierSchema, O as isBoundedJsonMaterial, _ as CONTRACT_MAX_ARRAY_LENGTH, a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_JSON_NODES } from "./harness-DW2I_kp7.js";
2
2
  import { z } from "zod";
3
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/deep-freeze.js
3
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/deep-freeze.js
4
4
  /**
5
5
  * Make a validated value immutable before it is handed out.
6
6
  *
@@ -20,7 +20,7 @@ function deepFreeze(value, seen = /* @__PURE__ */ new Set()) {
20
20
  return Object.freeze(value);
21
21
  }
22
22
  //#endregion
23
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
23
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
24
24
  /** Immutable Hub generation identities, never aliases such as latest or a caller's scope. */
25
25
  const agentProfileKnowledgeRefSchema = z.strictObject({
26
26
  sourceId: z.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
@@ -38,7 +38,7 @@ const agentProfileKnowledgeRefsSchema = z.array(agentProfileKnowledgeRefSchema).
38
38
  });
39
39
  });
40
40
  //#endregion
41
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
41
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
42
42
  /** Why a value cannot be AgentProfile JSON, with the path of the offending entry. */
43
43
  var AgentProfileValueError = class extends Error {
44
44
  path;
@@ -114,7 +114,7 @@ function renderPath(path) {
114
114
  return path.length === 0 ? "root" : path.join(".");
115
115
  }
116
116
  //#endregion
117
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
117
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
118
118
  /**
119
119
  * Zod records currently assign parsed values onto an ordinary object. The
120
120
  * special own key `__proto__` therefore invokes the legacy prototype setter
@@ -197,7 +197,7 @@ function decodeRecordKey(value) {
197
197
  return decoded;
198
198
  }
199
199
  //#endregion
200
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
200
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
201
201
  /**
202
202
  * Declarations request authority. The issuer intersects scope/expiry with authenticated tenant,
203
203
  * issuer policy and lineage, without personal/team fallback, pinning immutable secret ID/revision.
@@ -363,7 +363,7 @@ z.strictObject({
363
363
  requireInPlace: z.boolean().optional()
364
364
  });
365
365
  //#endregion
366
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/profile-kb/entry.js
366
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/profile-kb/entry.js
367
367
  function claim(text, source, basis = "documented", audience = "operator") {
368
368
  return {
369
369
  text,
@@ -385,7 +385,7 @@ function kbEntry(entry) {
385
385
  };
386
386
  }
387
387
  //#endregion
388
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/profile-kb/models.js
388
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/profile-kb/models.js
389
389
  const CHECKED = "2026-10-04";
390
390
  const source = (url, locator) => ({
391
391
  url,
@@ -693,7 +693,7 @@ const modelIndex = (() => {
693
693
  /** Whether this exact spelling is a declared model id or alias. */
694
694
  const profileKbNamesModel = (name) => modelIndex.has(name.trim().toLowerCase());
695
695
  //#endregion
696
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
696
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
697
697
  /** Canonical harness/model, effort and prompt controls. Model-specific capability comes from the serving catalog. */
698
698
  /** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
699
699
  const reasoningLadder = REASONING_EFFORTS;
@@ -738,34 +738,23 @@ const SANDBOX_HARNESS_MATRIX_EVIDENCE = "https://github.com/tangle-network/agent
738
738
  *
739
739
  * pi's chat-completions client (pi-ai 0.85.1) marks a model as reasoning only when the profile asks
740
740
  * for a reasoning effort, and only a reasoning model is sent the `developer` role and
741
- * `reasoning_effort`; that is why the first two entries need a reasoning effort.
741
+ * `reasoning_effort`; that is why every entry needs a reasoning effort.
742
742
  */
743
- const harnessModelExclusions = [
744
- {
745
- harness: "pi",
746
- models: /^anthropic\//,
747
- onlyWithReasoningEffort: true,
748
- reason: "the Router's chat-completions route for Anthropic models rejects the \"developer\" role pi sends to a reasoning model (400 Unexpected role \"developer\")",
749
- measuredOn: "2026-10-05",
750
- evidence: SANDBOX_HARNESS_MATRIX_EVIDENCE
751
- },
752
- {
753
- harness: "pi",
754
- models: /^openai\/gpt-5\.6-luna$/,
755
- onlyWithReasoningEffort: true,
756
- reason: "OpenAI does not accept function tools together with reasoning_effort for this model on /v1/chat/completions, the only route pi speaks",
757
- measuredOn: "2026-10-05",
758
- evidence: SANDBOX_HARNESS_MATRIX_EVIDENCE
759
- },
760
- {
761
- harness: "pi",
762
- models: /^google\/gemini-3\.8-flash$/,
763
- onlyWithReasoningEffort: false,
764
- reason: "the model requires each function call to return its thought_signature, which pi's chat-completions client does not send back (400 Function call is missing a thought_signature)",
765
- measuredOn: "2026-10-05",
766
- evidence: SANDBOX_HARNESS_MATRIX_EVIDENCE
767
- }
768
- ];
743
+ const harnessModelExclusions = [{
744
+ harness: "pi",
745
+ models: /^anthropic\//,
746
+ onlyWithReasoningEffort: true,
747
+ reason: "the Router's chat-completions route for Anthropic models rejects the \"developer\" role pi sends to a reasoning model (400 Unexpected role \"developer\")",
748
+ measuredOn: "2026-10-05",
749
+ evidence: SANDBOX_HARNESS_MATRIX_EVIDENCE
750
+ }, {
751
+ harness: "pi",
752
+ models: /^openai\/gpt-5\.6-luna$/,
753
+ onlyWithReasoningEffort: true,
754
+ reason: "OpenAI does not accept function tools together with reasoning_effort for this model on /v1/chat/completions, the only route pi speaks",
755
+ measuredOn: "2026-10-05",
756
+ evidence: SANDBOX_HARNESS_MATRIX_EVIDENCE
757
+ }];
769
758
  /**
770
759
  * Whether a harness can run a model, and why not. A bare id resolves its provider through
771
760
  * {@link resolveModelProvider}; an id whose provider cannot be resolved (a sentinel like `default`)
@@ -965,7 +954,7 @@ function harnessSystemPromptIntents(harness) {
965
954
  return harnessSystemPromptControls[harness] ?? noSystemPromptControls;
966
955
  }
967
956
  //#endregion
968
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
957
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
969
958
  /**
970
959
  * Portable sandbox size vocabulary.
971
960
  *
@@ -988,7 +977,7 @@ const SANDBOX_SIZE_PRESET_NAMES = [
988
977
  "large"
989
978
  ];
990
979
  //#endregion
991
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
980
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
992
981
  const profileOpaqueValueSchema = z.unknown().transform((value, context) => {
993
982
  if (value === void 0 || isBoundedJsonMaterial(value, {
994
983
  dataPropertiesOnly: true,
@@ -1,5 +1,5 @@
1
- import { R as SandboxError } from "./terminal-stream-types-BSyus9Qn.js";
2
- import { Jn as PublicTemplateInfo, Xn as PublishPublicTemplateOptions, Yn as PublicTemplateVersionInfo, Zn as PublishPublicTemplateVersionOptions, br as HttpClient } from "./types-U26ydnZu.js";
1
+ import { R as SandboxError } from "./terminal-stream-types-BMGTVpuf.js";
2
+ import { Jn as PublicTemplateInfo, Xn as PublishPublicTemplateOptions, Yn as PublicTemplateVersionInfo, Zn as PublishPublicTemplateVersionOptions, br as HttpClient } from "./types-CJP4O3xL.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/public-templates.d.ts
@@ -1,2 +1,2 @@
1
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CLSj67ap.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-C0qrfRXs.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-BSyus9Qn.js";
2
- import { Bt as SandboxRuntimeHealth, Ci as SandboxEvent, En as FileReadBatchResult, Fn as FileUsageResult, Gi as SentSessionMessage, Gt as SandboxTerminalRequestOptions, Hn as WriteFileOptions, Ht as SandboxTerminalCreateOptions, Ii as CreateSessionOptions, In as FileWriteResult, Ji as SessionExecutionInfo, Li as CreateTaskSessionOptions, Lt as SandboxPortBinding, Mn as FileTreeOptions, Nn as FileTreeResult, Pn as FileUsageOptions, Qi as SessionInfo, Tn as FileReadBatchOptions, Ui as SendSessionMessageOptions, Ut as SandboxTerminalInfo, Vi as ListMessagesOptions, Vn as UploadProgress, Wi as SendSessionMessageRequest, Wt as SandboxTerminalManager, Yi as SessionExecutionStatus, aa as TaskSessionChanges, br as HttpClient, ca as TaskSessionInfo, en as TerminalStream, ji as CommitTaskSessionOptions, kn as FileRenameResult, na as SessionMessageAdmission, oa as TaskSessionCommitResult, qi as SessionEventStreamOptions, ta as SessionMessage, vn as ChunkedUploadOptions, yn as ChunkedUploadResult, zn as RenameOptions } from "./types-U26ydnZu.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-BD0GL8aF.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-DEGlQO7a.js";
5
- import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DOYV7jkF.js";
1
+ import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-BMGTVpuf.js";
2
+ import { Bt as SandboxRuntimeHealth, Ci as SandboxEvent, En as FileReadBatchResult, Fn as FileUsageResult, Gi as SentSessionMessage, Gt as SandboxTerminalRequestOptions, Hn as WriteFileOptions, Ht as SandboxTerminalCreateOptions, Ii as CreateSessionOptions, In as FileWriteResult, Ji as SessionExecutionInfo, Li as CreateTaskSessionOptions, Lt as SandboxPortBinding, Mn as FileTreeOptions, Nn as FileTreeResult, Pn as FileUsageOptions, Qi as SessionInfo, Tn as FileReadBatchOptions, Ui as SendSessionMessageOptions, Ut as SandboxTerminalInfo, Vi as ListMessagesOptions, Vn as UploadProgress, Wi as SendSessionMessageRequest, Wt as SandboxTerminalManager, Yi as SessionExecutionStatus, aa as TaskSessionChanges, br as HttpClient, ca as TaskSessionInfo, en as TerminalStream, ji as CommitTaskSessionOptions, kn as FileRenameResult, na as SessionMessageAdmission, oa as TaskSessionCommitResult, qi as SessionEventStreamOptions, ta as SessionMessage, vn as ChunkedUploadOptions, yn as ChunkedUploadResult, zn as RenameOptions } from "./types-CJP4O3xL.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-BCk4F3KE.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-BdGiwuUs.js";
5
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Dt9GKYcK.js";
6
6
 
7
7
  //#region src/lib/chunked-upload.d.ts
8
8
  /** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
package/dist/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
- import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-Du6qBQr_.js";
2
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-CD56Y7rp.js";
1
+ import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-Bw7H9yDw.js";
2
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-CqrpUND_.js";
3
3
  import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-D44qyFpy.js";
4
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-BTRMCKui.js";
4
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-d_c1h__g.js";
5
5
  import { s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
6
6
  //#region src/runtime-client.ts
7
7
  function requireToken(token) {
@@ -1,22 +1,22 @@
1
- import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-Du6qBQr_.js";
2
- import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness--g8UQ5TZ.js";
3
- import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-B11dRfGB.js";
1
+ import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-Bw7H9yDw.js";
2
+ import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness-DW2I_kp7.js";
3
+ import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-C_MbI9mE.js";
4
4
  import { t as sha256$1 } from "./sha2-BIoWepwn.js";
5
- import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-CD56Y7rp.js";
6
- import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
5
+ import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-CqrpUND_.js";
6
+ import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CatenlMs.js";
7
7
  import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-D44qyFpy.js";
8
8
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
9
9
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
10
10
  import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
11
- import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-BTRMCKui.js";
11
+ import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-d_c1h__g.js";
12
12
  import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
13
13
  import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-ChZB-dYE.js";
14
14
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
15
15
  import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
16
16
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
17
17
  import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
18
- import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-CukXOw4n.js";
19
- import "./cli-auth-bundle-DIZ0PWyR.js";
18
+ import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-B5SuPHb_.js";
19
+ import "./cli-auth-bundle-vWBeEFSk.js";
20
20
  import { n as SandboxLines } from "./lines-DwJ7AKx7.js";
21
21
  import { t as downloadFile } from "./file-download-BO-Hmn3x.js";
22
22
  import { z } from "zod";
@@ -28,7 +28,7 @@ import { PART_TEXT, PART_TEXT_SUFFIX, locatePart } from "@tangle-network/agent-c
28
28
  import { readTokenUsage } from "@tangle-network/agent-core";
29
29
  import "@tangle-network/agent-interface/environment-provider";
30
30
  import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
31
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
31
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
32
32
  const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
33
33
  provider: boundedIdentifierSchema$1,
34
34
  environmentId: boundedIdentifierSchema$1,
@@ -105,7 +105,7 @@ function runCoordinates(run) {
105
105
  };
106
106
  }
107
107
  //#endregion
108
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.20/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
108
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.21/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
109
109
  const terminalDimensionSchema = z.number().int().positive().max(1e4);
110
110
  /**
111
111
  * Provider-neutral handle for one interactive terminal.
@@ -12518,8 +12518,8 @@ var SandboxTaskSession = class extends SandboxSession {
12518
12518
  };
12519
12519
  //#endregion
12520
12520
  //#region src/sandbox-sessions.ts
12521
- /** Handles whose sidecar refused `dispatchGuard` (it predates it): they read before posting. */
12522
- const unguarded = /* @__PURE__ */ new WeakSet();
12521
+ /** Sandboxes whose sidecar announced `dispatchGuard` on an admission: they skip the reads. */
12522
+ const guarded = /* @__PURE__ */ new Set();
12523
12523
  /** Refusals a guarded POST answers in place of the pre-dispatch reads. */
12524
12524
  const GUARD_SKIPS = new Set(["TURN_COMPLETED", "SESSION_BUSY"]);
12525
12525
  function handOver(read, stream, ctrl, signal) {
@@ -12666,11 +12666,11 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
12666
12666
  * `running` or `queued` with a `latestExecutionId` (one run per session).
12667
12667
  * A never-run `queued` session and a terminal one (a new turn) dispatch.
12668
12668
  * Retry safety needs `turnId`; read `dispatched`, not `alreadyExisted`.
12669
- * A sidecar that knows `dispatchGuard` answers both checks in the POST, so
12670
- * the reads run only after its refusal; `alreadyExisted` is then unread.
12669
+ * Once its sidecar announced `dispatchGuard`, a box answers both checks in
12670
+ * the POST, the reads run only after its refusal and `alreadyExisted` is unread.
12671
12671
  */
12672
12672
  async dispatchPrompt(message, opts) {
12673
- const guard = Boolean(opts?.sessionId) && !unguarded.has(this);
12673
+ const guard = Boolean(opts?.sessionId) && guarded.has(this.id);
12674
12674
  return this.dispatchOnce(message, opts, guard);
12675
12675
  }
12676
12676
  async dispatchOnce(message, opts, guard) {
@@ -12729,6 +12729,7 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
12729
12729
  if (typeof executionId === "string" && executionId.length > 0) resolvedExecutionId = executionId;
12730
12730
  if (typeof id === "string" && id.length > 0) resolvedSessionId = id;
12731
12731
  admissionObserved = Boolean(resolvedSessionId && resolvedExecutionId);
12732
+ if (data?.dispatchGuard === true) guarded.add(this.id);
12732
12733
  if (data?.runControlRef !== void 0) resolvedRunControlRef = validateAcceptedDispatchRunRef(data.runControlRef, identity.runControlRef, this.id, resolvedSessionId ?? identity.sessionId, resolvedExecutionId ?? identity.executionId);
12733
12734
  }
12734
12735
  if (admissionObserved || event.type === "result" || event.type === "done") break;
@@ -12740,10 +12741,9 @@ var SandboxSessionCapabilities = class extends SandboxSessionEvidenceCapabilitie
12740
12741
  await stream.return(void 0).catch(() => void 0);
12741
12742
  }
12742
12743
  }
12743
- if (guard && !admissionObserved && dispatchError) {
12744
- const refused = dispatchError.status === 400 && dispatchError.message.includes("dispatchGuard");
12745
- if (refused) unguarded.add(this);
12746
- if (refused || GUARD_SKIPS.has(dispatchError.code)) return this.dispatchOnce(message, opts, false);
12744
+ if (guard && !admissionObserved) {
12745
+ if (GUARD_SKIPS.has(`${dispatchError?.code}`)) return this.dispatchOnce(message, opts, false);
12746
+ guarded.delete(this.id);
12747
12747
  }
12748
12748
  if (!admissionObserved || !resolvedSessionId || !resolvedExecutionId) throw dispatchError ?? new ServerError("dispatchPrompt did not receive an execution admission from the sandbox");
12749
12749
  if (!resolvedRunControlRef) throw new ServerError("Sandbox admission did not return the exact run reference", {
@@ -13840,6 +13840,144 @@ var SandboxEgressCapabilities = class extends SandboxTraceCapabilities {
13840
13840
  }
13841
13841
  };
13842
13842
  //#endregion
13843
+ //#region ../../../packages/runtime-contracts/dist/gpu-lease.js
13844
+ const GPU_LEASE_PROVIDER_NAMES = [
13845
+ "runpod",
13846
+ "vast-ai",
13847
+ "lambda-labs",
13848
+ "modal"
13849
+ ];
13850
+ const gpuLeaseProviderSchema = z.string().trim().toLowerCase().min(1).max(64).regex(/^[a-z][a-z0-9-]*$/);
13851
+ const gpuAcceleratorKindSchema = z.string().trim().toLowerCase().min(1).max(128).regex(/^[a-z0-9][a-z0-9._-]*$/);
13852
+ const gpuAcceleratorSchema = z.object({
13853
+ kind: gpuAcceleratorKindSchema,
13854
+ count: z.number().int().positive().default(1),
13855
+ vramGb: z.number().positive().optional()
13856
+ }).strict();
13857
+ const gpuLeaseCommandSchema = z.object({
13858
+ command: z.string().min(1).max(8192),
13859
+ timeoutMs: z.number().int().positive().max(2147453647).optional(),
13860
+ env: z.record(z.string(), z.string()).optional(),
13861
+ cwd: z.string().min(1).max(2048).optional()
13862
+ }).strict();
13863
+ z.object({
13864
+ refresh: z.enum(["true", "false"]).optional(),
13865
+ acceleratorKind: gpuAcceleratorKindSchema.optional(),
13866
+ acceleratorCount: z.coerce.number().pipe(gpuAcceleratorSchema.shape.count.unwrap()).optional(),
13867
+ acceleratorVramGb: z.coerce.number().positive().optional()
13868
+ }).strict();
13869
+ z.object({
13870
+ maxSpendUsd: z.number().positive().max(1e4).optional(),
13871
+ maxLifetimeSeconds: z.number().int().positive().max(1440 * 60).optional()
13872
+ }).strict().refine((value) => value.maxSpendUsd !== void 0 || value.maxLifetimeSeconds !== void 0, "Renewal requires a lifetime or spend cap");
13873
+ const gpuLeaseOptionsSchema = z.object({
13874
+ provider: gpuLeaseProviderSchema.optional(),
13875
+ image: z.string().min(1).max(512).optional(),
13876
+ env: z.record(z.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/), z.string()).optional(),
13877
+ diskGb: z.number().int().positive().optional(),
13878
+ volumeGb: z.number().int().nonnegative().optional(),
13879
+ volumeMountPath: z.string().startsWith("/").max(2048).optional(),
13880
+ region: z.string().min(1).max(128).optional(),
13881
+ manifest: z.record(z.string(), z.unknown()).optional(),
13882
+ command: z.array(z.string().max(8192)).min(1).max(256).optional(),
13883
+ ports: z.array(z.number().int().min(1).max(65535)).max(32).optional(),
13884
+ endpoint: z.object({
13885
+ port: z.number().int().min(1).max(65535),
13886
+ healthPath: z.string().regex(/^\/(?![/\\])/).refine((path) => ![
13887
+ "\r",
13888
+ "\n",
13889
+ " "
13890
+ ].some((char) => path.includes(char))).max(2048).optional()
13891
+ }).strict().optional(),
13892
+ allowSpot: z.boolean().optional(),
13893
+ maxHourlyUsd: z.number().positive().optional(),
13894
+ weights: z.object({
13895
+ manifestSha: z.string().regex(/^[a-f0-9]{64}$/),
13896
+ sizeBytes: z.number().int().positive().safe()
13897
+ }).strict().optional(),
13898
+ arms: z.array(z.unknown()).min(1).max(256).optional(),
13899
+ maxSpendUsd: z.number().positive().max(1e4),
13900
+ maxLifetimeSeconds: z.number().int().positive().max(1440 * 60),
13901
+ idleTimeoutSeconds: z.number().int().positive().optional()
13902
+ }).strict();
13903
+ const gpuLeaseAttachSchema = gpuLeaseOptionsSchema.extend({ accelerator: gpuAcceleratorSchema });
13904
+ const acceleratorSchema = gpuAcceleratorSchema;
13905
+ const providerSchema = gpuLeaseProviderSchema;
13906
+ z.object({
13907
+ ...gpuLeaseOptionsSchema.omit({ env: true }).shape,
13908
+ id: z.string(),
13909
+ projectRef: z.string(),
13910
+ ownerUserId: z.string(),
13911
+ productId: z.string().optional(),
13912
+ provider: providerSchema,
13913
+ providerLeaseId: z.string().optional(),
13914
+ providerInstanceType: z.string().optional(),
13915
+ workerUrl: z.string().optional(),
13916
+ endpointUrl: z.string().optional(),
13917
+ status: z.enum([
13918
+ "provisioning",
13919
+ "ready",
13920
+ "detaching",
13921
+ "destroyed",
13922
+ "failed"
13923
+ ]),
13924
+ accelerator: acceleratorSchema,
13925
+ providerCostPerHourUsd: z.number().optional(),
13926
+ customerPricePerHourUsd: z.number().optional(),
13927
+ estimatedProviderCostUsd: z.number().optional(),
13928
+ estimatedCustomerCostUsd: z.number().optional(),
13929
+ providerSelection: z.object({
13930
+ strategy: z.enum([
13931
+ "explicit",
13932
+ "cheapest",
13933
+ "ranked"
13934
+ ]),
13935
+ selectedProvider: providerSchema,
13936
+ requestedProvider: providerSchema.optional(),
13937
+ candidates: z.array(z.object({
13938
+ provider: providerSchema,
13939
+ accelerator: acceleratorSchema,
13940
+ providerInstanceType: z.string().optional(),
13941
+ region: z.string().optional(),
13942
+ pricingSource: z.enum(["live", "configured"]).optional(),
13943
+ providerCostPerHourUsd: z.number(),
13944
+ customerPricePerHourUsd: z.number(),
13945
+ maxLifetimeSeconds: z.number(),
13946
+ estimatedProviderCostUsd: z.number(),
13947
+ estimatedCustomerCostUsd: z.number()
13948
+ })),
13949
+ rejected: z.array(z.object({
13950
+ provider: providerSchema,
13951
+ error: z.string()
13952
+ }))
13953
+ }).optional(),
13954
+ createdAt: z.string(),
13955
+ updatedAt: z.string(),
13956
+ readyAt: z.string().optional(),
13957
+ startedAt: z.string().optional(),
13958
+ lastUsedAt: z.string().optional(),
13959
+ destroyedAt: z.string().optional(),
13960
+ failure: z.string().optional(),
13961
+ billing: z.object({
13962
+ seconds: z.number(),
13963
+ providerCostUsd: z.number(),
13964
+ customerCostUsd: z.number(),
13965
+ providerCostPerHourUsd: z.number(),
13966
+ customerPricePerHourUsd: z.number(),
13967
+ startedAt: z.string(),
13968
+ stoppedAt: z.string()
13969
+ }).optional()
13970
+ });
13971
+ //#endregion
13972
+ //#region ../../../packages/runtime-contracts/dist/runtime-backend.js
13973
+ /**
13974
+ * The runtime a sandbox runs on, which a create names as `runtime`: a Docker
13975
+ * container on the host kernel, or a Firecracker microVM with its own kernel.
13976
+ * It is also what a provisioned host runs and the autoscaler buys.
13977
+ */
13978
+ const SANDBOX_RUNTIMES = ["docker", "firecracker"];
13979
+ [...SANDBOX_RUNTIMES];
13980
+ //#endregion
13843
13981
  //#region ../../../packages/runtime-contracts/dist/egress-activity.js
13844
13982
  /**
13845
13983
  * The egress activity record a sandbox's proxy log is read into, shared by the
@@ -15018,4 +15156,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
15018
15156
  }
15019
15157
  };
15020
15158
  //#endregion
15021
- export { isRateLimitCreateError as $, isMaterializerHarness as A, normalizeConnection as B, materializeProfileFileMounts as C, HARNESS_LAUNCH_MATERIALIZE_OPTIONS as D, validateDeferredProfileFileMounts as E, normalizeSandboxCreateReceipt as F, CAPACITY_ETA_WAIT_MAX_MS as G, normalizeProxySecretReceipt as H, normalizeStartupDiagnostics as I, createRetryDelayMs as J, DEPLOY_WINDOW_RETRY_MS as K, readFilesystemIncarnationTuple as L, SandboxOperation as M, SandboxOperationFailedError as N, ProfileUnsupportedError as O, normalizeCaptureProof as P, isDeployWindowCreateError as Q, dateOf as R, ManagedProcessClient as S, splitInlineProfileSkills as T, normalizeSandboxShape as U, normalizeEgressPolicyFields as V, CAPACITY_ETA_MARGIN_MS as W, generateIdempotencyKey as X, extendableDeadline as Y, isCapacityShortageCreateError as Z, collectAgentFinalMessageText as _, buildTraceExportPayload as a, isToolBearingEvent as b, toOtelJson as c, sandboxLedgerUsd as d, isRetryableCreateError as et, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, MAX_EGRESS_DENIALS_LIMIT as i, materializeProfile as j, enforceWorkspacePlanSupport as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, exportTraceBundle as o, InteractiveTerminalFrameLog as p, awaitCreateResend as q, WorkspaceImages as r, otelTraceIdForTangleTrace as s, SandboxInstance as t, SandboxSession as u, collectAgentResponseText as v, splitInlineProfileFileMounts as w, deleteSandbox as x, getSandboxEventText as y, parseLifecycleTimes as z };
15159
+ export { createRetryDelayMs as $, splitInlineProfileSkills as A, normalizeSandboxCreateReceipt as B, collectAgentResponseText as C, ManagedProcessClient as D, deleteSandbox as E, isMaterializerHarness as F, normalizeConnection as G, readFilesystemIncarnationTuple as H, materializeProfile as I, normalizeSandboxShape as J, normalizeEgressPolicyFields as K, SandboxOperation as L, HARNESS_LAUNCH_MATERIALIZE_OPTIONS as M, ProfileUnsupportedError as N, materializeProfileFileMounts as O, enforceWorkspacePlanSupport as P, awaitCreateResend as Q, SandboxOperationFailedError as R, collectAgentFinalMessageText as S, isToolBearingEvent as T, dateOf as U, normalizeStartupDiagnostics as V, parseLifecycleTimes as W, CAPACITY_ETA_WAIT_MAX_MS as X, CAPACITY_ETA_MARGIN_MS as Y, DEPLOY_WINDOW_RETRY_MS as Z, InteractiveSessionHandle as _, SANDBOX_RUNTIMES as a, isRetryableCreateError as at, createInteractiveTerminalSession as b, gpuLeaseAttachSchema as c, exportTraceBundle as d, extendableDeadline as et, otelTraceIdForTangleTrace as f, sandboxLedgerUsd as g, SandboxSession as h, MAX_EGRESS_DENIALS_LIMIT as i, isRateLimitCreateError as it, validateDeferredProfileFileMounts as j, splitInlineProfileFileMounts as k, gpuLeaseCommandSchema as l, SandboxTaskSession as m, createSandboxInstanceFromResponse as n, isCapacityShortageCreateError as nt, GPU_LEASE_PROVIDER_NAMES as o, toOtelJson as p, normalizeProxySecretReceipt as q, WorkspaceImages as r, isDeployWindowCreateError as rt, gpuAcceleratorSchema as s, SandboxInstance as t, generateIdempotencyKey as tt, buildTraceExportPayload as u, InteractiveTerminalFrameLog as v, getSandboxEventText as w, applySandboxEventText as x, createInteractiveTerminalCapture as y, normalizeCaptureProof as z };
@@ -1,9 +1,9 @@
1
- import { r as agentProfileSchema } from "./profile-schema-B11dRfGB.js";
2
- import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-N1ksNIIJ.js";
1
+ import { r as agentProfileSchema } from "./profile-schema-C_MbI9mE.js";
2
+ import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CatenlMs.js";
3
3
  import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-D44qyFpy.js";
4
4
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
5
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-CukXOw4n.js";
6
- import "./cli-auth-bundle-DIZ0PWyR.js";
5
+ import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-B4SGUcYM-B5SuPHb_.js";
6
+ import "./cli-auth-bundle-vWBeEFSk.js";
7
7
  import { z } from "zod";
8
8
  //#region ../../../packages/runtime-contracts/dist/seat-selection.js
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { R as SandboxError } from "./terminal-stream-types-BSyus9Qn.js";
2
- import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-mrjznkDX.js";
1
+ import { R as SandboxError } from "./terminal-stream-types-BMGTVpuf.js";
2
+ import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-C_e3dHcZ.js";
3
3
 
4
4
  //#region src/select-seat-command.d.ts
5
5
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,5 +1,5 @@
1
1
  import { C as SandboxError, O as ValidationError } from "./errors-D44qyFpy.js";
2
- import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-D0YBpIJl.js";
2
+ import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-V4GysL74.js";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region src/select-seat-command.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
2
- import { i as fetchSandboxApi } from "../api-request-BTRMCKui.js";
2
+ import { i as fetchSandboxApi } from "../api-request-d_c1h__g.js";
3
3
  import "../sidecar-proxy-error-DTdbCbUM.js";
4
4
  import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
5
5
  import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-clVn6PbJ.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-CtOabBjl.js";
2
2
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, BlueprintSandboxClientConfig, 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, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,3 +1,3 @@
1
- import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-Bjc9cYUL.js";
1
+ import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-Ccirv2nB.js";
2
2
  import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
3
3
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,6 +1,6 @@
1
- import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-ygtE4HzS.js";
1
+ import { H as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-CQQNiQft.js";
2
2
  import { a as readResponseJson } from "./errors-D44qyFpy.js";
3
- import { i as fetchSandboxApi } from "./api-request-BTRMCKui.js";
3
+ import { i as fetchSandboxApi } from "./api-request-d_c1h__g.js";
4
4
  import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
5
5
  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-BvN0Mk3j.js";
6
6
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
@@ -1,4 +1,4 @@
1
- import { T as AgentProfile, a as AgentInteractiveSessionControlClaim, u as AgentInteractiveSessionRef } from "./index-B5e7Pa7p.js";
1
+ import { T as AgentProfile, a as AgentInteractiveSessionControlClaim, u as AgentInteractiveSessionRef } from "./index-Dxxq7J79.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region ../../../packages/runtime-contracts/dist/batch-events.d.ts
@@ -1,6 +1,6 @@
1
- import { $ as BatchBackendInput, B as SandboxErrorMetadata, Y as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-BSyus9Qn.js";
2
- import { C as InteractionRequest, D as AgentProfileConfidential, E as AgentProfileCapabilities, I as ProxySecretReceipt, N as AgentProfileValidationResult, P as ReasoningEffort, T as AgentProfile, n as SandboxSizePreset, v as AgentExactRunControlRef, x as AgentRuntimeAttachments, z as PlanContinuation } from "./index-B5e7Pa7p.js";
3
- import { r as CliAuthReference } from "./cli-auth-bundle-B3jfdNXg.js";
1
+ import { $ as BatchBackendInput, B as SandboxErrorMetadata, Y as SandboxCreateReceipt, a as TerminalStreamOptions, g as TerminalReadyInfo, i as TerminalStreamHandlers, s as TerminalStreamToken, t as TerminalAttachTimings } from "./terminal-stream-types-BMGTVpuf.js";
2
+ import { C as InteractionRequest, D as AgentProfileConfidential, E as AgentProfileCapabilities, I as ProxySecretReceipt, N as AgentProfileValidationResult, P as ReasoningEffort, T as AgentProfile, n as SandboxSizePreset, v as AgentExactRunControlRef, x as AgentRuntimeAttachments, z as PlanContinuation } from "./index-Dxxq7J79.js";
3
+ import { r as CliAuthReference } from "./cli-auth-bundle-DTAVpYLy.js";
4
4
  import { z } from "zod";
5
5
  //#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
6
6
  /** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.310",
3
+ "version": "1.0.312",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -109,7 +109,7 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "@tangle-network/agent-core": "^1.0.3",
112
- "@tangle-network/agent-interface": "^5.10.20",
112
+ "@tangle-network/agent-interface": "^5.10.21",
113
113
  "@tangle-network/agent-trace-contract": "^2.2.0",
114
114
  "tar-stream": "3.2.2",
115
115
  "zod": "^4.6.7"
@@ -154,14 +154,14 @@
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.33",
156
156
  "@products/sandbox-test-utils": "0.0.0",
157
- "@repo/shared": "0.0.0",
158
157
  "@tangle-network/agent-profile-materialize": "0.27.1",
158
+ "@repo/shared": "0.0.0",
159
159
  "@tangle-network/cli-agent-registry": "0.15.0",
160
160
  "@tangle-network/runtime-contracts": "0.20.0"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "af1fe7ab6e7e6fee7e1a9a98863edccdab2d9c20",
164
- "mergedAt": "2026-11-08T07:40:47-08:00"
163
+ "sourceSha": "f2724e0a5df0c645c8a39b7136190e3f03e2f446",
164
+ "mergedAt": "2026-11-08T08:24:55-08:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
@@ -1,2 +0,0 @@
1
- import "./cli-auth-bundle-B4SGUcYM-CukXOw4n.js";
2
- export {};