@tangle-network/sandbox 1.0.236 → 1.0.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-execution-preparation-BJChICex.js → agent-execution-preparation-CjKTjmJ9.js} +3 -3
- package/dist/{agent-execution-preparation-receipt-BIFxqyr5.js → agent-execution-preparation-receipt-AihkqLnd.js} +4 -4
- package/dist/{agent-run-outcome-CEf6hJYp.d.ts → agent-run-outcome-DrhA0Z4S.d.ts} +2 -2
- package/dist/{api-request-DXF7sotx.js → api-request-wjUrfDvm.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-CcUjQEfa.d.ts → browser-interactive-control-controller-9RauUsHw.d.ts} +1 -1
- package/dist/{browser-interactive-control-controller-DL5Cz1_6.js → browser-interactive-control-controller-BDVXcCnz.js} +14 -14
- package/dist/{chunked-upload-BlvgxPWx.js → chunked-upload-B1kuuezC.js} +1 -1
- package/dist/{chunked-upload-file-DOeLpMO0.js → chunked-upload-file-DtAW52iW.js} +1 -1
- package/dist/cli-auth-bundle-BinY89CX.js +2 -0
- package/dist/{cli-auth-bundle-C6DtK7GX-mBUPER0R.js → cli-auth-bundle-C6DtK7GX-DoqlFTT-.js} +1 -1
- package/dist/{client-OYkwBKG2.d.ts → client-DsXWyLrM.d.ts} +79 -114
- package/dist/{client-BiKIhMtW.js → client-eoEoMzDD.js} +20 -117
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-CpKTrw6R.js → collaboration-jvzPekSe.js} +2 -2
- package/dist/core.d.ts +7 -7
- package/dist/core.js +6 -6
- package/dist/{errors-nXGKGVFe.js → errors-DQEu-Q7s.js} +20 -21
- package/dist/{file-download-BjkrYzy_.js → file-download-CihyMYH-.js} +2 -2
- package/dist/{harness-DMaNgn0S.js → harness-C5lXV9e5.js} +5 -5
- package/dist/{index-C8YpXh5N.d.ts → index-B_1aVs2B.d.ts} +14 -88
- package/dist/index.d.ts +13 -12
- package/dist/index.js +13 -13
- package/dist/intelligence/index.d.ts +13 -6
- package/dist/intelligence/index.js +61 -9
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-CJ7BBRpv.d.ts → interactive-controller-C2vOFe0u.d.ts} +3 -3
- package/dist/{interactive-controller-Blf5CLeI.js → interactive-controller-CDqa41yU.js} +7 -7
- package/dist/{lines-CSGBHEjR.js → lines-Bsp1TFBM.js} +1 -1
- package/dist/{lines-CCJZUrBP.d.ts → lines-CxWFuuJ3.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-CO0byocv.js → local-cli-auth-DrNihS9-.js} +1 -1
- package/dist/{mcp-local-oIc-ZtHF.js → mcp-local-CbzPG05W.js} +2 -2
- package/dist/{preview-zpWYtsDJ.d.ts → preview-DFFaAZdF.d.ts} +3 -3
- package/dist/{profile-schema-C1KpT-wS.js → profile-schema-C0n0VgmA.js} +468 -36
- package/dist/{public-templates-DCFFPDEB.d.ts → public-templates-xqtPv6pg.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-Cz4j8VMw.js → raw-evidence-archive-DLNEUdij.js} +3 -15
- package/dist/raw-evidence-export-C0ieFpi2.d.ts +354 -0
- package/dist/raw-evidence-export-C6Xdl3nC.js +19 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +5 -5
- package/dist/{sandbox-C1Ffpg9v.js → sandbox-nYoBbiu1.js} +116 -155
- package/dist/{select-seat-B4Y-7vIq.js → select-seat-BHHUFoKh.js} +5 -5
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +2 -2
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CL6wrVuO.js → tangle-BaGQdAZk.js} +3 -3
- package/dist/{terminal-stream-types-eE97lZ-5.d.ts → terminal-stream-types-D7dMd-NV.d.ts} +40 -26
- package/dist/{types-B5GAxo6l.d.ts → types-ImZuAuFG.d.ts} +299 -1521
- package/package.json +7 -7
- package/dist/cli-auth-bundle-BLAtE6Dc.js +0 -2
- /package/dist/{cli-auth-bundle-B91fSxkR.d.ts → cli-auth-bundle-eUl7Sa1x.d.ts} +0 -0
- /package/dist/{direct-http2-Bgb2lHte.js → direct-http2-zLxsvF44.js} +0 -0
- /package/dist/{index-o31uwAkX.d.ts → index-BTXyTVq4.d.ts} +0 -0
- /package/dist/{index-C-_HY5NY.d.ts → index-ClusTWYM.d.ts} +0 -0
- /package/dist/{sha2-vu4U-x2L.js → sha2-BIoWepwn.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U 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-
|
|
2
|
-
import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-
|
|
7
|
-
import { C as
|
|
1
|
+
import { A as requestedPublicProfileDigest, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, U 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-CDqa41yU.js";
|
|
2
|
+
import { C as boundedIdentifierSchema$1, E as boundedStringSchema$1, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1 } from "./harness-C5lXV9e5.js";
|
|
3
|
+
import { a as ProxySecretReceiptSchema$1, r as agentProfileSchema$1 } from "./profile-schema-C0n0VgmA.js";
|
|
4
|
+
import { t as sha256$1 } from "./sha2-BIoWepwn.js";
|
|
5
|
+
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-BDVXcCnz.js";
|
|
6
|
+
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CjKTjmJ9.js";
|
|
7
|
+
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 } from "./errors-DQEu-Q7s.js";
|
|
8
8
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-CRxC2dlT.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-wjUrfDvm.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, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
|
|
12
|
-
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-
|
|
12
|
+
import { c as awaitSdkResend, l as takeSdkTurn, s as uploadChunked } from "./chunked-upload-B1kuuezC.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-C6DtK7GX-
|
|
18
|
-
import "./cli-auth-bundle-
|
|
19
|
-
import { n as SandboxLines } from "./lines-
|
|
20
|
-
import { t as downloadFile } from "./file-download-
|
|
17
|
+
import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-DoqlFTT-.js";
|
|
18
|
+
import "./cli-auth-bundle-BinY89CX.js";
|
|
19
|
+
import { n as SandboxLines } from "./lines-Bsp1TFBM.js";
|
|
20
|
+
import { t as downloadFile } from "./file-download-CihyMYH-.js";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
import { constants } from "node:fs";
|
|
@@ -27,7 +27,7 @@ import { PART_TEXT, PART_TEXT_SUFFIX, locatePart } from "@tangle-network/agent-c
|
|
|
27
27
|
import { readTokenUsage } from "@tangle-network/agent-core";
|
|
28
28
|
import "@tangle-network/agent-interface/environment-provider";
|
|
29
29
|
import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
|
|
30
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
30
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
|
|
31
31
|
const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
|
|
32
32
|
provider: boundedIdentifierSchema$1,
|
|
33
33
|
environmentId: boundedIdentifierSchema$1,
|
|
@@ -104,7 +104,7 @@ function runCoordinates(run) {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
107
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
|
|
108
108
|
const terminalDimensionSchema = z.number().int().positive().max(1e4);
|
|
109
109
|
/**
|
|
110
110
|
* Provider-neutral handle for one interactive terminal.
|
|
@@ -2983,7 +2983,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
2983
2983
|
path
|
|
2984
2984
|
};
|
|
2985
2985
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
2986
|
-
const { fetchDirectHttp2: transport } = (route.useHost || route.useExec) && canUseNodeHttp2() ? await import("./direct-http2-
|
|
2986
|
+
const { fetchDirectHttp2: transport } = (route.useHost || route.useExec) && canUseNodeHttp2() ? await import("./direct-http2-zLxsvF44.js") : { fetchDirectHttp2: fetchWithKeepAlive };
|
|
2987
2987
|
return fetchSandboxApi({
|
|
2988
2988
|
baseUrl: route.origin,
|
|
2989
2989
|
timeoutMs: this.baseClient.timeoutMs,
|
|
@@ -8744,64 +8744,71 @@ var SandboxLifecycleCapabilities = class extends SandboxLifecycleEventsCapabilit
|
|
|
8744
8744
|
if (diagnostics) local.info.startupDiagnostics = diagnostics;
|
|
8745
8745
|
}
|
|
8746
8746
|
async delete(options) {
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
options?.signal?.throwIfAborted();
|
|
8752
|
-
const path = `/v1/sandboxes/${this.id}?wait=false${options?.until === "removed" ? "&until=removed" : ""}`;
|
|
8753
|
-
let retried = false;
|
|
8754
|
-
let response;
|
|
8755
|
-
try {
|
|
8756
|
-
response = await withLifecycleConflictRetry(() => state(this).client.fetch(path, {
|
|
8757
|
-
method: "DELETE",
|
|
8758
|
-
...options?.signal ? { signal: options.signal } : {},
|
|
8759
|
-
headers: {
|
|
8760
|
-
"x-no-retry": "1",
|
|
8761
|
-
...options?.wait === false && options.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : {}
|
|
8762
|
-
}
|
|
8763
|
-
}), options, (error) => {
|
|
8764
|
-
const retry = isDeleteRetry(error);
|
|
8765
|
-
retried ||= retry;
|
|
8766
|
-
return retry;
|
|
8767
|
-
});
|
|
8768
|
-
} catch (caught) {
|
|
8769
|
-
if (!retried || !(caught instanceof NotFoundError)) throw caught;
|
|
8747
|
+
const local = state(this);
|
|
8748
|
+
return deleteSandbox(local.client, this.id, options, (value) => {
|
|
8749
|
+
const diagnostics = normalizeStartupDiagnostics(value);
|
|
8750
|
+
if (diagnostics) local.info.startupDiagnostics = diagnostics;
|
|
8770
8751
|
sandboxStatusObservedAt.delete(this);
|
|
8771
|
-
|
|
8772
|
-
sandboxId: this.id,
|
|
8773
|
-
outcome: "already_absent"
|
|
8774
|
-
};
|
|
8775
|
-
}
|
|
8776
|
-
if (response.status === 202) {
|
|
8777
|
-
const operation = new SandboxOperation(parseSandboxOperation((await readResponseJson(response)).operation, {
|
|
8778
|
-
kind: "delete",
|
|
8779
|
-
sandboxId: this.id
|
|
8780
|
-
}), state(this).client, () => {
|
|
8781
|
-
sandboxStatusObservedAt.delete(this);
|
|
8782
|
-
});
|
|
8783
|
-
if (options?.wait === false) return operation;
|
|
8784
|
-
const done = await operation.wait(options?.signal ? { signal: options.signal } : {});
|
|
8785
|
-
return {
|
|
8786
|
-
sandboxId: this.id,
|
|
8787
|
-
outcome: done.result?.deleted === true ? "destroyed" : "unknown",
|
|
8788
|
-
...done.result?.removal ? { removal: done.result.removal } : {}
|
|
8789
|
-
};
|
|
8790
|
-
}
|
|
8791
|
-
const data = await response.json().catch(() => null);
|
|
8792
|
-
options?.signal?.throwIfAborted();
|
|
8793
|
-
const diagnostics = data ? normalizeStartupDiagnostics(data.startupDiagnostics) : null;
|
|
8794
|
-
if (diagnostics) state(this).info.startupDiagnostics = diagnostics;
|
|
8795
|
-
sandboxStatusObservedAt.delete(this);
|
|
8796
|
-
const outcome = data?.outcome === "destroyed" || data?.outcome === "already_absent" ? data.outcome : "unknown";
|
|
8797
|
-
const removal = data?.removal === "pending" || data?.removal === "complete" ? data.removal : void 0;
|
|
8798
|
-
return options?.wait === false ? SandboxOperation.completed("delete", this.id, { outcome }) : {
|
|
8799
|
-
sandboxId: this.id,
|
|
8800
|
-
outcome,
|
|
8801
|
-
...removal ? { removal } : {}
|
|
8802
|
-
};
|
|
8752
|
+
});
|
|
8803
8753
|
}
|
|
8804
8754
|
};
|
|
8755
|
+
/** One deletion path, usable after sandbox metadata has disappeared. */
|
|
8756
|
+
async function deleteSandbox(client, id, options, observe) {
|
|
8757
|
+
if (options?.wait === false && options.until) throw new SandboxError("delete({ wait: false }) cannot also wait until removed", {
|
|
8758
|
+
code: "INVALID_OPTIONS",
|
|
8759
|
+
status: 400
|
|
8760
|
+
});
|
|
8761
|
+
options?.signal?.throwIfAborted();
|
|
8762
|
+
const path = `/v1/sandboxes/${encodeURIComponent(id)}?wait=false${options?.until === "removed" ? "&until=removed" : ""}`;
|
|
8763
|
+
let retried = false;
|
|
8764
|
+
let response;
|
|
8765
|
+
try {
|
|
8766
|
+
response = await withLifecycleConflictRetry(() => client.fetch(path, {
|
|
8767
|
+
method: "DELETE",
|
|
8768
|
+
...options?.signal ? { signal: options.signal } : {},
|
|
8769
|
+
headers: {
|
|
8770
|
+
"x-no-retry": "1",
|
|
8771
|
+
...options?.wait === false && options.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : {}
|
|
8772
|
+
}
|
|
8773
|
+
}), options, (error) => {
|
|
8774
|
+
const retry = isDeleteRetry(error);
|
|
8775
|
+
retried ||= retry;
|
|
8776
|
+
return retry;
|
|
8777
|
+
});
|
|
8778
|
+
} catch (caught) {
|
|
8779
|
+
if (!retried || !(caught instanceof NotFoundError)) throw caught;
|
|
8780
|
+
observe?.();
|
|
8781
|
+
return options?.wait === false ? SandboxOperation.completed("delete", id, { outcome: "already_absent" }) : {
|
|
8782
|
+
sandboxId: id,
|
|
8783
|
+
outcome: "already_absent"
|
|
8784
|
+
};
|
|
8785
|
+
}
|
|
8786
|
+
if (response.status === 202) {
|
|
8787
|
+
const operation = new SandboxOperation(parseSandboxOperation((await readResponseJson(response)).operation, {
|
|
8788
|
+
kind: "delete",
|
|
8789
|
+
sandboxId: id
|
|
8790
|
+
}), client, () => {
|
|
8791
|
+
observe?.();
|
|
8792
|
+
});
|
|
8793
|
+
if (options?.wait === false) return operation;
|
|
8794
|
+
const done = await operation.wait(options?.signal ? { signal: options.signal } : {});
|
|
8795
|
+
return {
|
|
8796
|
+
sandboxId: id,
|
|
8797
|
+
outcome: done.result?.deleted === true ? "destroyed" : "unknown",
|
|
8798
|
+
...done.result?.removal ? { removal: done.result.removal } : {}
|
|
8799
|
+
};
|
|
8800
|
+
}
|
|
8801
|
+
const data = await response.json().catch(() => null);
|
|
8802
|
+
options?.signal?.throwIfAborted();
|
|
8803
|
+
observe?.(data?.startupDiagnostics);
|
|
8804
|
+
const outcome = data?.outcome === "destroyed" || data?.outcome === "already_absent" ? data.outcome : "unknown";
|
|
8805
|
+
const removal = data?.removal === "pending" || data?.removal === "complete" ? data.removal : void 0;
|
|
8806
|
+
return options?.wait === false ? SandboxOperation.completed("delete", id, { outcome }) : {
|
|
8807
|
+
sandboxId: id,
|
|
8808
|
+
outcome,
|
|
8809
|
+
...removal ? { removal } : {}
|
|
8810
|
+
};
|
|
8811
|
+
}
|
|
8805
8812
|
/**
|
|
8806
8813
|
* How long a lifecycle call re-attempts a refusal that only asks it to wait:
|
|
8807
8814
|
* `resume`, `stop` and `delete` share one lease per sandbox, held past a
|
|
@@ -12001,7 +12008,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
12001
12008
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
12002
12009
|
/** @internal — invoked before the sandbox is deleted. */
|
|
12003
12010
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
12004
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
12011
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DLNEUdij.js");
|
|
12005
12012
|
await this.ensureRunning();
|
|
12006
12013
|
await this.refresh();
|
|
12007
12014
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -12032,7 +12039,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
12032
12039
|
* and the byte and file bounds are verified before the directory appears.
|
|
12033
12040
|
*/
|
|
12034
12041
|
async exportRawEvidence(destination, options) {
|
|
12035
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
12042
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DLNEUdij.js");
|
|
12036
12043
|
await this.ensureRunning();
|
|
12037
12044
|
await this.refresh();
|
|
12038
12045
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -13001,13 +13008,7 @@ var SandboxTurnCapabilities = class extends SandboxSessionCapabilities {
|
|
|
13001
13008
|
};
|
|
13002
13009
|
//#endregion
|
|
13003
13010
|
//#region src/sandbox-snapshots.ts
|
|
13004
|
-
/**
|
|
13005
|
-
* How long `deleteSnapshot` waits out the platform holding the delete while
|
|
13006
|
-
* the snapshot's resume generation is still copying to remote storage
|
|
13007
|
-
* (409 RESUME_SNAPSHOT_RETAINED, resume_generation_unconfirmed) or another
|
|
13008
|
-
* delete of it is in flight. The copy p99 measured in eu1 on 2026-10-27 was
|
|
13009
|
-
* 72.8 s; the production journey met a 37.8 s hold after a restore.
|
|
13010
|
-
*/
|
|
13011
|
+
/** Bounded wait for a resume-copy or concurrent-delete retention hold. */
|
|
13011
13012
|
const SNAPSHOT_DELETE_RETAINED_WAIT_MS = 12e4;
|
|
13012
13013
|
const SNAPSHOT_DELETE_RETAINED_RETRY_MS = 2e3;
|
|
13013
13014
|
const HELD_REASONS = new Set(["resume_generation_unconfirmed", "snapshot_delete_in_flight"]);
|
|
@@ -13094,11 +13095,7 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13094
13095
|
...idempotency ? { idempotency } : {}
|
|
13095
13096
|
};
|
|
13096
13097
|
}
|
|
13097
|
-
/**
|
|
13098
|
-
* `snapshot({ wait: false })`: the API may accept the capture and answer
|
|
13099
|
-
* 202 with the operation; a capture it finished synchronously comes back as
|
|
13100
|
-
* an operation that is already `succeeded`, its result naming the snapshot.
|
|
13101
|
-
*/
|
|
13098
|
+
/** Asynchronous acceptance returns an operation; synchronous capture returns a succeeded operation. */
|
|
13102
13099
|
async #snapshotNoWait(options) {
|
|
13103
13100
|
if ("paths" in options) throw new Error("Path-scoped snapshot capture is not supported; create a whole-workspace snapshot and use restorePaths()");
|
|
13104
13101
|
if (options.storage) throw new Error("wait: false is not supported with customer-provided storage; the BYOS3 snapshot path keeps no operation record");
|
|
@@ -13122,32 +13119,7 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13122
13119
|
tags: Array.isArray(body.tags) ? body.tags.filter((tag) => typeof tag === "string") : []
|
|
13123
13120
|
} });
|
|
13124
13121
|
}
|
|
13125
|
-
/**
|
|
13126
|
-
* List all snapshots for this sandbox.
|
|
13127
|
-
*
|
|
13128
|
-
* If `storage` is provided (BYOS3), lists snapshots from customer-provided
|
|
13129
|
-
* S3 storage.
|
|
13130
|
-
*
|
|
13131
|
-
* @param storage - Optional customer storage config for BYOS3
|
|
13132
|
-
* @returns Array of snapshot metadata
|
|
13133
|
-
*
|
|
13134
|
-
* @example List from our storage
|
|
13135
|
-
* ```typescript
|
|
13136
|
-
* const snapshots = await box.listSnapshots();
|
|
13137
|
-
* for (const snap of snapshots) {
|
|
13138
|
-
* console.log(`${snap.snapshotId}: ${snap.createdAt}`);
|
|
13139
|
-
* }
|
|
13140
|
-
* ```
|
|
13141
|
-
*
|
|
13142
|
-
* @example List from customer S3 (BYOS3)
|
|
13143
|
-
* ```typescript
|
|
13144
|
-
* const snapshots = await box.listSnapshots({
|
|
13145
|
-
* type: "s3",
|
|
13146
|
-
* bucket: "my-snapshots",
|
|
13147
|
-
* credentials: { accessKeyId: "...", secretAccessKey: "..." },
|
|
13148
|
-
* });
|
|
13149
|
-
* ```
|
|
13150
|
-
*/
|
|
13122
|
+
/** List snapshots; storage selects the direct customer-S3 path. */
|
|
13151
13123
|
async listSnapshots(storage) {
|
|
13152
13124
|
if (storage) {
|
|
13153
13125
|
await this.ensureRunning();
|
|
@@ -13180,13 +13152,7 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13180
13152
|
};
|
|
13181
13153
|
});
|
|
13182
13154
|
}
|
|
13183
|
-
/**
|
|
13184
|
-
* Delete a snapshot.
|
|
13185
|
-
*
|
|
13186
|
-
* Deleting a snapshot that is already gone succeeds and reports
|
|
13187
|
-
* `already_absent`, so a retry after an uncertain failure does not raise. A
|
|
13188
|
-
* 404 means this sandbox is unknown, not that the snapshot was missing.
|
|
13189
|
-
*/
|
|
13155
|
+
/** Delete returns already_absent for a missing snapshot; 404 means the sandbox itself is unknown. */
|
|
13190
13156
|
async deleteSnapshot(snapshotId, options) {
|
|
13191
13157
|
const started = Date.now();
|
|
13192
13158
|
const budgetMs = Math.min(SNAPSHOT_DELETE_RETAINED_WAIT_MS, options?.timeoutMs ?? SNAPSHOT_DELETE_RETAINED_WAIT_MS);
|
|
@@ -13202,19 +13168,39 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13202
13168
|
await abortableSleep(Math.min(error.retryAfterMs ?? SNAPSHOT_DELETE_RETAINED_RETRY_MS, CREATE_RETRY_MAX_DELAY_MS, remainingMs));
|
|
13203
13169
|
heldUntil = Date.now();
|
|
13204
13170
|
}
|
|
13205
|
-
|
|
13171
|
+
let parseState = "object";
|
|
13172
|
+
const data = await response.json().catch((error) => {
|
|
13173
|
+
parseState = error instanceof SyntaxError ? "invalid-json" : "body-read-failed";
|
|
13174
|
+
return {};
|
|
13175
|
+
});
|
|
13176
|
+
if (parseState === "object") parseState = data === null ? "null" : Array.isArray(data) ? "array" : typeof data === "object" ? "object" : "primitive";
|
|
13177
|
+
const receipt = {
|
|
13178
|
+
...responseMetadata(response.status, response.headers),
|
|
13179
|
+
receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
13180
|
+
parseState
|
|
13181
|
+
};
|
|
13182
|
+
const body = data;
|
|
13183
|
+
let wireOutcome;
|
|
13184
|
+
try {
|
|
13185
|
+
wireOutcome = body.outcome;
|
|
13186
|
+
} catch (error) {
|
|
13187
|
+
throw Object.assign(error, receipt);
|
|
13188
|
+
}
|
|
13206
13189
|
return {
|
|
13207
13190
|
snapshotId,
|
|
13208
|
-
outcome:
|
|
13191
|
+
outcome: wireOutcome === "deleted" || wireOutcome === "already_absent" ? wireOutcome : "unknown",
|
|
13192
|
+
response: {
|
|
13193
|
+
...receipt,
|
|
13194
|
+
attestation: {
|
|
13195
|
+
outcome: wireOutcome === void 0 ? "missing" : wireOutcome === "deleted" || wireOutcome === "already_absent" || wireOutcome === "unknown" ? wireOutcome : "unrecognized",
|
|
13196
|
+
...typeof body.deleted === "boolean" ? { deleted: body.deleted } : {},
|
|
13197
|
+
...typeof body.success === "boolean" ? { success: body.success } : {}
|
|
13198
|
+
}
|
|
13199
|
+
},
|
|
13209
13200
|
...heldUntil === void 0 ? {} : { retainedMs: heldUntil - started }
|
|
13210
13201
|
};
|
|
13211
13202
|
}
|
|
13212
|
-
/**
|
|
13213
|
-
* Ask whether the snapshot bound to an idempotency key is decided.
|
|
13214
|
-
*
|
|
13215
|
-
* Pass the same options the create carried for an exact-body lookup. Omit
|
|
13216
|
-
* options to read the operation bound to this owner-scoped key.
|
|
13217
|
-
*/
|
|
13203
|
+
/** Read the checkpoint operation by key; options request an exact-body lookup. */
|
|
13218
13204
|
async getSnapshotOperation(idempotencyKey, options) {
|
|
13219
13205
|
const response = await state(this).client.fetch(`/v1/sandboxes/${this.id}/workspace-operations/lookup`, {
|
|
13220
13206
|
method: "POST",
|
|
@@ -13255,10 +13241,7 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13255
13241
|
if (response.status === 202) return this.waitForSnapshotRestore(snapshotId, data);
|
|
13256
13242
|
return toSnapshotResult(data, state(this).profileProvenance);
|
|
13257
13243
|
}
|
|
13258
|
-
/**
|
|
13259
|
-
* Settle a restore from its job's status. The restore's own 202, held to
|
|
13260
|
-
* the job's end, is the first status read; only an unfinished one polls.
|
|
13261
|
-
*/
|
|
13244
|
+
/** Read the accepted restore job first; poll only while unfinished. */
|
|
13262
13245
|
async waitForSnapshotRestore(snapshotId, accepted) {
|
|
13263
13246
|
const deadline = Date.now() + SDK_TIMEOUTS.snapshot;
|
|
13264
13247
|
let status = accepted;
|
|
@@ -13310,29 +13293,7 @@ var SandboxSnapshotCapabilities = class extends SandboxTurnCapabilities {
|
|
|
13310
13293
|
};
|
|
13311
13294
|
throw lastError instanceof Error ? lastError : new TimeoutError(`Request timed out after ${SNAPSHOT_VISIBILITY_TIMEOUT_MS}ms`, { timeoutMs: SNAPSHOT_VISIBILITY_TIMEOUT_MS });
|
|
13312
13295
|
}
|
|
13313
|
-
/**
|
|
13314
|
-
* Restore from the latest snapshot in customer-provided storage.
|
|
13315
|
-
* Only available when using BYOS3 (calls the runtime directly).
|
|
13316
|
-
*
|
|
13317
|
-
* @param storage - Customer storage config (required)
|
|
13318
|
-
* @param destinationPath - Optional path to restore to
|
|
13319
|
-
* @returns Snapshot info if restored, null if no snapshot found
|
|
13320
|
-
*
|
|
13321
|
-
* @example Restore from customer S3
|
|
13322
|
-
* ```typescript
|
|
13323
|
-
* const result = await box.restoreFromStorage({
|
|
13324
|
-
* type: "s3",
|
|
13325
|
-
* bucket: "my-snapshots",
|
|
13326
|
-
* credentials: { accessKeyId: "...", secretAccessKey: "..." },
|
|
13327
|
-
* });
|
|
13328
|
-
*
|
|
13329
|
-
* if (result) {
|
|
13330
|
-
* console.log(`Restored from ${result.snapshotId}`);
|
|
13331
|
-
* } else {
|
|
13332
|
-
* console.log("No snapshot found");
|
|
13333
|
-
* }
|
|
13334
|
-
* ```
|
|
13335
|
-
*/
|
|
13296
|
+
/** Restore the latest customer-storage snapshot directly; null means none found. */
|
|
13336
13297
|
async restoreFromStorage(storage, options) {
|
|
13337
13298
|
if (!storage) throw new Error("Storage config is required for restoreFromStorage");
|
|
13338
13299
|
await this.ensureRunning();
|
|
@@ -14167,7 +14128,7 @@ var SandboxFilesystemOperations = class extends DeclaredFilesystemOperations {
|
|
|
14167
14128
|
totalBytes: size,
|
|
14168
14129
|
percentage: 0
|
|
14169
14130
|
});
|
|
14170
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
14131
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-DtAW52iW.js");
|
|
14171
14132
|
await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
14172
14133
|
mode: options?.permissions,
|
|
14173
14134
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -15074,4 +15035,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
15074
15035
|
}
|
|
15075
15036
|
};
|
|
15076
15037
|
//#endregion
|
|
15077
|
-
export {
|
|
15038
|
+
export { isDeployWindowCreateError as $, HARNESS_LAUNCH_MATERIALIZE_OPTIONS as A, parseLifecycleTimes as B, SandboxOperation as C, splitInlineProfileSkills as D, splitInlineProfileFileMounts as E, normalizeCaptureProof as F, CAPACITY_ETA_MARGIN_MS as G, normalizeEgressPolicyFields as H, normalizeSandboxCreateReceipt as I, awaitCreateResend as J, CAPACITY_ETA_WAIT_MAX_MS as K, normalizeStartupDiagnostics as L, enforceWorkspacePlanSupport as M, isMaterializerHarness as N, validateDeferredProfileFileMounts as O, materializeProfile as P, isCapacityShortageCreateError as Q, readFilesystemIncarnationTuple as R, ManagedProcessClient as S, materializeProfileFileMounts as T, normalizeProxySecretReceipt as U, normalizeConnection as V, normalizeSandboxShape as W, extendableDeadline as X, createRetryDelayMs as Y, generateIdempotencyKey as Z, collectAgentFinalMessageText as _, buildTraceExportPayload as a, isToolBearingEvent as b, toOtelJson as c, sandboxLedgerUsd as d, isRateLimitCreateError as et, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, MAX_EGRESS_DENIALS_LIMIT as i, ProfileUnsupportedError as j, isRetryableProfileFileMaterializeFailure as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, exportTraceBundle as o, InteractiveTerminalFrameLog as p, DEPLOY_WINDOW_RETRY_MS as q, WorkspaceImages as r, otelTraceIdForTangleTrace as s, SandboxInstance as t, isRetryableCreateError as tt, SandboxSession as u, collectAgentResponseText as v, SandboxOperationFailedError as w, deleteSandbox as x, getSandboxEventText as y, dateOf as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
2
|
-
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-
|
|
3
|
-
import {
|
|
1
|
+
import { r as agentProfileSchema } from "./profile-schema-C0n0VgmA.js";
|
|
2
|
+
import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CjKTjmJ9.js";
|
|
3
|
+
import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-DQEu-Q7s.js";
|
|
4
4
|
import { t as awaitWithAbort } from "./abort-signal-CRxC2dlT.js";
|
|
5
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-
|
|
6
|
-
import "./cli-auth-bundle-
|
|
5
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-DoqlFTT-.js";
|
|
6
|
+
import "./cli-auth-bundle-BinY89CX.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../../../packages/runtime-contracts/dist/seat-selection.js
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ht as SeatOwnerTransport, vt as SeatSelectionRequest } from "./client-
|
|
1
|
+
import { R as SandboxError } from "./terminal-stream-types-D7dMd-NV.js";
|
|
2
|
+
import { ht as SeatOwnerTransport, vt as SeatSelectionRequest } from "./client-DsXWyLrM.js";
|
|
3
3
|
|
|
4
4
|
//#region src/select-seat-command.d.ts
|
|
5
5
|
/** Public reply bound; the owner prints one metadata object. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as SEAT_OWNER_MAX_RESPONSE_BYTES } from "./select-seat-
|
|
1
|
+
import { C as SandboxError, O as ValidationError } from "./errors-DQEu-Q7s.js";
|
|
2
|
+
import { n as SEAT_OWNER_MAX_RESPONSE_BYTES } from "./select-seat-BHHUFoKh.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-CRxC2dlT.js";
|
|
2
|
-
import { i as fetchSandboxApi } from "../api-request-
|
|
2
|
+
import { i as fetchSandboxApi } from "../api-request-wjUrfDvm.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.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_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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 TANGLE_JOBS_CONTRACT, 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_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, 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 TANGLE_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-B_1aVs2B.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, BlueprintSandboxClientConfig, 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, 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 BlueprintSandboxClient, 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 BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-BaGQdAZk.js";
|
|
2
2
|
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 {
|
|
2
|
-
import { a as readResponseJson } from "./errors-
|
|
3
|
-
import { i as fetchSandboxApi } from "./api-request-
|
|
1
|
+
import { R as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-nYoBbiu1.js";
|
|
2
|
+
import { a as readResponseJson } from "./errors-DQEu-Q7s.js";
|
|
3
|
+
import { i as fetchSandboxApi } from "./api-request-wjUrfDvm.js";
|
|
4
4
|
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-BT2q9nkO.js";
|
|
5
5
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
6
6
|
/**
|