@tangle-network/sandbox 1.0.375 → 1.0.377

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-execution-preparation-BhQ48V9p.js → agent-execution-preparation-CemN5Bl6.js} +3 -3
  6. package/dist/{agent-execution-preparation-receipt-CtgxEFAM.js → agent-execution-preparation-receipt-ClBOzgJ_.js} +4 -4
  7. package/dist/{agent-run-outcome-CrlJPUT1.d.ts → agent-run-outcome-DctzF4d4.d.ts} +2 -2
  8. package/dist/{api-request-CtQFm0hn.js → api-request-DGud81K_.js} +1 -1
  9. package/dist/auth/index.d.ts +1 -1
  10. package/dist/auth/index.js +2 -2
  11. package/dist/{browser-interactive-control-controller--sRiWLrP.d.ts → browser-interactive-control-controller-DpaiQ8ye.d.ts} +2 -2
  12. package/dist/{browser-interactive-control-controller-DtFROmtJ.js → browser-interactive-control-controller-SdPnZKH5.js} +14 -14
  13. package/dist/{cli-auth-bundle-D4C2d79t-DZCYIq2N.js → cli-auth-bundle-DbnfMJ_Y-CnhSzQoE.js} +92 -6
  14. package/dist/{cli-auth-bundle-Zey9bBZA.d.ts → cli-auth-bundle-DsT-bq8b.d.ts} +1 -1
  15. package/dist/cli-auth-bundle-Kz9EaVAY.js +2 -0
  16. package/dist/{client-DxbhxnjY.js → client-BUpPp_jR.js} +6 -6
  17. package/dist/{client-CmkILqkv.d.ts → client-CKXr8IPN.d.ts} +36 -6
  18. package/dist/collaboration/index.js +1 -1
  19. package/dist/{collaboration-Dj39fBQD.js → collaboration-DoGo5F9S.js} +1 -1
  20. package/dist/core.d.ts +6 -6
  21. package/dist/core.js +3 -3
  22. package/dist/gpu-lease/index.js +1 -1
  23. package/dist/{harness-D5WLFgHg.js → harness-Dq3XGyYd.js} +5 -4
  24. package/dist/{index-CMhJ8YJs.d.ts → index-BUaAYkZv.d.ts} +7 -7
  25. package/dist/{index-BONanR44.d.ts → index-QtEpXSoz.d.ts} +22 -15
  26. package/dist/index.d.ts +10 -10
  27. package/dist/index.js +9 -9
  28. package/dist/intelligence/index.js +1 -1
  29. package/dist/interactive-control.d.ts +1 -1
  30. package/dist/interactive-control.js +1 -1
  31. package/dist/{interactive-controller-Cr4DdlMq.d.ts → interactive-controller-CNO0FXmI.d.ts} +4 -4
  32. package/dist/{interactive-controller-DoPpb1Mp.js → interactive-controller-D-V0QuRG.js} +6 -5
  33. package/dist/{lines-CosyyUkH.d.ts → lines-CZmF5JRS.d.ts} +1 -1
  34. package/dist/lines.d.ts +1 -1
  35. package/dist/{local-cli-auth-BqTDos9d.js → local-cli-auth-Dut-5etk.js} +1 -1
  36. package/dist/{mcp-local-1t8G2H5S.js → mcp-local-Crbkcdf_.js} +2 -2
  37. package/dist/{preview-BE9C1gka.d.ts → preview-BFe-MTUv.d.ts} +3 -3
  38. package/dist/{profile-schema-CpFXvaXd.js → profile-schema-BuXg-MCu.js} +11 -11
  39. package/dist/{public-templates-Bg92Ca8R.d.ts → public-templates-B_g2NiwJ.d.ts} +2 -2
  40. package/dist/public-templates.d.ts +1 -1
  41. package/dist/runtime.d.ts +5 -5
  42. package/dist/runtime.js +3 -3
  43. package/dist/{sandbox-D1lI6jKr.js → sandbox-D5JS9mvO.js} +11 -11
  44. package/dist/select-seat-command.d.ts +2 -2
  45. package/dist/select-seat-command.js +1 -1
  46. package/dist/{select-seat-A-n5nL4a.js → select-seat-i_qyQUEH.js} +4 -4
  47. package/dist/session-gateway/index.js +1 -1
  48. package/dist/tangle/index.d.ts +1 -1
  49. package/dist/tangle/index.js +1 -1
  50. package/dist/{tangle-C6l9cdWr.js → tangle-DjlVssVM.js} +2 -2
  51. package/dist/{terminal-stream-types-ByWSGqTd.d.ts → terminal-stream-types-BgC3Pwzr.d.ts} +28 -1
  52. package/dist/{types-TxORSYEp.d.ts → types-CTid6zz6.d.ts} +4 -3
  53. package/package.json +6 -6
  54. package/dist/cli-auth-bundle-BBxCQuDN.js +0 -2
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-CMhJ8YJs.js";
2
- import { $a as BackendType, $i as SessionInfo, Ba as CodeLanguage, Va as CodeResultPart, _t as SandboxFleetParent, pa as BackendConfig, pr as CodeExecutionOptions, ta as SessionListOptions, za as CodeExecutionResult } from "../types-TxORSYEp.js";
3
- import { t as Sandbox } from "../client-CmkILqkv.js";
4
- import { u as PreviewAuthorizer } from "../preview-BE9C1gka.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-BUaAYkZv.js";
2
+ import { $a as BackendType, $i as SessionInfo, Ba as CodeLanguage, Va as CodeResultPart, _t as SandboxFleetParent, pa as BackendConfig, pr as CodeExecutionOptions, ta as SessionListOptions, za as CodeExecutionResult } from "../types-CTid6zz6.js";
3
+ import { t as Sandbox } from "../client-CKXr8IPN.js";
4
+ import { u as PreviewAuthorizer } from "../preview-BFe-MTUv.js";
5
5
  import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
6
6
  import { JSONSchema } from "zod/v4/core";
7
7
  import { ToolSet } from "ai";
@@ -1,8 +1,8 @@
1
- import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-1t8G2H5S.js";
2
- import { D as assertCurrentBackendType } from "../interactive-controller-DoPpb1Mp.js";
3
- import { t as SandboxInstance } from "../sandbox-D1lI6jKr.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-Crbkcdf_.js";
2
+ import { D as assertCurrentBackendType } from "../interactive-controller-D-V0QuRG.js";
3
+ import { t as SandboxInstance } from "../sandbox-D5JS9mvO.js";
4
4
  import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-vuyhjefs.js";
5
- import { t as Sandbox } from "../client-DxbhxnjY.js";
5
+ import { t as Sandbox } from "../client-BUpPp_jR.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -1,2 +1,2 @@
1
- import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BE9C1gka.js";
1
+ import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BFe-MTUv.js";
2
2
  export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
@@ -1,4 +1,4 @@
1
- import { r as agentProfileSchema } from "../profile-schema-CpFXvaXd.js";
1
+ import { r as agentProfileSchema } from "../profile-schema-BuXg-MCu.js";
2
2
  import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BTHZR1w2.js";
3
3
  //#region src/agent/preview-policy.ts
4
4
  /** Channel-neutral preview tool selection from a host-authored profile. */
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
66
66
  if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
67
67
  const tools = config.tools ?? PREVIEW_TOOLS;
68
68
  if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
69
- const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-1t8G2H5S.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-Crbkcdf_.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
70
70
  const handle = await createMcpServer(config.box, {
71
71
  name: "tangle-previews",
72
72
  sessionId: config.sessionId,
@@ -1,6 +1,6 @@
1
- import { o as canonicalCandidateDigest, u as isCanonicalJsonValue } from "./harness-D5WLFgHg.js";
2
- import { o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-CpFXvaXd.js";
3
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
1
+ import { o as canonicalCandidateDigest, u as isCanonicalJsonValue } from "./harness-Dq3XGyYd.js";
2
+ import { o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
3
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
4
4
  /**
5
5
  * Canonical RFC 8785/SHA-256 identity for one validated, public AgentProfile.
6
6
  * Secret-capable MCP/hook fields are tagged. Other prompt, resource, metadata,
@@ -1,6 +1,6 @@
1
- import { g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue } from "./harness-D5WLFgHg.js";
1
+ import { g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue } from "./harness-Dq3XGyYd.js";
2
2
  import { z } from "zod";
3
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/agent-workspace-source-snapshot.js
3
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/agent-workspace-source-snapshot.js
4
4
  const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
5
5
  /** Shared public identifier used by workspace lifecycle contracts. */
6
6
  const agentWorkspacePublicIdentifierSchema = z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isWellFormedUnicode(value) && !controlCharacterPattern.test(value) && !looksLikeCredential(value), "public workspace identity cannot carry credential-like material");
@@ -11,7 +11,7 @@ const agentWorkspaceSourceSnapshotPolicySchema = z.strictObject({
11
11
  digest: sha256DigestSchema
12
12
  });
13
13
  //#endregion
14
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/agent-profile-materialization.js
14
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/agent-profile-materialization.js
15
15
  /**
16
16
  * The canonical AgentProfile leaves that can affect one execution.
17
17
  *
@@ -75,7 +75,7 @@ const AGENT_PROFILE_MATERIALIZATION_AXES = [
75
75
  value: (profile) => profile.model?.[property]
76
76
  }))];
77
77
  //#endregion
78
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation-receipt.js
78
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation-receipt.js
79
79
  const nonBlankStringSchema = z.string().refine((value) => value.trim().length > 0, "value cannot be blank");
80
80
  const publicMechanismIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}$/, "mechanism must be a public identifier, not launch arguments").refine((value) => !looksLikeCredential(value), "mechanism cannot carry credential-like material");
81
81
  const publicLifecycleIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._~:/+-]{0,499}$/, "lifecycle identity must be a public identifier").refine((value) => !looksLikeCredential(value), "lifecycle identity cannot carry credential-like material");
@@ -1,5 +1,5 @@
1
- import { C as InteractionRequest } from "./index-BONanR44.js";
2
- import { Ci as SandboxEvent, ai as AgentQuestionRequest, ii as AgentApprovalRequirement, oi as AgentRunStatus, pi as DurablePlanSnapshot, si as AgentToolInvocation } from "./types-TxORSYEp.js";
1
+ import { C as InteractionRequest } from "./index-QtEpXSoz.js";
2
+ import { Ci as SandboxEvent, ai as AgentQuestionRequest, ii as AgentApprovalRequirement, oi as AgentRunStatus, pi as DurablePlanSnapshot, si as AgentToolInvocation } from "./types-CTid6zz6.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -30,7 +30,7 @@ function rewrapResponse(original, headers, body = original.body) {
30
30
  //#endregion
31
31
  //#region src/lib/api-request.mjs
32
32
  /** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
33
- const SDK_VERSION = "1.0.375";
33
+ const SDK_VERSION = "1.0.377";
34
34
  function withRequestContextHeaders(response, path, method, body = response.body) {
35
35
  const headers = new Headers(response.headers);
36
36
  headers.set("x-tangle-request-path", path);
@@ -1,3 +1,3 @@
1
- import { i as cliAuthReferenceSchema, n as materializeCliAuthBundle, r as CliAuthReference, t as assertCliAuthReferenceSupported } from "../cli-auth-bundle-Zey9bBZA.js";
1
+ import { i as cliAuthReferenceSchema, n as materializeCliAuthBundle, r as CliAuthReference, t as assertCliAuthReferenceSupported } from "../cli-auth-bundle-DsT-bq8b.js";
2
2
  import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-DreKipF6.js";
3
3
  export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
@@ -1,5 +1,5 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-D4C2d79t-DZCYIq2N.js";
2
- import "../cli-auth-bundle-BBxCQuDN.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-DbnfMJ_Y-CnhSzQoE.js";
2
+ import "../cli-auth-bundle-Kz9EaVAY.js";
3
3
  //#region src/auth/tokens.ts
4
4
  const textEncoder = new TextEncoder();
5
5
  const textDecoder = new TextDecoder();
@@ -1,5 +1,5 @@
1
- import { i as TerminalStreamHandlers } from "./terminal-stream-types-ByWSGqTd.js";
2
- import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-BONanR44.js";
1
+ import { i as TerminalStreamHandlers } from "./terminal-stream-types-BgC3Pwzr.js";
2
+ import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-QtEpXSoz.js";
3
3
 
4
4
  //#region src/interactive-types.d.ts
5
5
  /** Cancellation for an interactive SDK request. */
@@ -1,9 +1,9 @@
1
- import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-D5WLFgHg.js";
2
- import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-CtgxEFAM.js";
1
+ import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-Dq3XGyYd.js";
2
+ import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-ClBOzgJ_.js";
3
3
  import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
4
- import { i as fetchSandboxApi } from "./api-request-CtQFm0hn.js";
4
+ import { i as fetchSandboxApi } from "./api-request-DGud81K_.js";
5
5
  import { z } from "zod";
6
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
6
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
7
7
  /**
8
8
  * Private adapter observation of a provider conversation or resume identity.
9
9
  * The adapter must obtain this ID from its bound provider process or API.
@@ -18,7 +18,7 @@ const NativeSessionObservedEventSchema = z.object({
18
18
  nativeSessionId: z.string().min(1).max(512).regex(/^\S+$/u)
19
19
  }).strict();
20
20
  //#endregion
21
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/environment-observation.js
21
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/environment-observation.js
22
22
  const ObservationProvenanceSchema = z.strictObject({
23
23
  origin: z.enum([
24
24
  "measured",
@@ -210,7 +210,7 @@ z.strictObject({
210
210
  accountUsage: AccountUsageSchema.optional()
211
211
  });
212
212
  //#endregion
213
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-fields.js
213
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-fields.js
214
214
  /**
215
215
  * Field names whose own-key form collides with object internals. A record
216
216
  * parser drops a raw `__proto__` key through the legacy prototype setter before
@@ -391,7 +391,7 @@ z.strictObject({
391
391
  });
392
392
  });
393
393
  //#endregion
394
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-data.js
394
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-data.js
395
395
  const InteractionSecretReferenceSchema = z.strictObject({
396
396
  kind: z.literal("secret_handle"),
397
397
  handleId: boundedIdentifierSchema,
@@ -436,7 +436,7 @@ const InteractionResolutionSchema = z.discriminatedUnion("outcome", [
436
436
  })
437
437
  ]);
438
438
  //#endregion
439
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-permissions.js
439
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-permissions.js
440
440
  const InteractionKind = {
441
441
  /** Agent asks the user to answer/choose. Answer = the chosen field values. */
442
442
  Question: "question",
@@ -463,7 +463,7 @@ const PermissionGrantSchema = z.enum([
463
463
  "deny"
464
464
  ]);
465
465
  //#endregion
466
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-answer-validation.js
466
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-answer-validation.js
467
467
  /**
468
468
  * Validate an accepted answer against its spec. Used by the broker before a
469
469
  * response reaches the adapter, so malformed answers are rejected centrally.
@@ -568,7 +568,7 @@ function validateInteractionAnswer(spec, data) {
568
568
  };
569
569
  }
570
570
  //#endregion
571
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-resolution-validation.js
571
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-resolution-validation.js
572
572
  /**
573
573
  * A declined or cancelled resolution submits no answer, so any secret-typed
574
574
  * field it carries can only be leakage into a transport that retains it.
@@ -606,7 +606,7 @@ function validateResolutionForRequest(request, resolution) {
606
606
  return errors;
607
607
  }
608
608
  //#endregion
609
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.js
609
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.js
610
610
  const interactionOutcomeValues = [
611
611
  "accepted",
612
612
  "declined",
@@ -810,7 +810,7 @@ const InteractionAcknowledgementSchema = z.strictObject({
810
810
  });
811
811
  });
812
812
  //#endregion
813
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/plan.js
813
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/plan.js
814
814
  /**
815
815
  * Credential-free provider correlation committed with the plan. This union is
816
816
  * deliberately closed: adding plan support for another harness requires an
@@ -875,7 +875,7 @@ const AgentExecutionOutcomeSchema = z.discriminatedUnion("type", [z.object({ typ
875
875
  plan: DurablePlanSchema
876
876
  }).strict()]);
877
877
  //#endregion
878
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/runtime-control.js
878
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/runtime-control.js
879
879
  const stableIdSchema = boundedIdentifierSchema;
880
880
  const AgentExactRunControlRefSchema = z.strictObject({
881
881
  runId: stableIdSchema,
@@ -1211,7 +1211,7 @@ function sameAgentExactRun(left, right) {
1211
1211
  return left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.requestDigest === right.requestDigest;
1212
1212
  }
1213
1213
  //#endregion
1214
- //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.js
1214
+ //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.23/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.js
1215
1215
  /**
1216
1216
  * Durable identity of one coding-agent TUI.
1217
1217
  *
@@ -1,7 +1,7 @@
1
- import { a as ProxySecretReceiptSchema, n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-CpFXvaXd.js";
1
+ import { a as ProxySecretReceiptSchema, n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
2
2
  import { z } from "zod";
3
3
  import "@tangle-network/agent-interface/harness-capabilities";
4
- //#region ../../../packages/cli-agent-registry/dist/harness-contracts-QbIgaHxo.mjs
4
+ //#region ../../../packages/cli-agent-registry/dist/harness-contracts-CDmyfcQO.mjs
5
5
  /** The CLI version infra/nix ships for each registered harness. */
6
6
  const HARNESS_CLI_VERSIONS = {
7
7
  "claude-code": "2.1.318",
@@ -410,6 +410,67 @@ var cursor_default = {
410
410
  }
411
411
  }
412
412
  };
413
+ var exo_default = {
414
+ session: {
415
+ kind: "native",
416
+ processProbe: {
417
+ versionCommand: "exo --help",
418
+ kill: ["-f", "(^|/)[e]xo run( |$)"]
419
+ },
420
+ contract: {
421
+ version: 1,
422
+ stores: [{
423
+ root: ".exo",
424
+ files: ["exoharness/agents/*/conversations/{id}/**"],
425
+ write: "json-rewrite",
426
+ shared: false,
427
+ format: "exo.thread-dir"
428
+ }],
429
+ identity: {
430
+ kind: "first-event",
431
+ event: "thread",
432
+ deadlineMs: 6e4
433
+ },
434
+ resume: {
435
+ kind: "args",
436
+ args: ["--thread", "{id}"]
437
+ },
438
+ forbiddenArgs: ["--root"],
439
+ storeEnv: { EXO_HOME: ".exo" },
440
+ evidence: {
441
+ servedModel: "none",
442
+ usage: "none",
443
+ endingError: "none"
444
+ },
445
+ cliVersion: HARNESS_CLI_VERSIONS.exo
446
+ },
447
+ defect: null
448
+ },
449
+ config: {
450
+ kind: "model",
451
+ providerRequiresModel: true,
452
+ keySources: [
453
+ "managed",
454
+ "api-key",
455
+ "api-key-env"
456
+ ],
457
+ baseUrl: "caller-or-managed",
458
+ modelWire: "openai-responses",
459
+ envVars: {
460
+ apiKey: "OPENCODE_MODEL_API_KEY",
461
+ model: "TANGLE_ROUTER_MODEL",
462
+ baseUrl: "TANGLE_ROUTER_BASE_URL"
463
+ }
464
+ },
465
+ lifecycle: {
466
+ runtime: void 0,
467
+ coldCreate: { kind: "required" },
468
+ warmClaim: { kind: "required" },
469
+ parkResume: { kind: "required" },
470
+ branchChild: { kind: "required" },
471
+ killResume: { kind: "required" }
472
+ }
473
+ };
413
474
  var factory_droids_default = {
414
475
  session: {
415
476
  kind: "native",
@@ -1072,6 +1133,7 @@ const HARNESSES = {
1072
1133
  openclaw: openclaw_default,
1073
1134
  nanoclaw: nanoclaw_default,
1074
1135
  nanocode: nanocode_default,
1136
+ exo: exo_default,
1075
1137
  acp: acp_default,
1076
1138
  cursor: cursor_default,
1077
1139
  "cli-base": cli_base_default
@@ -1093,11 +1155,12 @@ const NATIVE_SESSION_CONTRACTS = {
1093
1155
  acp: HARNESSES["acp"].session.contract,
1094
1156
  grok: HARNESSES["grok"].session.contract,
1095
1157
  nanoclaw: HARNESSES["nanoclaw"].session.contract,
1096
- nanocode: HARNESSES["nanocode"].session.contract
1158
+ nanocode: HARNESSES["nanocode"].session.contract,
1159
+ exo: HARNESSES["exo"].session.contract
1097
1160
  };
1098
1161
  HARNESSES["cursor"].session.defect.reason;
1099
1162
  //#endregion
1100
- //#region ../../../packages/cli-agent-registry/dist/backend-types-CTvErz0G.mjs
1163
+ //#region ../../../packages/cli-agent-registry/dist/backend-types-BdQVm6v3.mjs
1101
1164
  /** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
1102
1165
  const BACKEND_TYPE = {
1103
1166
  OPENCODE: "opencode",
@@ -1112,6 +1175,7 @@ const BACKEND_TYPE = {
1112
1175
  OPENCLAW: "openclaw",
1113
1176
  NANOCLAW: "nanoclaw",
1114
1177
  NANOCODE: "nanocode",
1178
+ EXO: "exo",
1115
1179
  ACP: "acp",
1116
1180
  CURSOR: "cursor",
1117
1181
  GROK: "grok",
@@ -1126,7 +1190,7 @@ function isBackendType(value) {
1126
1190
  return BACKEND_TYPE_SET.has(value);
1127
1191
  }
1128
1192
  //#endregion
1129
- //#region ../../../packages/cli-agent-registry/dist/specs-VJFqhQhP.mjs
1193
+ //#region ../../../packages/cli-agent-registry/dist/specs-CbgTbsDQ.mjs
1130
1194
  z.globalRegistry.add(agentProfileSchema, {
1131
1195
  id: "AgentProfile",
1132
1196
  ...agentProfileJsonSchema
@@ -1597,6 +1661,28 @@ const CLI_AGENT_SPECS = [
1597
1661
  cliAuthHome: { kind: "inherit-home" },
1598
1662
  hasCliAuth: false
1599
1663
  },
1664
+ {
1665
+ name: BACKEND_TYPE.EXO,
1666
+ nativeSession: NATIVE_SESSION_CONTRACTS.exo,
1667
+ messageStorageDir: ".exo-agent",
1668
+ displayName: "Exo",
1669
+ description: "Exo agent harness (exoharness/exo). Driven headless via `exo run` on its built-in `basic` loop as a local process in the workspace, over the OpenAI Responses wire the Tangle Router serves.",
1670
+ envVars: HARNESSES["exo"].config.envVars,
1671
+ modelWire: HARNESSES["exo"].config.modelWire,
1672
+ capabilities: {
1673
+ ...BASE_CAPABILITIES,
1674
+ streaming: false,
1675
+ reasoning: false,
1676
+ contextWindow: 2e5,
1677
+ mcp: false,
1678
+ sessions: true,
1679
+ configurable: true,
1680
+ interactions: [],
1681
+ imageInput: false
1682
+ },
1683
+ cliAuthHome: { kind: "inherit-home" },
1684
+ hasCliAuth: false
1685
+ },
1600
1686
  {
1601
1687
  name: BACKEND_TYPE.ACP,
1602
1688
  nativeSession: NATIVE_SESSION_CONTRACTS.acp,
@@ -1684,7 +1770,7 @@ function getSpec(name) {
1684
1770
  return CLI_AGENT_SPECS.find((spec) => spec.name === name);
1685
1771
  }
1686
1772
  //#endregion
1687
- //#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-D4C2d79t.mjs
1773
+ //#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-DbnfMJ_Y.mjs
1688
1774
  const cliAuthReferenceSchema = z.strictObject({
1689
1775
  account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
1690
1776
  secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
@@ -1,4 +1,4 @@
1
- import { L as CliAuthFile } from "./index-BONanR44.js";
1
+ import { L as CliAuthFile } from "./index-QtEpXSoz.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region ../../../packages/cli-agent-registry/dist/public-profile-request-BwBfLgGv.d.mts
@@ -0,0 +1,2 @@
1
+ import "./cli-auth-bundle-DbnfMJ_Y-CnhSzQoE.js";
2
+ export {};
@@ -1,10 +1,10 @@
1
- import { D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-DoPpb1Mp.js";
2
- import { r as agentProfileSchema } from "./profile-schema-CpFXvaXd.js";
3
- import { $ as createRetryDelayMs, A as splitInlineProfileSkills, B as normalizeSandboxCreateReceipt, E as deleteSandbox, G as normalizeConnection, J as normalizeSandboxShape, K as normalizeEgressPolicyFields, Q as awaitCreateResend, U as dateOf, V as normalizeStartupDiagnostics, W as parseLifecycleTimes, X as CAPACITY_ETA_WAIT_MAX_MS, Y as CAPACITY_ETA_MARGIN_MS, Z as DEPLOY_WINDOW_RETRY_MS, at as isRetryableCreateError, d as exportTraceBundle, et as extendableDeadline, g as sandboxLedgerUsd, it as isRateLimitCreateError, j as validateDeferredProfileFileMounts, k as splitInlineProfileFileMounts, n as createSandboxInstanceFromResponse, nt as isCapacityShortageCreateError, q as normalizeProxySecretReceipt, rt as isDeployWindowCreateError, tt as generateIdempotencyKey, z as normalizeCaptureProof } from "./sandbox-D1lI6jKr.js";
1
+ import { D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, M as withProfileHarness, N as withoutCreateOnlyModelFields, T as isBrowserRuntime, k as normalizeRuntimeBackendConfig, o as requestInteractiveSessionToken, x as encodePromptForWire } from "./interactive-controller-D-V0QuRG.js";
2
+ import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
3
+ import { $ as createRetryDelayMs, A as splitInlineProfileSkills, B as normalizeSandboxCreateReceipt, E as deleteSandbox, G as normalizeConnection, J as normalizeSandboxShape, K as normalizeEgressPolicyFields, Q as awaitCreateResend, U as dateOf, V as normalizeStartupDiagnostics, W as parseLifecycleTimes, X as CAPACITY_ETA_WAIT_MAX_MS, Y as CAPACITY_ETA_MARGIN_MS, Z as DEPLOY_WINDOW_RETRY_MS, at as isRetryableCreateError, d as exportTraceBundle, et as extendableDeadline, g as sandboxLedgerUsd, it as isRateLimitCreateError, j as validateDeferredProfileFileMounts, k as splitInlineProfileFileMounts, n as createSandboxInstanceFromResponse, nt as isCapacityShortageCreateError, q as normalizeProxySecretReceipt, rt as isDeployWindowCreateError, tt as generateIdempotencyKey, z as normalizeCaptureProof } from "./sandbox-D5JS9mvO.js";
4
4
  import { C as SandboxError, D as TimeoutError, O as ValidationError, _ as NetworkError, a as readResponseJson, c as AuthError, i as parseResponseError, r as parseErrorResponse, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-vuyhjefs.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
6
6
  import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-oW3_ljoc.js";
7
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-CtQFm0hn.js";
7
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DGud81K_.js";
8
8
  import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-DOSTbUSR.js";
9
9
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
@@ -1249,11 +1249,11 @@ function isLocalSandboxEndpoint(baseUrl) {
1249
1249
  }
1250
1250
  }
1251
1251
  async function resolveLocalCliAuthFiles(backendType) {
1252
- const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BqTDos9d.js");
1252
+ const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-Dut-5etk.js");
1253
1253
  return discoverLocalCliAuthFiles(backendType);
1254
1254
  }
1255
1255
  async function loadLocalCliAuthExpectation(backendType) {
1256
- const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BqTDos9d.js");
1256
+ const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-Dut-5etk.js");
1257
1257
  return describe(backendType);
1258
1258
  }
1259
1259
  /**