@tangle-network/sandbox 0.60.78-develop.20261026095410.242a6cb → 0.60.78-develop.20261026102139.5934c96
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/auth/index.js +1 -1
- package/dist/{cli-auth-bundle-yr4ZESxY.js → cli-auth-bundle-DlQs_26j.js} +3 -3
- package/dist/{client-Dl8XOOyt.js → client-D5GLp93x.js} +3 -3
- package/dist/{core-DgUywLjg.js → core-VOzQz1mc.js} +1 -1
- package/dist/core.js +3 -3
- package/dist/index.js +4 -4
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{local-cli-auth-fCKtTFG9.js → local-cli-auth-Dxti_D10.js} +1 -1
- package/dist/{prepared-process-DuWP6Kb7.js → prepared-process-DKgEUodb.js} +30 -5
- package/dist/{sandbox-DB-j-O2G.js → sandbox-Ksajmtq4.js} +2 -2
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BO2p4BNH.js → tangle-Cmr8JcO3.js} +1 -1
- package/package.json +5 -5
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-ClJ5TD-m.js";
|
|
2
2
|
import { D as assertCurrentBackendType } from "../interactive-controller-ThIeP_oZ.js";
|
|
3
3
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-Bs5G7JdV.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { t as Sandbox } from "../client-D5GLp93x.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-Ksajmtq4.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
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-DlQs_26j.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -2,10 +2,10 @@ import { n as BACKEND_TYPE } from "./backend-types-CLvdSX8V.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { agentProfileJsonSchema, agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
4
4
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
5
|
-
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts-
|
|
5
|
+
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts-B0VPtf4D.mjs
|
|
6
6
|
/** The CLI version infra/nix ships for each registered harness. */
|
|
7
7
|
const HARNESS_CLI_VERSIONS = {
|
|
8
|
-
"claude-code": "2.1.
|
|
8
|
+
"claude-code": "2.1.310",
|
|
9
9
|
codex: "0.164.0",
|
|
10
10
|
opencode: "1.19.3",
|
|
11
11
|
pi: "1.4.0",
|
|
@@ -1040,7 +1040,7 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
1040
1040
|
HARNESSES["kimi-code"].session.defect.reason, HARNESSES["factory-droids"].session.defect.reason, HARNESSES["amp"].session.defect.reason, HARNESSES["prime"].session.defect.reason, HARNESSES["hermes"].session.defect.reason, HARNESSES["forge"].session.defect.reason, HARNESSES["openclaw"].session.defect.reason, HARNESSES["acp"].session.defect.reason;
|
|
1041
1041
|
HARNESSES["nanoclaw"].session.defect.reason, HARNESSES["cursor"].session.defect.reason;
|
|
1042
1042
|
//#endregion
|
|
1043
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1043
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-CDfSRJfI.mjs
|
|
1044
1044
|
z.globalRegistry.add(agentProfileSchema$1, {
|
|
1045
1045
|
id: "AgentProfile",
|
|
1046
1046
|
...agentProfileJsonSchema
|
|
@@ -4,7 +4,7 @@ import { E as ValidationError, S as ServerError, T as TimeoutError, _ as Partial
|
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
5
|
import { t as fetchSandboxApi } from "./api-request-D8Mni27A.js";
|
|
6
6
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-C92u8Kce.js";
|
|
7
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, 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-
|
|
7
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, 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-Ksajmtq4.js";
|
|
8
8
|
import { t as LinesClient } from "./lines-DgRXUg5y.js";
|
|
9
9
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1316,11 +1316,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1319
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1319
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-Dxti_D10.js");
|
|
1320
1320
|
return discoverLocalCliAuthFiles(backendType);
|
|
1321
1321
|
}
|
|
1322
1322
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1323
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1323
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-Dxti_D10.js");
|
|
1324
1324
|
return describe(backendType);
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-Bs5G7JdV.js";
|
|
2
2
|
import { d as awaitWithAbort } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
3
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
3
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DlQs_26j.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/failure-kind.ts
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
2
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-D5GLp93x.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-Ksajmtq4.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DgRXUg5y.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-VOzQz1mc.js";
|
|
7
7
|
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, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
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-ThIeP_oZ.js";
|
|
3
3
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
4
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
4
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-D5GLp93x.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-k1KkqDGF.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Ox7K-TN6.js";
|
|
7
|
-
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-
|
|
7
|
+
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-Ksajmtq4.js";
|
|
8
8
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DgRXUg5y.js";
|
|
9
9
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
10
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
11
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-VOzQz1mc.js";
|
|
11
|
+
import { s as TangleSandboxClient } from "./tangle-Cmr8JcO3.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-
|
|
1
|
+
import { n as withPreparedProcessCalls, t as runPreparedProcess } from "../prepared-process-DKgEUodb.js";
|
|
2
2
|
export { runPreparedProcess, withPreparedProcessCalls };
|
|
@@ -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-DlQs_26j.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -16,7 +16,7 @@ function processRequests(request, deadline, signal) {
|
|
|
16
16
|
...requestSignal ? { signal: requestSignal } : {}
|
|
17
17
|
}, Number.isFinite(left) ? left : 0);
|
|
18
18
|
};
|
|
19
|
-
const pause = () => {
|
|
19
|
+
const pause = (ms = POLL_DELAY_MIN_MS) => {
|
|
20
20
|
return new Promise((resolve, reject) => {
|
|
21
21
|
const abort = () => {
|
|
22
22
|
clearTimeout(timer);
|
|
@@ -25,7 +25,7 @@ function processRequests(request, deadline, signal) {
|
|
|
25
25
|
const timer = setTimeout(() => {
|
|
26
26
|
signal?.removeEventListener("abort", abort);
|
|
27
27
|
resolve();
|
|
28
|
-
}, Math.min(
|
|
28
|
+
}, Math.min(ms, remaining()));
|
|
29
29
|
signal?.addEventListener("abort", abort, { once: true });
|
|
30
30
|
if (signal?.aborted) abort();
|
|
31
31
|
});
|
|
@@ -35,19 +35,44 @@ function processRequests(request, deadline, signal) {
|
|
|
35
35
|
pause
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
const POLL_DELAY_MIN_MS = 250;
|
|
39
|
+
const POLL_DELAY_MAX_MS = 2e3;
|
|
40
|
+
/**
|
|
41
|
+
* Only the small pending receipt is parsed; terminal output stays streamed.
|
|
42
|
+
* Every poll spends the caller's runtime request budget (60 a minute on the
|
|
43
|
+
* smallest plan), so polls back off from 250 ms to 2 s, and a 429 is waited
|
|
44
|
+
* out: the process keeps running while the budget refills, and its result
|
|
45
|
+
* stays readable.
|
|
46
|
+
*/
|
|
39
47
|
async function pollPreparedProcess(transport, target, pid, headers, read) {
|
|
40
|
-
|
|
48
|
+
for (let poll = 0;; poll++) {
|
|
41
49
|
const response = await transport.ask(target, {
|
|
42
50
|
method: "GET",
|
|
43
51
|
headers
|
|
44
52
|
});
|
|
53
|
+
if (response.status === 429) {
|
|
54
|
+
await response.body?.cancel?.();
|
|
55
|
+
await transport.pause(retryAfterMs(response) ?? pollDelayMs(poll));
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
45
58
|
if (response.status !== 202) return response;
|
|
46
59
|
const pending = await read(response);
|
|
47
60
|
if (pending.state !== "running" || pending.pid !== pid) throw new Error("Malformed process result receipt");
|
|
48
|
-
await transport.pause();
|
|
61
|
+
await transport.pause(pollDelayMs(poll));
|
|
49
62
|
}
|
|
50
63
|
}
|
|
64
|
+
function pollDelayMs(poll) {
|
|
65
|
+
return Math.min(POLL_DELAY_MIN_MS * 2 ** poll, POLL_DELAY_MAX_MS);
|
|
66
|
+
}
|
|
67
|
+
/** `Retry-After` as delay-seconds or an HTTP date; undefined when absent or unreadable. */
|
|
68
|
+
function retryAfterMs(response) {
|
|
69
|
+
const value = response.headers?.get?.("retry-after");
|
|
70
|
+
if (!value) return void 0;
|
|
71
|
+
const seconds = Number(value);
|
|
72
|
+
if (Number.isFinite(seconds) && seconds >= 0) return seconds * 1e3;
|
|
73
|
+
const date = Date.parse(value);
|
|
74
|
+
return Number.isFinite(date) ? Math.max(0, date - Date.now()) : void 0;
|
|
75
|
+
}
|
|
51
76
|
/** One prepare/PID/result transport for SDK, Worker adapters and Node probes. */
|
|
52
77
|
async function runPreparedProcess(request, path, init, timeoutMs = 75e3, read = (response) => response.clone().json()) {
|
|
53
78
|
const transport = processRequests(request, timeoutMs === 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs, init.signal);
|
|
@@ -5,8 +5,8 @@ import { _ as interactiveSessionStatusResponseSchema, d as awaitWithAbort, f as
|
|
|
5
5
|
import { t as rewrapResponse } from "./response-rewrap-Bsj87BIq.js";
|
|
6
6
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-C92u8Kce.js";
|
|
7
7
|
import { s as uploadChunked } from "./chunked-upload-CbtLVV6-.js";
|
|
8
|
-
import { t as runPreparedProcess } from "./prepared-process-
|
|
9
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
8
|
+
import { t as runPreparedProcess } from "./prepared-process-DKgEUodb.js";
|
|
9
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DlQs_26j.js";
|
|
10
10
|
import { n as SandboxLines } from "./lines-DgRXUg5y.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, PlanContinuationSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
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-Cmr8JcO3.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-Bs5G7JdV.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-Ksajmtq4.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-C86i6t3C.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.60.78-develop.
|
|
3
|
+
"version": "0.60.78-develop.20261026102139.5934c96",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"vitest": "^4.1.12",
|
|
153
153
|
"ws": "^8.22.0",
|
|
154
154
|
"yjs": "13.6.30",
|
|
155
|
-
"@
|
|
155
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
156
156
|
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
157
|
+
"@repo/shared": "0.0.0",
|
|
157
158
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
158
|
-
"@tangle-network/
|
|
159
|
-
"@
|
|
160
|
-
"@tangle-network/sse-core": "0.0.0"
|
|
159
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
160
|
+
"@tangle-network/runtime-contracts": "0.19.0"
|
|
161
161
|
},
|
|
162
162
|
"scripts": {
|
|
163
163
|
"build": "node scripts/build-dist.mjs",
|