@tangle-network/sandbox 1.0.462 → 1.0.464
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-C2KLuq0G.js → agent-execution-preparation-B8PJuIsN.js} +4 -4
- package/dist/{agent-execution-preparation-receipt-NvWi9tgX.js → agent-execution-preparation-receipt-Cc9RZhlS.js} +5 -5
- package/dist/{agent-run-outcome-BXdqD-4_.d.ts → agent-run-outcome-DCVKc99v.d.ts} +2 -2
- package/dist/{api-request-BcDtKug5.js → api-request-DFpcKfrO.js} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-DPvD3aJz.js → browser-interactive-control-controller-C81_DzHi.js} +14 -14
- package/dist/{browser-interactive-control-controller-BtP7gGeC.d.ts → browser-interactive-control-controller-DPZh8xys.d.ts} +2 -2
- package/dist/{cli-auth-bundle-CQCj_DOW-DdfGd3Qs.js → cli-auth-bundle-CQCj_DOW-Dh_yUYBo.js} +1 -1
- package/dist/{cli-auth-bundle-a7NYzsfF.d.ts → cli-auth-bundle-Dx3AAWdJ.d.ts} +1 -1
- package/dist/cli-auth-bundle-RoFICrlP.js +2 -0
- package/dist/{client-2oiz9Xk1.js → client-BcZS5SYI.js} +6 -6
- package/dist/{client-CJRXapXV.d.ts → client-KvpvA_oV.d.ts} +752 -772
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-CbEnVU0n.js → collaboration-BQp8Dqeq.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{direct-http2-CzeIT93P.js → direct-http2-BqJVkite.js} +7 -1
- package/dist/gpu-lease/index.js +1 -1
- package/dist/{harness-4D0kk6wY.js → harness-QlDF8rzb.js} +9 -11
- package/dist/{index-DgyvxChf.d.ts → index-CWzm0-E3.d.ts} +7 -7
- package/dist/{index--9j_Jlf_.d.ts → index-V_pXOH3B.d.ts} +89 -95
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Bbuy-2bQ.d.ts → interactive-controller-DfZ2KrsK.d.ts} +4 -4
- package/dist/{interactive-controller-Ck3l0I-k.js → interactive-controller-vk_udWBX.js} +5 -5
- package/dist/{lines-CdX7JEyC.d.ts → lines-DfLFLZ7b.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-BnPW3Zv_.js → local-cli-auth-D_Dl4Jaa.js} +1 -1
- package/dist/{mcp-local-otBlLlXK.js → mcp-local-ClDVsi69.js} +2 -2
- package/dist/{preview-WqDvQI7T.d.ts → preview-Dhngufpf.d.ts} +3 -3
- package/dist/{profile-schema-B48XymtK.js → profile-schema-BHeC7cOf.js} +27 -20
- package/dist/{public-templates-0FkkJAmB.d.ts → public-templates-CylTbD2k.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-ChmEq0Fx.js → sandbox-BvB4theH.js} +12 -12
- package/dist/{select-seat-W4XkdO9H.js → select-seat-DQpFCkQJ.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-B9bFnhfQ.js → tangle-TCymEYrf.js} +2 -2
- package/dist/{terminal-stream-types-CGZs6PVs.d.ts → terminal-stream-types-BItnV5cg.d.ts} +1 -1
- package/dist/{types-x65T-ZX2.d.ts → types-DfsD55et.d.ts} +6 -3
- package/package.json +7 -7
- package/dist/cli-auth-bundle-C8Xc8YKk.js +0 -2
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 { Ga as CodeLanguage, Ka as CodeResultPart, Wa as CodeExecutionResult, ga as BackendConfig, hr as CodeExecutionOptions, ia as SessionListOptions, io as BackendType, na as SessionInfo, vt as SandboxFleetParent } 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-CWzm0-E3.js";
|
|
2
|
+
import { Ga as CodeLanguage, Ka as CodeResultPart, Wa as CodeExecutionResult, ga as BackendConfig, hr as CodeExecutionOptions, ia as SessionListOptions, io as BackendType, na as SessionInfo, vt as SandboxFleetParent } from "../types-DfsD55et.js";
|
|
3
|
+
import { t as Sandbox } from "../client-KvpvA_oV.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-Dhngufpf.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-ClDVsi69.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-vk_udWBX.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-BvB4theH.js";
|
|
4
4
|
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-BY7a-Hpw.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-BcZS5SYI.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-Dhngufpf.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-BHeC7cOf.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-ClDVsi69.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-C2KLuq0G.js → agent-execution-preparation-B8PJuIsN.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1
|
+
import { d as isCanonicalJsonValue, s as canonicalCandidateDigest } from "./harness-QlDF8rzb.js";
|
|
2
|
+
import { i as recordedAgentProfileSchema, s as canonicalAgentProfileValue } from "./profile-schema-BHeC7cOf.js";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.28/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,
|
|
@@ -10,7 +10,7 @@ import { o as canonicalAgentProfileValue, r as agentProfileSchema } from "./prof
|
|
|
10
10
|
* references only after this public identity is fixed.
|
|
11
11
|
*/
|
|
12
12
|
function canonicalAgentProfileDigest(profile) {
|
|
13
|
-
const material = canonicalAgentProfileValue(
|
|
13
|
+
const material = canonicalAgentProfileValue(recordedAgentProfileSchema.parse(profile));
|
|
14
14
|
if (material === void 0 || !isCanonicalJsonValue(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
|
|
15
15
|
return canonicalCandidateDigest(material);
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as canonicalCandidateJson, d as isCanonicalJsonValue, g as omitTopLevelDigest, h as looksLikeCredential, m as isWellFormedUnicode, n as recordedHarnessTypeSchema, r as REASONING_EFFORTS, s as canonicalCandidateDigest, v as sha256DigestSchema } from "./harness-QlDF8rzb.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.28/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.28/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
|
*
|
|
@@ -76,7 +76,7 @@ const AGENT_PROFILE_MATERIALIZATION_AXES = [
|
|
|
76
76
|
value: (profile) => profile.model?.[property]
|
|
77
77
|
}))];
|
|
78
78
|
//#endregion
|
|
79
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
79
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.28/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation-receipt.js
|
|
80
80
|
const nonBlankStringSchema = z.string().refine((value) => value.trim().length > 0, "value cannot be blank");
|
|
81
81
|
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");
|
|
82
82
|
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");
|
|
@@ -160,7 +160,7 @@ const agentExecutionPreparationReceiptSchema = z.strictObject({
|
|
|
160
160
|
authoredProfileDigest: sha256DigestSchema,
|
|
161
161
|
effectiveProfileDigest: sha256DigestSchema,
|
|
162
162
|
backend: nonBlankStringSchema.max(200),
|
|
163
|
-
harness:
|
|
163
|
+
harness: recordedHarnessTypeSchema,
|
|
164
164
|
harnessVersion: nonBlankStringSchema.max(200),
|
|
165
165
|
resolvedModel: z.strictObject({
|
|
166
166
|
requested: z.string().max(500),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as InteractionRequest } from "./index
|
|
2
|
-
import { Ei as SandboxEvent, ci as AgentQuestionRequest, gi as DurablePlanSnapshot, li as AgentRunStatus, si as AgentApprovalRequirement, ui as AgentToolInvocation } from "./types-
|
|
1
|
+
import { C as InteractionRequest } from "./index-V_pXOH3B.js";
|
|
2
|
+
import { Ei as SandboxEvent, ci as AgentQuestionRequest, gi as DurablePlanSnapshot, li as AgentRunStatus, si as AgentApprovalRequirement, ui as AgentToolInvocation } from "./types-DfsD55et.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.464";
|
|
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-Dx3AAWdJ.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-a-rRAtwL.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-CQCj_DOW-
|
|
2
|
-
import "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-CQCj_DOW-Dh_yUYBo.js";
|
|
2
|
+
import "../cli-auth-bundle-RoFICrlP.js";
|
|
3
3
|
//#region src/auth/tokens.ts
|
|
4
4
|
const textEncoder = new TextEncoder();
|
|
5
5
|
const textDecoder = new TextDecoder();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-
|
|
1
|
+
import { C as boundedEventContentRecordSchema, D as boundedJsonSchema, E as boundedJsonRecordSchema, O as boundedStringSchema, S as boundedEventContentJsonSchema, T as boundedIdentifierSchema, k as isBoundedEventContentJson, s as canonicalCandidateDigest, v as sha256DigestSchema, w as boundedEventContentStringSchema, x as CONTRACT_MAX_STRING_LENGTH, y as CONTRACT_MAX_ARRAY_LENGTH } from "./harness-QlDF8rzb.js";
|
|
2
|
+
import { t as agentExecutionPreparationReceiptSchema } from "./agent-execution-preparation-receipt-Cc9RZhlS.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-DFpcKfrO.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.28/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.28/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.28/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.28/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.28/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.28/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.28/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.28/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.28/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.28/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.28/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,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-BItnV5cg.js";
|
|
2
|
+
import { a as AgentInteractiveSessionControlClaim, d as AgentInteractiveSessionStatus, i as AgentInteractiveSessionAttach, o as AgentInteractiveSessionControlClaimAcknowledgement, s as AgentInteractiveSessionControlClaimRequest, u as AgentInteractiveSessionRef } from "./index-V_pXOH3B.js";
|
|
3
3
|
|
|
4
4
|
//#region src/interactive-types.d.ts
|
|
5
5
|
/** Cancellation for an interactive SDK request. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as agentProfileJsonSchema, o as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-BHeC7cOf.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
4
4
|
//#region ../../../packages/cli-agent-registry/dist/harness-contracts-DJrQ46jw.mjs
|
|
@@ -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-
|
|
2
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
3
|
-
import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, nt as SANDBOX_CREATE_DEADLINE_HEADER, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-
|
|
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-vk_udWBX.js";
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-BHeC7cOf.js";
|
|
3
|
+
import { $ as isRateLimitCreateError, B as normalizeConnection, E as validateDeferredProfileFileMounts, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as createRetryDelayMs, K as DEPLOY_WINDOW_RETRY_MS, P as normalizeCaptureProof, Q as isDeployWindowCreateError, R as dateOf, T as splitInlineProfileSkills, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as generateIdempotencyKey, Y as extendableDeadline, Z as isCapacityShortageCreateError, d as sandboxLedgerUsd, et as isRetryableCreateError, n as createSandboxInstanceFromResponse, nt as SANDBOX_CREATE_DEADLINE_HEADER, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-BvB4theH.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-BY7a-Hpw.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-
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-DFpcKfrO.js";
|
|
8
8
|
import { l as SANDBOX_AGENT_HOME } 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";
|
|
@@ -1202,11 +1202,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1205
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1205
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-D_Dl4Jaa.js");
|
|
1206
1206
|
return discoverLocalCliAuthFiles(backendType);
|
|
1207
1207
|
}
|
|
1208
1208
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1209
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1209
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-D_Dl4Jaa.js");
|
|
1210
1210
|
return describe(backendType);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|