@tangle-network/sandbox 0.60.61 → 0.60.74
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-run-outcome-jmKaXys4.d.ts → agent-run-outcome-eZF8RuUN.d.ts} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/backend-types-D6bYbvMB.js +42 -0
- package/dist/{browser-interactive-control-controller-JUW3gOGH.d.ts → browser-interactive-control-controller-rpTbyvAS.d.ts} +1 -1
- package/dist/{chunked-upload-BklCn3Li.js → chunked-upload-CDrLMO8N.js} +1 -1
- package/dist/{chunked-upload-file-Cp-iWsWN.js → chunked-upload-file-BwbqHWUX.js} +1 -1
- package/dist/cli-auth-bundle-cSJjPeFF.js +1543 -0
- package/dist/{client-4G99U4L2.d.ts → client-BujziOIc.d.ts} +10 -6
- package/dist/{client-BuWj2tMd.js → client-C7Y6waVg.js} +29 -10
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-B2g1j2ey.js → collaboration-CTbq2OYh.js} +1 -1
- package/dist/core.d.ts +7 -7
- package/dist/core.js +3 -3
- package/dist/{errors-CBy-dqOv.d.ts → errors-Bj5DL2ge.d.ts} +61 -2
- package/dist/{errors-iWIsey1D.js → errors-C8YcR1BL.js} +31 -1
- package/dist/{index-ClxFpHIl.d.ts → index-CP9a77KP.d.ts} +2 -2
- package/dist/index.d.ts +14 -15
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-DaYmUCO_.js → interactive-controller-BFbCkMq4.js} +213 -21
- package/dist/{lines-Bm8NULkl.d.ts → lines-_rRdwxof.d.ts} +10 -2
- package/dist/lines.d.ts +2 -2
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-CZjO7FeG.js → local-cli-auth-CBV7Vjk5.js} +1 -1
- package/dist/{managed-process-Ddx8dULu.d.ts → managed-process-CPHeQONO.d.ts} +1 -1
- package/dist/{preview-DqKY0kxQ.d.ts → preview-n41aOXde.d.ts} +3 -3
- package/dist/runtime.d.ts +5 -6
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-C6BLOrcg.js → sandbox-DGoQMthD.js} +678 -69
- package/dist/{sandbox-CIK4LMS-.d.ts → sandbox-DfSqEr3f.d.ts} +70 -17
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CvB_QTGV.js → tangle-vyeLQFFg.js} +2 -2
- package/dist/{terminal-stream-CV1pMSKC.d.ts → terminal-stream-jdYomM1m.d.ts} +123 -4
- package/dist/{types-CS_FytQM.d.ts → types-Mi83KD0D.d.ts} +194 -21
- package/package.json +5 -5
- package/dist/backend-types-C7b_Gpa0.js +0 -59
- package/dist/cli-auth-bundle-BWNakb5F.js +0 -1007
- package/dist/interactive-controller-DNbLzamS.d.ts +0 -40
- /package/dist/{index-BgmgfYZZ.d.ts → index-DO7GVpk_.d.ts} +0 -0
- /package/dist/{index-DHuHjNie.d.ts → index-DZ27pdB8.d.ts} +0 -0
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-DfSqEr3f.js";
|
|
2
|
+
import { $r as SandboxFleetParent, D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, ia as SessionListOptions, k as CodeResultPart, na as SessionInfo, po as BackendType } from "../types-Mi83KD0D.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BujziOIc.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-n41aOXde.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
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DjryqUiY.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-BFbCkMq4.js";
|
|
3
|
+
import { g as StateError, u as NotFoundError, y as ValidationError } from "../errors-C8YcR1BL.js";
|
|
4
|
+
import { n as Sandbox } from "../client-C7Y6waVg.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-DGoQMthD.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-n41aOXde.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 {
|
|
1
|
+
import { Pr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-Mi83KD0D.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-ODe06Ts7.js";
|
|
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-
|
|
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-DO7GVpk_.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,4 +1,4 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-cSJjPeFF.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region ../../../packages/runtime-contracts/dist/backend-types.js
|
|
3
|
+
/**
|
|
4
|
+
* This distribution's backend vocabulary, declared positively. The shared
|
|
5
|
+
* Interface vocabulary also contains historical and differently hosted harnesses;
|
|
6
|
+
* knowing one upstream must not require installing it here or make this module
|
|
7
|
+
* throw at import time. Keep old wire identities readable when retiring execution.
|
|
8
|
+
*
|
|
9
|
+
* Gemini is not a direct Sandbox backend; it is available only through a backing
|
|
10
|
+
* transport. Adding it upstream never implicitly makes it dispatchable here.
|
|
11
|
+
* The spec/adapter composition must still prove every backend it actually enables.
|
|
12
|
+
*/
|
|
13
|
+
const BACKEND_TYPE = {
|
|
14
|
+
OPENCODE: "opencode",
|
|
15
|
+
CLAUDE_CODE: "claude-code",
|
|
16
|
+
KIMI_CODE: "kimi-code",
|
|
17
|
+
CODEX: "codex",
|
|
18
|
+
AMP: "amp",
|
|
19
|
+
FACTORY_DROIDS: "factory-droids",
|
|
20
|
+
PI: "pi",
|
|
21
|
+
PRIME: "prime",
|
|
22
|
+
HERMES: "hermes",
|
|
23
|
+
FORGE: "forge",
|
|
24
|
+
OPENCLAW: "openclaw",
|
|
25
|
+
NANOCLAW: "nanoclaw",
|
|
26
|
+
ACP: "acp",
|
|
27
|
+
CURSOR: "cursor",
|
|
28
|
+
CLI_BASE: "cli-base"
|
|
29
|
+
};
|
|
30
|
+
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
31
|
+
const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
32
|
+
const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
33
|
+
const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
|
|
34
|
+
function isBackendType(value) {
|
|
35
|
+
return BACKEND_TYPE_SET.has(value);
|
|
36
|
+
}
|
|
37
|
+
function parseBackendType(value) {
|
|
38
|
+
if (!isBackendType(value)) throw new Error(`Unknown backend type "${value}". Expected one of: ${ALL_BACKEND_TYPES.join(", ")}`);
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { parseBackendType as i, BACKEND_TYPE as n, backendTypeSchema as r, ALL_BACKEND_TYPES as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as TerminalStreamHandlers } from "./terminal-stream-jdYomM1m.js";
|
|
2
2
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionStatus } from "@tangle-network/agent-interface";
|
|
3
3
|
import { AgentInteractiveSessionControlClaim as AgentInteractiveSessionControlClaim$1, AgentInteractiveSessionControlClaimRequest as AgentInteractiveSessionControlClaimRequest$1, AgentInteractiveSessionRef as AgentInteractiveSessionRef$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as parseErrorResponse, f as QuotaError, h as ServerError, l as NetworkError, m as SandboxError, v as TimeoutError } from "./errors-C8YcR1BL.js";
|
|
2
2
|
//#region ../../../packages/runtime-contracts/dist/file-limits.js
|
|
3
3
|
const MEBIBYTE$1 = 1024 * 1024;
|
|
4
4
|
10 * MEBIBYTE$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
1
|
+
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-CDrLMO8N.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { open } from "node:fs/promises";
|
|
4
4
|
//#region src/lib/chunked-upload-file.ts
|