@tangle-network/sandbox 1.0.65 → 1.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +3 -3
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-B6QiwZZS.d.ts → agent-run-outcome-BXCQhWCV.d.ts} +2 -2
  6. package/dist/auth/index.js +1 -1
  7. package/dist/{browser-interactive-control-controller-DdhciJR8.d.ts → browser-interactive-control-controller-DInC1Gh5.d.ts} +1 -1
  8. package/dist/{browser-interactive-control-controller-BvtNDWql.js → browser-interactive-control-controller-WLzM_Lyq.js} +15 -15
  9. package/dist/{cli-auth-bundle-BoK5wpru.js → cli-auth-bundle-DspL04sN.js} +1 -1
  10. package/dist/{client-BNid0CdH.js → client-BImf9QED.js} +5 -5
  11. package/dist/{client-fsB618gI.d.ts → client-BdrnG3I-.d.ts} +5 -5
  12. package/dist/{core-njOwbmda.js → core-DhmTjws0.js} +3 -3
  13. package/dist/core.d.ts +6 -6
  14. package/dist/core.js +3 -3
  15. package/dist/{harness-BnGz2Wng.js → harness-D2TXEUu-.js} +5 -5
  16. package/dist/{index-BlzDzWnP.d.ts → index-CyhfjbUU.d.ts} +5 -5
  17. package/dist/index.d.ts +9 -9
  18. package/dist/index.js +7 -7
  19. package/dist/interactive-control.d.ts +1 -1
  20. package/dist/interactive-control.js +1 -1
  21. package/dist/{interactive-controller-BRUzaI-G.js → interactive-controller-CSS8WG8M.js} +4 -4
  22. package/dist/{interactive-controller-C2VHooK7.d.ts → interactive-controller-KF6Ev3nt.d.ts} +3 -3
  23. package/dist/{lines-wvafkW4z.d.ts → lines-BPKlERNv.d.ts} +1 -1
  24. package/dist/lines.d.ts +1 -1
  25. package/dist/{local-cli-auth-bw8Puox2.js → local-cli-auth-xqJlVceZ.js} +1 -1
  26. package/dist/{preview-DC5iRY4_.d.ts → preview-BJMuwE1n.d.ts} +3 -3
  27. package/dist/{profile-schema-DFZTAn1S.js → profile-schema-D-XJLM1E.js} +8 -8
  28. package/dist/{public-templates-DlhHOr0T.d.ts → public-templates-DGUh0DY5.d.ts} +2 -2
  29. package/dist/public-templates.d.ts +1 -1
  30. package/dist/runtime.d.ts +5 -5
  31. package/dist/runtime.js +2 -2
  32. package/dist/{sandbox-BHxxa7ds.js → sandbox-CO9UAJvW.js} +138 -26
  33. package/dist/select-seat-command.d.ts +1 -1
  34. package/dist/tangle/index.d.ts +1 -1
  35. package/dist/tangle/index.js +1 -1
  36. package/dist/{tangle-CX6FeDA5.js → tangle-DlR1zzjK.js} +1 -1
  37. package/dist/{terminal-stream-types-BlOFGopg.d.ts → terminal-stream-types-ZbGiajD8.d.ts} +16 -16
  38. package/dist/{types-BUnqdGvs.d.ts → types-DHvkJODy.d.ts} +1 -1
  39. package/package.json +5 -5
@@ -1,2 +1,2 @@
1
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-BvtNDWql.js";
1
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-WLzM_Lyq.js";
2
2
  export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,6 +1,6 @@
1
- import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-BnGz2Wng.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-BvtNDWql.js";
3
- import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
1
+ import { E as boundedJsonSchema, o as canonicalCandidateDigest, w as boundedIdentifierSchema } from "./harness-D2TXEUu-.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-WLzM_Lyq.js";
3
+ import { r as agentProfileSchema } from "./profile-schema-D-XJLM1E.js";
4
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-BStusQVc.js";
5
5
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
6
6
  import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
@@ -74,7 +74,7 @@ function normalizeEffectiveBackend(value) {
74
74
  };
75
75
  }
76
76
  //#endregion
77
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.js
77
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.js
78
78
  const AgentRuntimeAttachmentsSchema = boundedJsonSchema.pipe(z.strictObject({ mcp: agentProfileSchema.shape.mcp.unwrap().superRefine((servers, context) => {
79
79
  for (const alias of Object.keys(servers)) {
80
80
  const result = boundedIdentifierSchema.safeParse(alias);
@@ -1,6 +1,6 @@
1
- import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BlOFGopg.js";
2
- import { rr as TerminalStream } from "./types-BUnqdGvs.js";
3
- import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-DdhciJR8.js";
1
+ import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-ZbGiajD8.js";
2
+ import { rr as TerminalStream } from "./types-DHvkJODy.js";
3
+ import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-DInC1Gh5.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,4 +1,4 @@
1
- import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-BUnqdGvs.js";
1
+ import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-DHvkJODy.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
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-wvafkW4z.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-BPKlERNv.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 };
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-BoK5wpru.js";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DspL04sN.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,6 +1,6 @@
1
- import { O as SandboxInstance } from "./index-BlzDzWnP.js";
2
- import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-BUnqdGvs.js";
3
- import { t as Sandbox } from "./client-fsB618gI.js";
1
+ import { O as SandboxInstance } from "./index-CyhfjbUU.js";
2
+ import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-DHvkJODy.js";
3
+ import { t as Sandbox } from "./client-BdrnG3I-.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -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-BnGz2Wng.js";
1
+ import { a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, k as isBoundedJsonMaterial, 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_ARRAY_LENGTH, w as boundedIdentifierSchema, y as CONTRACT_MAX_JSON_NODES } from "./harness-D2TXEUu-.js";
2
2
  import { z } from "zod";
3
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
3
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
4
4
  /** Immutable Hub generation identities, never aliases such as latest or a caller's scope. */
5
5
  const agentProfileKnowledgeRefSchema = z.strictObject({
6
6
  sourceId: z.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
@@ -18,7 +18,7 @@ const agentProfileKnowledgeRefsSchema = z.array(agentProfileKnowledgeRefSchema).
18
18
  });
19
19
  });
20
20
  //#endregion
21
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
21
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
22
22
  /** Why a value cannot be AgentProfile JSON, with the path of the offending entry. */
23
23
  var AgentProfileValueError = class extends Error {
24
24
  path;
@@ -94,7 +94,7 @@ function renderPath(path) {
94
94
  return path.length === 0 ? "root" : path.join(".");
95
95
  }
96
96
  //#endregion
97
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
97
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
98
98
  /**
99
99
  * Zod records currently assign parsed values onto an ordinary object. The
100
100
  * special own key `__proto__` therefore invokes the legacy prototype setter
@@ -177,7 +177,7 @@ function decodeRecordKey(value) {
177
177
  return decoded;
178
178
  }
179
179
  //#endregion
180
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
180
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
181
181
  /**
182
182
  * Declarations request authority, never grant it. Trusted resolution uses authenticated tenant
183
183
  * and issuer authority, with no personal/team fallback, and pins immutable secret ID/revision.
@@ -343,7 +343,7 @@ z.strictObject({
343
343
  requireInPlace: z.boolean().optional()
344
344
  });
345
345
  //#endregion
346
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
346
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
347
347
  /** Canonical harness/model, effort and prompt controls. Model-specific capability comes from the serving catalog. */
348
348
  /** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
349
349
  const reasoningLadder = REASONING_EFFORTS;
@@ -641,7 +641,7 @@ function harnessSystemPromptIntents(harness) {
641
641
  return harnessSystemPromptControls[harness] ?? noSystemPromptControls;
642
642
  }
643
643
  //#endregion
644
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
644
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
645
645
  /**
646
646
  * Portable sandbox size vocabulary.
647
647
  *
@@ -664,7 +664,7 @@ const SANDBOX_SIZE_PRESET_NAMES = [
664
664
  "large"
665
665
  ];
666
666
  //#endregion
667
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
667
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
668
668
  const profileOpaqueValueSchema = z.unknown().transform((value, context) => {
669
669
  if (value === void 0 || isBoundedJsonMaterial(value, {
670
670
  dataPropertiesOnly: true,
@@ -1,5 +1,5 @@
1
- import { Ot as SandboxError } from "./terminal-stream-types-BlOFGopg.js";
2
- import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-BUnqdGvs.js";
1
+ import { Ot as SandboxError } from "./terminal-stream-types-ZbGiajD8.js";
2
+ import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-DHvkJODy.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-DlhHOr0T.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DGUh0DY5.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
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-BlOFGopg.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-BUnqdGvs.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DdhciJR8.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-C2VHooK7.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-B6QiwZZS.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-ZbGiajD8.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-DHvkJODy.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DInC1Gh5.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-KF6Ev3nt.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-BXCQhWCV.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,5 +1,5 @@
1
- import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-BRUzaI-G.js";
2
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BvtNDWql.js";
1
+ import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-CSS8WG8M.js";
2
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-WLzM_Lyq.js";
3
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-BStusQVc.js";
4
4
  import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
5
5
  import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
@@ -1,7 +1,7 @@
1
- import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W 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 requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, 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-BRUzaI-G.js";
2
- import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, u as isCanonicalJsonValue } from "./harness-BnGz2Wng.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-BvtNDWql.js";
4
- import { a as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
1
+ import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W 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 requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, 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-CSS8WG8M.js";
2
+ import { D as boundedStringSchema, _ as sha256, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1, w as boundedIdentifierSchema } from "./harness-D2TXEUu-.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-WLzM_Lyq.js";
4
+ import { a as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-D-XJLM1E.js";
5
5
  import { C as StateError, E as ValidationError, F as SANDBOX_FILE_API_ABSOLUTE_ROOTS, I as isProfileFileMountOutsideRoots, L as profileFileMountOutsideRootsMessage, N as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, P as SANDBOX_AGENT_HOME, S as ServerError, T as TimeoutError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, j as SANDBOX_PROXY_REQUEST_MAX_BYTES, l as EdgeNotReadyError, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, 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-BStusQVc.js";
6
6
  import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
7
7
  import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
@@ -10,7 +10,7 @@ import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.
10
10
  import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
11
11
  import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
12
12
  import { t as runPreparedProcess } from "./prepared-process-GzQXVsX8.js";
13
- import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
13
+ import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DspL04sN.js";
14
14
  import { n as SandboxLines } from "./lines-D9XmRZMl.js";
15
15
  import { z } from "zod";
16
16
  import { createHash } from "node:crypto";
@@ -20,7 +20,7 @@ import "node:fs/promises";
20
20
  import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
21
21
  import "@tangle-network/agent-interface/environment-provider";
22
22
  import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
23
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
23
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
24
24
  /**
25
25
  * Canonical RFC 8785/SHA-256 identity for one validated, public AgentProfile.
26
26
  * Secret-capable MCP/hook fields are tagged. Other prompt, resource, metadata,
@@ -31,11 +31,11 @@ import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlp
31
31
  */
32
32
  function canonicalAgentProfileDigest(profile) {
33
33
  const material = canonicalAgentProfileValue(agentProfileSchema.parse(profile));
34
- if (material === void 0 || !isCanonicalJsonValue(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
35
- return canonicalCandidateDigest(material);
34
+ if (material === void 0 || !isCanonicalJsonValue$1(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
35
+ return canonicalCandidateDigest$1(material);
36
36
  }
37
37
  //#endregion
38
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
38
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
39
39
  const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
40
40
  provider: boundedIdentifierSchema,
41
41
  environmentId: boundedIdentifierSchema,
@@ -52,7 +52,7 @@ const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
52
52
  const AgentInteractiveSessionStartSchema = z.strictObject({
53
53
  run: AgentExactRunControlRefSchema,
54
54
  profile: agentProfileSchema,
55
- requestedProfileDigest: sha256DigestSchema,
55
+ requestedProfileDigest: sha256DigestSchema$1,
56
56
  authMode: z.literal("oauth").optional(),
57
57
  initialPrompt: boundedStringSchema.optional(),
58
58
  cwd: boundedStringSchema.min(1).optional(),
@@ -63,7 +63,7 @@ const AgentInteractiveSessionStartSchema = z.strictObject({
63
63
  function agentInteractiveSessionRequestDigest(coordinates, input) {
64
64
  const exactCoordinates = AgentInteractiveSessionRunCoordinatesSchema.parse(coordinates);
65
65
  const exactInput = AgentInteractiveSessionStartSchema.omit({ run: true }).parse(input);
66
- return canonicalCandidateDigest({
66
+ return canonicalCandidateDigest$1({
67
67
  kind: "agent-interactive-session-start.v1",
68
68
  run: exactCoordinates,
69
69
  requestedProfileDigest: exactInput.requestedProfileDigest,
@@ -112,7 +112,7 @@ function runCoordinates(run) {
112
112
  };
113
113
  }
114
114
  //#endregion
115
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
115
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.4/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
116
116
  const terminalDimensionSchema = z.number().int().positive().max(1e4);
117
117
  /**
118
118
  * Provider-neutral handle for one interactive terminal.
@@ -488,7 +488,7 @@ const PROFILE_IMPORT_PART_BYTES = 512 * 1024;
488
488
  const MANAGED_PROFILE_TRANSPORT = "managed-profile-reference-v1";
489
489
  /** Cache identity follows JSON wire semantics and RFC 8785 key ordering. */
490
490
  function profileCacheSha256(profile) {
491
- return canonicalCandidateDigest(JSON.parse(JSON.stringify(profile))).slice(7);
491
+ return canonicalCandidateDigest$1(JSON.parse(JSON.stringify(profile))).slice(7);
492
492
  }
493
493
  //#endregion
494
494
  //#region ../../../packages/runtime-contracts/dist/direct-read.js
@@ -763,7 +763,7 @@ async function responseNeedsProfileImport(response) {
763
763
  }
764
764
  /** Upload the public profile only. Runtime grants remain in the turn backend. */
765
765
  async function primeManagedProfile(profile, fetchRuntime) {
766
- const bytes = new TextEncoder().encode(canonicalCandidateJson(profile));
766
+ const bytes = new TextEncoder().encode(canonicalCandidateJson$1(profile));
767
767
  const sha256 = profileCacheSha256(profile);
768
768
  if (bytes.length > 8388608) throw new ValidationError("Managed profile exceeds the profile import bound");
769
769
  const post = async (body) => {
@@ -1857,6 +1857,118 @@ async function isRefusedBearer(response) {
1857
1857
  return false;
1858
1858
  }
1859
1859
  }
1860
+ //#endregion
1861
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
1862
+ const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
1863
+ const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
1864
+ const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
1865
+ const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
1866
+ const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
1867
+ const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
1868
+ const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
1869
+ const obviousSecretValuePattern = /(?:\bsk[-_][-_A-Za-z0-9]{10,}\b|\bgh[pousr]_[A-Za-z0-9]{12,}\b|\bgithub_pat_[A-Za-z0-9_]{12,}\b|\bAKIA[A-Z0-9]{12,}\b|-----BEGIN [A-Z ]*PRIVATE KEY-----|\bBearer\s+\S+)/;
1870
+ const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
1871
+ z.string().regex(sha256Pattern);
1872
+ z.string().regex(gitObjectPattern);
1873
+ const environmentNameSchema = z.string().regex(environmentNamePattern);
1874
+ z.string().regex(headerNamePattern);
1875
+ z.string().regex(mediaTypePattern);
1876
+ function sha256Bytes(value) {
1877
+ const bytes = sha256(value);
1878
+ return `sha256:${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
1879
+ }
1880
+ /** RFC 8785 serialization used by every candidate-producing package. */
1881
+ function canonicalCandidateJson(value) {
1882
+ if (!isCanonicalJsonValue(value)) throw new Error("candidate document must be finite, acyclic RFC 8785 JSON");
1883
+ return serializeCanonicalCandidate(value);
1884
+ }
1885
+ function canonicalCandidateBytes(value) {
1886
+ return new TextEncoder().encode(canonicalCandidateJson(value));
1887
+ }
1888
+ function canonicalCandidateDigest(value) {
1889
+ return sha256Bytes(canonicalCandidateBytes(value));
1890
+ }
1891
+ function serializeCanonicalCandidate(value) {
1892
+ if (value === null || typeof value === "boolean" || typeof value === "number") return JSON.stringify(value);
1893
+ if (typeof value === "string") return JSON.stringify(value);
1894
+ if (Array.isArray(value)) return `[${value.map(serializeCanonicalCandidate).join(",")}]`;
1895
+ return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serializeCanonicalCandidate(value[key])}`).join(",")}}`;
1896
+ }
1897
+ function isWellFormedUnicode(value) {
1898
+ for (let index = 0; index < value.length; index++) {
1899
+ const code = value.charCodeAt(index);
1900
+ if (code >= 55296 && code <= 56319) {
1901
+ const next = value.charCodeAt(index + 1);
1902
+ if (!(next >= 56320 && next <= 57343)) return false;
1903
+ index++;
1904
+ } else if (code >= 56320 && code <= 57343) return false;
1905
+ }
1906
+ return true;
1907
+ }
1908
+ function isCanonicalJsonValue(value, ancestors = /* @__PURE__ */ new Set()) {
1909
+ if (value === null || typeof value === "boolean") return true;
1910
+ if (typeof value === "string") return isWellFormedUnicode(value);
1911
+ if (typeof value === "number") return Number.isFinite(value);
1912
+ if (typeof value !== "object" || ancestors.has(value)) return false;
1913
+ const prototype = Object.getPrototypeOf(value);
1914
+ if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) return false;
1915
+ const nextAncestors = new Set(ancestors).add(value);
1916
+ if (Array.isArray(value)) {
1917
+ for (let index = 0; index < value.length; index += 1) {
1918
+ if (!(index in value)) return false;
1919
+ if (!isCanonicalJsonValue(value[index], nextAncestors)) return false;
1920
+ }
1921
+ return true;
1922
+ }
1923
+ return Object.entries(value).every(([key, entry]) => isWellFormedUnicode(key) && isCanonicalJsonValue(entry, nextAncestors));
1924
+ }
1925
+ function hasCredentialBearingUrl(value) {
1926
+ try {
1927
+ const url = new URL(value);
1928
+ if (url.username !== "" || url.password !== "") return true;
1929
+ return [...url.searchParams.keys()].some((key) => secretNamePattern.test(key));
1930
+ } catch {
1931
+ return false;
1932
+ }
1933
+ }
1934
+ /**
1935
+ * Whether a string holds an obvious credential: a provider key (`sk-`, `gh*_`,
1936
+ * `github_pat_`, `AKIA`), a PEM private key, a bearer token, or a URL with
1937
+ * userinfo or a credential-named query parameter. The agent-eval redaction
1938
+ * core calls it, so candidate validation and trace redaction agree.
1939
+ */
1940
+ function looksLikeCredential(value) {
1941
+ return obviousSecretValuePattern.test(value) || hasCredentialBearingUrl(value);
1942
+ }
1943
+ function isPublicConfigValue(value) {
1944
+ return !controlCharacterPattern.test(value) && isWellFormedUnicode(value) && !looksLikeCredential(value);
1945
+ }
1946
+ /** Shared public reference owner; resolution belongs to the trusted executor. */
1947
+ const agentCandidateSecretRefSchema = z.strictObject({
1948
+ kind: z.literal("secret-ref"),
1949
+ key: z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isPublicConfigValue(value), "secret reference key must be a public non-credential identity"),
1950
+ format: z.enum(["raw", "bearer"]).optional()
1951
+ });
1952
+ const agentCandidatePublicValueSchema = z.strictObject({
1953
+ kind: z.literal("public"),
1954
+ value: z.string().refine(isPublicConfigValue, "candidate config cannot carry credentials; the evaluator owns model authorization")
1955
+ });
1956
+ const agentCandidateConfigValueSchema = z.discriminatedUnion("kind", [agentCandidatePublicValueSchema, agentCandidateSecretRefSchema]);
1957
+ function configRecordSchema(keySchema) {
1958
+ return z.record(keySchema, agentCandidateConfigValueSchema).superRefine((config, ctx) => {
1959
+ for (const name of Object.keys(config)) if (secretNamePattern.test(name) && config[name]?.kind !== "secret-ref") ctx.addIssue({
1960
+ code: "custom",
1961
+ path: [name],
1962
+ message: "candidate config cannot declare credential-bearing names"
1963
+ });
1964
+ });
1965
+ }
1966
+ configRecordSchema(environmentNameSchema);
1967
+ z.object({
1968
+ kind: z.literal("github"),
1969
+ owner: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== ".."),
1970
+ repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
1971
+ }).strict();
1860
1972
  const CODEX_SYSTEM_PROMPT_FILE = ".codex/system-prompt.md";
1861
1973
  const OPENCODE_APPEND_SYSTEM_PROMPT_FILE = ".opencode/agent-system-prompt.md";
1862
1974
  const OPENCODE_CONFIG_FILE = "opencode.json";
@@ -5040,7 +5152,7 @@ var InteractiveSessionHandle = class {
5040
5152
  options?.signal?.throwIfAborted();
5041
5153
  const binding = this.requireBinding();
5042
5154
  const exactCommand = AgentInteractiveSessionPromptCommandSchema.parse(command);
5043
- if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
5155
+ if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
5044
5156
  return (options === void 0 ? this.host._sendInteractivePrompt(this.sessionId, exactCommand) : this.host._sendInteractivePrompt(this.sessionId, exactCommand, options)).then((acknowledgement) => {
5045
5157
  const exactAcknowledgement = AgentInteractiveSessionPromptAcknowledgementSchema.parse(acknowledgement);
5046
5158
  if (!agentInteractiveSessionPromptAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} prompt acknowledgement does not match the command`);
@@ -5118,8 +5230,8 @@ var InteractiveSessionHandle = class {
5118
5230
  options?.signal?.throwIfAborted();
5119
5231
  const binding = this.requireBinding();
5120
5232
  const exactRequest = AgentInteractiveSessionAttachSchema.parse(request);
5121
- if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest(exactRequest.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
5122
- const requestDigest = canonicalCandidateDigest(exactRequest);
5233
+ if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest$1(exactRequest.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
5234
+ const requestDigest = canonicalCandidateDigest$1(exactRequest);
5123
5235
  if (this.agentTerminalAttachInFlight !== void 0) {
5124
5236
  if (this.agentTerminalAttachDigest !== requestDigest) throw new Error(`Interactive session ${this.sessionId} cannot attach with a different terminal request while another attach is in flight`);
5125
5237
  return awaitWithAbort(this.agentTerminalAttachInFlight, options?.signal);
@@ -5172,7 +5284,7 @@ var InteractiveSessionHandle = class {
5172
5284
  options?.signal?.throwIfAborted();
5173
5285
  const ref = this.requireRef();
5174
5286
  const exactRequest = AgentInteractiveSessionControlClaimRequestSchema.parse(request);
5175
- if (canonicalCandidateDigest(exactRequest.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
5287
+ if (canonicalCandidateDigest$1(exactRequest.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
5176
5288
  return this.host._claimInteractiveControl(this.sessionId, exactRequest, options).then((acknowledgement) => {
5177
5289
  const exactAcknowledgement = AgentInteractiveSessionControlClaimAcknowledgementSchema.parse(acknowledgement);
5178
5290
  if (!agentInteractiveSessionControlClaimAcknowledgementMatchesRequest(exactRequest, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} control claim acknowledgement does not match the request`);
@@ -5187,7 +5299,7 @@ var InteractiveSessionHandle = class {
5187
5299
  options?.signal?.throwIfAborted();
5188
5300
  const binding = this.requireBinding();
5189
5301
  const exactCommand = AgentInteractiveSessionStopCommandSchema.parse(command);
5190
- if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
5302
+ if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
5191
5303
  return (options === void 0 ? this.host._stopInteractive(this.sessionId, exactCommand) : this.host._stopInteractive(this.sessionId, exactCommand, options)).then((acknowledgement) => {
5192
5304
  const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
5193
5305
  if (!agentInteractiveSessionStopAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} stop acknowledgement does not match the command`);
@@ -5199,7 +5311,7 @@ var InteractiveSessionHandle = class {
5199
5311
  const ref = this.requireRef();
5200
5312
  return (options === void 0 ? this.host._stopInteractiveLifecycle(this.sessionId, ref) : this.host._stopInteractiveLifecycle(this.sessionId, ref, options)).then((acknowledgement) => {
5201
5313
  const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
5202
- if (canonicalCandidateDigest(exactAcknowledgement.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
5314
+ if (canonicalCandidateDigest$1(exactAcknowledgement.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
5203
5315
  if (exactAcknowledgement.status !== "accepted" && exactAcknowledgement.status !== "replayed") throw new Error(`Interactive session ${this.sessionId} lifecycle stop was not confirmed (${exactAcknowledgement.status})`);
5204
5316
  if (exactAcknowledgement.effect === "unknown") throw new Error(`Interactive session ${this.sessionId} lifecycle stop returned an unknown outcome`);
5205
5317
  return exactAcknowledgement;
@@ -6439,7 +6551,7 @@ const interactionResolutionDeliveryStateSchema = z.enum([
6439
6551
  const interactionResolutionAcknowledgementSchema = z.strictObject({
6440
6552
  status: z.enum(["accepted", "already_resolved_same"]),
6441
6553
  operationId: z.string().min(1),
6442
- responseDigest: sha256DigestSchema,
6554
+ responseDigest: sha256DigestSchema$1,
6443
6555
  interactionId: z.string().min(1),
6444
6556
  sessionId: z.string().min(1),
6445
6557
  outcome: z.enum([
@@ -6467,7 +6579,7 @@ const InteractionConflictEnvelopeSchema = z.object({
6467
6579
  code: z.string().min(1),
6468
6580
  message: z.string().min(1),
6469
6581
  status: REFUSED_INTERACTION_STATUS,
6470
- existingResponseDigest: sha256DigestSchema.optional(),
6582
+ existingResponseDigest: sha256DigestSchema$1.optional(),
6471
6583
  existingOperationId: z.string().min(1).optional(),
6472
6584
  resolvedAt: z.string().min(1).optional()
6473
6585
  })
@@ -6495,7 +6607,7 @@ function bindingsEqual(left, right) {
6495
6607
  return left.requestDigest === right.requestDigest && left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.interactionId === right.interactionId;
6496
6608
  }
6497
6609
  function assertResolutionMatches(resolution, sessionId, submitted, response, endpoint) {
6498
- const expectedDigest = canonicalCandidateDigest(submitted);
6610
+ const expectedDigest = canonicalCandidateDigest$1(submitted);
6499
6611
  if (resolution.sessionId !== sessionId || resolution.interactionId !== submitted.id || resolution.outcome !== submitted.outcome || resolution.responseDigest !== expectedDigest) throw invalidRuntimeResponse("Sidecar returned a resolution for another interaction response", response, endpoint);
6500
6612
  }
6501
6613
  /** Parse one interaction response without discarding replay information. */
@@ -7416,7 +7528,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
7416
7528
  origin: "runtime",
7417
7529
  endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
7418
7530
  });
7419
- if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
7531
+ if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
7420
7532
  const endpoint = `/agents/sessions/${encodeURIComponent(id)}/interactive/prompt`;
7421
7533
  const response = await this.runtimeFetch(endpoint, {
7422
7534
  method: "POST",
@@ -7594,7 +7706,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
7594
7706
  origin: "runtime"
7595
7707
  });
7596
7708
  const acknowledgement = parsed.data.data;
7597
- if (canonicalCandidateDigest(acknowledgement.ref) !== canonicalCandidateDigest(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
7709
+ if (canonicalCandidateDigest$1(acknowledgement.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
7598
7710
  endpoint,
7599
7711
  origin: "runtime"
7600
7712
  });
@@ -10317,7 +10429,7 @@ var SandboxInteractiveTerminalOperations = class {
10317
10429
  origin: "runtime",
10318
10430
  endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
10319
10431
  }, "INTERACTIVE_SESSION_EXITED");
10320
- if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
10432
+ if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
10321
10433
  return exactRef;
10322
10434
  }
10323
10435
  /**
@@ -1,4 +1,4 @@
1
- import { ft as SeatOwnerTransport } from "./client-fsB618gI.js";
1
+ import { ft as SeatOwnerTransport } from "./client-BdrnG3I-.js";
2
2
 
3
3
  //#region src/select-seat-command.d.ts
4
4
  /** Public reply bound; the owner prints one metadata object. */
@@ -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-BlzDzWnP.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-CyhfjbUU.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-CX6FeDA5.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-DlR1zzjK.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,4 +1,4 @@
1
- import { n as createSandboxInstanceFromResponse } from "./sandbox-BHxxa7ds.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-CO9UAJvW.js";
2
2
  import { i as readResponseJson } from "./errors-BStusQVc.js";
3
3
  import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BXgE8UHJ.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js