@tangle-network/sandbox 0.62.14 → 0.62.16
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 +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-BjZ1EHSq.d.ts → agent-run-outcome-DelYPNu3.d.ts} +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{chunked-upload-ClCKGr59.js → chunked-upload-B867njKv.js} +2 -59
- package/dist/{chunked-upload-file-RaMaNFN_.js → chunked-upload-file-Bs5qcfRB.js} +2 -1
- package/dist/{client-CdNw2DEF.js → client-C1hSgXB-.js} +9 -8
- package/dist/{client-C7KaqyfN.d.ts → client-CAA0Vnkx.d.ts} +5 -5
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DZCyTGdn.js → collaboration-CXtTwK3x.js} +1 -1
- package/dist/core.d.ts +8 -8
- package/dist/core.js +4 -4
- package/dist/{errors-DSJBKmGZ.js → errors-Bfhg_Zc6.js} +130 -1
- package/dist/{errors-BSmxfVt0.d.ts → errors-DNxN33_n.d.ts} +14 -2
- package/dist/{index-BiJDEVsu.d.ts → index-5Iv50Yu9.d.ts} +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/{interactive-controller-B2VcB_SK.js → interactive-controller-B8W1CCXk.js} +18 -18
- package/dist/{lines-CodL_Yhd.d.ts → lines-joXwwKub.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-BSFX2vnt.js → local-cli-auth-yn7YxF87.js} +1 -1
- package/dist/{managed-process-BEgMYGGu.d.ts → managed-process-Cri6fY06.d.ts} +1 -1
- package/dist/{preview-BamI9Yoe.d.ts → preview-BWkrbSW-.d.ts} +3 -3
- package/dist/{public-templates-CAMfH_Yr.d.ts → public-templates-DtRGMy8F.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/runtime.d.ts +4 -4
- package/dist/runtime.js +4 -4
- package/dist/{sandbox-BGyIDjUH.js → sandbox-ChgyE6cI.js} +128 -24
- package/dist/{sandbox-I390rjrp.d.ts → sandbox-I9ZSVMP7.d.ts} +12 -4
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-9PQPjv8y.js → tangle-CSMVbnXg.js} +2 -2
- package/dist/{types-Bal6rlUP.d.ts → types-C-VC0oGh.d.ts} +12 -2
- package/package.json +3 -3
- /package/dist/{cli-auth-bundle-BvXQd1UX.js → cli-auth-bundle-DBRU4ifV.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
2
|
+
import { A as assertCurrentBackendType, B as deriveAgentResultOutcome, C as sessionHeaders, D as encodeTextForWire, E as encodePromptForWire, F as requestedSecretProfilePublicDigest, M as mergeRuntimeBackendConfig, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, R as withoutRuntimeSecrets, S as appendSessionIdQuery, T as validateAcceptedDispatchRunRef, _ as TRACE_ID_HEADER, a as terminalUpgradeHeadersSupported, b as resolveTraceId, d as SandboxRuntimeApi, f as isRetryableCredentialRefusal, g as waitForRetryAfter, h as sessionMessageRequestBody, i as TerminalStreamError, k as applyRequestedModel, l as requestScopedToken, m as normalizeSessionInfo, n as InteractiveSessionController, p as normalizeEffectiveBackend, r as TerminalStream, s as assertScopedTokenActive, u as canUseNodeHttp2, v as isTraceId, w as resolveDispatchRunIdentity, x as traceHeaders, y as mintTraceId, z as createAgentRunOutcomeTracker } from "./interactive-controller-B8W1CCXk.js";
|
|
3
|
+
import { A as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, C as parseResponseError, M as SANDBOX_FILE_API_ABSOLUTE_ROOTS, N as isProfileFileMountOutsideRoots, O as SANDBOX_PROXY_REQUEST_MAX_BYTES, P as profileFileMountOutsideRootsMessage, S as parseErrorResponse, _ as ServerError, b as TimeoutError, d as NotFoundError, g as SandboxError, i as EdgeNotReadyError, j as SANDBOX_AGENT_HOME, m as QuotaError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, w as readResponseJson, x as ValidationError, y as StreamInterruptedError } from "./errors-Bfhg_Zc6.js";
|
|
4
4
|
import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
5
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
6
6
|
import { SandboxLines } from "./lines.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DBRU4ifV.js";
|
|
8
|
+
import { s as uploadChunked } from "./chunked-upload-B867njKv.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
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";
|
|
11
11
|
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";
|
|
@@ -338,7 +338,7 @@ const UNDECIDED_WRITE_STATUSES = new Set([
|
|
|
338
338
|
]);
|
|
339
339
|
const PROFILE_FILE_MOUNT_PACE_MS = 0;
|
|
340
340
|
const PROFILE_BIN_DIR_RE$1 = /(^|\/)(s?bin)\//;
|
|
341
|
-
const PROFILE_AGENT_HOME =
|
|
341
|
+
const PROFILE_AGENT_HOME = SANDBOX_AGENT_HOME;
|
|
342
342
|
/**
|
|
343
343
|
* Wire budget for a single-shot `POST /files/write` of a mount.
|
|
344
344
|
* Materialization runs over whatever connection the box has — on the
|
|
@@ -357,12 +357,8 @@ function fitsSingleShotWrite(content, contentBytes) {
|
|
|
357
357
|
if (contentBytes * 6 <= PROFILE_FILE_WRITE_WIRE_BUDGET_BYTES) return true;
|
|
358
358
|
return new TextEncoder().encode(JSON.stringify(content)).byteLength <= PROFILE_FILE_WRITE_WIRE_BUDGET_BYTES;
|
|
359
359
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
["/home", "user"].join("/"),
|
|
363
|
-
"/tmp",
|
|
364
|
-
"/output"
|
|
365
|
-
];
|
|
360
|
+
/** The sidecar file API's absolute roots, read from their single owner. */
|
|
361
|
+
const DEFAULT_PROFILE_FILE_API_ABSOLUTE_PREFIXES = SANDBOX_FILE_API_ABSOLUTE_ROOTS;
|
|
366
362
|
function inlineContent(mount) {
|
|
367
363
|
const resource = mount.resource;
|
|
368
364
|
if (resource.kind !== "inline") throw new Error(`materializeProfileFileMounts: ${mount.path} requires an inline resource`);
|
|
@@ -376,16 +372,31 @@ function inlineContent(mount) {
|
|
|
376
372
|
* client-detectable bad input (traversal paths, control characters,
|
|
377
373
|
* non-string content) fails without paying for a sandbox that would only be
|
|
378
374
|
* orphaned by the post-provision throw.
|
|
375
|
+
*
|
|
376
|
+
* A path the sidecar file API refuses (an absolute path outside
|
|
377
|
+
* `SANDBOX_FILE_API_ABSOLUTE_ROOTS`) follows the profile's resource policy:
|
|
378
|
+
* with `failOnError` true (the default) it throws
|
|
379
|
+
* {@link ProfileFileMountPathError} (422); with `failOnError: false` the
|
|
380
|
+
* mount is dropped with a warning. Returns the mounts to deliver.
|
|
379
381
|
*/
|
|
380
|
-
function validateDeferredProfileFileMounts(files) {
|
|
382
|
+
function validateDeferredProfileFileMounts(files, options = {}) {
|
|
383
|
+
const kept = [];
|
|
381
384
|
const paths = /* @__PURE__ */ new Set();
|
|
382
385
|
for (const mount of files) {
|
|
383
386
|
inlineContent(mount);
|
|
384
387
|
validateProfileFilePath(mount.path);
|
|
388
|
+
if (isProfileFileMountOutsideRoots(mount.path)) {
|
|
389
|
+
const message = `materializeProfileFileMounts: ${profileFileMountOutsideRootsMessage(mount.path)}`;
|
|
390
|
+
if (options.failOnError !== false) throw new ProfileFileMountPathError(mount.path, message, PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE);
|
|
391
|
+
console.warn(`[sandbox.profile] dropped profile file mount (resources.failOnError is false): ${message}`);
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
385
394
|
const path = (mount.path.startsWith("~/") ? `${PROFILE_AGENT_HOME}/${mount.path.slice(2)}` : mount.path).replace(/\/+/g, "/");
|
|
386
395
|
if (paths.has(path)) throw new Error(`materializeProfileFileMounts: duplicate file path ${mount.path}`);
|
|
387
396
|
paths.add(path);
|
|
397
|
+
kept.push(mount);
|
|
388
398
|
}
|
|
399
|
+
return kept;
|
|
389
400
|
}
|
|
390
401
|
/**
|
|
391
402
|
* Split inline `resources.skills` out of a profile the way
|
|
@@ -592,6 +603,81 @@ function transientExecError(err) {
|
|
|
592
603
|
};
|
|
593
604
|
return { retryable: false };
|
|
594
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* A materialization step failure. `detail` holds the sandbox's own output
|
|
608
|
+
* (stderr). It is kept apart from the message, which names the mount path,
|
|
609
|
+
* so classification never reads the caller's path as a cause.
|
|
610
|
+
*/
|
|
611
|
+
var ProfileFileMaterializeError = class extends Error {
|
|
612
|
+
exitCode;
|
|
613
|
+
detail;
|
|
614
|
+
/** True when the SDK itself decided the failure, with no sandbox call. */
|
|
615
|
+
decided;
|
|
616
|
+
constructor(message, options = {}) {
|
|
617
|
+
super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
|
|
618
|
+
this.name = "ProfileFileMaterializeError";
|
|
619
|
+
this.exitCode = options.exitCode;
|
|
620
|
+
this.detail = options.detail;
|
|
621
|
+
this.decided = options.decided === true;
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
/**
|
|
625
|
+
* HTTP answers below 500 that do not decide a write after create: a route
|
|
626
|
+
* that is still settling (401, 404), a timeout, a conflict, too early, or a
|
|
627
|
+
* rate limit.
|
|
628
|
+
*/
|
|
629
|
+
const UNSETTLED_HTTP_STATUSES = new Set([
|
|
630
|
+
401,
|
|
631
|
+
404,
|
|
632
|
+
408,
|
|
633
|
+
409,
|
|
634
|
+
425,
|
|
635
|
+
429
|
|
636
|
+
]);
|
|
637
|
+
/** Sandbox output that names a cause a repeat cannot change. */
|
|
638
|
+
const DECIDED_CAUSE_RE = /\bEROFS\b|read-only file system|\bEACCES\b|\bEPERM\b|permission denied|operation not permitted|checksum mismatch|refusing|outside allowed roots|reserved control-plane|duplicate profile file target/i;
|
|
639
|
+
/**
|
|
640
|
+
* Whether a failed materialization may succeed when repeated. Only a clear
|
|
641
|
+
* deterministic cause makes it terminal:
|
|
642
|
+
* - a read-only file system, permission denied, a refused path or a
|
|
643
|
+
* checksum mismatch in the sandbox's output;
|
|
644
|
+
* - a 4xx write refusal other than {@link UNSETTLED_HTTP_STATUSES};
|
|
645
|
+
* - a delivery the SDK refused itself.
|
|
646
|
+
*
|
|
647
|
+
* A transport failure, a timeout, any 5xx (Cloudflare 520-530 included), an
|
|
648
|
+
* unsettled 4xx or an exit code of 128 or more (a signal or OOM kill) is
|
|
649
|
+
* retryable, and so is any failure with no clear cause. Text is read only
|
|
650
|
+
* from the sandbox's output and from errors the SDK did not raise, never from
|
|
651
|
+
* an SDK message that names the mount path.
|
|
652
|
+
*/
|
|
653
|
+
function isRetryableProfileFileMaterializeFailure(err) {
|
|
654
|
+
let decided = false;
|
|
655
|
+
const seen = /* @__PURE__ */ new Set();
|
|
656
|
+
for (let link = err; link && typeof link === "object";) {
|
|
657
|
+
if (seen.has(link)) break;
|
|
658
|
+
seen.add(link);
|
|
659
|
+
if (link instanceof ProfileFileMountExecTimeoutError || link instanceof NetworkError || link instanceof TimeoutError) return true;
|
|
660
|
+
const status = errorStatus(link);
|
|
661
|
+
if (status !== void 0) {
|
|
662
|
+
if (status >= 500 || UNSETTLED_HTTP_STATUSES.has(status)) return true;
|
|
663
|
+
if (status >= 400) decided = true;
|
|
664
|
+
}
|
|
665
|
+
if (link instanceof ProfileFileMaterializeError) {
|
|
666
|
+
if (link.exitCode !== void 0 && link.exitCode >= 128) return true;
|
|
667
|
+
if (link.decided) decided = true;
|
|
668
|
+
if (link.detail !== void 0 && DECIDED_CAUSE_RE.test(link.detail)) decided = true;
|
|
669
|
+
} else {
|
|
670
|
+
const { code, message } = link;
|
|
671
|
+
if (typeof code === "string" && TRANSIENT_EXEC_CODE_RE.test(code)) return true;
|
|
672
|
+
if (typeof message === "string") {
|
|
673
|
+
if (TRANSIENT_EXEC_MESSAGE_RE.test(message)) return true;
|
|
674
|
+
if (DECIDED_CAUSE_RE.test(message)) decided = true;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
link = link.cause;
|
|
678
|
+
}
|
|
679
|
+
return !decided;
|
|
680
|
+
}
|
|
595
681
|
function isUndecidedWriteFailure(err) {
|
|
596
682
|
if (err instanceof NetworkError) return true;
|
|
597
683
|
if (!err || typeof err !== "object") return false;
|
|
@@ -655,13 +741,19 @@ async function execProfileFileMount(box, mount, content, options, execState) {
|
|
|
655
741
|
await sleep(Math.min(retryAfter ?? backoff, PROFILE_FILE_MOUNT_RETRY_MAX_MS));
|
|
656
742
|
continue;
|
|
657
743
|
}
|
|
658
|
-
throw new
|
|
744
|
+
throw new ProfileFileMaterializeError(`materializeProfileFileMounts: exec failed for ${path}`, { cause: err });
|
|
659
745
|
}
|
|
660
746
|
}
|
|
661
747
|
};
|
|
662
748
|
const step = async (cmd) => {
|
|
663
749
|
const result = await run(`${homeGuard}${cmd}`);
|
|
664
|
-
if (result.exitCode !== 0)
|
|
750
|
+
if (result.exitCode !== 0) {
|
|
751
|
+
const stderr = result.stderr.slice(0, 500);
|
|
752
|
+
throw new ProfileFileMaterializeError(`materializeProfileFileMounts: failed to write ${path} (exit ${result.exitCode}): ${stderr}`, {
|
|
753
|
+
exitCode: result.exitCode,
|
|
754
|
+
detail: stderr
|
|
755
|
+
});
|
|
756
|
+
}
|
|
665
757
|
};
|
|
666
758
|
await step(dir ? `mkdir -p ${shellPath(dir)}` : ":");
|
|
667
759
|
for (let i = 0; i < b64Chunks.length; i++) {
|
|
@@ -696,7 +788,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
|
|
|
696
788
|
const mode = profileFileMode(mount);
|
|
697
789
|
const contentBytes = new TextEncoder().encode(content).byteLength;
|
|
698
790
|
if (!fitsSingleShotWrite(content, contentBytes)) {
|
|
699
|
-
if (typeof uploadDataFn !== "function") throw new
|
|
791
|
+
if (typeof uploadDataFn !== "function") throw new ProfileFileMaterializeError(`materializeProfileFileMounts: ${mount.path} (${contentBytes} bytes decoded) does not fit a gateway-safe single-shot write once JSON-serialized, and the box does not expose fs.uploadData for chunked delivery`, { decided: true });
|
|
700
792
|
viaUpload.push({
|
|
701
793
|
path: target,
|
|
702
794
|
content,
|
|
@@ -725,7 +817,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
|
|
|
725
817
|
maxRetries
|
|
726
818
|
}), maxRetries);
|
|
727
819
|
} catch (err) {
|
|
728
|
-
throw new
|
|
820
|
+
throw new ProfileFileMaterializeError("materializeProfileFileMounts: file API batch write failed", { cause: err });
|
|
729
821
|
}
|
|
730
822
|
let homeFilesWrittenByApi = 0;
|
|
731
823
|
if (viaHomeFileApi.length > 0) {
|
|
@@ -741,7 +833,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
|
|
|
741
833
|
}), maxRetries);
|
|
742
834
|
homeFilesWrittenByApi = viaHomeFileApi.length;
|
|
743
835
|
} catch (err) {
|
|
744
|
-
if (!isFileApiRootOnlyError(err)) throw new
|
|
836
|
+
if (!isFileApiRootOnlyError(err)) throw new ProfileFileMaterializeError("materializeProfileFileMounts: home file API batch write failed", { cause: err });
|
|
745
837
|
viaExec.push(...viaHomeFileApi.map(({ mount, content }) => ({
|
|
746
838
|
mount,
|
|
747
839
|
content
|
|
@@ -757,7 +849,7 @@ async function materializeProfileFileMounts(box, files, options = {}) {
|
|
|
757
849
|
maxRetries
|
|
758
850
|
});
|
|
759
851
|
} catch (err) {
|
|
760
|
-
throw new
|
|
852
|
+
throw new ProfileFileMaterializeError(`materializeProfileFileMounts: uploadData failed for ${item.path}`, { cause: err });
|
|
761
853
|
}
|
|
762
854
|
}
|
|
763
855
|
const execState = { started: false };
|
|
@@ -867,7 +959,13 @@ async function materializeAbsentProfileFiles(box, files, options) {
|
|
|
867
959
|
throw error;
|
|
868
960
|
}
|
|
869
961
|
const applied = await execWithTimeout(box, `node -e ${shellSingleQuote(APPLY_STAGED_PROFILE_FILES)} ${shellSingleQuote(stage)}`, options.execTimeoutMs ?? PROFILE_FILE_MOUNT_EXEC_TIMEOUT_MS);
|
|
870
|
-
if (applied.exitCode !== 0)
|
|
962
|
+
if (applied.exitCode !== 0) {
|
|
963
|
+
const stderr = applied.stderr.slice(0, 1500);
|
|
964
|
+
throw new ProfileFileMaterializeError(`materializeProfileFileMounts: ${stderr}`, {
|
|
965
|
+
exitCode: applied.exitCode,
|
|
966
|
+
detail: stderr
|
|
967
|
+
});
|
|
968
|
+
}
|
|
871
969
|
return {
|
|
872
970
|
...result,
|
|
873
971
|
written: files.length,
|
|
@@ -1332,11 +1430,16 @@ function parseCompletedTurnResult(value, expected) {
|
|
|
1332
1430
|
const record = value;
|
|
1333
1431
|
if (typeof record.turnId !== "string" || typeof record.sessionId !== "string" || typeof record.completedAt !== "string" || record.completedAt.length === 0 || record.result === null || typeof record.result !== "object" || Array.isArray(record.result)) invalidCompletedTurn("a malformed record");
|
|
1334
1432
|
if (record.turnId !== expected.turnId || record.sessionId !== expected.sessionId) invalidCompletedTurn("a record for another turn or session");
|
|
1433
|
+
const { effectiveBackend: rawEffectiveBackend, ...result } = record.result;
|
|
1434
|
+
const effectiveBackend = normalizeEffectiveBackend(rawEffectiveBackend);
|
|
1335
1435
|
return {
|
|
1336
1436
|
turnId: record.turnId,
|
|
1337
1437
|
sessionId: record.sessionId,
|
|
1338
1438
|
completedAt: record.completedAt,
|
|
1339
|
-
result:
|
|
1439
|
+
result: {
|
|
1440
|
+
...result,
|
|
1441
|
+
...effectiveBackend ? { effectiveBackend } : {}
|
|
1442
|
+
}
|
|
1340
1443
|
};
|
|
1341
1444
|
}
|
|
1342
1445
|
//#endregion
|
|
@@ -2571,8 +2674,9 @@ var ProfileFileDelivery = class {
|
|
|
2571
2674
|
pending = Promise.resolve();
|
|
2572
2675
|
unsupportedBoxes = /* @__PURE__ */ new WeakSet();
|
|
2573
2676
|
prepare(box, profile, signal, existingFiles = "allow-identical") {
|
|
2574
|
-
const
|
|
2575
|
-
|
|
2677
|
+
const split = splitInlineProfileFileMounts(structuredClone(profile));
|
|
2678
|
+
const { leanProfile } = split;
|
|
2679
|
+
const deferredFiles = validateDeferredProfileFileMounts(split.deferredFiles, { failOnError: profile.resources?.failOnError !== false });
|
|
2576
2680
|
if (deferredFiles.length === 0) return Promise.resolve(leanProfile);
|
|
2577
2681
|
const bundle = profileFileBundleKey(deferredFiles);
|
|
2578
2682
|
const prepared = this.pending.then(async () => {
|
|
@@ -6605,7 +6709,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6605
6709
|
totalBytes: size,
|
|
6606
6710
|
percentage: 0
|
|
6607
6711
|
});
|
|
6608
|
-
const { uploadChunkedFromFile } = await import("./chunked-upload-file-
|
|
6712
|
+
const { uploadChunkedFromFile } = await import("./chunked-upload-file-Bs5qcfRB.js");
|
|
6609
6713
|
await uploadChunkedFromFile({ fetch: (path, init) => this.runtimeFetch(path, init) }, remotePath, localPath, {
|
|
6610
6714
|
mode: options?.permissions,
|
|
6611
6715
|
onProgress: options?.onProgress ? (progress) => {
|
|
@@ -9977,4 +10081,4 @@ function quoteForShell(value) {
|
|
|
9977
10081
|
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
9978
10082
|
}
|
|
9979
10083
|
//#endregion
|
|
9980
|
-
export {
|
|
10084
|
+
export { normalizeSandboxShape as A, ManagedProcessClient as C, splitInlineProfileSkills as D, splitInlineProfileFileMounts as E, toOtelJson as F, buildTraceExportPayload as M, exportTraceBundle as N, validateDeferredProfileFileMounts as O, otelTraceIdForTangleTrace as P, isToolBearingEvent as S, materializeProfileFileMounts as T, SandboxOperationFailedError as _, normalizeStartupDiagnostics as a, collectAgentResponseText as b, MAX_EGRESS_DENIALS_LIMIT as c, InteractiveSessionHandle as d, agentInteractiveSessionPromptRequestDigest as f, SandboxOperation as g, createInteractiveTerminalSession as h, normalizeSandboxCreateReceipt as i, rewrapResponse as j, normalizeConnection as k, SandboxTaskSession as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, WorkspaceImages as o, InteractiveTerminalFrameLog as p, normalizeCaptureProof as r, GPU_LEASE_PROVIDER_NAMES as s, SandboxInstance as t, SandboxSession as u, applySandboxEventText as v, isRetryableProfileFileMaterializeFailure as w, getSandboxEventText as x, collectAgentFinalMessageText as y };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
-
import { $a as
|
|
2
|
+
import { $ as DispatchedSession, $a as WorkspaceOperationLookup, $i as SearchOptions, A as CommitTaskSessionOptions, Aa as StopOptions, An as IntelligenceReportWindow, Ar as RolloutStartResult, At as FileSystem, Ba as TeeAttestationResponse, Bi as SandboxStatus, C as BranchOptions, Ca as SnapshotOptions, Ct as ExecResult, D as CodeExecutionResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, E as CodeExecutionOptions, Ea as SnapshotResult, Ei as SandboxOperationInfo, En as IntelligenceReport, Er as Rollout, Fi as SandboxRuntimeCapabilities, Fr as SSHCredentials, Ga as TurnBackendConfig, H as CreateSessionOptions, Ha as TeePublicKeyResponse, Ia as TaskSessionInfo, Ii as SandboxRuntimeHealth, It as FileWriteResult, Ka as TurnDriveResult, Ki as SandboxTerminals, Kn as NetworkManager, Li as SandboxShape, Lr as SandboxConnection, M as CompletedTurnResult, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, N as ConversationTurnOptions, Na as TaskSessionChanges, O as CodeLanguage, Oa as StartupDiagnostics, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Or as RolloutOptions, P as ConversationTurnResult, Pa as TaskSessionCommitResult, Pr as SSHCommandDescriptor, Q as DispatchPromptOptions, Qa as WaitForRolloutOptions, Qi as SearchMatch, Ra as TeeAttestationOptions, Rr as SandboxDeleteAcknowledgement, Sa as SnapshotInfo, St as ExecOptions, Tn as InstalledTool, Tr as ResumeOptions, U as CreateTaskSessionOptions, Ur as SandboxEvent, Vi as SandboxTerminalAttachOptions, Xi as SandboxTraceOptions, Yn as PermissionsManager, Za as WaitForOptions, Zn as PreviewLinkManager, _a as SessionResultOptions, _t as EgressManager, an as GitBranch, ao as SandboxCreateReceipt, bo as InteractionResolutionAcknowledgement, bt as EventStreamOptions, cn as GitDiff, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionInfo, dr as ProvisionResult, en as ForkCounts, eo as WriteFileOptions, fa as SessionInterruptOptions, fo as RawEvidenceBoxDirectoryExport, ha as SessionMessageAdmission, hn as GpuLeaseManager, ho as RawEvidenceExportOptions, ia as SentSessionMessage, it as DriveTurnOptions, jn as JsonValue, ki as SandboxPortBinding, ln as GitStatus, lr as PromptResult, lt as DurablePlanDecisionOptions, ma as SessionMessage, mi as SandboxFleetTraceBundle, mo as RawEvidenceDirectoryExport, mr as PublicProfileConflict, na as SendSessionMessageOptions, nn as ForkLookupOptions, no as WriteManyOptions, oa as SessionEventStreamOptions, on as GitCommit, oo as SandboxEnvRecovery, ot as DriverInfo, p as BackendManager, pa as SessionListOptions, po as RawEvidenceBoxExportOptions, qi as SandboxTraceBundle, ra as SendSessionMessageRequest, rr as ProcessManager, sa as SessionExecutionInfo, so as SandboxEnvRecoveryView, sr as PromptInputPart, tn as ForkIdempotency, to as WriteManyFile, ua as SessionForkOptions, un as GpuLease, ur as ProvisionEvent, ut as DurablePlanDecisionResult, wa as SnapshotProvenance, wi as SandboxInfo, wn as HttpClient, wr as RestoreSnapshotOptions, ya as SnapshotDeleteAcknowledgement, yo as WorkspaceImagePublishResult$1, zr as SandboxDeleteOptions } from "./types-C-VC0oGh.js";
|
|
3
3
|
import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-BSWoA0YE.js";
|
|
6
|
-
import { z as SandboxLines } from "./lines-
|
|
7
|
-
import {
|
|
6
|
+
import { z as SandboxLines } from "./lines-joXwwKub.js";
|
|
7
|
+
import { g as SandboxError } from "./errors-DNxN33_n.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
10
10
|
|
|
@@ -422,8 +422,16 @@ type ProfileFileMountBox = {
|
|
|
422
422
|
* client-detectable bad input (traversal paths, control characters,
|
|
423
423
|
* non-string content) fails without paying for a sandbox that would only be
|
|
424
424
|
* orphaned by the post-provision throw.
|
|
425
|
+
*
|
|
426
|
+
* A path the sidecar file API refuses (an absolute path outside
|
|
427
|
+
* `SANDBOX_FILE_API_ABSOLUTE_ROOTS`) follows the profile's resource policy:
|
|
428
|
+
* with `failOnError` true (the default) it throws
|
|
429
|
+
* {@link ProfileFileMountPathError} (422); with `failOnError: false` the
|
|
430
|
+
* mount is dropped with a warning. Returns the mounts to deliver.
|
|
425
431
|
*/
|
|
426
|
-
declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount[]
|
|
432
|
+
declare function validateDeferredProfileFileMounts(files: readonly AgentProfileFileMount[], options?: {
|
|
433
|
+
/** The profile's `resources.failOnError`; false drops refused mounts. */failOnError?: boolean;
|
|
434
|
+
}): AgentProfileFileMount[];
|
|
427
435
|
interface SplitInlineProfileSkillsResult {
|
|
428
436
|
/** Profile with inline skill refs removed (github refs kept — they resolve
|
|
429
437
|
* server-side). Suitable for the create body, whose wire cap the full skill
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-5Iv50Yu9.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 JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-CSMVbnXg.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
|
-
import {
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { w as readResponseJson } from "./errors-Bfhg_Zc6.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-ChgyE6cI.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-B6gap92T.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -4292,8 +4292,18 @@ interface CompletedTurnResult {
|
|
|
4292
4292
|
completedAt: string;
|
|
4293
4293
|
/** The cached AgentExecutionResult-shape payload (text, toolInvocations,
|
|
4294
4294
|
* sessionId, tokenUsage, etc.). */
|
|
4295
|
-
result:
|
|
4295
|
+
result: CompletedTurnPayload;
|
|
4296
4296
|
}
|
|
4297
|
+
/**
|
|
4298
|
+
* The cached result of a completed turn. `effectiveBackend` is the provider
|
|
4299
|
+
* and model that served the turn, the same field the live `result` and `done`
|
|
4300
|
+
* events carry. It is absent when the runtime did not record it, for example
|
|
4301
|
+
* on a record written before the runtime stored attribution: treat that as
|
|
4302
|
+
* unknown, never as the session's default model.
|
|
4303
|
+
*/
|
|
4304
|
+
type CompletedTurnPayload = Record<string, unknown> & {
|
|
4305
|
+
effectiveBackend?: EffectiveBackend;
|
|
4306
|
+
};
|
|
4297
4307
|
/**
|
|
4298
4308
|
* Returned by `box.dispatchPrompt()` — minimum the caller needs to track
|
|
4299
4309
|
* the session afterward. The sandbox keeps running the prompt; use
|
|
@@ -8082,4 +8092,4 @@ interface ManagedProcessJobs {
|
|
|
8082
8092
|
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
8083
8093
|
}
|
|
8084
8094
|
//#endregion
|
|
8085
|
-
export {
|
|
8095
|
+
export { DispatchedSession as $, WorkspaceOperationLookup as $a, SearchOptions as $i, Process as $n, SandboxFleetInfo as $r, FleetRunOptions as $t, CommitTaskSessionOptions as A, StopOptions as Aa, SandboxPortPreviewLink as Ai, IntelligenceReportWindow as An, RolloutStartResult as Ar, FileSystem as At, CreateSandboxFleetWithCoordinatorOptions as B, TeeAttestationResponse as Ba, SandboxStatus as Bi, ManagedProcessResumeOptions as Bn, SandboxDeleteOutcome as Br, FleetAgentRunStatus as Bt, BranchOptions as C, SnapshotOptions as Ca, SandboxIdentity as Ci, HostAgentRuntimeBackend as Cn, BatchEvent as Co, RenameOptions as Cr, ExecResult as Ct, CodeExecutionResult as D, SshKeysManager as Da, SandboxOperationKind as Di, IntelligenceReportBudget as Dn, ALL_BACKEND_TYPES as Do, RolloutChildResult as Dr, FileReadError as Dt, CodeExecutionOptions as E, SnapshotResult as Ea, SandboxOperationInfo as Ei, IntelligenceReport as En, BatchTaskUsage as Eo, Rollout as Er, FileReadBatchResult as Et, CreateGpuLeaseOptions as F, TaskSessionFileChange as Fa, SandboxRuntimeCapabilities as Fi, ListSandboxOptions as Fn, SSHCredentials as Fr, FileUsageResult as Ft, DeleteMatchingSandboxResult as G, TurnBackendConfig as Ga, SandboxTerminalRequestOptions as Gi, NetworkConfig as Gn, SandboxFleetAgentSpec as Gr, FleetDriveTurnOutcome as Gt, CreateSessionOptions as H, TeePublicKeyResponse as Ha, SandboxTerminalCreateOptions as Hi, ManagedProcessState as Hn, SandboxEnvironment as Hr, FleetDispatchResultBuffer as Ht, CreateIntelligenceReportOptions as I, TaskSessionInfo as Ia, SandboxRuntimeHealth as Ii, MAX_EGRESS_DENIALS_LIMIT as In, SandboxConfig as Ir, FileWriteResult as It, DeleteMatchingSandboxesResult as J, UploadOptions as Ja, SandboxTraceEvent as Ji, PermissionLevel as Jn, SandboxFleetCostEstimate as Jr, FleetExecDispatchResult as Jt, DeleteMatchingSandboxesFilter as K, TurnDriveResult as Ka, SandboxTerminals as Ki, NetworkManager as Kn, SandboxFleetArtifact as Kr, FleetDriveTurnRequest as Kt, CreateRequestOptions as L, TaskSessionProfile as La, SandboxShape as Li, ManagedProcessJobs as Ln, SandboxConnection as Lr, FleetAgentId as Lt, CompletedTurnResult as M, SubscriptionInfo as Ma, SandboxResourceUsage as Mi, ListMessagesOptions as Mn, RolloutTurnPart as Mr, FileTreeOptions as Mt, ConversationTurnOptions as N, TaskSessionChanges as Na, SandboxResources as Ni, ListOptions as Nn, RouterRoutingOptions as Nr, FileTreeResult as Nt, CodeLanguage as O, StartupDiagnostics as Oa, SandboxOperationState as Oi, IntelligenceReportCompareTo as On, BackendType as Oo, RolloutOptions as Or, FileReadResult as Ot, ConversationTurnResult as P, TaskSessionCommitResult as Pa, SandboxRunGeneration as Pi, ListSandboxFleetOptions as Pn, SSHCommandDescriptor as Pr, FileUsageOptions as Pt, DispatchPromptOptions as Q, WaitForRolloutOptions as Qa, SearchMatch as Qi, PreviewLinkWaitOptions as Qn, SandboxFleetDriverTimings as Qr, FleetRunEvent as Qt, CreateSandboxFleetOptions as R, TeeAttestationOptions as Ra, SandboxShapePreset as Ri, ManagedProcessOptions as Rn, SandboxDeleteAcknowledgement as Rr, FleetAgentPlacement as Rt, BatchTaskResult as S, SnapshotInfo as Sa, SandboxFleetWorkspaceSnapshotResult as Si, HostAgentDriverConfig as Sn, BatchBackendStats as So, ReconcileSandboxFleetsResult as Sr, ExecOptions as St, ChunkedUploadResult as T, SnapshotRemoteSync as Ta, SandboxIntelligenceEnvelope as Ti, InstalledTool as Tn, BatchSidecarGroup as To, ResumeOptions as Tr, FileReadBatchOptions as Tt, CreateTaskSessionOptions as U, TokenRefreshHandler as Ua, SandboxTerminalInfo as Ui, McpServerConfig as Un, SandboxEvent as Ur, FleetDispatchResultBufferOptions as Ut, CreateSandboxOptions as V, TeePublicKey as Va, SandboxTerminalAttachOptions as Vi, ManagedProcessSpec as Vn, SandboxEgressUsage as Vr, FleetDispatchCancelResult as Vt, DeleteMatchingSandboxOutcome as W, TokenUsage as Wa, SandboxTerminalManager as Wi, MkdirOptions as Wn, SandboxFleetAgent as Wr, FleetDispatchStreamOptions as Wt, DevServerInfo as X, UsageInfo as Xa, SandboxTraceOptions as Xi, PreviewLinkInfo as Xn, SandboxFleetDispatchResponse as Xr, FleetPromptDispatchOptions as Xt, DeleteOptions as Y, UploadProgress as Ya, SandboxTraceExport as Yi, PermissionsManager as Yn, SandboxFleetDispatchFailureClass as Yr, FleetMachineId as Yt, DirectoryPermission as Z, WaitForOptions as Za, SandboxUser as Zi, PreviewLinkManager as Zn, SandboxFleetDriverCapability as Zr, FleetPromptDispatchResult as Zt, BatchBackend as _, SessionResultOptions as _a, SandboxFleetTraceOptions as _i, GpuLeaseProviderState as _n, RawEvidencePayloadFile as _o, PublishPublicTemplateOptions as _r, EgressManager as _t, AgentQuestionRequest as a, SessionBackendCredentials as aa, SandboxFleetManifest as ai, GitBranch as an, SandboxCreateReceipt as ao, ProcessSpawnOptions as ar, DriverConfig as at, BatchRunRequest as b, SnapshotDeleteOutcome as ba, SandboxFleetWorkspaceReconcileResult as bi, GpuLeaseProvidersOptions as bn, InteractionResolutionAcknowledgement as bo, ReapExpiredSandboxFleetsResult as br, EventStreamOptions as bt, AttachGpuLeaseOptions as c, SessionExecutionStatus as ca, SandboxFleetParent as ci, GitDiff as cn, NativeStoreHomeCopy as co, PromptOptions as cr, DurablePlan as ct, BackendConfig as d, SessionInfo as da, SandboxFleetProfileRef as di, GpuLeaseBilling as dn, RawEvidenceBoxArchiveManifest as do, ProvisionResult as dr, DurablePlanFollowUpResume as dt, SecretInfo as ea, SandboxFleetIntelligenceEnvelope as ei, ForkCounts as en, WriteFileOptions as eo, ProcessInfo as er, DockerDriverConfig as et, BackendInfo as f, SessionInterruptOptions as fa, SandboxFleetSpend as fi, GpuLeaseCommandResult as fn, RawEvidenceBoxDirectoryExport as fo, ProvisionStatus as fr, DurablePlanSnapshot as ft, BackendStatus as g, SessionMessageInputPart as ga, SandboxFleetTraceExport as gi, GpuLeaseProviderName as gn, RawEvidenceNativeFile as go, PublicTemplateVersionInfo as gr, EgressDenial as gt, BackendRuntimeConfigUpdate as h, SessionMessageAdmission as ha, SandboxFleetTraceEvent as hi, GpuLeaseManager as hn, RawEvidenceExportOptions as ho, PublicTemplateInfo as hr, EffectiveBackendSource as ht, AgentApprovalRequirement as i, SentSessionMessage as ia, SandboxFleetMachineSpec as ii, GitAuth as in, SandboxCreateOutcome as io, ProcessSignal as ir, DriveTurnOptions as it, CompletedTurnPayload as j, StorageConfig as ja, SandboxRemovalState as ji, JsonValue as jn, RolloutStatus as jr, FileTreeFile as jt, CodeResultPart as k, StartupOperation as ka, SandboxPortBinding as ki, IntelligenceReportSubjectType as kn, parseBackendType as ko, RolloutScorer as kr, FileRenameResult as kt, AttachSandboxFleetMachineOptions as l, SessionFailureReason as la, SandboxFleetPlacement as li, GitStatus as ln, RawEvidenceArchiveManifest as lo, PromptResult as lr, DurablePlanDecisionOptions as lt, BackendMcpServerStatus as m, SessionMessage as ma, SandboxFleetTraceBundle as mi, GpuLeaseExecResult as mn, RawEvidenceDirectoryExport as mo, PublicProfileConflict as mr, EffectiveBackendProfile as mt, AccessPolicyRule as n, SendSessionMessageOptions as na, SandboxFleetMachineMeteredUsage as ni, ForkLookupOptions as nn, WriteManyOptions as no, ProcessLogEntry as nr, DownloadProgress as nt, AgentRunStatus as o, SessionEventStreamOptions as oa, SandboxFleetManifestMachine as oi, GitCommit as on, SandboxEnvRecovery as oo, ProcessStatus as or, DriverInfo as ot, BackendManager as p, SessionListOptions as pa, SandboxFleetToken as pi, GpuLeaseExecOptions as pn, RawEvidenceBoxExportOptions as po, ProvisionStep as pr, EffectiveBackend as pt, DeleteMatchingSandboxesOptions as q, UpdateUserOptions as qa, SandboxTraceBundle as qi, NonHostAgentDriverConfig as qn, SandboxFleetArtifactSpec as qr, FleetExecDispatchOptions as qt, AddUserOptions as r, SendSessionMessageRequest as ra, SandboxFleetMachineRecord as ri, GPU_LEASE_PROVIDER_NAMES as rn, SdkTimingHook as ro, ProcessManager as rr, DownloadResult as rt, AgentToolInvocation as s, SessionExecutionInfo as sa, SandboxFleetOperationsSummary as si, GitConfig as sn, SandboxEnvRecoveryView as so, PromptInputPart as sr, DriverType as st, AcceleratorKind as t, SecretsManager as ta, SandboxFleetMachine as ti, ForkIdempotency as tn, WriteManyFile as to, ProcessListOptions as tr, DownloadOptions as tt, BackendCapabilities as u, SessionForkOptions as ua, SandboxFleetPolicy as ui, GpuLease as un, RawEvidenceArchiveManifestNative as uo, ProvisionEvent as ur, DurablePlanDecisionResult as ut, BatchResult as v, SessionStatus as va, SandboxFleetUsage as vi, GpuLeaseProviderStatus as vn, RawEvidenceRecordsFile as vo, PublishPublicTemplateVersionOptions as vr, EgressPolicy as vt, ChunkedUploadOptions as w, SnapshotProvenance as wa, SandboxInfo as wi, HttpClient as wn, BatchEventDataMap as wo, RestoreSnapshotOptions as wr, FileInfo as wt, BatchTask as x, SnapshotIdempotency as xa, SandboxFleetWorkspaceRestoreResult as xi, GpuLeaseStatus as xn, PublicBatchRunRequest as xo, ReconcileSandboxFleetsOptions as xr, ExactProcessSpawnOptions as xt, BatchRunOptions as y, SnapshotDeleteAcknowledgement as ya, SandboxFleetWorkspace as yi, GpuLeaseProviders as yn, WorkspaceImagePublishResult as yo, ReapExpiredSandboxFleetsOptions as yr, EnsureDevServerOptions as yt, CreateSandboxFleetTokenOptions as z, TeeAttestationReport as za, SandboxShapesInfo as zi, ManagedProcessRecord as zn, SandboxDeleteOptions as zr, FleetAgentResult as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.16",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"@tangle-network/sse-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "cdfd2b291dbcac5742f2397804928c6e5d29154b",
|
|
172
|
+
"mergedAt": "2026-10-19T15:40:33-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|
|
File without changes
|