@tangle-network/sandbox 0.64.7 → 0.64.8
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 +2 -2
- package/dist/{client-CgtR203z.js → client-CEye1lvL.js} +2 -1
- package/dist/core.js +2 -2
- package/dist/index.js +3 -3
- package/dist/{sandbox-BrZxAq11.js → sandbox-BLARJTAt.js} +21 -3
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-GiPBak5X.js → tangle-DQ97jfeu.js} +1 -1
- package/package.json +7 -7
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-BjLG7VHY.js";
|
|
2
2
|
import { D as assertCurrentBackendType } from "../interactive-controller-OAsASPd_.js";
|
|
3
3
|
import { S as StateError, T as ValidationError, h as NotFoundError } from "../errors-BfbOP_rx.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { t as Sandbox } from "../client-CEye1lvL.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-BLARJTAt.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,7 +3,7 @@ import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as asse
|
|
|
3
3
|
import { T as ValidationError, a as AuthError, b as SandboxError, d as GpuProviderNotConfiguredError, g as PartialFailureError, h as NotFoundError, i as readResponseJson, m as NetworkError, n as parseErrorResponse, p as NON_RETRYABLE_CREATE_QUOTA_REASONS, r as parseResponseError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-BfbOP_rx.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-DHx53yre.js";
|
|
5
5
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-BBzJDWyt.js";
|
|
6
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as
|
|
6
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, I as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-BLARJTAt.js";
|
|
7
7
|
import { t as LinesClient } from "./lines-C5ER4aN_.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1424,6 +1424,7 @@ var SandboxTransport = class {
|
|
|
1424
1424
|
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? void 0,
|
|
1425
1425
|
createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? void 0,
|
|
1426
1426
|
captureProof: normalizeCaptureProof(data.captureProof) ?? void 0,
|
|
1427
|
+
...normalizeEgressPolicyFields(data),
|
|
1427
1428
|
compliance: data.compliance && typeof data.compliance === "object" && data.compliance.hipaa === true ? { hipaa: true } : void 0
|
|
1428
1429
|
};
|
|
1429
1430
|
}
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, g as PartialFailureError, h as NotFoundError, m as NetworkError, s as CapabilityError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-BfbOP_rx.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstancesClient, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, m as backendRegistryInteractionKindSchema, p as backendRegistryEntrySchema, r as HostedInstance, t as Sandbox, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstancesClient, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, m as backendRegistryInteractionKindSchema, p as backendRegistryEntrySchema, r as HostedInstance, t as Sandbox, v as parseBackendRegistryResponseBody } from "./client-CEye1lvL.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-BLARJTAt.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-C5ER4aN_.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-DY9ZTdgF.js";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as isolationPrincipalSchema, o as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-CLvdSX8V.js";
|
|
2
2
|
import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, b as parseSSEStream, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-OAsASPd_.js";
|
|
3
3
|
import { C as StreamInterruptedError, S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, c as EdgeNotReadyError, d as GpuProviderNotConfiguredError, f as KeyBudgetExhaustedError, g as PartialFailureError, h as NotFoundError, l as EgressProxyRecoveryError, m as NetworkError, o as BranchFanoutExceedsHostError, s as CapabilityError, t as TerminalStreamError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError, y as ResumeEnvRequiredError } from "./errors-BfbOP_rx.js";
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstancesClient, c as IntelligenceClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as RunsClient, o as SandboxFleetClient, p as backendRegistryEntrySchema, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstancesClient, c as IntelligenceClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as InstanceRestartingError, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as RunsClient, o as SandboxFleetClient, p as backendRegistryEntrySchema, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-CEye1lvL.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-DHx53yre.js";
|
|
6
|
-
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-BLARJTAt.js";
|
|
7
7
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-C5ER4aN_.js";
|
|
8
8
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-g_HzXa6f.js";
|
|
10
10
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-DY9ZTdgF.js";
|
|
11
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { s as TangleSandboxClient } from "./tangle-DQ97jfeu.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
//#region src/confidential.ts
|
|
@@ -116,6 +116,21 @@ function normalizeSandboxShape(raw) {
|
|
|
116
116
|
...typeof r.ttlMs === "number" ? { ttlMs: r.ttlMs } : {}
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
+
const EGRESS_POLICY_SOURCES = new Set([
|
|
120
|
+
"sandbox",
|
|
121
|
+
"team",
|
|
122
|
+
"platform"
|
|
123
|
+
]);
|
|
124
|
+
/**
|
|
125
|
+
* The effective egress policy and its source as GET /v1/sandboxes/:id reports
|
|
126
|
+
* them (#13415); fields the API omits stay undefined.
|
|
127
|
+
*/
|
|
128
|
+
function normalizeEgressPolicyFields(data) {
|
|
129
|
+
return {
|
|
130
|
+
egressPolicy: data.egressPolicy && typeof data.egressPolicy === "object" ? data.egressPolicy : void 0,
|
|
131
|
+
egressPolicySource: EGRESS_POLICY_SOURCES.has(data.egressPolicySource) ? data.egressPolicySource : void 0
|
|
132
|
+
};
|
|
133
|
+
}
|
|
119
134
|
//#endregion
|
|
120
135
|
//#region ../../../packages/runtime-contracts/dist/direct-read.js
|
|
121
136
|
/**
|
|
@@ -558,7 +573,9 @@ var SandboxInfoCapabilities = class {
|
|
|
558
573
|
expiresAt: this.expiresAt,
|
|
559
574
|
error: this.error,
|
|
560
575
|
gpuLease: this.gpuLease,
|
|
561
|
-
resources: this.resources
|
|
576
|
+
resources: this.resources,
|
|
577
|
+
egressPolicy: state(this).info.egressPolicy,
|
|
578
|
+
egressPolicySource: state(this).info.egressPolicySource
|
|
562
579
|
};
|
|
563
580
|
}
|
|
564
581
|
/**
|
|
@@ -759,7 +776,8 @@ var SandboxInfoCapabilities = class {
|
|
|
759
776
|
gpuLease: data.gpuLease ?? carryCreateFacts?.gpuLease,
|
|
760
777
|
resources: normalizeSandboxShape(data.resources) ?? (id === this.id ? local.info.resources : void 0),
|
|
761
778
|
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? carryCreateFacts?.startupDiagnostics,
|
|
762
|
-
createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? carryCreateFacts?.createReceipt
|
|
779
|
+
createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? carryCreateFacts?.createReceipt,
|
|
780
|
+
...normalizeEgressPolicyFields(data)
|
|
763
781
|
};
|
|
764
782
|
}
|
|
765
783
|
};
|
|
@@ -10170,4 +10188,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10170
10188
|
}
|
|
10171
10189
|
};
|
|
10172
10190
|
//#endregion
|
|
10173
|
-
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E,
|
|
10191
|
+
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, rewrapResponse as I, parseStopPhase as M, normalizeConnection as N, isRetryableProfileFileMaterializeFailure as O, normalizeEgressPolicyFields as P, SandboxOperation as S, splitInlineProfileFileMounts as T, collectAgentFinalMessageText as _, buildTraceExportPayload as a, isToolBearingEvent as b, toOtelJson as c, InteractiveSessionHandle as d, agentInteractiveSessionPromptRequestDigest as f, applySandboxEventText as g, createInteractiveTerminalSession as h, MAX_EGRESS_DENIALS_LIMIT as i, normalizeStartupDiagnostics as j, normalizeCaptureProof as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, exportTraceBundle as o, InteractiveTerminalFrameLog as p, WorkspaceImages as r, otelTraceIdForTangleTrace as s, SandboxInstance as t, SandboxSession as u, collectAgentResponseText as v, materializeProfileFileMounts as w, ManagedProcessClient as x, getSandboxEventText as y };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-DQ97jfeu.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as readResponseJson } from "./errors-BfbOP_rx.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BLARJTAt.js";
|
|
3
3
|
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-BGvM02yJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.8",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -160,16 +160,16 @@
|
|
|
160
160
|
"ws": "^8.20.0",
|
|
161
161
|
"yjs": "13.6.30",
|
|
162
162
|
"@products/sandbox-test-utils": "0.0.0",
|
|
163
|
-
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
164
|
-
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
165
163
|
"@repo/shared": "0.0.0",
|
|
164
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
165
|
+
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
166
166
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
167
|
-
"@tangle-network/
|
|
168
|
-
"@tangle-network/
|
|
167
|
+
"@tangle-network/sdk": "4.0.16",
|
|
168
|
+
"@tangle-network/sse-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "2eda7b6dc18c5fb2f0cf894bcbbe22841b26e9d7",
|
|
172
|
+
"mergedAt": "2026-10-22T05:30:12-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|