@tangle-network/sandbox 0.60.78-develop.20261025161102.a5d8be1 → 0.60.78-develop.20261025204905.3c2273e
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/README.md +2 -2
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-DdsouF9L.d.ts → agent-run-outcome-BZUuKIbL.d.ts} +1 -1
- package/dist/api-request-D8Mni27A.js +89 -0
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-DmuOTpD1.d.ts → browser-interactive-control-controller-CH7CLpmc.d.ts} +1 -1
- package/dist/{chunked-upload-D1DL0f88.js → chunked-upload-CbtLVV6-.js} +1 -1
- package/dist/{chunked-upload-file-BpfpPCsE.js → chunked-upload-file-CbbWlCFt.js} +2 -2
- package/dist/{client-CuRp6nJP.d.ts → client-BPcdRhgx.d.ts} +5 -5
- package/dist/{client-D7emKV41.js → client-CtpCYHJC.js} +53 -111
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-Tn2ygatK.js → collaboration-Ox7K-TN6.js} +1 -1
- package/dist/{core-DnrLA0im.js → core-BKs0Yy2i.js} +2 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +5 -5
- package/dist/{direct-http2-6fHIO7eF.js → direct-http2-BhGER8b8.js} +16 -4
- package/dist/{errors-CfQHPcLX.js → errors-Bs5G7JdV.js} +15 -1
- package/dist/{index-0eZStBT2.d.ts → index-Bk4Hsycj.d.ts} +6 -6
- package/dist/index.d.ts +12 -12
- package/dist/index.js +9 -9
- package/dist/intelligence/index.js +14 -32
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-CIHMF8C4.d.ts → interactive-controller-Db_8jnl7.d.ts} +3 -3
- package/dist/{interactive-controller-DoYo8Kq5.js → interactive-controller-ThIeP_oZ.js} +2 -2
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-DuELZcNj.d.ts → lines-D5XpPinb.d.ts} +1 -1
- package/dist/{lines-BdF6b46c.js → lines-DgRXUg5y.js} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth--crCWGcG.js → local-cli-auth-fCKtTFG9.js} +1 -1
- package/dist/{mcp-local-CjcoVT7f.js → mcp-local-ClJ5TD-m.js} +1 -1
- package/dist/openai/index.js +23 -8
- package/dist/{preview-BRJcdA7Y.d.ts → preview-CGZfio1_.d.ts} +3 -3
- package/dist/{public-templates-DsozsQ0T.d.ts → public-templates-B5uA7KJv.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-Dh6E0L0h.js → raw-evidence-archive-iDPF8eF_.js} +1 -1
- package/dist/response-rewrap-Bsj87BIq.js +28 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +15 -23
- package/dist/{sandbox-C_DMDlO5.js → sandbox-DLbiLJjB.js} +38 -94
- package/dist/{secp256k1-_-uZfzOX.js → secp256k1-CoRKQn1k.js} +1 -1
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/select-seat-command.js +1 -1
- package/dist/session-gateway/index.d.ts +10 -12
- package/dist/session-gateway/index.js +35 -11
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CedA3iP4.js → tangle-DL5MgMwB.js} +48 -37
- package/dist/{terminal-stream-types-BTqOP3Zi.d.ts → terminal-stream-types-yAt76vk7.d.ts} +11 -1
- package/dist/{types-0pIxzm2k.d.ts → types-BVsCs_Mz.d.ts} +29 -7
- package/package.json +9 -10
- /package/dist/{cli-auth-bundle-DKp1d5dJ.d.ts → cli-auth-bundle-Can3oLKY.d.ts} +0 -0
- /package/dist/{cli-auth-bundle-Ymv99-5G.js → cli-auth-bundle-yr4ZESxY.js} +0 -0
- /package/dist/{index-BMbJOPfn.d.ts → index-B8xo7y26.d.ts} +0 -0
- /package/dist/{index-DcEJnM4x.d.ts → index-mz8_2rr2.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-_KZcsAS_.js → keep-alive-fetch-C92u8Kce.js} +0 -0
- /package/dist/{prepared-evidence-Bqxb-qWc.js → prepared-evidence-Di89Tatw.js} +0 -0
- /package/dist/{prepared-process-DNX-AVJ3.js → prepared-process-DuWP6Kb7.js} +0 -0
- /package/dist/{preview-operations-D5hsnCHF.js → preview-operations-BL7YCkes.js} +0 -0
- /package/dist/{utils-Bl-H3KsQ.js → utils-C86i6t3C.js} +0 -0
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-ThIeP_oZ.js";
|
|
2
|
+
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";
|
|
3
|
+
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
4
|
+
import { t as fetchSandboxApi } from "./api-request-D8Mni27A.js";
|
|
5
|
+
import { s as uploadChunked } from "./chunked-upload-CbtLVV6-.js";
|
|
5
6
|
//#region src/runtime-client.ts
|
|
6
7
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
7
8
|
function requireToken(token) {
|
|
@@ -46,29 +47,20 @@ var SandboxRuntimeClient = class extends SandboxRuntimeApi {
|
|
|
46
47
|
ensureRunning: async () => void 0,
|
|
47
48
|
fetch: async (path, init = {}) => {
|
|
48
49
|
if (!path.startsWith("/") || path.startsWith("//")) throw new ValidationError("Scoped runtime request paths must start with one slash");
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
try {
|
|
56
|
-
return await fetchImpl(`${baseUrl}${path}`, {
|
|
57
|
-
...init,
|
|
58
|
-
headers,
|
|
59
|
-
signal
|
|
60
|
-
});
|
|
61
|
-
} catch (error) {
|
|
62
|
-
if (timeoutSignal.aborted && !init.signal?.aborted) throw new TimeoutError(timeoutMs, void 0, {
|
|
50
|
+
return fetchSandboxApi({
|
|
51
|
+
baseUrl,
|
|
52
|
+
apiKey: auth.token,
|
|
53
|
+
timeoutMs,
|
|
54
|
+
fetchImpl,
|
|
55
|
+
timeoutError: (ms) => new TimeoutError(ms, void 0, {
|
|
63
56
|
origin: "runtime",
|
|
64
57
|
endpoint: path
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
throw new NetworkError(`Scoped runtime request failed: ${path}`, error instanceof Error ? error : new Error(String(error)), {
|
|
58
|
+
}),
|
|
59
|
+
networkError: (error) => new NetworkError(`Scoped runtime request failed: ${path}`, error instanceof Error ? error : new Error(String(error)), {
|
|
68
60
|
origin: "runtime",
|
|
69
61
|
endpoint: path
|
|
70
|
-
})
|
|
71
|
-
}
|
|
62
|
+
})
|
|
63
|
+
}, path, init, { bodyDeadline: false });
|
|
72
64
|
}
|
|
73
65
|
});
|
|
74
66
|
this.#auth = auth;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { a as normalizeEffectiveBackend, r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as validateAcceptedDispatchRunRef, T as canUseNodeHttp2, _ as mintTraceId, a as assertScopedTokenActive, b as parseSSEStream, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as traceHeaders } from "./interactive-controller-
|
|
3
|
-
import {
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as validateAcceptedDispatchRunRef, T as canUseNodeHttp2, _ as mintTraceId, a as assertScopedTokenActive, b as parseSSEStream, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as traceHeaders } from "./interactive-controller-ThIeP_oZ.js";
|
|
3
|
+
import { A as SANDBOX_PROXY_REQUEST_MAX_BYTES, C as StateError, E as ValidationError, F as isProfileFileMountOutsideRoots, I as profileFileMountOutsideRootsMessage, M as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, N as SANDBOX_AGENT_HOME, P as SANDBOX_FILE_API_ABSOLUTE_ROOTS, S as ServerError, T as TimeoutError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, l as EdgeNotReadyError, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-Bs5G7JdV.js";
|
|
4
4
|
import { _ as interactiveSessionStatusResponseSchema, d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionControlValidationResponseSchema, h as interactiveSessionControlReleaseResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlClaimResponseSchema, p as delayUntilAborted } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { t as rewrapResponse } from "./response-rewrap-Bsj87BIq.js";
|
|
6
|
+
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-C92u8Kce.js";
|
|
7
|
+
import { s as uploadChunked } from "./chunked-upload-CbtLVV6-.js";
|
|
8
|
+
import { t as runPreparedProcess } from "./prepared-process-DuWP6Kb7.js";
|
|
9
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-yr4ZESxY.js";
|
|
10
|
+
import { n as SandboxLines } from "./lines-DgRXUg5y.js";
|
|
10
11
|
import { z } from "zod";
|
|
11
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";
|
|
12
13
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -16,33 +17,6 @@ import { dirname } from "node:path";
|
|
|
16
17
|
import "node:fs/promises";
|
|
17
18
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
18
19
|
import "@tangle-network/agent-interface/environment-provider";
|
|
19
|
-
//#region src/lib/response-rewrap.ts
|
|
20
|
-
/**
|
|
21
|
-
* Response wrappers that must outlive the fetch Response they wrap.
|
|
22
|
-
*
|
|
23
|
-
* Node's fetch (undici) cancels a response body when the Response object that
|
|
24
|
-
* fetch returned is garbage collected while its body is still unread. A
|
|
25
|
-
* wrapper built with `new Response(original.body, …)` shares that body stream
|
|
26
|
-
* but not that lifetime: once the original is collected, the wrapper's body is
|
|
27
|
-
* already cancelled and every read throws `TypeError: Body is unusable: Body
|
|
28
|
-
* has already been read`. It depends on when the collector runs, so it shows
|
|
29
|
-
* up as a rare failure on any call whose body is read after a longer await.
|
|
30
|
-
*
|
|
31
|
-
* The map holds each original for as long as its wrapper is reachable, so the
|
|
32
|
-
* body stays readable. When both are unreachable, undici's own cleanup runs.
|
|
33
|
-
*/
|
|
34
|
-
const originals = /* @__PURE__ */ new WeakMap();
|
|
35
|
-
/** A Response retaining `original`'s lifetime, with optional body decoration. */
|
|
36
|
-
function rewrapResponse(original, headers, body = original.body) {
|
|
37
|
-
const wrapper = new Response(body, {
|
|
38
|
-
status: original.status,
|
|
39
|
-
statusText: original.statusText,
|
|
40
|
-
headers
|
|
41
|
-
});
|
|
42
|
-
originals.set(wrapper, original);
|
|
43
|
-
return wrapper;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
20
|
//#region src/normalize.ts
|
|
47
21
|
/**
|
|
48
22
|
* Normalize a raw `connection` payload from the Sandbox API into the SDK's
|
|
@@ -61,12 +35,14 @@ function normalizeConnection(raw) {
|
|
|
61
35
|
if (!raw || typeof raw !== "object") return void 0;
|
|
62
36
|
const c = raw;
|
|
63
37
|
const runtimeUrl = c.runtimeUrl;
|
|
38
|
+
const hostUrl = typeof c.hostUrl === "string" ? c.hostUrl : void 0;
|
|
64
39
|
const execHost = typeof c.execHost === "string" ? c.execHost : void 0;
|
|
65
40
|
const edgeStatus = normalizeEdgeStatus(c.edgeStatus);
|
|
66
41
|
const ssh = normalizeSshCredentials(c.ssh);
|
|
67
42
|
const webTerminalUrl = c.webTerminalUrl;
|
|
68
|
-
if (!runtimeUrl && !execHost && !edgeStatus && !ssh && !webTerminalUrl) return void 0;
|
|
43
|
+
if (!hostUrl && !runtimeUrl && !execHost && !edgeStatus && !ssh && !webTerminalUrl) return void 0;
|
|
69
44
|
return {
|
|
45
|
+
hostUrl,
|
|
70
46
|
runtimeUrl,
|
|
71
47
|
execHost,
|
|
72
48
|
execToken: c.execToken,
|
|
@@ -1262,6 +1238,7 @@ async function edgeVerdict(response) {
|
|
|
1262
1238
|
return hostCode === "SIDECAR_UPSTREAM_UNAVAILABLE" ? "unknown" : "served";
|
|
1263
1239
|
}
|
|
1264
1240
|
if ((response.status === 400 || response.status === 404 || response.status === 421) && EDGE_ROUTE_MISSES.has(await routeMissReason(response))) return "undelivered";
|
|
1241
|
+
if (response.status === 421) return "undelivered";
|
|
1265
1242
|
if (response.status === 502 || response.status === 503 || response.status === 504) return "unknown";
|
|
1266
1243
|
return "served";
|
|
1267
1244
|
}
|
|
@@ -1303,10 +1280,12 @@ function networkErrorVerdict(error) {
|
|
|
1303
1280
|
//#region src/direct-runtime-client.ts
|
|
1304
1281
|
/**
|
|
1305
1282
|
* The SDK's direct runtime transport. Every default handle uses it edge
|
|
1306
|
-
* first (`SandboxConfig.directExec`)
|
|
1307
|
-
*
|
|
1308
|
-
*
|
|
1309
|
-
*
|
|
1283
|
+
* first (`SandboxConfig.directExec`). When the connection names the owning
|
|
1284
|
+
* host (`connection.hostUrl`), every runtime call goes straight to that host's
|
|
1285
|
+
* runtime door at the API's own path on the runtime bearer, over one HTTP/2
|
|
1286
|
+
* connection per host. Otherwise exec-family calls go to the cell exec host on
|
|
1287
|
+
* the short exec grant and the rest to the cell edge at `connection.runtimeUrl`.
|
|
1288
|
+
* A call the host or edge does not serve is sent through the API
|
|
1310
1289
|
* (runtime-route-policy.ts). `SandboxInstance.direct()` uses it for every
|
|
1311
1290
|
* runtime call, with no API fallback.
|
|
1312
1291
|
*/
|
|
@@ -1391,7 +1370,9 @@ var DirectRuntimeHttpClient = class {
|
|
|
1391
1370
|
*/
|
|
1392
1371
|
edgeRuntimeUrl() {
|
|
1393
1372
|
if (Date.now() < this.edgeCooldownUntil) return void 0;
|
|
1394
|
-
|
|
1373
|
+
const connection = this.getConnection();
|
|
1374
|
+
if (connection?.hostUrl) return `${connection.hostUrl.replace(/\/$/, "")}/v1/sandboxes/${encodeURIComponent(this.sandboxId)}/runtime`;
|
|
1375
|
+
return connection?.runtimeUrl || void 0;
|
|
1395
1376
|
}
|
|
1396
1377
|
async fetch(path, options, fetchOptions) {
|
|
1397
1378
|
const throughApi = () => this.baseClient.fetch(path, options, fetchOptions);
|
|
@@ -1408,6 +1389,13 @@ var DirectRuntimeHttpClient = class {
|
|
|
1408
1389
|
if (this.edgeFirst && (apiOwnedRuntimeRoute(method, command.path) || Date.now() < this.edgeCooldownUntil)) return throughApi();
|
|
1409
1390
|
const selectRoute = () => {
|
|
1410
1391
|
const connection = this.getConnection();
|
|
1392
|
+
if (connection?.hostUrl && connection.authToken) return {
|
|
1393
|
+
useExec: false,
|
|
1394
|
+
useHost: true,
|
|
1395
|
+
url: `${connection.hostUrl.replace(/\/$/, "")}${path}`,
|
|
1396
|
+
bearer: connection.authToken,
|
|
1397
|
+
expiresAt: connection.authTokenExpiresAt
|
|
1398
|
+
};
|
|
1411
1399
|
const useExec = command.shortTokenRequired && !!connection?.execHost && !!connection.execToken;
|
|
1412
1400
|
if (command.shortTokenRequired && !useExec) return void 0;
|
|
1413
1401
|
const origin = useExec ? connection?.execHost : connection?.runtimeUrl;
|
|
@@ -1415,6 +1403,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
1415
1403
|
if (!origin || this.edgeFirst && !bearer) return void 0;
|
|
1416
1404
|
return {
|
|
1417
1405
|
useExec,
|
|
1406
|
+
useHost: false,
|
|
1418
1407
|
url: `${origin.replace(/\/$/, "")}${runtimePath}`,
|
|
1419
1408
|
bearer,
|
|
1420
1409
|
expiresAt: useExec ? connection?.execTokenExpiresAt : connection?.authTokenExpiresAt
|
|
@@ -1465,8 +1454,8 @@ var DirectRuntimeHttpClient = class {
|
|
|
1465
1454
|
path
|
|
1466
1455
|
};
|
|
1467
1456
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
1468
|
-
if (route.useExec && canUseNodeHttp2()) {
|
|
1469
|
-
const { fetchDirectHttp2 } = await import("./direct-http2-
|
|
1457
|
+
if ((route.useHost || route.useExec) && canUseNodeHttp2()) {
|
|
1458
|
+
const { fetchDirectHttp2 } = await import("./direct-http2-BhGER8b8.js");
|
|
1470
1459
|
return fetchDirectHttp2(route.url, request, timing);
|
|
1471
1460
|
}
|
|
1472
1461
|
return fetchWithKeepAlive(route.url, request, timing);
|
|
@@ -1482,7 +1471,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
1482
1471
|
const first = await sendOrResend(init);
|
|
1483
1472
|
if ("resent" in first) return first.resent;
|
|
1484
1473
|
let response = first.sent;
|
|
1485
|
-
if ((response.status === 401 || response.status === 403 && await isRefusedBearer(response)) && this.onUnauthorized && !headers.has("x-no-retry")) {
|
|
1474
|
+
if ((response.status === 401 || route.useHost && response.status === 421 || response.status === 403 && await isRefusedBearer(response)) && this.onUnauthorized && !headers.has("x-no-retry")) {
|
|
1486
1475
|
const refusal = {
|
|
1487
1476
|
status: response.status,
|
|
1488
1477
|
statusText: response.statusText,
|
|
@@ -1618,51 +1607,6 @@ new TextDecoder("utf-8", {
|
|
|
1618
1607
|
fatal: true,
|
|
1619
1608
|
ignoreBOM: true
|
|
1620
1609
|
});
|
|
1621
|
-
//#endregion
|
|
1622
|
-
//#region ../../../packages/agent-profile-materialize/dist/plan-types.js
|
|
1623
|
-
/**
|
|
1624
|
-
* The subset of {@link BINDABLE_LAUNCH_CONTROLS} the plan HANDS OVER rather than
|
|
1625
|
-
* executes: controls a caller reaches only by composing the harness's own
|
|
1626
|
-
* configuration, so no file, flag or env var the plan writes can touch them.
|
|
1627
|
-
*
|
|
1628
|
-
* - `opencode.agent-prompt` — opencode's `agent.<name>.prompt` config field,
|
|
1629
|
-
* the one control that replaces its built-in provider prompt. It binds to a
|
|
1630
|
-
* SINGLE agent, and the agent is chosen at launch. A caller that builds
|
|
1631
|
-
* opencode's config itself and picks the agent there reads neither
|
|
1632
|
-
* `plan.files` nor `plan.flags`, so for that one the plan names the control
|
|
1633
|
-
* and hands over the text in {@link WorkspacePlan.systemPromptBinding}.
|
|
1634
|
-
*
|
|
1635
|
-
* Every other bindable control names a capability the plan still lowers itself
|
|
1636
|
-
* once the caller has declared the plan's launch inputs really reach the spawn.
|
|
1637
|
-
*/
|
|
1638
|
-
const EXECUTOR_SYSTEM_PROMPT_BINDINGS = ["opencode.agent-prompt"];
|
|
1639
|
-
new Set(EXECUTOR_SYSTEM_PROMPT_BINDINGS);
|
|
1640
|
-
/**
|
|
1641
|
-
* Launcher controls an executor can declare it OWNS via `materializeProfile`'s
|
|
1642
|
-
* `binds` option.
|
|
1643
|
-
*
|
|
1644
|
-
* Some harness controls live outside any workspace: opencode's exact
|
|
1645
|
-
* system-prompt replacement (`agent.<name>.prompt`) binds to the ONE agent
|
|
1646
|
-
* whoever starts the process selects, which a plan-forwarding executor cannot
|
|
1647
|
-
* guarantee — so the plan refuses the intent (harnessSystemPromptIntents in
|
|
1648
|
-
* @tangle-network/agent-interface answers `replace: false` for opencode).
|
|
1649
|
-
*
|
|
1650
|
-
* The two declarations describe the two executor shapes that CAN reach it, and
|
|
1651
|
-
* each gets the lowering it can actually apply:
|
|
1652
|
-
*
|
|
1653
|
-
* - `systemPrompt` — the executor applies the plan's launch flags to the
|
|
1654
|
-
* spawn it owns, so the plan writes the generated `mode: primary` agent and
|
|
1655
|
-
* selects it with `--agent`.
|
|
1656
|
-
* - `opencode.agent-prompt` — the executor composes opencode's own config and
|
|
1657
|
-
* picks the agent there, reading neither plan files nor plan flags, so the
|
|
1658
|
-
* plan hands the text over in {@link WorkspacePlan.systemPromptBinding}
|
|
1659
|
-
* instead of writing a workspace agent that would never be selected.
|
|
1660
|
-
*
|
|
1661
|
-
* They are mutually exclusive claims about the same caller: declaring both is a
|
|
1662
|
-
* caller bug, not a broader capability.
|
|
1663
|
-
*/
|
|
1664
|
-
const BINDABLE_LAUNCH_CONTROLS = ["systemPrompt", ...EXECUTOR_SYSTEM_PROMPT_BINDINGS];
|
|
1665
|
-
new Set(BINDABLE_LAUNCH_CONTROLS);
|
|
1666
1610
|
Object.values({
|
|
1667
1611
|
agent: "Agent",
|
|
1668
1612
|
askuserquestion: "AskUserQuestion",
|
|
@@ -3782,7 +3726,7 @@ var SandboxLifecycleEventsCapabilities = class extends SandboxPreviewCapabilitie
|
|
|
3782
3726
|
origin: "sandbox-api",
|
|
3783
3727
|
endpoint: `/v1/sandboxes/${this.id}`
|
|
3784
3728
|
});
|
|
3785
|
-
return connection?.edgeStatus !== "pending" && Boolean(connection?.execHost || connection?.runtimeUrl);
|
|
3729
|
+
return connection?.edgeStatus !== "pending" && Boolean(connection?.hostUrl || connection?.execHost || connection?.runtimeUrl);
|
|
3786
3730
|
}
|
|
3787
3731
|
sleep(ms) {
|
|
3788
3732
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -7441,7 +7385,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7441
7385
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
7442
7386
|
/** @internal — invoked before the sandbox is deleted. */
|
|
7443
7387
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
7444
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7388
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-iDPF8eF_.js");
|
|
7445
7389
|
await this.ensureRunning();
|
|
7446
7390
|
await this.refresh();
|
|
7447
7391
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -7472,7 +7416,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
7472
7416
|
* and the byte and file bounds are verified before the directory appears.
|
|
7473
7417
|
*/
|
|
7474
7418
|
async exportRawEvidence(destination, options) {
|
|
7475
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7419
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-iDPF8eF_.js");
|
|
7476
7420
|
await this.ensureRunning();
|
|
7477
7421
|
await this.refresh();
|
|
7478
7422
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -9782,7 +9726,7 @@ var SandboxFilesystemOperations = class {
|
|
|
9782
9726
|
totalBytes: size,
|
|
9783
9727
|
percentage: 0
|
|
9784
9728
|
});
|
|
9785
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
9729
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-CbbWlCFt.js");
|
|
9786
9730
|
await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
9787
9731
|
mode: options?.permissions,
|
|
9788
9732
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -10595,7 +10539,7 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10595
10539
|
*/
|
|
10596
10540
|
direct() {
|
|
10597
10541
|
const data = state(this);
|
|
10598
|
-
if (!this.connection?.execHost && !this.connection?.runtimeUrl) throw new StateError("Sandbox has no direct runtime URL", this.status, "running");
|
|
10542
|
+
if (!this.connection?.hostUrl && !this.connection?.execHost && !this.connection?.runtimeUrl) throw new StateError("Sandbox has no direct runtime URL", this.status, "running");
|
|
10599
10543
|
let directInstance;
|
|
10600
10544
|
directInstance = new SandboxInstance(new DirectRuntimeHttpClient(data.client, this.id, () => directInstance.connection, async () => {
|
|
10601
10545
|
await directInstance.refreshFor("bearer-refused");
|
|
@@ -10619,4 +10563,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10619
10563
|
}
|
|
10620
10564
|
};
|
|
10621
10565
|
//#endregion
|
|
10622
|
-
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F,
|
|
10566
|
+
export { normalizeSandboxCreateReceipt as A, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-
|
|
1
|
+
import { a as anumber, c as concatBytes$1, f as randomBytes, h as toBytes, i as ahash, l as createHasher$1, n as abytes$1, o as aoutput, p as rotr, r as aexists, s as clean, t as Hash, u as createView, x as split } from "./utils-C86i6t3C.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
|
|
3
3
|
/**
|
|
4
4
|
* Internal Merkle-Damgard hash utils.
|
|
@@ -431,7 +431,6 @@ interface SessionGatewayStats {
|
|
|
431
431
|
*/
|
|
432
432
|
declare function calculateConnectionQuality(metrics: ConnectionMetrics, isConnected: boolean): ConnectionQuality;
|
|
433
433
|
//#endregion
|
|
434
|
-
//#region ../../../packages/sdk/dist/client-DlMgBOqN.d.ts
|
|
435
434
|
//#region src/session-gateway/core-types.d.ts
|
|
436
435
|
interface SubscriptionDenial {
|
|
437
436
|
channel: string;
|
|
@@ -441,7 +440,7 @@ interface SubscriptionAcknowledgement {
|
|
|
441
440
|
channels: string[];
|
|
442
441
|
denied?: SubscriptionDenial[];
|
|
443
442
|
}
|
|
444
|
-
type ServerMessage
|
|
443
|
+
type ServerMessage = Exclude<GatewayServerMessage, {
|
|
445
444
|
type: "connection.established" | "subscribed";
|
|
446
445
|
}> | (ServerMessageBase & {
|
|
447
446
|
type: "connection.established";
|
|
@@ -483,20 +482,21 @@ interface RawWireMessage {
|
|
|
483
482
|
interface NormalizedServerMessage extends RawWireMessage {
|
|
484
483
|
type: string;
|
|
485
484
|
}
|
|
486
|
-
interface SessionGatewayEventHandlers
|
|
485
|
+
interface SessionGatewayEventHandlers extends GatewayEventHandlers {
|
|
487
486
|
/** Called after internal processing for every non-duplicate normalized frame. */
|
|
488
487
|
onMessage?: (message: NormalizedServerMessage) => void;
|
|
489
488
|
}
|
|
490
|
-
interface SessionGatewayClientConfig
|
|
489
|
+
interface SessionGatewayClientConfig extends Omit<GatewayClientConfig, "handlers"> {
|
|
491
490
|
/** Browser session ID embedded in the session-scoped read token. */
|
|
492
491
|
sessionId: string;
|
|
493
492
|
/** Additional subscriptions; server-authorized channels are used by default. */
|
|
494
493
|
channels?: string[];
|
|
495
494
|
/** Maximum wait for `connection.established` (default: 10000 ms). */
|
|
496
495
|
connectionEstablishmentTimeoutMs?: number;
|
|
497
|
-
handlers?: SessionGatewayEventHandlers
|
|
496
|
+
handlers?: SessionGatewayEventHandlers;
|
|
498
497
|
}
|
|
499
|
-
declare const INITIAL_METRICS: ConnectionMetrics;
|
|
498
|
+
declare const INITIAL_METRICS: ConnectionMetrics;
|
|
499
|
+
//#endregion
|
|
500
500
|
//#region src/session-gateway/core.d.ts
|
|
501
501
|
declare class SessionGatewayClientCore {
|
|
502
502
|
#private;
|
|
@@ -508,7 +508,7 @@ declare class SessionGatewayClientCore {
|
|
|
508
508
|
private readonly metrics;
|
|
509
509
|
private readonly replayCursor;
|
|
510
510
|
private readonly inbound;
|
|
511
|
-
constructor(config: SessionGatewayClientConfig
|
|
511
|
+
constructor(config: SessionGatewayClientConfig, initialMetrics?: ConnectionMetrics);
|
|
512
512
|
/**
|
|
513
513
|
* Connect to the session gateway.
|
|
514
514
|
*/
|
|
@@ -571,17 +571,15 @@ declare class SessionGatewayClientCore {
|
|
|
571
571
|
private handleMessage;
|
|
572
572
|
private send;
|
|
573
573
|
private sendWithResponse;
|
|
574
|
-
}
|
|
575
|
-
//#region src/session-gateway/client.d.ts
|
|
576
|
-
/** SDK client with its original immediate, synchronous replay commands. */
|
|
574
|
+
}
|
|
577
575
|
//#endregion
|
|
578
576
|
//#region src/session-gateway/client.d.ts
|
|
579
577
|
/** Sandbox replay waits for the server's authenticated connection receipt. */
|
|
580
578
|
declare class SessionGatewayClient extends SessionGatewayClientCore {
|
|
581
|
-
constructor(config: SessionGatewayClientConfig
|
|
579
|
+
constructor(config: SessionGatewayClientConfig);
|
|
582
580
|
/** @deprecated Timestamps are not a stable cursor. Use replaySinceSeq(). */
|
|
583
581
|
replay(since: number): Promise<void>;
|
|
584
582
|
replaySinceSeq(sinceSeq: number): Promise<void>;
|
|
585
583
|
}
|
|
586
584
|
//#endregion
|
|
587
|
-
export { type ClientMessage, type ConnectionMetrics, type ConnectionQuality, type ConnectionState, INITIAL_METRICS, type NormalizedServerMessage, type PortEventData, type ReplayOptions, type ReplayState, type ReplayStateStorage, type RuntimeUnavailableData, type RuntimeUnavailableReason, type ServerMessage
|
|
585
|
+
export { type ClientMessage, type ConnectionMetrics, type ConnectionQuality, type ConnectionState, INITIAL_METRICS, type NormalizedServerMessage, type PortEventData, type ReplayOptions, type ReplayState, type ReplayStateStorage, type RuntimeUnavailableData, type RuntimeUnavailableReason, type ServerMessage, SessionGatewayClient, type SessionGatewayClientConfig, type SessionGatewayEventHandlers, type SessionGatewayStats, type SubscriptionAcknowledgement, type SubscriptionDenial, type TokenRefreshResult, type TransportMode, calculateConnectionQuality };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
//#region src/session-gateway/callback.ts
|
|
2
|
+
function invokeClientCallback(name, callback, onError) {
|
|
3
|
+
try {
|
|
4
|
+
callback();
|
|
5
|
+
} catch (error) {
|
|
6
|
+
if (name === "onError") return;
|
|
7
|
+
try {
|
|
8
|
+
onError?.(`${name} callback failed: ${error instanceof Error ? error.message : String(error)}`, "CALLBACK_ERROR");
|
|
9
|
+
} catch {}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
1
13
|
//#region ../../../packages/runtime-contracts/dist/session-gateway.js
|
|
2
14
|
/**
|
|
3
15
|
* Shared session-gateway protocol and connection metrics
|
|
@@ -33,19 +45,11 @@ function calculateConnectionQuality(metrics, isConnected) {
|
|
|
33
45
|
return "good";
|
|
34
46
|
}
|
|
35
47
|
//#endregion
|
|
36
|
-
//#region
|
|
37
|
-
function invokeClientCallback(name, callback, onError) {
|
|
38
|
-
try {
|
|
39
|
-
callback();
|
|
40
|
-
} catch (error) {
|
|
41
|
-
if (name === "onError") return;
|
|
42
|
-
try {
|
|
43
|
-
onError?.(`${name} callback failed: ${error instanceof Error ? error.message : String(error)}`, "CALLBACK_ERROR");
|
|
44
|
-
} catch {}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
48
|
+
//#region src/session-gateway/core-types.ts
|
|
47
49
|
/** Browser-safe session gateway contracts for both SDK clients. */
|
|
48
50
|
const INITIAL_METRICS = createConnectionMetrics();
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/session-gateway/connection-metrics.ts
|
|
49
53
|
/** Connection quality metrics derived from ping latency and missed pongs. */
|
|
50
54
|
var ConnectionMetricsTracker = class {
|
|
51
55
|
metrics;
|
|
@@ -109,6 +113,8 @@ var ConnectionMetricsTracker = class {
|
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
};
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/session-gateway/connection-waiters.ts
|
|
112
118
|
var ConnectionWaiters = class {
|
|
113
119
|
/** True once the current socket has reported `connection.established`. */
|
|
114
120
|
established = false;
|
|
@@ -160,6 +166,8 @@ var ConnectionWaiters = class {
|
|
|
160
166
|
this.waiters.clear();
|
|
161
167
|
}
|
|
162
168
|
};
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/session-gateway/heartbeat.ts
|
|
163
171
|
const PONG_TIMEOUT_CLOSE_CODE = 4e3;
|
|
164
172
|
const PONG_TIMEOUT_CLOSE_REASON = "Pong timeout - connection unresponsive";
|
|
165
173
|
/** Sends pings on an interval and closes a socket that stops answering. */
|
|
@@ -230,6 +238,8 @@ var Heartbeat = class {
|
|
|
230
238
|
}, this.policy.pongTimeoutMs);
|
|
231
239
|
}
|
|
232
240
|
};
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/session-gateway/message-dispatch.ts
|
|
233
243
|
/**
|
|
234
244
|
* Parse a wire frame into a server message. Reports a frame with no message
|
|
235
245
|
* type through `onError` and returns null; throws on invalid JSON.
|
|
@@ -326,6 +336,8 @@ function dispatchServerMessage(message, targets) {
|
|
|
326
336
|
break;
|
|
327
337
|
}
|
|
328
338
|
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/session-gateway/pending-requests.ts
|
|
329
341
|
const REQUEST_TIMEOUT_MS = 1e4;
|
|
330
342
|
/** Correlates request messages with the server replies that carry their id. */
|
|
331
343
|
var PendingRequests = class {
|
|
@@ -365,6 +377,8 @@ var PendingRequests = class {
|
|
|
365
377
|
}
|
|
366
378
|
}
|
|
367
379
|
};
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/session-gateway/protocol.ts
|
|
368
382
|
const DEFAULT_SESSION_GATEWAY_CLIENT_CONFIG = {
|
|
369
383
|
transport: "websocket",
|
|
370
384
|
channels: [],
|
|
@@ -429,6 +443,8 @@ function resolveClientConfig(config) {
|
|
|
429
443
|
connectionEstablishmentTimeoutMs: config.connectionEstablishmentTimeoutMs ?? defaults.connectionEstablishmentTimeoutMs
|
|
430
444
|
};
|
|
431
445
|
}
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/session-gateway/reconnect-scheduler.ts
|
|
432
448
|
/** Decides whether to reconnect and schedules attempts with jittered backoff. */
|
|
433
449
|
var ReconnectScheduler = class {
|
|
434
450
|
hasConnectedBefore = false;
|
|
@@ -457,6 +473,8 @@ var ReconnectScheduler = class {
|
|
|
457
473
|
}
|
|
458
474
|
}
|
|
459
475
|
};
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/session-gateway/replay-cursor.ts
|
|
460
478
|
/**
|
|
461
479
|
* Replay position of one gateway session: the last delivered event, the
|
|
462
480
|
* execution and session being followed, replay progress, and the set of event
|
|
@@ -590,6 +608,8 @@ var ReplayCursor = class {
|
|
|
590
608
|
});
|
|
591
609
|
}
|
|
592
610
|
};
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region src/session-gateway/replay-storage.ts
|
|
593
613
|
const STORAGE_KEYS = {
|
|
594
614
|
lastEventId: "last_event_id",
|
|
595
615
|
executionId: "execution_id",
|
|
@@ -676,6 +696,8 @@ var ReplayStateStore = class {
|
|
|
676
696
|
};
|
|
677
697
|
}
|
|
678
698
|
};
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region src/session-gateway/token-refresh.ts
|
|
679
701
|
var TokenRefresher = class {
|
|
680
702
|
refreshing = false;
|
|
681
703
|
constructor(refreshToken, applyToken, onError) {
|
|
@@ -697,6 +719,8 @@ var TokenRefresher = class {
|
|
|
697
719
|
}
|
|
698
720
|
}
|
|
699
721
|
};
|
|
722
|
+
//#endregion
|
|
723
|
+
//#region src/session-gateway/core.ts
|
|
700
724
|
const CONNECTION_ESTABLISHMENT_TIMEOUT_CODE = 4008;
|
|
701
725
|
const CONNECTION_ERROR_CODE = 4009;
|
|
702
726
|
const CONNECTION_ERROR_REASON = "WebSocket connection error";
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-Bk4Hsycj.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
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-DL5MgMwB.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 };
|