@tangle-network/sandbox 1.0.362 → 1.0.364
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.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-execution-preparation-CatenlMs.js → agent-execution-preparation-BhQ48V9p.js} +3 -3
- package/dist/{agent-execution-preparation-receipt-BFGr2nAM.js → agent-execution-preparation-receipt-CtgxEFAM.js} +4 -4
- package/dist/{agent-run-outcome-BtjH6dyu.d.ts → agent-run-outcome-CknrV3ti.d.ts} +2 -2
- package/dist/{api-request-BdTYfB8u.js → api-request-CkWYsj-R.js} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-45o0sl7B.d.ts → browser-interactive-control-controller-Bn-BjzfG.d.ts} +2 -2
- package/dist/{browser-interactive-control-controller-CTz0Y1-f.js → browser-interactive-control-controller-DkGvy9Nv.js} +14 -14
- package/dist/cli-auth-bundle-BWjzJnzs.js +2 -0
- package/dist/{cli-auth-bundle-B4SGUcYM-B5SuPHb_.js → cli-auth-bundle-DD2Pk8DR-DJ060J_J.js} +96 -7
- package/dist/{cli-auth-bundle-DTAVpYLy.d.ts → cli-auth-bundle-YOchLsUH.d.ts} +1 -1
- package/dist/{client-D164Xl4l.d.ts → client-BJJ6SWxX.d.ts} +36 -6
- package/dist/{client-CV7peUO7.js → client-CQzg0BDY.js} +6 -6
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-C3_suwKA.js → collaboration-CWNLpWmU.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{file-download-CdYQq4-A.js → file-download-Di-P3rqM.js} +1 -1
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{harness-DW2I_kp7.js → harness-D5WLFgHg.js} +6 -5
- package/dist/{index-Dxxq7J79.d.ts → index-M0we6p4e.d.ts} +22 -15
- package/dist/{index-DHtNG3FT.d.ts → index-TjL2jLDU.d.ts} +7 -7
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/intelligence/index.js +2 -2
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Eb7GnX4u.d.ts → interactive-controller-CplK0quE.d.ts} +4 -4
- package/dist/{interactive-controller-IYFjUPWb.js → interactive-controller-kwJ_pT5-.js} +7 -6
- package/dist/{lines-CRgDflYa.d.ts → lines-Bm4goAoE.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-CZBHxG9t.js → local-cli-auth-DrYGFcad.js} +1 -1
- package/dist/{mcp-local-Mm2_h_08.js → mcp-local-JlM6gWBR.js} +2 -2
- package/dist/{preview-CMvkk3F1.d.ts → preview-B53rn00t.d.ts} +3 -3
- package/dist/{profile-schema-C_MbI9mE.js → profile-schema-CpFXvaXd.js} +11 -11
- package/dist/{public-templates-D_Iihr73.d.ts → public-templates-CKTbZRM-.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-DM5sTcFG.js → raw-evidence-archive-DYaA-RPM.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-DUeHCoOV.js → sandbox-BzIpECKU.js} +79 -1673
- package/dist/{select-seat-8g9DtFO5.js → select-seat-CzZkbxE8.js} +4 -4
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DkuxizDi.js → tangle-Sk9UFIpt.js} +2 -2
- package/dist/{terminal-stream-types-CygV-MYy.d.ts → terminal-stream-types-DhIlRpuF.d.ts} +28 -1
- package/dist/{types-9ZHVgluv.d.ts → types-DyYgdFKO.d.ts} +4 -3
- package/package.json +5 -5
- package/dist/cli-auth-bundle-vWBeEFSk.js +0 -2
- /package/dist/{sha2-BIoWepwn.js → sha2--74Uh_Sg.js} +0 -0
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
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-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-TjL2jLDU.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-DyYgdFKO.js";
|
|
3
|
+
import { t as Sandbox } from "../client-BJJ6SWxX.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-B53rn00t.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";
|
package/dist/agent/index.js
CHANGED
|
@@ -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-
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-JlM6gWBR.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-kwJ_pT5-.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-BzIpECKU.js";
|
|
4
4
|
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-vuyhjefs.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-CQzg0BDY.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -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-
|
|
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-B53rn00t.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 };
|
package/dist/agent/preview.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "../profile-schema-
|
|
1
|
+
import { r as agentProfileSchema } from "../profile-schema-CpFXvaXd.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-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-JlM6gWBR.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,
|
package/dist/{agent-execution-preparation-CatenlMs.js → agent-execution-preparation-BhQ48V9p.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as canonicalCandidateDigest, u as isCanonicalJsonValue } from "./harness-
|
|
2
|
-
import { o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
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
|
|
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-
|
|
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";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
14
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
78
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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-
|
|
2
|
-
import { Ci as SandboxEvent, ai as AgentQuestionRequest, ii as AgentApprovalRequirement, oi as AgentRunStatus, pi as DurablePlanSnapshot, si as AgentToolInvocation } from "./types-
|
|
1
|
+
import { C as InteractionRequest } from "./index-M0we6p4e.js";
|
|
2
|
+
import { Ci as SandboxEvent, ai as AgentQuestionRequest, ii as AgentApprovalRequirement, oi as AgentRunStatus, pi as DurablePlanSnapshot, si as AgentToolInvocation } from "./types-DyYgdFKO.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.
|
|
33
|
+
const SDK_VERSION = "1.0.364";
|
|
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);
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as cliAuthReferenceSchema, n as materializeCliAuthBundle, r as CliAuthReference, t as assertCliAuthReferenceSupported } from "../cli-auth-bundle-
|
|
1
|
+
import { i as cliAuthReferenceSchema, n as materializeCliAuthBundle, r as CliAuthReference, t as assertCliAuthReferenceSupported } from "../cli-auth-bundle-YOchLsUH.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 };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
2
|
-
import "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-DD2Pk8DR-DJ060J_J.js";
|
|
2
|
+
import "../cli-auth-bundle-BWjzJnzs.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-
|
|
2
|
-
import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-
|
|
1
|
+
import { i as TerminalStreamHandlers } from "./terminal-stream-types-DhIlRpuF.js";
|
|
2
|
+
import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-M0we6p4e.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-
|
|
2
|
-
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-
|
|
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";
|
|
3
3
|
import { t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
4
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-CkWYsj-R.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
6
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
21
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
213
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
394
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
439
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
466
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
571
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
609
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
813
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
878
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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.
|
|
1214
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.22/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-
|
|
1
|
+
import { a as ProxySecretReceiptSchema, n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-CpFXvaXd.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-
|
|
4
|
+
//#region ../../../packages/cli-agent-registry/dist/harness-contracts-cHs_i_r9.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",
|
|
@@ -17,7 +17,8 @@ const HARNESS_CLI_VERSIONS = {
|
|
|
17
17
|
openclaw: "2026.11.1",
|
|
18
18
|
acp: "claude-agent-acp 0.101.0; codex-acp 0.16.0; gemini-cli 0.67.0",
|
|
19
19
|
grok: "0.1.220",
|
|
20
|
-
nanoclaw: "2.1.54"
|
|
20
|
+
nanoclaw: "2.1.54",
|
|
21
|
+
nanocode: "0.7.0"
|
|
21
22
|
};
|
|
22
23
|
const CLAUDE_PROJECTS = {
|
|
23
24
|
root: ".claude/projects",
|
|
@@ -721,6 +722,69 @@ var nanoclaw_default = {
|
|
|
721
722
|
killResume: { kind: "required" }
|
|
722
723
|
}
|
|
723
724
|
};
|
|
725
|
+
var nanocode_default = {
|
|
726
|
+
session: {
|
|
727
|
+
kind: "native",
|
|
728
|
+
processProbe: {
|
|
729
|
+
versionCommand: "nc --version",
|
|
730
|
+
kill: ["-f", "(^|/)[n]anocode( |$)"]
|
|
731
|
+
},
|
|
732
|
+
contract: {
|
|
733
|
+
version: 1,
|
|
734
|
+
stores: [{
|
|
735
|
+
root: ".nanocode",
|
|
736
|
+
files: ["**/{id}.jsonl", "**/{id}/**"],
|
|
737
|
+
write: "jsonl-append",
|
|
738
|
+
shared: false,
|
|
739
|
+
format: "nanocode.session-jsonl"
|
|
740
|
+
}],
|
|
741
|
+
identity: {
|
|
742
|
+
kind: "first-event",
|
|
743
|
+
event: "session",
|
|
744
|
+
deadlineMs: 6e4
|
|
745
|
+
},
|
|
746
|
+
resume: {
|
|
747
|
+
kind: "args",
|
|
748
|
+
args: ["--resume", "{id}"]
|
|
749
|
+
},
|
|
750
|
+
forbiddenArgs: [],
|
|
751
|
+
storeEnv: { NANOCODE_HOME: ".nanocode" },
|
|
752
|
+
evidence: {
|
|
753
|
+
servedModel: "none",
|
|
754
|
+
usage: "none",
|
|
755
|
+
endingError: "none"
|
|
756
|
+
},
|
|
757
|
+
cliVersion: HARNESS_CLI_VERSIONS.nanocode
|
|
758
|
+
},
|
|
759
|
+
defect: null
|
|
760
|
+
},
|
|
761
|
+
config: {
|
|
762
|
+
kind: "model",
|
|
763
|
+
providerRequiresModel: true,
|
|
764
|
+
keySources: [
|
|
765
|
+
"managed",
|
|
766
|
+
"api-key",
|
|
767
|
+
"api-key-env"
|
|
768
|
+
],
|
|
769
|
+
baseUrl: "caller-or-managed",
|
|
770
|
+
modelWire: "openai-responses",
|
|
771
|
+
envVars: {
|
|
772
|
+
apiKey: "NANOCODE_OPENAI_API_KEY",
|
|
773
|
+
model: "NANOCODE_MODEL",
|
|
774
|
+
authMode: "NANOCODE_AUTH_MODE",
|
|
775
|
+
baseUrl: "NANOCODE_OPENAI_BASE_URL",
|
|
776
|
+
extras: { NANOCODE_MODELS_URL: { parser: "string" } }
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
lifecycle: {
|
|
780
|
+
runtime: void 0,
|
|
781
|
+
coldCreate: { kind: "required" },
|
|
782
|
+
warmClaim: { kind: "required" },
|
|
783
|
+
parkResume: { kind: "required" },
|
|
784
|
+
branchChild: { kind: "required" },
|
|
785
|
+
killResume: { kind: "required" }
|
|
786
|
+
}
|
|
787
|
+
};
|
|
724
788
|
var openclaw_default = {
|
|
725
789
|
session: {
|
|
726
790
|
kind: "native",
|
|
@@ -1009,6 +1073,7 @@ const HARNESSES = {
|
|
|
1009
1073
|
hermes: hermes_default,
|
|
1010
1074
|
openclaw: openclaw_default,
|
|
1011
1075
|
nanoclaw: nanoclaw_default,
|
|
1076
|
+
nanocode: nanocode_default,
|
|
1012
1077
|
acp: acp_default,
|
|
1013
1078
|
cursor: cursor_default,
|
|
1014
1079
|
"cli-base": cli_base_default
|
|
@@ -1029,11 +1094,12 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
1029
1094
|
openclaw: HARNESSES["openclaw"].session.contract,
|
|
1030
1095
|
acp: HARNESSES["acp"].session.contract,
|
|
1031
1096
|
grok: HARNESSES["grok"].session.contract,
|
|
1032
|
-
nanoclaw: HARNESSES["nanoclaw"].session.contract
|
|
1097
|
+
nanoclaw: HARNESSES["nanoclaw"].session.contract,
|
|
1098
|
+
nanocode: HARNESSES["nanocode"].session.contract
|
|
1033
1099
|
};
|
|
1034
1100
|
HARNESSES["cursor"].session.defect.reason;
|
|
1035
1101
|
//#endregion
|
|
1036
|
-
//#region ../../../packages/cli-agent-registry/dist/backend-types-
|
|
1102
|
+
//#region ../../../packages/cli-agent-registry/dist/backend-types-CTvErz0G.mjs
|
|
1037
1103
|
/** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
|
|
1038
1104
|
const BACKEND_TYPE = {
|
|
1039
1105
|
OPENCODE: "opencode",
|
|
@@ -1047,6 +1113,7 @@ const BACKEND_TYPE = {
|
|
|
1047
1113
|
HERMES: "hermes",
|
|
1048
1114
|
OPENCLAW: "openclaw",
|
|
1049
1115
|
NANOCLAW: "nanoclaw",
|
|
1116
|
+
NANOCODE: "nanocode",
|
|
1050
1117
|
ACP: "acp",
|
|
1051
1118
|
CURSOR: "cursor",
|
|
1052
1119
|
GROK: "grok",
|
|
@@ -1061,7 +1128,7 @@ function isBackendType(value) {
|
|
|
1061
1128
|
return BACKEND_TYPE_SET.has(value);
|
|
1062
1129
|
}
|
|
1063
1130
|
//#endregion
|
|
1064
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1131
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-Bmcyqg67.mjs
|
|
1065
1132
|
z.globalRegistry.add(agentProfileSchema, {
|
|
1066
1133
|
id: "AgentProfile",
|
|
1067
1134
|
...agentProfileJsonSchema
|
|
@@ -1510,6 +1577,28 @@ const CLI_AGENT_SPECS = [
|
|
|
1510
1577
|
reason: "NanoClaw runs its agent in Docker, which Tangle sandboxes do not offer. Use another harness, such as opencode."
|
|
1511
1578
|
}
|
|
1512
1579
|
},
|
|
1580
|
+
{
|
|
1581
|
+
name: BACKEND_TYPE.NANOCODE,
|
|
1582
|
+
nativeSession: NATIVE_SESSION_CONTRACTS.nanocode,
|
|
1583
|
+
messageStorageDir: ".nanocode-agent",
|
|
1584
|
+
displayName: "Nanocode",
|
|
1585
|
+
description: "Nanocode native Rust coding agent (nanocodexyz/nanocode). Driven headless via `nc exec` on its default codex harness, which speaks the OpenAI Responses wire the Tangle Router serves. The reply streams as plaintext on stdout; the session id arrives on stderr.",
|
|
1586
|
+
envVars: HARNESSES["nanocode"].config.envVars,
|
|
1587
|
+
modelWire: HARNESSES["nanocode"].config.modelWire,
|
|
1588
|
+
capabilities: {
|
|
1589
|
+
...BASE_CAPABILITIES,
|
|
1590
|
+
streaming: false,
|
|
1591
|
+
reasoning: false,
|
|
1592
|
+
contextWindow: 2e5,
|
|
1593
|
+
mcp: false,
|
|
1594
|
+
sessions: true,
|
|
1595
|
+
configurable: true,
|
|
1596
|
+
interactions: [],
|
|
1597
|
+
imageInput: false
|
|
1598
|
+
},
|
|
1599
|
+
cliAuthHome: { kind: "inherit-home" },
|
|
1600
|
+
hasCliAuth: false
|
|
1601
|
+
},
|
|
1513
1602
|
{
|
|
1514
1603
|
name: BACKEND_TYPE.ACP,
|
|
1515
1604
|
nativeSession: NATIVE_SESSION_CONTRACTS.acp,
|
|
@@ -1597,7 +1686,7 @@ function getSpec(name) {
|
|
|
1597
1686
|
return CLI_AGENT_SPECS.find((spec) => spec.name === name);
|
|
1598
1687
|
}
|
|
1599
1688
|
//#endregion
|
|
1600
|
-
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-
|
|
1689
|
+
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-DD2Pk8DR.mjs
|
|
1601
1690
|
const cliAuthReferenceSchema = z.strictObject({
|
|
1602
1691
|
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
1603
1692
|
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|