@tangle-network/sandbox 1.0.403 → 1.0.405
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.js +4 -4
- package/dist/agent/preview.js +1 -1
- package/dist/{api-request-BtdGLdn8.js → api-request-QoZxqFp2.js} +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-AOC_4qXy.js → browser-interactive-control-controller-DZUpoo7v.js} +1 -1
- package/dist/{cli-auth-bundle-DjZNb91v-BedTcE1i.js → cli-auth-bundle-DuY2E2FD-7ByGEdOv.js} +13 -11
- package/dist/cli-auth-bundle-Vc_wO6gp.js +2 -0
- package/dist/{client-DN1_Se7g.js → client-DDRntWEP.js} +5 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration--LU3waFI.js → collaboration-Cd7Illwu.js} +1 -1
- package/dist/core.js +3 -3
- package/dist/gpu-lease/index.js +1 -1
- package/dist/index.js +8 -8
- package/dist/intelligence/index.js +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-Cv7OIT2N.js → interactive-controller-C-uPXQE3.js} +16 -5
- package/dist/{local-cli-auth-D-TA4MWu.js → local-cli-auth-TXcQXucY.js} +1 -1
- package/dist/{mcp-local-BQUj7P-1.js → mcp-local-Bs5ovp3a.js} +2 -2
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-Cz_HdA6i.js → sandbox-Cnw50f78.js} +12 -5
- package/dist/{select-seat-BklvdGVd.js → select-seat-BHFGt_DO.js} +2 -2
- package/dist/select-seat-command.js +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-C6iVYC-B.js → tangle-CHhpDzae.js} +2 -2
- package/package.json +4 -4
- package/dist/cli-auth-bundle-DG9MCKLk.js +0 -2
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-Bs5ovp3a.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-C-uPXQE3.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-Cnw50f78.js";
|
|
4
4
|
import { O as ValidationError, T as StateError, v as NotFoundError } from "../errors-2ZiIsHfC.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-DDRntWEP.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.js
CHANGED
|
@@ -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-Bs5ovp3a.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,
|
|
@@ -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.405";
|
|
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.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-DuY2E2FD-7ByGEdOv.js";
|
|
2
|
+
import "../cli-auth-bundle-Vc_wO6gp.js";
|
|
3
3
|
//#region src/auth/tokens.ts
|
|
4
4
|
const textEncoder = new TextEncoder();
|
|
5
5
|
const textDecoder = new TextDecoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
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-
|
|
4
|
+
import { i as fetchSandboxApi } from "./api-request-QoZxqFp2.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
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
|
/**
|
|
@@ -1160,7 +1160,7 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
HARNESSES["cursor"].session.defect.reason;
|
|
1162
1162
|
//#endregion
|
|
1163
|
-
//#region ../../../packages/cli-agent-registry/dist/backend-types-
|
|
1163
|
+
//#region ../../../packages/cli-agent-registry/dist/backend-types-DOAfrnMJ.mjs
|
|
1164
1164
|
/** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
|
|
1165
1165
|
const BACKEND_TYPE = {
|
|
1166
1166
|
OPENCODE: "opencode",
|
|
@@ -1184,13 +1184,21 @@ const BACKEND_TYPE = {
|
|
|
1184
1184
|
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
1185
1185
|
const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
1186
1186
|
z.enum(ALL_BACKEND_TYPES);
|
|
1187
|
+
new Set([
|
|
1188
|
+
BACKEND_TYPE.OPENCODE,
|
|
1189
|
+
BACKEND_TYPE.CLAUDE_CODE,
|
|
1190
|
+
BACKEND_TYPE.KIMI_CODE,
|
|
1191
|
+
BACKEND_TYPE.CODEX,
|
|
1192
|
+
BACKEND_TYPE.PI,
|
|
1193
|
+
BACKEND_TYPE.HERMES
|
|
1194
|
+
]);
|
|
1187
1195
|
z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
|
|
1188
1196
|
const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
|
|
1189
1197
|
function isBackendType(value) {
|
|
1190
1198
|
return BACKEND_TYPE_SET.has(value);
|
|
1191
1199
|
}
|
|
1192
1200
|
//#endregion
|
|
1193
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1201
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-Coj1_pra.mjs
|
|
1194
1202
|
z.globalRegistry.add(agentProfileSchema, {
|
|
1195
1203
|
id: "AgentProfile",
|
|
1196
1204
|
...agentProfileJsonSchema
|
|
@@ -1258,7 +1266,6 @@ const CLI_AGENT_SPECS = [
|
|
|
1258
1266
|
"OPENCODE_CODEX_PLUGIN_VERSION",
|
|
1259
1267
|
"OPENCODE_EXPERIMENTAL_NATIVE_LLM"
|
|
1260
1268
|
],
|
|
1261
|
-
interactiveSeededPrompt: true,
|
|
1262
1269
|
builtinTools: [
|
|
1263
1270
|
{
|
|
1264
1271
|
id: "apply_patch",
|
|
@@ -1392,7 +1399,6 @@ const CLI_AGENT_SPECS = [
|
|
|
1392
1399
|
"CHOWN",
|
|
1393
1400
|
"FOWNER"
|
|
1394
1401
|
],
|
|
1395
|
-
interactiveSeededPrompt: true,
|
|
1396
1402
|
cliAuthHome: {
|
|
1397
1403
|
kind: "agent-home",
|
|
1398
1404
|
uid: 1e3,
|
|
@@ -1422,8 +1428,7 @@ const CLI_AGENT_SPECS = [
|
|
|
1422
1428
|
imageInput: false
|
|
1423
1429
|
},
|
|
1424
1430
|
cliAuthHome: { kind: "inherit-home" },
|
|
1425
|
-
hasCliAuth: true
|
|
1426
|
-
interactiveSeededPrompt: true
|
|
1431
|
+
hasCliAuth: true
|
|
1427
1432
|
},
|
|
1428
1433
|
{
|
|
1429
1434
|
name: BACKEND_TYPE.CODEX,
|
|
@@ -1492,7 +1497,6 @@ const CLI_AGENT_SPECS = [
|
|
|
1492
1497
|
],
|
|
1493
1498
|
imageInput: true
|
|
1494
1499
|
},
|
|
1495
|
-
interactiveSeededPrompt: true,
|
|
1496
1500
|
cliAuthHome: { kind: "inherit-home" },
|
|
1497
1501
|
hasCliAuth: true,
|
|
1498
1502
|
byoOAuth: true
|
|
@@ -1544,7 +1548,6 @@ const CLI_AGENT_SPECS = [
|
|
|
1544
1548
|
runtimeAttachments: { mcp: true },
|
|
1545
1549
|
imageInput: false
|
|
1546
1550
|
},
|
|
1547
|
-
interactiveSeededPrompt: true,
|
|
1548
1551
|
cliAuthHome: { kind: "inherit-home" },
|
|
1549
1552
|
hasCliAuth: true
|
|
1550
1553
|
},
|
|
@@ -1592,8 +1595,7 @@ const CLI_AGENT_SPECS = [
|
|
|
1592
1595
|
imageInput: true
|
|
1593
1596
|
},
|
|
1594
1597
|
cliAuthHome: { kind: "inherit-home" },
|
|
1595
|
-
hasCliAuth: true
|
|
1596
|
-
interactiveSeededPrompt: true
|
|
1598
|
+
hasCliAuth: true
|
|
1597
1599
|
},
|
|
1598
1600
|
{
|
|
1599
1601
|
name: BACKEND_TYPE.OPENCLAW,
|
|
@@ -1772,7 +1774,7 @@ function getSpec(name) {
|
|
|
1772
1774
|
return CLI_AGENT_SPECS.find((spec) => spec.name === name);
|
|
1773
1775
|
}
|
|
1774
1776
|
//#endregion
|
|
1775
|
-
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-
|
|
1777
|
+
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-DuY2E2FD.mjs
|
|
1776
1778
|
const cliAuthReferenceSchema = z.strictObject({
|
|
1777
1779
|
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
1778
1780
|
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|
|
@@ -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-
|
|
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-C-uPXQE3.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.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, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-
|
|
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, o as exportTraceBundle, q as awaitCreateResend, tt as runtimeWorkspaceCwdSchema, w as splitInlineProfileFileMounts, x as deleteSandbox, z as parseLifecycleTimes } from "./sandbox-Cnw50f78.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-2ZiIsHfC.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-QoZxqFp2.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";
|
|
@@ -1213,11 +1213,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1216
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1216
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-TXcQXucY.js");
|
|
1217
1217
|
return discoverLocalCliAuthFiles(backendType);
|
|
1218
1218
|
}
|
|
1219
1219
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1220
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1220
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-TXcQXucY.js");
|
|
1221
1221
|
return describe(backendType);
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-Cd7Illwu.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse } from "./errors-2ZiIsHfC.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-QoZxqFp2.js";
|
|
3
3
|
//#region src/collaboration/client.ts
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { S as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-Cnw50f78.js";
|
|
2
2
|
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, o as responseMetadata, r as parseErrorResponse, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-2ZiIsHfC.js";
|
|
3
|
-
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, p as parseBackendRegistryResponse, r as HostedInstance, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-DDRntWEP.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-3rkn_IS3.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
|
|
7
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
7
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-BHFGt_DO.js";
|
|
8
8
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, responseMetadata, sandboxFailureKind };
|
package/dist/gpu-lease/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
1
|
+
import { i as fetchSandboxApi } from "../api-request-QoZxqFp2.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
import { createPublicClient, createWalletClient, decodeAbiParameters, encodeAbiParameters, encodeFunctionData, hexToBytes, http, keccak256, parseAbi, parseAbiParameters, parseEventLogs, recoverMessageAddress, stringToHex } from "viem";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-C-uPXQE3.js";
|
|
2
2
|
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-BuXg-MCu.js";
|
|
3
|
-
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-
|
|
4
|
-
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-
|
|
3
|
+
import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-Cnw50f78.js";
|
|
4
|
+
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-DZUpoo7v.js";
|
|
5
5
|
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-2ZiIsHfC.js";
|
|
6
|
-
import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-
|
|
7
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration
|
|
6
|
+
import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-DDRntWEP.js";
|
|
7
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-QoZxqFp2.js";
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Cd7Illwu.js";
|
|
9
9
|
import "./file-transfer-DOSTbUSR.js";
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
11
11
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-3rkn_IS3.js";
|
|
12
12
|
import { t as downloadFile } from "./file-download-bFW2Mrkv.js";
|
|
13
13
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
14
14
|
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
|
|
15
|
-
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-
|
|
16
|
-
import { s as BlueprintSandboxClient } from "./tangle-
|
|
15
|
+
import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-BHFGt_DO.js";
|
|
16
|
+
import { s as BlueprintSandboxClient } from "./tangle-CHhpDzae.js";
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
19
19
|
const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-2ZiIsHfC.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-QoZxqFp2.js";
|
|
3
3
|
import { n as verifyDownload } from "../file-download-bFW2Mrkv.js";
|
|
4
4
|
import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-Dog7W5zP.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-DZUpoo7v.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-Dq3XGyYd.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
|
|
3
|
-
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-
|
|
3
|
+
import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-DZUpoo7v.js";
|
|
4
4
|
import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-2ZiIsHfC.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
6
|
-
import { n as SDK_TIMEOUTS } from "./api-request-
|
|
6
|
+
import { n as SDK_TIMEOUTS } from "./api-request-QoZxqFp2.js";
|
|
7
7
|
import { c as awaitSdkResend, s as uploadChunked } from "./chunked-upload-BJC0ObTu.js";
|
|
8
8
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
//#region ../../../packages/runtime-contracts/dist/backend-types.js
|
|
12
|
+
/** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
|
|
13
|
+
const BACKEND_TYPE = {
|
|
13
14
|
OPENCODE: "opencode",
|
|
14
15
|
CLAUDE_CODE: "claude-code",
|
|
15
16
|
KIMI_CODE: "kimi-code",
|
|
@@ -27,8 +28,18 @@ const ALL_BACKEND_TYPES = Object.values({
|
|
|
27
28
|
CURSOR: "cursor",
|
|
28
29
|
GROK: "grok",
|
|
29
30
|
CLI_BASE: "cli-base"
|
|
30
|
-
}
|
|
31
|
+
};
|
|
32
|
+
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
33
|
+
const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
31
34
|
const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
35
|
+
new Set([
|
|
36
|
+
BACKEND_TYPE.OPENCODE,
|
|
37
|
+
BACKEND_TYPE.CLAUDE_CODE,
|
|
38
|
+
BACKEND_TYPE.KIMI_CODE,
|
|
39
|
+
BACKEND_TYPE.CODEX,
|
|
40
|
+
BACKEND_TYPE.PI,
|
|
41
|
+
BACKEND_TYPE.HERMES
|
|
42
|
+
]);
|
|
32
43
|
/**
|
|
33
44
|
* `backend.metadata.isolationPrincipal`: the opaque, stable id of the member a
|
|
34
45
|
* secret-isolated session's turns run for, never a credential. Turns of one
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DuY2E2FD-7ByGEdOv.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-request-
|
|
1
|
+
import "./api-request-QoZxqFp2.js";
|
|
2
2
|
import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
3
3
|
import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-BTHZR1w2.js";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
@@ -396,7 +396,7 @@ async function createMcpServer(box, options = {}) {
|
|
|
396
396
|
const { bindings, handlers } = bindToolSpecs(box, options);
|
|
397
397
|
const server = new serverModule.Server({
|
|
398
398
|
name: options.name ?? "tangle-sandbox",
|
|
399
|
-
version: options.version ?? "1.0.
|
|
399
|
+
version: options.version ?? "1.0.405"
|
|
400
400
|
}, { capabilities: { tools: {} } });
|
|
401
401
|
server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
|
|
402
402
|
name: s.name,
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
2
|
-
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-
|
|
1
|
+
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-C-uPXQE3.js";
|
|
2
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-DZUpoo7v.js";
|
|
3
3
|
import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-2ZiIsHfC.js";
|
|
4
|
-
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-
|
|
4
|
+
import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-QoZxqFp2.js";
|
|
5
5
|
import { s as uploadChunked } from "./chunked-upload-BJC0ObTu.js";
|
|
6
6
|
//#region src/runtime-client.ts
|
|
7
7
|
function requireToken(token) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-
|
|
1
|
+
import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-C-uPXQE3.js";
|
|
2
2
|
import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson } from "./harness-Dq3XGyYd.js";
|
|
3
3
|
import { a as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
|
|
4
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
4
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-DZUpoo7v.js";
|
|
5
5
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CemN5Bl6.js";
|
|
6
6
|
import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-2ZiIsHfC.js";
|
|
7
7
|
import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
|
|
8
8
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
9
9
|
import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
|
|
10
|
-
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-
|
|
10
|
+
import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-QoZxqFp2.js";
|
|
11
11
|
import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, t as isInsideReservedDir, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
12
12
|
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-BJC0ObTu.js";
|
|
13
13
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
|
|
14
14
|
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
|
|
15
15
|
import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
|
|
16
16
|
import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
|
|
17
|
-
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
18
|
-
import "./cli-auth-bundle-
|
|
17
|
+
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-7ByGEdOv.js";
|
|
18
|
+
import "./cli-auth-bundle-Vc_wO6gp.js";
|
|
19
19
|
import { n as SandboxLines } from "./lines-3rkn_IS3.js";
|
|
20
20
|
import { t as downloadFile } from "./file-download-bFW2Mrkv.js";
|
|
21
21
|
import { z } from "zod";
|
|
@@ -4214,6 +4214,7 @@ const OPENCODE_NATIVE_TOOL_IDS = [
|
|
|
4214
4214
|
const OPENCODE_NATIVE_TOOL_ID_SET = new Set(OPENCODE_NATIVE_TOOL_IDS);
|
|
4215
4215
|
/** Permission IDs accepted by OpenCode (tools except read, plus special permissions). */
|
|
4216
4216
|
const OPENCODE_NATIVE_PERMISSION_IDS = [
|
|
4217
|
+
"*",
|
|
4217
4218
|
"apply_patch",
|
|
4218
4219
|
"bash",
|
|
4219
4220
|
"codesearch",
|
|
@@ -4244,6 +4245,7 @@ function openCodeToolName(name) {
|
|
|
4244
4245
|
return openCodeNativeToolId(name);
|
|
4245
4246
|
}
|
|
4246
4247
|
function openCodePermissionName(name) {
|
|
4248
|
+
if (name === "*") return "*";
|
|
4247
4249
|
if (name.includes("*") || name.includes("?")) return void 0;
|
|
4248
4250
|
const normalized = normalizedControlName(name);
|
|
4249
4251
|
if (["write", "edit"].includes(normalized)) return "edit";
|
|
@@ -4430,6 +4432,10 @@ function materializeOpenCodeControls(toolEntries, permissionEntries, add, unsupp
|
|
|
4430
4432
|
return false;
|
|
4431
4433
|
});
|
|
4432
4434
|
const enforceablePermissions = permissionEntries.filter(([name, policy]) => {
|
|
4435
|
+
if (name === "*" && policy !== "deny") {
|
|
4436
|
+
unsupported("permissions", "opencode: the default permission \"*\" supports only \"deny\"; grant named tools or declared MCP tools explicitly");
|
|
4437
|
+
return false;
|
|
4438
|
+
}
|
|
4433
4439
|
if (normalizedControlName(name) !== "read") return true;
|
|
4434
4440
|
if (!permissionAllowsEverything(policy)) unsupported("permissions", "opencode: read access cannot be denied or approval-gated");
|
|
4435
4441
|
return false;
|
|
@@ -4790,6 +4796,7 @@ function lowerProfilePrompt(profile, harness, binds, instructionsRoot, builder)
|
|
|
4790
4796
|
add(primaryAgentPath, markMaterializerSubagent(primaryAgentPath, [
|
|
4791
4797
|
"---",
|
|
4792
4798
|
"mode: primary",
|
|
4799
|
+
...profile.description === void 0 ? [] : [`description: ${JSON.stringify(profile.description)}`],
|
|
4793
4800
|
"---",
|
|
4794
4801
|
systemPrompt,
|
|
4795
4802
|
""
|
|
@@ -2,8 +2,8 @@ import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
|
|
|
2
2
|
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CemN5Bl6.js";
|
|
3
3
|
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-2ZiIsHfC.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
|
|
5
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
6
|
-
import "./cli-auth-bundle-
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-7ByGEdOv.js";
|
|
6
|
+
import "./cli-auth-bundle-Vc_wO6gp.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../../../packages/runtime-contracts/dist/seat-selection.js
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as SandboxError, O as ValidationError } from "./errors-2ZiIsHfC.js";
|
|
2
|
-
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-
|
|
2
|
+
import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-BHFGt_DO.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/select-seat-command.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-QoZxqFp2.js";
|
|
3
3
|
import "../sidecar-proxy-error-DTdbCbUM.js";
|
|
4
4
|
import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
|
|
5
5
|
import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-CHhpDzae.js";
|
|
2
2
|
import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
|
|
3
3
|
export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-Cnw50f78.js";
|
|
2
2
|
import { a as readResponseJson } from "./errors-2ZiIsHfC.js";
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-QoZxqFp2.js";
|
|
4
4
|
import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
|
|
5
5
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BvN0Mk3j.js";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.405",
|
|
4
4
|
"description": "TypeScript SDK for Tangle Sandbox: create cloud sandboxes and run commands and coding agents in them",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
|
-
"@products/sandbox-test-utils": "0.0.0",
|
|
157
156
|
"@repo/shared": "0.0.0",
|
|
157
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
158
158
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
159
|
"@tangle-network/cli-agent-registry": "0.15.0",
|
|
160
160
|
"@tangle-network/runtime-contracts": "0.20.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-11-
|
|
163
|
+
"sourceSha": "1149d593998c5aa2ec8e0e9716164445cfd82f96",
|
|
164
|
+
"mergedAt": "2026-11-14T23:49:42-08:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs && bash scripts/verify-dist.sh",
|