@tangle-network/sandbox 1.0.22 → 1.0.24

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 (71) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-run-outcome-DQjHjmTQ.d.ts → agent-run-outcome-DXGjmPhJ.d.ts} +2 -2
  6. package/dist/{api-request-DNrodWdz.js → api-request-B7cnX489.js} +1 -1
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +1 -1
  9. package/dist/{browser-interactive-control-controller-EhML8YjF.js → browser-interactive-control-controller-BujauBOG.js} +1 -1
  10. package/dist/{browser-interactive-control-controller-i9JtmJDf.d.ts → browser-interactive-control-controller-CE_Sm_NP.d.ts} +1 -1
  11. package/dist/{chunked-upload-KRWmiJsw.js → chunked-upload-BC-0EYSR.js} +1 -1
  12. package/dist/{chunked-upload-file-DPSyrGUb.js → chunked-upload-file-Dbq8udX_.js} +2 -2
  13. package/dist/{cli-auth-bundle-V7sPQYej.js → cli-auth-bundle-DtuQ8T6N.js} +38 -9
  14. package/dist/{client-DC1Q6oJb.js → client-BOoNWvIL.js} +10 -11
  15. package/dist/{client-1bgxaNQD.d.ts → client-CO68fFBN.d.ts} +15 -15
  16. package/dist/collaboration/index.d.ts +1 -1
  17. package/dist/collaboration/index.js +1 -1
  18. package/dist/{collaboration-DPukGUcF.js → collaboration-Di7sGcJ4.js} +1 -1
  19. package/dist/{core-0iCiDt_5.js → core-DKrB8MXF.js} +4 -4
  20. package/dist/core.d.ts +6 -6
  21. package/dist/core.js +5 -5
  22. package/dist/{direct-http2-C0H7zN9h.js → direct-http2-DNIjw6C-.js} +1 -1
  23. package/dist/{errors-BUPIDjn4.js → errors-BuPtQ91K.js} +1 -1
  24. package/dist/{index-vcweImuL.d.ts → index-CKK1V65I.d.ts} +6 -6
  25. package/dist/index.d.ts +11 -11
  26. package/dist/index.js +10 -11
  27. package/dist/intelligence/index.js +2 -2
  28. package/dist/interactive-control.d.ts +1 -1
  29. package/dist/interactive-control.js +1 -1
  30. package/dist/{interactive-controller-kZk52Eff.js → interactive-controller-B0g65BjC.js} +74 -7
  31. package/dist/{interactive-controller-B16SZKZt.d.ts → interactive-controller-BVGahfQh.d.ts} +3 -3
  32. package/dist/lib/prepared-evidence.js +1 -1
  33. package/dist/lib/prepared-process.js +1 -1
  34. package/dist/{lines-BxCEZUkf.d.ts → lines-CT6ZQ8Tq.d.ts} +1 -1
  35. package/dist/{lines-BnAWHGX3.js → lines-CmiqZwyo.js} +1 -1
  36. package/dist/lines.d.ts +1 -1
  37. package/dist/lines.js +1 -1
  38. package/dist/{local-cli-auth-CJuKPr1j.js → local-cli-auth-CGGtMJ5F.js} +1 -1
  39. package/dist/{mcp-local-C88efQL3.js → mcp-local-CPdKHcQ-.js} +1 -1
  40. package/dist/{prepared-evidence-DC-M4WEF.js → prepared-evidence-Dj9M1a-3.js} +1 -1
  41. package/dist/{preview-QcwZWgzk.d.ts → preview-B3T8KXL8.d.ts} +3 -3
  42. package/dist/{public-templates-GNIKn_wg.d.ts → public-templates-DMyZOU0k.d.ts} +2 -2
  43. package/dist/public-templates.d.ts +1 -1
  44. package/dist/public-templates.js +1 -1
  45. package/dist/{raw-evidence-archive-Bc-OdA_Q.js → raw-evidence-archive-Cwap86xg.js} +1 -1
  46. package/dist/runtime.d.ts +5 -5
  47. package/dist/runtime.js +5 -5
  48. package/dist/{sandbox-Qn9ScVvS.js → sandbox-NnTFfn1A.js} +16 -17
  49. package/dist/{secp256k1-BGtA1PsN.js → secp256k1-Xpte4Dwf.js} +1 -1
  50. package/dist/select-seat-command.d.ts +1 -1
  51. package/dist/select-seat-command.js +1 -1
  52. package/dist/session-gateway/index.js +3 -3
  53. package/dist/tangle/index.d.ts +1 -1
  54. package/dist/tangle/index.js +1 -1
  55. package/dist/{tangle-DOwUAne4.js → tangle-Dep5zD65.js} +4 -4
  56. package/dist/{types-MYaFNkH5.d.ts → types-CYyhRYez.d.ts} +2 -2
  57. package/package.json +4 -4
  58. package/dist/backend-types-CLvdSX8V.js +0 -82
  59. /package/dist/{abort-signal-CDxyloxz.js → abort-signal-JVaAyNMP.js} +0 -0
  60. /package/dist/{cli-auth-bundle-CFZx0muA.d.ts → cli-auth-bundle-99-eo7R4.d.ts} +0 -0
  61. /package/dist/{index-rbeL2Rct.d.ts → index-DpgwYPWl.d.ts} +0 -0
  62. /package/dist/{index-DnZdhFs2.d.ts → index-e7PqAuQR.d.ts} +0 -0
  63. /package/dist/{keep-alive-fetch-BbSFbRCd.js → keep-alive-fetch--8twRp99.js} +0 -0
  64. /package/dist/{prepared-process-BQUSksTH.js → prepared-process-8V85-d5C.js} +0 -0
  65. /package/dist/{preview-operations-D2fXB_dc.js → preview-operations-C-wv9XN3.js} +0 -0
  66. /package/dist/{response-rewrap-CpNkboDX.js → response-rewrap-B75N59JT.js} +0 -0
  67. /package/dist/{retry-after-header-DUdCC0KJ.js → retry-after-header-DrbSlyKY.js} +0 -0
  68. /package/dist/{sidecar-proxy-error-5DpLmHeN.js → sidecar-proxy-error-DORW8_mD.js} +0 -0
  69. /package/dist/{sse-parser-CKkE9zWy.js → sse-parser-B7uNzlUG.js} +0 -0
  70. /package/dist/{terminal-stream-types-BM5J4lt0.d.ts → terminal-stream-types-BcZxAiU-.d.ts} +0 -0
  71. /package/dist/{utils-CoawKwX_.js → utils-BXgE8UHJ.js} +0 -0
package/dist/index.js CHANGED
@@ -1,16 +1,15 @@
1
- import { i as isolationPrincipalSchema, o as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-CLvdSX8V.js";
2
- import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-EhML8YjF.js";
1
+ import { A as requestedPublicProfileDigest, B as ALL_BACKEND_TYPES, F as createAgentRunOutcomeTracker, H as isolationPrincipalSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, V as backendTypeSchema, W as parseBackendType, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-B0g65BjC.js";
2
+ import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BujauBOG.js";
3
3
  import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-1WmjXjE9.js";
4
- import { C as materializeProfileFileMounts, E as validateDeferredProfileFileMounts, S as SandboxOperationFailedError, T as splitInlineProfileSkills, _ as collectAgentResponseText, a as buildTraceExportPayload, b as ManagedProcessClient, c as toOtelJson, d as InteractiveSessionHandle, f as InteractiveTerminalFrameLog, g as collectAgentFinalMessageText, h as applySandboxEventText, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalSession, o as exportTraceBundle, p as createInteractiveTerminalCapture, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as getSandboxEventText, w as splitInlineProfileFileMounts, x as SandboxOperation, y as isToolBearingEvent } from "./sandbox-Qn9ScVvS.js";
5
- import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-kZk52Eff.js";
6
- import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BUPIDjn4.js";
7
- import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-DC1Q6oJb.js";
8
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DPukGUcF.js";
9
- import { t as parseSSEStream } from "./sse-parser-CKkE9zWy.js";
10
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-BnAWHGX3.js";
4
+ import { C as materializeProfileFileMounts, E as validateDeferredProfileFileMounts, S as SandboxOperationFailedError, T as splitInlineProfileSkills, _ as collectAgentResponseText, a as buildTraceExportPayload, b as ManagedProcessClient, c as toOtelJson, d as InteractiveSessionHandle, f as InteractiveTerminalFrameLog, g as collectAgentFinalMessageText, h as applySandboxEventText, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalSession, o as exportTraceBundle, p as createInteractiveTerminalCapture, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as getSandboxEventText, w as splitInlineProfileFileMounts, x as SandboxOperation, y as isToolBearingEvent } from "./sandbox-NnTFfn1A.js";
5
+ import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BuPtQ91K.js";
6
+ import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-BOoNWvIL.js";
7
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Di7sGcJ4.js";
8
+ import { t as parseSSEStream } from "./sse-parser-B7uNzlUG.js";
9
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-CmiqZwyo.js";
11
10
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
12
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-0iCiDt_5.js";
13
- import { s as TangleSandboxClient } from "./tangle-DOwUAne4.js";
11
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DKrB8MXF.js";
12
+ import { s as TangleSandboxClient } from "./tangle-Dep5zD65.js";
14
13
  import { z } from "zod";
15
14
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
16
15
  /**
@@ -1,5 +1,5 @@
1
- import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "../errors-BUPIDjn4.js";
2
- import { t as fetchSandboxApi } from "../api-request-DNrodWdz.js";
1
+ import { T as TimeoutError, h as NetworkError, n as parseErrorResponse } from "../errors-BuPtQ91K.js";
2
+ import { t as fetchSandboxApi } from "../api-request-B7cnX489.js";
3
3
  //#region src/intelligence/index.ts
4
4
  /**
5
5
  * `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
@@ -1,2 +1,2 @@
1
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-i9JtmJDf.js";
1
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-CE_Sm_NP.js";
2
2
  export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,2 +1,2 @@
1
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-EhML8YjF.js";
1
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BujauBOG.js";
2
2
  export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,12 +1,79 @@
1
- import { a as normalizeEffectiveBackend, r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
2
1
  import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-DkCl2wJv.js";
3
- import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-EhML8YjF.js";
2
+ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-BujauBOG.js";
4
3
  import { r as agentProfileSchema } from "./profile-schema-1WmjXjE9.js";
5
- import { E as ValidationError, S as ServerError, h as NetworkError, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, x as SandboxError } from "./errors-BUPIDjn4.js";
6
- import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-CDxyloxz.js";
7
- import { t as parseSSEStream } from "./sse-parser-CKkE9zWy.js";
8
- import { s as uploadChunked } from "./chunked-upload-KRWmiJsw.js";
4
+ import { E as ValidationError, S as ServerError, h as NetworkError, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, x as SandboxError } from "./errors-BuPtQ91K.js";
5
+ import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
6
+ import { t as parseSSEStream } from "./sse-parser-B7uNzlUG.js";
7
+ import { s as uploadChunked } from "./chunked-upload-BC-0EYSR.js";
9
8
  import { z } from "zod";
9
+ /** Stable declaration order; registry tests check the shipped spec composition. */
10
+ const ALL_BACKEND_TYPES = Object.values({
11
+ OPENCODE: "opencode",
12
+ CLAUDE_CODE: "claude-code",
13
+ KIMI_CODE: "kimi-code",
14
+ CODEX: "codex",
15
+ AMP: "amp",
16
+ FACTORY_DROIDS: "factory-droids",
17
+ PI: "pi",
18
+ PRIME: "prime",
19
+ HERMES: "hermes",
20
+ FORGE: "forge",
21
+ OPENCLAW: "openclaw",
22
+ NANOCLAW: "nanoclaw",
23
+ ACP: "acp",
24
+ CURSOR: "cursor",
25
+ CLI_BASE: "cli-base"
26
+ });
27
+ const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
28
+ /**
29
+ * `backend.metadata.isolationPrincipal`: the opaque, stable id of the member a
30
+ * secret-isolated session's turns run for, never a credential. Turns of one
31
+ * session, principal and profile authority share one OS identity.
32
+ */
33
+ const isolationPrincipalSchema = z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
34
+ const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
35
+ function isBackendType(value) {
36
+ return BACKEND_TYPE_SET.has(value);
37
+ }
38
+ function parseBackendType(value) {
39
+ if (!isBackendType(value)) throw new Error(`Unknown backend type "${value}". Expected one of: ${ALL_BACKEND_TYPES.join(", ")}`);
40
+ return value;
41
+ }
42
+ const SOURCES = [
43
+ "request",
44
+ "environment",
45
+ "profile"
46
+ ];
47
+ function nonEmpty(value) {
48
+ return typeof value === "string" && value.length > 0 ? value : void 0;
49
+ }
50
+ function normalizeProfile(value) {
51
+ if (!value || typeof value !== "object") return void 0;
52
+ const raw = value;
53
+ const digest = nonEmpty(raw.digest);
54
+ if (!digest) return void 0;
55
+ const name = nonEmpty(raw.name);
56
+ return {
57
+ ...name ? { name } : {},
58
+ digest
59
+ };
60
+ }
61
+ function normalizeEffectiveBackend(value) {
62
+ if (!value || typeof value !== "object") return void 0;
63
+ const raw = value;
64
+ const provider = nonEmpty(raw.provider);
65
+ const model = nonEmpty(raw.model);
66
+ const profile = normalizeProfile(raw.profile);
67
+ if (!provider && !model && !profile) return void 0;
68
+ const source = nonEmpty(raw.source);
69
+ return {
70
+ ...provider ? { provider } : {},
71
+ ...model ? { model } : {},
72
+ ...source && SOURCES.includes(source) ? { source } : {},
73
+ ...profile ? { profile } : {}
74
+ };
75
+ }
76
+ //#endregion
10
77
  //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.9.0/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.js
11
78
  const AgentRuntimeAttachmentsSchema = boundedJsonSchema.pipe(z.strictObject({ mcp: agentProfileSchema.shape.mcp.unwrap().superRefine((servers, context) => {
12
79
  for (const alias of Object.keys(servers)) {
@@ -2513,4 +2580,4 @@ var BrowserInteractiveSessionController = class extends InteractiveSessionContro
2513
2580
  }
2514
2581
  };
2515
2582
  //#endregion
2516
- export { requestedPublicProfileDigest as A, encodeTextForWire as C, foldModelRoutingFields as D, assertCurrentBackendType as E, createAgentRunOutcomeTracker as F, deriveAgentResultOutcome as I, deriveAgentRunOutcome as L, withProfileHarness as M, withoutCreateOnlyModelFields as N, mergeRuntimeBackendConfig as O, withoutRuntimeSecrets as P, projectAgentTerminalRecord as R, encodePromptForWire as S, applyRequestedModel as T, mintTraceId as _, assertScopedTokenActive as a, resolveDispatchRunIdentity as b, SandboxRuntimeApi as c, appendSessionIdQuery as d, sessionHeaders as f, isTraceId as g, TRACE_ID_HEADER as h, terminalUpgradeHeadersSupported as i, requestedSecretProfilePublicDigest as j, normalizeRuntimeBackendConfig as k, normalizeSessionInfo as l, waitForRetryAfter as m, InteractiveSessionController as n, requestInteractiveSessionToken as o, isRetryableCredentialRefusal as p, TerminalStream as r, requestScopedToken as s, BrowserInteractiveSessionController as t, sessionMessageRequestBody as u, resolveTraceId as v, canUseNodeHttp2 as w, validateAcceptedDispatchRunRef as x, traceHeaders as y, TERMINAL_WS_ECHO_SUBPROTOCOL as z };
2583
+ export { requestedPublicProfileDigest as A, ALL_BACKEND_TYPES as B, encodeTextForWire as C, foldModelRoutingFields as D, assertCurrentBackendType as E, createAgentRunOutcomeTracker as F, isolationPrincipalSchema as H, deriveAgentResultOutcome as I, deriveAgentRunOutcome as L, withProfileHarness as M, withoutCreateOnlyModelFields as N, mergeRuntimeBackendConfig as O, withoutRuntimeSecrets as P, projectAgentTerminalRecord as R, encodePromptForWire as S, applyRequestedModel as T, normalizeEffectiveBackend as U, backendTypeSchema as V, parseBackendType as W, mintTraceId as _, assertScopedTokenActive as a, resolveDispatchRunIdentity as b, SandboxRuntimeApi as c, appendSessionIdQuery as d, sessionHeaders as f, isTraceId as g, TRACE_ID_HEADER as h, terminalUpgradeHeadersSupported as i, requestedSecretProfilePublicDigest as j, normalizeRuntimeBackendConfig as k, normalizeSessionInfo as l, waitForRetryAfter as m, InteractiveSessionController as n, requestInteractiveSessionToken as o, isRetryableCredentialRefusal as p, TerminalStream as r, requestScopedToken as s, BrowserInteractiveSessionController as t, sessionMessageRequestBody as u, resolveTraceId as v, canUseNodeHttp2 as w, validateAcceptedDispatchRunRef as x, traceHeaders as y, TERMINAL_WS_ECHO_SUBPROTOCOL as z };
@@ -1,6 +1,6 @@
1
- import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BM5J4lt0.js";
2
- import { rr as TerminalStream } from "./types-MYaFNkH5.js";
3
- import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-i9JtmJDf.js";
1
+ import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BcZxAiU-.js";
2
+ import { rr as TerminalStream } from "./types-CYyhRYez.js";
3
+ import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-CE_Sm_NP.js";
4
4
 
5
5
  //#region src/interactive-controller.d.ts
6
6
  /** The request fields supplied by an attach caller before control is claimed. */
@@ -1,2 +1,2 @@
1
- import { t as runPreparedEvidence } from "../prepared-evidence-DC-M4WEF.js";
1
+ import { t as runPreparedEvidence } from "../prepared-evidence-Dj9M1a-3.js";
2
2
  export { runPreparedEvidence };
@@ -1,2 +1,2 @@
1
- import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-BQUSksTH.js";
1
+ import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-8V85-d5C.js";
2
2
  export { runPreparedProcess, withPreparedProcessCalls };
@@ -1,4 +1,4 @@
1
- import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-MYaFNkH5.js";
1
+ import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-CYyhRYez.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
@@ -1,4 +1,4 @@
1
- import { E as ValidationError, n as parseErrorResponse } from "./errors-BUPIDjn4.js";
1
+ import { E as ValidationError, n as parseErrorResponse } from "./errors-BuPtQ91K.js";
2
2
  //#region src/line-identity.ts
3
3
  /**
4
4
  * The instance key that serves one member: `keyPrefix` plus the first 32 hex
package/dist/lines.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BxCEZUkf.js";
1
+ import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-CT6ZQ8Tq.js";
2
2
  export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
package/dist/lines.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-BnAWHGX3.js";
1
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-CmiqZwyo.js";
2
2
  export { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference };
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-V7sPQYej.js";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DtuQ8T6N.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { basename, dirname, join } from "node:path";
4
4
  import { homedir } from "node:os";
@@ -1,4 +1,4 @@
1
- import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-D2fXB_dc.js";
1
+ import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-C-wv9XN3.js";
2
2
  import { createRequire } from "node:module";
3
3
  //#region \0rolldown/runtime.js
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
1
+ import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DrbSlyKY.js";
2
2
  //#region src/lib/prepared-evidence.mjs
3
3
  async function receipt(response, idField) {
4
4
  const reader = response.body?.getReader();
@@ -1,6 +1,6 @@
1
- import { O as SandboxInstance } from "./index-vcweImuL.js";
2
- import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-MYaFNkH5.js";
3
- import { t as Sandbox } from "./client-1bgxaNQD.js";
1
+ import { O as SandboxInstance } from "./index-CKK1V65I.js";
2
+ import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-CYyhRYez.js";
3
+ import { t as Sandbox } from "./client-CO68fFBN.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
- import { Ot as SandboxError } from "./terminal-stream-types-BM5J4lt0.js";
2
- import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-MYaFNkH5.js";
1
+ import { Ot as SandboxError } from "./terminal-stream-types-BcZxAiU-.js";
2
+ import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-CYyhRYez.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-GNIKn_wg.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DMyZOU0k.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
@@ -1,4 +1,4 @@
1
- import { i as readResponseJson, x as SandboxError } from "./errors-BUPIDjn4.js";
1
+ import { i as readResponseJson, x as SandboxError } from "./errors-BuPtQ91K.js";
2
2
  import { z } from "zod";
3
3
  //#region src/public-templates.ts
4
4
  const publicationStatus = z.enum([
@@ -1,4 +1,4 @@
1
- import { t as runPreparedEvidence } from "./prepared-evidence-DC-M4WEF.js";
1
+ import { t as runPreparedEvidence } from "./prepared-evidence-Dj9M1a-3.js";
2
2
  import { z } from "zod";
3
3
  //#region src/lib/raw-evidence-archive.ts
4
4
  const digest = z.string().regex(/^sha256:[a-f0-9]{64}$/).transform((value) => `sha256:${value.slice(7)}`);
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BM5J4lt0.js";
2
- import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-MYaFNkH5.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-i9JtmJDf.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-B16SZKZt.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-DQjHjmTQ.js";
1
+ import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BcZxAiU-.js";
2
+ import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-CYyhRYez.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-CE_Sm_NP.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-BVGahfQh.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-DXGjmPhJ.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,8 +1,8 @@
1
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-EhML8YjF.js";
2
- import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-kZk52Eff.js";
3
- import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BUPIDjn4.js";
4
- import { t as fetchSandboxApi } from "./api-request-DNrodWdz.js";
5
- import { s as uploadChunked } from "./chunked-upload-KRWmiJsw.js";
1
+ import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-B0g65BjC.js";
2
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BujauBOG.js";
3
+ import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BuPtQ91K.js";
4
+ import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
5
+ import { s as uploadChunked } from "./chunked-upload-BC-0EYSR.js";
6
6
  //#region src/runtime-client.ts
7
7
  const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
8
8
  function requireToken(token) {
@@ -1,18 +1,17 @@
1
- import { a as normalizeEffectiveBackend, r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
1
+ import { A as requestedPublicProfileDigest, C as encodeTextForWire, E as assertCurrentBackendType, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodePromptForWire, T as applyRequestedModel, U as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-B0g65BjC.js";
2
2
  import { C as boundedIdentifierSchema, E as boundedStringSchema, _ as sha256, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1 } from "./harness-DkCl2wJv.js";
3
- 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-EhML8YjF.js";
3
+ 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-BujauBOG.js";
4
4
  import { a as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-1WmjXjE9.js";
5
- import { A as requestedPublicProfileDigest, C as encodeTextForWire, E as assertCurrentBackendType, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodePromptForWire, T as applyRequestedModel, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-kZk52Eff.js";
6
- import { A as SANDBOX_PROXY_REQUEST_MAX_BYTES, C as StateError, E as ValidationError, F as isProfileFileMountOutsideRoots, I as profileFileMountOutsideRootsMessage, M as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, N as SANDBOX_AGENT_HOME, P as SANDBOX_FILE_API_ABSOLUTE_ROOTS, S as ServerError, T as TimeoutError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, l as EdgeNotReadyError, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BUPIDjn4.js";
7
- import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-CDxyloxz.js";
8
- import { t as rewrapResponse } from "./response-rewrap-CpNkboDX.js";
9
- import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BbSFbRCd.js";
10
- import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-5DpLmHeN.js";
11
- import { t as parseSSEStream } from "./sse-parser-CKkE9zWy.js";
12
- import { s as uploadChunked } from "./chunked-upload-KRWmiJsw.js";
13
- import { t as runPreparedProcess } from "./prepared-process-BQUSksTH.js";
14
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-V7sPQYej.js";
15
- import { n as SandboxLines } from "./lines-BnAWHGX3.js";
5
+ import { A as SANDBOX_PROXY_REQUEST_MAX_BYTES, C as StateError, E as ValidationError, F as isProfileFileMountOutsideRoots, I as profileFileMountOutsideRootsMessage, M as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, N as SANDBOX_AGENT_HOME, P as SANDBOX_FILE_API_ABSOLUTE_ROOTS, S as ServerError, T as TimeoutError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, l as EdgeNotReadyError, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BuPtQ91K.js";
6
+ import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
7
+ import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
8
+ import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch--8twRp99.js";
9
+ import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.js";
10
+ import { t as parseSSEStream } from "./sse-parser-B7uNzlUG.js";
11
+ import { s as uploadChunked } from "./chunked-upload-BC-0EYSR.js";
12
+ import { t as runPreparedProcess } from "./prepared-process-8V85-d5C.js";
13
+ import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DtuQ8T6N.js";
14
+ import { n as SandboxLines } from "./lines-CmiqZwyo.js";
16
15
  import { z } from "zod";
17
16
  import { createHash } from "node:crypto";
18
17
  import { constants } from "node:fs";
@@ -1668,7 +1667,7 @@ var DirectRuntimeHttpClient = class {
1668
1667
  };
1669
1668
  if (!route) throw new NetworkError("Direct runtime route was withdrawn");
1670
1669
  if ((route.useHost || route.useExec) && canUseNodeHttp2()) {
1671
- const { fetchDirectHttp2 } = await import("./direct-http2-C0H7zN9h.js");
1670
+ const { fetchDirectHttp2 } = await import("./direct-http2-DNIjw6C-.js");
1672
1671
  return fetchDirectHttp2(route.url, request, timing);
1673
1672
  }
1674
1673
  return fetchWithKeepAlive(route.url, request, timing);
@@ -7768,7 +7767,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
7768
7767
  var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
7769
7768
  /** @internal — invoked before the sandbox is deleted. */
7770
7769
  async _sessionExportRawEvidence(id, destination, options) {
7771
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Bc-OdA_Q.js");
7770
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Cwap86xg.js");
7772
7771
  await this.ensureRunning();
7773
7772
  await this.refresh();
7774
7773
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
@@ -7799,7 +7798,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
7799
7798
  * and the byte and file bounds are verified before the directory appears.
7800
7799
  */
7801
7800
  async exportRawEvidence(destination, options) {
7802
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Bc-OdA_Q.js");
7801
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Cwap86xg.js");
7803
7802
  await this.ensureRunning();
7804
7803
  await this.refresh();
7805
7804
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
@@ -10047,7 +10046,7 @@ var SandboxFilesystemOperations = class {
10047
10046
  totalBytes: size,
10048
10047
  percentage: 0
10049
10048
  });
10050
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-DPSyrGUb.js");
10049
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-Dbq8udX_.js");
10051
10050
  await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
10052
10051
  mode: options?.permissions,
10053
10052
  onProgress: options?.onProgress ? (progress) => {
@@ -1,4 +1,4 @@
1
- import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-CoawKwX_.js";
1
+ import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-BXgE8UHJ.js";
2
2
  //#region ../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
3
3
  /**
4
4
  * Internal Merkle-Damgard hash utils.
@@ -1,4 +1,4 @@
1
- import { dt as SeatOwnerTransport } from "./client-1bgxaNQD.js";
1
+ import { dt as SeatOwnerTransport } from "./client-CO68fFBN.js";
2
2
 
3
3
  //#region src/select-seat-command.d.ts
4
4
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,4 +1,4 @@
1
- import { E as ValidationError, x as SandboxError } from "./errors-BUPIDjn4.js";
1
+ import { E as ValidationError, x as SandboxError } from "./errors-BuPtQ91K.js";
2
2
  import { spawn } from "node:child_process";
3
3
  //#region src/select-seat-command.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { n as combineAbortSignals } from "../abort-signal-CDxyloxz.js";
2
- import "../sidecar-proxy-error-5DpLmHeN.js";
3
- import { t as parseSSEStream } from "../sse-parser-CKkE9zWy.js";
1
+ import { n as combineAbortSignals } from "../abort-signal-JVaAyNMP.js";
2
+ import "../sidecar-proxy-error-DORW8_mD.js";
3
+ import { t as parseSSEStream } from "../sse-parser-B7uNzlUG.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/session-gateway.js
5
5
  /**
6
6
  * Calculate connection quality from metrics.
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, 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 TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-vcweImuL.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, 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 TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-CKK1V65I.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 TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-DOwUAne4.js";
1
+ import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Dep5zD65.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,6 +1,6 @@
1
- import { n as createSandboxInstanceFromResponse } from "./sandbox-Qn9ScVvS.js";
2
- import { i as readResponseJson } from "./errors-BUPIDjn4.js";
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-CoawKwX_.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-NnTFfn1A.js";
2
+ import { i as readResponseJson } from "./errors-BuPtQ91K.js";
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-BXgE8UHJ.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
5
5
  /**
6
6
  * Tangle blueprint wire contract shared by the orchestrator's Tangle driver and
@@ -2376,7 +2376,7 @@ function isAddressEqual(a, b) {
2376
2376
  //#region ../../../node_modules/.pnpm/viem@2.57.10_bufferutil@4.1.0_typescript@6.0.3_utf-8-validate@5.0.10_zod@4.6.6/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
2377
2377
  async function recoverPublicKey({ hash, signature }) {
2378
2378
  const hashHex = isHex(hash) ? hash : toHex(hash);
2379
- const { secp256k1 } = await import("./secp256k1-BGtA1PsN.js");
2379
+ const { secp256k1 } = await import("./secp256k1-Xpte4Dwf.js");
2380
2380
  return `0x${(() => {
2381
2381
  if (typeof signature === "object" && "r" in signature && "s" in signature) {
2382
2382
  const { r, s, v, yParity } = signature;
@@ -1,5 +1,5 @@
1
- import { C as AgentRuntimeAttachments, G as AgentProfile, K as AgentProfileCapabilities, Rt as SandboxCreateReceipt, S as SandboxSizePreset, U as InteractionRequest, a as TerminalStreamOptions, ct as ReasoningEffort, g as TerminalReadyInfo, i as TerminalStreamHandlers, ot as AgentProfileValidationResult, q as AgentProfileConfidential, s as TerminalStreamToken, t as TerminalAttachTimings, ut as PlanContinuation, z as AgentExactRunControlRef } from "./terminal-stream-types-BM5J4lt0.js";
2
- import { t as CliAuthReference } from "./cli-auth-bundle-CFZx0muA.js";
1
+ import { C as AgentRuntimeAttachments, G as AgentProfile, K as AgentProfileCapabilities, Rt as SandboxCreateReceipt, S as SandboxSizePreset, U as InteractionRequest, a as TerminalStreamOptions, ct as ReasoningEffort, g as TerminalReadyInfo, i as TerminalStreamHandlers, ot as AgentProfileValidationResult, q as AgentProfileConfidential, s as TerminalStreamToken, t as TerminalAttachTimings, ut as PlanContinuation, z as AgentExactRunControlRef } from "./terminal-stream-types-BcZxAiU-.js";
2
+ import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
3
3
  import { z } from "zod";
4
4
  //#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -154,14 +154,14 @@
154
154
  "ws": "^8.22.0",
155
155
  "yjs": "13.6.30",
156
156
  "@products/sandbox-test-utils": "0.0.0",
157
+ "@tangle-network/cli-agent-registry": "0.14.0",
157
158
  "@repo/shared": "0.0.0",
158
159
  "@tangle-network/agent-profile-materialize": "0.26.0",
159
- "@tangle-network/cli-agent-registry": "0.10.2",
160
160
  "@tangle-network/runtime-contracts": "0.19.0"
161
161
  },
162
162
  "tangleRelease": {
163
- "sourceSha": "2247f6998d2e3b0a2243867f0b2c86ac78745f2e",
164
- "mergedAt": "2026-10-27T02:34:07-06:00"
163
+ "sourceSha": "e962211a1ce5f2e11a99b60421e45fca5547ca2d",
164
+ "mergedAt": "2026-10-27T03:53:58-06:00"
165
165
  },
166
166
  "scripts": {
167
167
  "build": "node scripts/build-dist.mjs",
@@ -1,82 +0,0 @@
1
- import { z } from "zod";
2
- //#region ../../../packages/runtime-contracts/dist/backend-types.js
3
- /**
4
- * This distribution's backend vocabulary, declared positively. The shared
5
- * Interface vocabulary also contains historical and differently hosted harnesses;
6
- * knowing one upstream must not require installing it here or make this module
7
- * throw at import time. Keep old wire identities readable when retiring execution.
8
- *
9
- * Gemini is not a direct Sandbox backend; it is available only through a backing
10
- * transport. Adding it upstream never implicitly makes it dispatchable here.
11
- * The spec/adapter composition must still prove every backend it actually enables.
12
- */
13
- const BACKEND_TYPE = {
14
- OPENCODE: "opencode",
15
- CLAUDE_CODE: "claude-code",
16
- KIMI_CODE: "kimi-code",
17
- CODEX: "codex",
18
- AMP: "amp",
19
- FACTORY_DROIDS: "factory-droids",
20
- PI: "pi",
21
- PRIME: "prime",
22
- HERMES: "hermes",
23
- FORGE: "forge",
24
- OPENCLAW: "openclaw",
25
- NANOCLAW: "nanoclaw",
26
- ACP: "acp",
27
- CURSOR: "cursor",
28
- CLI_BASE: "cli-base"
29
- };
30
- /** Stable declaration order; registry tests check the shipped spec composition. */
31
- const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
32
- const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
33
- /**
34
- * `backend.metadata.isolationPrincipal`: the opaque, stable id of the member a
35
- * secret-isolated session's turns run for, never a credential. Turns of one
36
- * session, principal and profile authority share one OS identity.
37
- */
38
- const isolationPrincipalSchema = z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
39
- const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
40
- function isBackendType(value) {
41
- return BACKEND_TYPE_SET.has(value);
42
- }
43
- function parseBackendType(value) {
44
- if (!isBackendType(value)) throw new Error(`Unknown backend type "${value}". Expected one of: ${ALL_BACKEND_TYPES.join(", ")}`);
45
- return value;
46
- }
47
- const SOURCES = [
48
- "request",
49
- "environment",
50
- "profile"
51
- ];
52
- function nonEmpty(value) {
53
- return typeof value === "string" && value.length > 0 ? value : void 0;
54
- }
55
- function normalizeProfile(value) {
56
- if (!value || typeof value !== "object") return void 0;
57
- const raw = value;
58
- const digest = nonEmpty(raw.digest);
59
- if (!digest) return void 0;
60
- const name = nonEmpty(raw.name);
61
- return {
62
- ...name ? { name } : {},
63
- digest
64
- };
65
- }
66
- function normalizeEffectiveBackend(value) {
67
- if (!value || typeof value !== "object") return void 0;
68
- const raw = value;
69
- const provider = nonEmpty(raw.provider);
70
- const model = nonEmpty(raw.model);
71
- const profile = normalizeProfile(raw.profile);
72
- if (!provider && !model && !profile) return void 0;
73
- const source = nonEmpty(raw.source);
74
- return {
75
- ...provider ? { provider } : {},
76
- ...model ? { model } : {},
77
- ...source && SOURCES.includes(source) ? { source } : {},
78
- ...profile ? { profile } : {}
79
- };
80
- }
81
- //#endregion
82
- export { normalizeEffectiveBackend as a, isolationPrincipalSchema as i, BACKEND_TYPE as n, parseBackendType as o, backendTypeSchema as r, ALL_BACKEND_TYPES as t };