@tangle-network/sandbox 0.60.31 → 0.60.32
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/preview.js +2 -2
- package/dist/{agent-run-outcome-C8Si8478.d.ts → agent-run-outcome-CGf6PAs8.d.ts} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +24 -18
- package/dist/{browser-interactive-control-controller-DRCfxOQz.d.ts → browser-interactive-control-controller-JUW3gOGH.d.ts} +1 -1
- package/dist/chunked-upload-CfefWUE5.js +435 -0
- package/dist/chunked-upload-file-Bo2ROB52.js +109 -0
- package/dist/{client-HewG9j9A.d.ts → client-B6JfkRhc.d.ts} +5 -5
- package/dist/{client-BzXVeXvo.js → client-p2d-6oAH.js} +4 -4
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +3 -3
- package/dist/gpu-lease/index.d.ts +26 -4
- package/dist/gpu-lease/index.js +26 -5
- package/dist/{index-D_o4zbXJ.d.ts → index-DHgljRHu.d.ts} +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +6 -6
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-ykaThYp6.d.ts → interactive-controller-DNbLzamS.d.ts} +2 -2
- package/dist/{interactive-controller-CvW2-UfM.js → interactive-controller-Dxt5sW2N.js} +3 -291
- package/dist/{lines-DCxU0xIV.d.ts → lines-BOWMNDp5.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-Cr1fyoKv.js → local-cli-auth-BWELjBLz.js} +1 -1
- package/dist/{mcp-local-DY1CnWBn.js → mcp-local-DjryqUiY.js} +1 -1
- package/dist/{preview-DcT5Fb1W.d.ts → preview-B4yfnMgD.d.ts} +3 -3
- package/dist/runtime.d.ts +6 -31
- package/dist/runtime.js +2 -1
- package/dist/{sandbox-CbuA-iZi.js → sandbox-B6LlVm4f.js} +109 -8
- package/dist/{sandbox-CrET4m65.d.ts → sandbox-WpE5rzUa.d.ts} +6 -6
- package/dist/{secp256k1-CyKOxB5J.js → secp256k1-Dx2XABHz.js} +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-C1dd-4xk.js → tangle-Ux41HNTu.js} +3 -3
- package/dist/{types-BeWUGJ5S.d.ts → types-i3Vs02b8.d.ts} +74 -3
- package/package.json +3 -3
- /package/dist/{cli-auth-bundle-BwIJkzAQ.js → cli-auth-bundle-Dm8w5faq.js} +0 -0
- /package/dist/{cli-auth-bundle-BMcIiB-I.d.ts → cli-auth-bundle-ODe06Ts7.d.ts} +0 -0
- /package/dist/{collaboration-CrO2Lhyi.js → collaboration-DaWEv29D.js} +0 -0
- /package/dist/{errors-D7RVedpR.d.ts → errors-CRssX9qs.d.ts} +0 -0
- /package/dist/{index-BoQeoNOD.d.ts → index-BgmgfYZZ.d.ts} +0 -0
- /package/dist/{index-BXcL8P-U.d.ts → index-DHuHjNie.d.ts} +0 -0
- /package/dist/{line-application-C2SuT1zK.js → line-application-Cq6dJLBD.js} +0 -0
- /package/dist/{preview-operations-CbTiBE-a.js → preview-operations-DqSo-IBm.js} +0 -0
- /package/dist/{raw-evidence-archive-Bi-Lt83d.js → raw-evidence-archive-Br5a3xZ_.js} +0 -0
- /package/dist/{terminal-stream-B6bUr0hj.d.ts → terminal-stream-CV1pMSKC.d.ts} +0 -0
- /package/dist/{utils-ChcSLv53.js → utils-B7_9Hl_z.js} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-CfefWUE5.js";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { open } from "node:fs/promises";
|
|
4
|
+
//#region src/lib/chunked-upload-file.ts
|
|
5
|
+
/**
|
|
6
|
+
* Chunked upload from a LOCAL FILE (Node runtimes) — streams the payload off
|
|
7
|
+
* disk: per-part reads at offsets into one reusable buffer, an incremental
|
|
8
|
+
* node:crypto SHA-256, and the exact same wire protocol as
|
|
9
|
+
* `lib/chunked-upload.ts` (whose session primitives this composes). The
|
|
10
|
+
* whole payload never sits in RAM — the client memory ceiling is one part,
|
|
11
|
+
* not the file.
|
|
12
|
+
*
|
|
13
|
+
* Browser/Worker callers use `uploadChunked` (Blob/ArrayBuffer inputs);
|
|
14
|
+
* this module is the Node-side twin for the `fs.upload(localPath, …)` path.
|
|
15
|
+
*/
|
|
16
|
+
const DEFAULT_FILE_CONCURRENCY = 4;
|
|
17
|
+
const MAX_FILE_CONCURRENCY = 8;
|
|
18
|
+
async function uploadChunkedFromFile(transport, remotePath, localPath, options = {}) {
|
|
19
|
+
const handle = await open(localPath, "r");
|
|
20
|
+
try {
|
|
21
|
+
const { size } = await handle.stat();
|
|
22
|
+
if (size > 67108864) throw new Error(`File ${localPath} is ${size} bytes, over the ${FILE_UPLOAD_SESSION_MAX_BYTES} byte chunked-upload session cap`);
|
|
23
|
+
const hash = createHash("sha256");
|
|
24
|
+
const hashReader = handle.createReadStream({ autoClose: false });
|
|
25
|
+
for await (const chunk of hashReader) hash.update(chunk);
|
|
26
|
+
const sha256 = hash.digest("hex");
|
|
27
|
+
const init = await initUploadSession(transport, remotePath, size, sha256, options.mode, options.signal);
|
|
28
|
+
const totalParts = partCount(size, init.partSize);
|
|
29
|
+
options.onSession?.({
|
|
30
|
+
uploadId: init.uploadId,
|
|
31
|
+
partSize: init.partSize,
|
|
32
|
+
totalParts,
|
|
33
|
+
expiresAt: init.expiresAt
|
|
34
|
+
});
|
|
35
|
+
let wireBytes = 0;
|
|
36
|
+
const readPart = async (index) => {
|
|
37
|
+
const start = index * init.partSize;
|
|
38
|
+
const length = Math.min(init.partSize, size - start);
|
|
39
|
+
const buffer = Buffer.alloc(length);
|
|
40
|
+
const { bytesRead } = await handle.read(buffer, 0, length, start);
|
|
41
|
+
if (bytesRead !== length) throw new Error(`Short read for part ${index}: ${bytesRead} of ${length} bytes (file changed mid-upload?)`);
|
|
42
|
+
return buffer;
|
|
43
|
+
};
|
|
44
|
+
const part0 = await readPart(0);
|
|
45
|
+
const plan = await planCompression(options.compression, new Uint8Array(part0), init.acceptedEncodings, options.codecs);
|
|
46
|
+
const part0Wire = plan.firstPartWire ?? part0;
|
|
47
|
+
const encoding = plan.firstPartWire ? plan.encoding : null;
|
|
48
|
+
let uploadedBytes = 0;
|
|
49
|
+
const concurrency = Math.min(Math.max(1, options.concurrency ?? DEFAULT_FILE_CONCURRENCY), MAX_FILE_CONCURRENCY);
|
|
50
|
+
const report = (bytes) => {
|
|
51
|
+
uploadedBytes += bytes;
|
|
52
|
+
options.onProgress?.({
|
|
53
|
+
bytesUploaded: uploadedBytes,
|
|
54
|
+
totalBytes: size,
|
|
55
|
+
percentage: size === 0 ? 100 : Math.round(uploadedBytes / size * 100)
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
try {
|
|
59
|
+
if (totalParts > 0) {
|
|
60
|
+
wireBytes += part0Wire.length;
|
|
61
|
+
await putPart(transport, init.uploadId, 0, options, {
|
|
62
|
+
body: new Uint8Array(part0Wire),
|
|
63
|
+
encoding
|
|
64
|
+
});
|
|
65
|
+
report(part0.length);
|
|
66
|
+
}
|
|
67
|
+
let nextIndex = 1;
|
|
68
|
+
const inFlight = /* @__PURE__ */ new Set();
|
|
69
|
+
while (nextIndex < totalParts || inFlight.size > 0) {
|
|
70
|
+
options.signal?.throwIfAborted();
|
|
71
|
+
while (inFlight.size < concurrency && nextIndex < totalParts) {
|
|
72
|
+
const index = nextIndex++;
|
|
73
|
+
const task = (async () => {
|
|
74
|
+
const raw = await readPart(index);
|
|
75
|
+
let body = new Uint8Array(raw);
|
|
76
|
+
let partEncoding = null;
|
|
77
|
+
if (plan.codec && plan.encoding) {
|
|
78
|
+
const compressed = await plan.codec(body);
|
|
79
|
+
if (compressed) {
|
|
80
|
+
body = compressed;
|
|
81
|
+
partEncoding = plan.encoding;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
wireBytes += body.byteLength;
|
|
85
|
+
await putPart(transport, init.uploadId, index, options, {
|
|
86
|
+
body,
|
|
87
|
+
encoding: partEncoding
|
|
88
|
+
});
|
|
89
|
+
report(raw.length);
|
|
90
|
+
})();
|
|
91
|
+
inFlight.add(task);
|
|
92
|
+
task.finally(() => inFlight.delete(task)).catch(() => void 0);
|
|
93
|
+
}
|
|
94
|
+
await inFlight.values().next().value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
...await commitSession(transport, init.uploadId, totalParts, sha256, options.signal),
|
|
98
|
+
wireBytes
|
|
99
|
+
};
|
|
100
|
+
} catch (err) {
|
|
101
|
+
await abortSession(transport, init.uploadId);
|
|
102
|
+
throw err;
|
|
103
|
+
}
|
|
104
|
+
} finally {
|
|
105
|
+
await handle.close();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { uploadChunkedFromFile };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
2
|
-
import { $r as SandboxFleetToken, Ar as SandboxFleetAgent, B as CreateSandboxOptions, Bt as FleetDispatchStreamOptions, Ca as TokenRefreshHandler, En as ListSandboxOptions, F as CreateIntelligenceReportOptions, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetManifest, Gt as FleetMachineId, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetDispatchResponse, Jn as PromptResult, Jr as SandboxFleetParent, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kn as PromptInputPart, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetDriverCapability, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxFleetArtifact, N as ConversationTurnResult, Nr as SandboxFleetArtifactSpec, Nt as FleetAgentId, Or as SandboxEnvironment, Pr as SandboxFleetCostEstimate, Qr as SandboxFleetSpend, R as CreateSandboxFleetTokenOptions, Ri as SecretsManager, Rt as FleetDispatchResultBuffer, Si as SandboxShapesInfo, Tn as ListSandboxFleetOptions, Ur as SandboxFleetMachineRecord, Ut as FleetExecDispatchOptions, Vt as FleetDriveTurnOutcome, Wr as SandboxFleetMachineSpec, Wt as FleetExecDispatchResult, Xr as SandboxFleetPolicy, Yt as FleetRunOptions, _i as SandboxRunGeneration, _n as IntelligenceReport, ar as ReapExpiredSandboxFleetsResult, b as BatchRunRequest, br as SandboxConfig, ca as SshKeysManager, ci as SandboxFleetWorkspaceSnapshotResult, d as BackendConfig, ei as SandboxFleetTraceBundle, er as PublicTemplateInfo, fa as SubscriptionInfo, ii as SandboxFleetUsage, ir as ReapExpiredSandboxFleetsOptions, ka as UsageInfo, l as AttachSandboxFleetMachineOptions, li as SandboxIdentity, nr as PublishPublicTemplateOptions, oi as SandboxFleetWorkspaceReconcileResult, or as ReconcileSandboxFleetsOptions, q as DeleteMatchingSandboxesResult, qn as PromptOptions, qr as SandboxFleetOperationsSummary, qt as FleetPromptDispatchResult, ri as SandboxFleetTraceOptions, rr as PublishPublicTemplateVersionOptions, si as SandboxFleetWorkspaceRestoreResult, sr as ReconcileSandboxFleetsResult,
|
|
3
|
-
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-
|
|
4
|
-
import { I as LinesClient } from "./lines-
|
|
5
|
-
import { f as SandboxError } from "./errors-
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-WpE5rzUa.js";
|
|
2
|
+
import { $r as SandboxFleetToken, Ar as SandboxFleetAgent, B as CreateSandboxOptions, Bt as FleetDispatchStreamOptions, Ca as TokenRefreshHandler, En as ListSandboxOptions, F as CreateIntelligenceReportOptions, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetManifest, Gt as FleetMachineId, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetDispatchResponse, Jn as PromptResult, Jr as SandboxFleetParent, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kn as PromptInputPart, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetDriverCapability, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxFleetArtifact, N as ConversationTurnResult, Nr as SandboxFleetArtifactSpec, Nt as FleetAgentId, Or as SandboxEnvironment, Pr as SandboxFleetCostEstimate, Qr as SandboxFleetSpend, R as CreateSandboxFleetTokenOptions, Ri as SecretsManager, Rt as FleetDispatchResultBuffer, Si as SandboxShapesInfo, Tn as ListSandboxFleetOptions, Ur as SandboxFleetMachineRecord, Ut as FleetExecDispatchOptions, Vt as FleetDriveTurnOutcome, Wr as SandboxFleetMachineSpec, Wt as FleetExecDispatchResult, Xr as SandboxFleetPolicy, Yt as FleetRunOptions, _i as SandboxRunGeneration, _n as IntelligenceReport, ar as ReapExpiredSandboxFleetsResult, b as BatchRunRequest, br as SandboxConfig, ca as SshKeysManager, ci as SandboxFleetWorkspaceSnapshotResult, d as BackendConfig, ei as SandboxFleetTraceBundle, er as PublicTemplateInfo, fa as SubscriptionInfo, ii as SandboxFleetUsage, ir as ReapExpiredSandboxFleetsOptions, ka as UsageInfo, l as AttachSandboxFleetMachineOptions, li as SandboxIdentity, nr as PublishPublicTemplateOptions, oi as SandboxFleetWorkspaceReconcileResult, or as ReconcileSandboxFleetsOptions, q as DeleteMatchingSandboxesResult, qn as PromptOptions, qr as SandboxFleetOperationsSummary, qt as FleetPromptDispatchResult, ri as SandboxFleetTraceOptions, ro as BatchEvent, rr as PublishPublicTemplateVersionOptions, si as SandboxFleetWorkspaceRestoreResult, sr as ReconcileSandboxFleetsResult, tr as PublicTemplateVersionInfo, ui as SandboxInfo, v as BatchResult, vn as IntelligenceReportBudget, vt as ExecOptions, xn as IntelligenceReportWindow, y as BatchRunOptions, yn as IntelligenceReportCompareTo, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zr as SandboxFleetInfo, zt as FleetDispatchResultBufferOptions } from "./types-i3Vs02b8.js";
|
|
3
|
+
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CV1pMSKC.js";
|
|
4
|
+
import { I as LinesClient } from "./lines-BOWMNDp5.js";
|
|
5
|
+
import { f as SandboxError } from "./errors-CRssX9qs.js";
|
|
6
6
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, s as requestInteractiveSessionToken, w as parseSSEStream } from "./interactive-controller-Dxt5sW2N.js";
|
|
3
3
|
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, l as NotFoundError, m as ServerError, p as SandboxError, s as NON_RETRYABLE_CREATE_QUOTA_REASONS, t as AuthError, u as PartialFailureError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-Cq4hMysQ.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-
|
|
5
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-B6LlVm4f.js";
|
|
6
6
|
import { LinesClient } from "./lines.js";
|
|
7
7
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -3323,11 +3323,11 @@ function withRequestContextHeaders(response, path, method) {
|
|
|
3323
3323
|
return rewrapResponse(response, headers);
|
|
3324
3324
|
}
|
|
3325
3325
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
3326
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
3326
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-BWELjBLz.js");
|
|
3327
3327
|
return discoverLocalCliAuthFiles(backendType);
|
|
3328
3328
|
}
|
|
3329
3329
|
async function describeLocalCliAuthExpectation(backendType) {
|
|
3330
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
3330
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-BWELjBLz.js");
|
|
3331
3331
|
return describe(backendType);
|
|
3332
3332
|
}
|
|
3333
3333
|
async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-
|
|
1
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-DHuHjNie.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DaWEv29D.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
2
|
-
import { An as NetworkConfig, B as CreateSandboxOptions, Ba as
|
|
3
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
4
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
5
|
-
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-WpE5rzUa.js";
|
|
2
|
+
import { An as NetworkConfig, B as CreateSandboxOptions, Ba as ManagedProcessOptions, Ci as SandboxStatus, Fn as PreviewLinkInfo, Ga as SandboxEnvRecovery, Ha as ManagedProcessResumeOptions, In as PreviewLinkManager, Ka as SandboxEnvRecoveryView, Kn as PromptInputPart, Ln as PreviewLinkWaitOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Qi as SessionMessageAdmission, Ra as ManagedProcessClient, Ua as ManagedProcessSpec, Va as ManagedProcessRecord, Wa as ManagedProcessState, br as SandboxConfig, ui as SandboxInfo, vt as ExecOptions, yt as ExecResult, za as ManagedProcessJobs } from "./types-i3Vs02b8.js";
|
|
3
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-BOWMNDp5.js";
|
|
4
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-B6JfkRhc.js";
|
|
5
|
+
import { a as FileWriteConflictError, b as ValidationError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, y as TimeoutError } from "./errors-CRssX9qs.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core.d.ts
|
|
8
8
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-Cq4hMysQ.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-p2d-6oAH.js";
|
|
3
|
+
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-B6LlVm4f.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
|
-
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-
|
|
5
|
+
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
6
6
|
//#region src/core.ts
|
|
7
7
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
8
8
|
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
@@ -63,11 +63,13 @@ interface OperatorQuote {
|
|
|
63
63
|
operatorAddress: `0x${string}`;
|
|
64
64
|
/** EIP-191 personal_sign over the canonical quote payload (0x RSV). */
|
|
65
65
|
signature?: `0x${string}`;
|
|
66
|
-
/** wei/second, from the operator's signed policy at request time. */
|
|
66
|
+
/** wei/second per device, from the operator's signed policy at request time. */
|
|
67
67
|
pricePerSecond: string;
|
|
68
68
|
durationSeconds: number;
|
|
69
69
|
confidentiality: number;
|
|
70
|
-
/**
|
|
70
|
+
/** Devices rented. The signed v2 payload binds this count. */
|
|
71
|
+
deviceCount: number;
|
|
72
|
+
/** wei — pricePerSecond × durationSeconds × deviceCount exactly. */
|
|
71
73
|
escrowTotal: string;
|
|
72
74
|
/** Utilization the price was struck at (bps of 10_000) — the surge "why". */
|
|
73
75
|
utilizationBps: number;
|
|
@@ -155,12 +157,14 @@ declare function decodeGpuLeaseOutput(encoded: `0x${string}`): GpuLeaseOutputDec
|
|
|
155
157
|
//#endregion
|
|
156
158
|
//#region src/gpu-lease/quotes.d.ts
|
|
157
159
|
/** The exact string the operator signs — mirrors the blueprint's
|
|
158
|
-
* `canonical_quote_payload` byte-for-byte. Every priced field is bound
|
|
160
|
+
* `canonical_quote_payload` (v2) byte-for-byte. Every priced field is bound,
|
|
161
|
+
* the device count included. */
|
|
159
162
|
declare function canonicalQuotePayload(quote: {
|
|
160
163
|
gpuClass: string;
|
|
161
164
|
pricePerSecond: string;
|
|
162
165
|
durationSeconds: number;
|
|
163
166
|
confidentiality: number;
|
|
167
|
+
deviceCount: number;
|
|
164
168
|
escrowTotal: string;
|
|
165
169
|
intentHash: string;
|
|
166
170
|
validUntil: number;
|
|
@@ -175,6 +179,14 @@ type QuoteRejection = {
|
|
|
175
179
|
kind: "class-mismatch";
|
|
176
180
|
requested: string;
|
|
177
181
|
quoted: string;
|
|
182
|
+
} | {
|
|
183
|
+
kind: "duration-mismatch";
|
|
184
|
+
requested: number;
|
|
185
|
+
quoted: number;
|
|
186
|
+
} | {
|
|
187
|
+
kind: "count-mismatch";
|
|
188
|
+
requested: number;
|
|
189
|
+
quoted: number;
|
|
178
190
|
} | {
|
|
179
191
|
kind: "escrow-inconsistent";
|
|
180
192
|
expected: bigint;
|
|
@@ -187,6 +199,10 @@ type QuoteRejection = {
|
|
|
187
199
|
kind: "signature-mismatch";
|
|
188
200
|
claimed: string;
|
|
189
201
|
recovered: string;
|
|
202
|
+
} | {
|
|
203
|
+
kind: "operator-not-pinned";
|
|
204
|
+
pinned: string;
|
|
205
|
+
recovered: string;
|
|
190
206
|
} | {
|
|
191
207
|
kind: "unsigned";
|
|
192
208
|
operator: string;
|
|
@@ -195,11 +211,13 @@ interface QuoteFilterInput {
|
|
|
195
211
|
requestedClass: string;
|
|
196
212
|
requestedDurationSeconds: number;
|
|
197
213
|
requestedConfidentiality: number;
|
|
214
|
+
requestedDeviceCount: number;
|
|
198
215
|
now?: () => number;
|
|
199
216
|
}
|
|
200
217
|
/**
|
|
201
218
|
* Validate one quote. Fail-closed on every field the RFQ binds:
|
|
202
|
-
* class, duration
|
|
219
|
+
* class, duration, device count, the escrow derived from them,
|
|
220
|
+
* confidentiality, and expiry.
|
|
203
221
|
*/
|
|
204
222
|
declare function validateQuote(quote: OperatorQuote, input: QuoteFilterInput): ValidatedQuote | QuoteRejection;
|
|
205
223
|
/**
|
|
@@ -226,9 +244,13 @@ declare function selectQuotes(quotes: {
|
|
|
226
244
|
* invalid signature => reject (config-trust is dead on this path).
|
|
227
245
|
* - no signature => the endpoint-config address is used (interim fallback);
|
|
228
246
|
* strict mode rejects unsigned quotes outright.
|
|
247
|
+
* - `pinnedOperator` set => the quote must be signed AND recover to that
|
|
248
|
+
* address. A valid signature from any other key is rejected, so an
|
|
249
|
+
* endpoint cannot substitute its own signer for the one the caller trusts.
|
|
229
250
|
*/
|
|
230
251
|
declare function validateQuoteIdentity(quote: OperatorQuote, opts?: {
|
|
231
252
|
strict?: boolean;
|
|
253
|
+
pinnedOperator?: `0x${string}`;
|
|
232
254
|
}): Promise<ValidatedQuote | QuoteRejection>;
|
|
233
255
|
//#endregion
|
|
234
256
|
//#region src/gpu-lease/vault.d.ts
|
package/dist/gpu-lease/index.js
CHANGED
|
@@ -130,9 +130,10 @@ function decodeGpuLeaseOutput(encoded) {
|
|
|
130
130
|
* proven in blueprint #1568 and the operator policy's ceiling semantics.
|
|
131
131
|
*/
|
|
132
132
|
/** The exact string the operator signs — mirrors the blueprint's
|
|
133
|
-
* `canonical_quote_payload` byte-for-byte. Every priced field is bound
|
|
133
|
+
* `canonical_quote_payload` (v2) byte-for-byte. Every priced field is bound,
|
|
134
|
+
* the device count included. */
|
|
134
135
|
function canonicalQuotePayload(quote) {
|
|
135
|
-
return `gpu-lease-quote|
|
|
136
|
+
return `gpu-lease-quote|v2|${quote.gpuClass}|${quote.pricePerSecond}|${quote.durationSeconds}|${quote.confidentiality}|${quote.deviceCount}|${quote.escrowTotal}|${quote.intentHash}|${quote.validUntil}`;
|
|
136
137
|
}
|
|
137
138
|
/** Offline EIP-191 recovery over the canonical payload. */
|
|
138
139
|
async function verifyOperatorQuote(quote) {
|
|
@@ -143,7 +144,8 @@ async function verifyOperatorQuote(quote) {
|
|
|
143
144
|
}
|
|
144
145
|
/**
|
|
145
146
|
* Validate one quote. Fail-closed on every field the RFQ binds:
|
|
146
|
-
* class, duration
|
|
147
|
+
* class, duration, device count, the escrow derived from them,
|
|
148
|
+
* confidentiality, and expiry.
|
|
147
149
|
*/
|
|
148
150
|
function validateQuote(quote, input) {
|
|
149
151
|
const now = (input.now ?? Date.now)() / 1e3;
|
|
@@ -152,13 +154,23 @@ function validateQuote(quote, input) {
|
|
|
152
154
|
requested: input.requestedClass,
|
|
153
155
|
quoted: quote.gpuClass
|
|
154
156
|
};
|
|
157
|
+
if (quote.durationSeconds !== input.requestedDurationSeconds) return {
|
|
158
|
+
kind: "duration-mismatch",
|
|
159
|
+
requested: input.requestedDurationSeconds,
|
|
160
|
+
quoted: quote.durationSeconds
|
|
161
|
+
};
|
|
162
|
+
if (quote.deviceCount !== input.requestedDeviceCount) return {
|
|
163
|
+
kind: "count-mismatch",
|
|
164
|
+
requested: input.requestedDeviceCount,
|
|
165
|
+
quoted: quote.deviceCount
|
|
166
|
+
};
|
|
155
167
|
if (quote.confidentiality !== input.requestedConfidentiality) return {
|
|
156
168
|
kind: "confidentiality-mismatch",
|
|
157
169
|
requested: input.requestedConfidentiality,
|
|
158
170
|
quoted: quote.confidentiality
|
|
159
171
|
};
|
|
160
172
|
const price = BigInt(quote.pricePerSecond);
|
|
161
|
-
const expectedEscrow = price * BigInt(quote.durationSeconds);
|
|
173
|
+
const expectedEscrow = price * BigInt(quote.durationSeconds) * BigInt(quote.deviceCount);
|
|
162
174
|
const actualEscrow = BigInt(quote.escrowTotal);
|
|
163
175
|
if (expectedEscrow !== actualEscrow) return {
|
|
164
176
|
kind: "escrow-inconsistent",
|
|
@@ -210,6 +222,9 @@ function selectQuotes(quotes, input) {
|
|
|
210
222
|
* invalid signature => reject (config-trust is dead on this path).
|
|
211
223
|
* - no signature => the endpoint-config address is used (interim fallback);
|
|
212
224
|
* strict mode rejects unsigned quotes outright.
|
|
225
|
+
* - `pinnedOperator` set => the quote must be signed AND recover to that
|
|
226
|
+
* address. A valid signature from any other key is rejected, so an
|
|
227
|
+
* endpoint cannot substitute its own signer for the one the caller trusts.
|
|
213
228
|
*/
|
|
214
229
|
async function validateQuoteIdentity(quote, opts = {}) {
|
|
215
230
|
const base = {
|
|
@@ -225,9 +240,14 @@ async function validateQuoteIdentity(quote, opts = {}) {
|
|
|
225
240
|
claimed,
|
|
226
241
|
recovered: recovered ?? "unrecoverable"
|
|
227
242
|
};
|
|
243
|
+
if (opts.pinnedOperator !== void 0 && recovered !== opts.pinnedOperator.toLowerCase()) return {
|
|
244
|
+
kind: "operator-not-pinned",
|
|
245
|
+
pinned: opts.pinnedOperator.toLowerCase(),
|
|
246
|
+
recovered
|
|
247
|
+
};
|
|
228
248
|
return base;
|
|
229
249
|
}
|
|
230
|
-
if (opts.strict) return {
|
|
250
|
+
if (opts.strict || opts.pinnedOperator !== void 0) return {
|
|
231
251
|
kind: "unsigned",
|
|
232
252
|
operator: quote.operatorAddress
|
|
233
253
|
};
|
|
@@ -312,6 +332,7 @@ async function gpuLease(options) {
|
|
|
312
332
|
requestedClass: gpuClass,
|
|
313
333
|
requestedDurationSeconds: durationSeconds,
|
|
314
334
|
requestedConfidentiality: confidentiality,
|
|
335
|
+
requestedDeviceCount: 1,
|
|
315
336
|
now: options.now
|
|
316
337
|
});
|
|
317
338
|
if (ranked.length === 0) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-WpE5rzUa.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-i3Vs02b8.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $
|
|
3
|
-
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-
|
|
4
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
5
|
-
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
6
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
7
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
8
|
-
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as StreamInterruptionReason, y as TimeoutError } from "./errors-
|
|
9
|
-
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-
|
|
10
|
-
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-
|
|
11
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
12
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
1
|
+
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-WpE5rzUa.js";
|
|
2
|
+
import { $ as DownloadOptions, $i as SessionMessageInputPart, $n as PublicProfileConflict, $r as SandboxFleetToken, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as WaitForOptions, Ai as SandboxTraceBundle, An as NetworkConfig, Ar as SandboxFleetAgent, At as FileUsageOptions, B as CreateSandboxOptions, Ba as ManagedProcessOptions, Bi as SendSessionMessageRequest, Bn as ProcessListOptions, Br as SandboxFleetIntelligenceEnvelope, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as TokenRefreshHandler, Ci as SandboxStatus, Cn as ListMessagesOptions, Cr as SandboxCreateReceipt, Ct as FileReadError, Da as UploadOptions, Di as SandboxTerminalManager, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxEgressUsage, Dt as FileTreeFile, Ea as UpdateUserOptions, Ei as SandboxTerminalInfo, En as ListSandboxOptions, Er as SandboxDeleteOutcome, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as WriteManyOptions, Fi as SearchMatch, Fn as PreviewLinkInfo, Fr as SandboxFleetDispatchFailureClass, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as SandboxEnvRecovery, Gi as SessionExecutionStatus, Gn as ProcessStatus, Gr as SandboxFleetManifest, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as ManagedProcessResumeOptions, Hi as SessionBackendCredentials, Hn as ProcessManager, Hr as SandboxFleetMachineMeteredUsage, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ii as SearchOptions, In as PreviewLinkManager, Ir as SandboxFleetDispatchResponse, It as FleetAgentRunStatus, J as DeleteOptions, Ja as RawEvidenceDirectoryExport, Ji as SessionInfo, Jn as PromptResult, Jr as SandboxFleetParent, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as SandboxEnvRecoveryView, Ki as SessionFailureReason, Kn as PromptInputPart, Kr as SandboxFleetManifestMachine, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Li as SecretInfo, Ln as PreviewLinkWaitOptions, Lr as SandboxFleetDriverCapability, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as WorkspaceOperationLookup, Mi as SandboxTraceExport, Mn as NonHostAgentDriverConfig, Mr as SandboxFleetArtifact, Mt as FileWriteResult, N as ConversationTurnResult, Na as WriteFileOptions, Ni as SandboxTraceOptions, Nn as PermissionLevel, Nr as SandboxFleetArtifactSpec, Nt as FleetAgentId, Oa as UploadProgress, Oi as SandboxTerminalRequestOptions, On as McpServerConfig, Or as SandboxEnvironment, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as WriteManyFile, Pi as SandboxUser, Pn as PermissionsManager, Pr as SandboxFleetCostEstimate, Pt as FleetAgentPlacement, Q as DispatchedSession, Qa as RawEvidenceRecordsFile, Qi as SessionMessageAdmission, Qn as ProvisionStep, Qr as SandboxFleetSpend, Qt as ForkLookupOptions, Ra as ManagedProcessClient, Ri as SecretsManager, Rn as Process, Rr as SandboxFleetDriverTimings, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TeePublicKeyResponse, Si as SandboxShapesInfo, Sr as SandboxCreateOutcome, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as TurnDriveResult, Ti as SandboxTerminalCreateOptions, Tn as ListSandboxFleetOptions, Tr as SandboxDeleteOptions, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as ManagedProcessSpec, Ui as SessionEventStreamOptions, Un as ProcessSignal, Ur as SandboxFleetMachineRecord, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as ManagedProcessRecord, Vi as SentSessionMessage, Vn as ProcessLogEntry, Vr as SandboxFleetMachine, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as ManagedProcessState, Wi as SessionExecutionInfo, Wn as ProcessSpawnOptions, Wr as SandboxFleetMachineSpec, X as DirectoryPermission, Xa as RawEvidenceNativeFile, Xi as SessionListOptions, Xn as ProvisionResult, Xr as SandboxFleetPolicy, Xt as ForkCounts, Y as DevServerInfo, Ya as RawEvidenceExportOptions, Yi as SessionInterruptOptions, Yn as ProvisionEvent, Yr as SandboxFleetPlacement, Yt as FleetRunOptions, Z as DispatchPromptOptions, Za as RawEvidencePayloadFile, Zi as SessionMessage, Zn as ProvisionStatus, Zr as SandboxFleetProfileRef, Zt as ForkIdempotency, _ as BatchBackend, _a as TaskSessionProfile, _i as SandboxRunGeneration, _n as IntelligenceReport, _r as RolloutTurnPart, _t as ExactProcessSpawnOptions, aa as SnapshotInfo, ai as SandboxFleetWorkspace, an as GitStatus, ao as BatchSidecarGroup, ar as ReapExpiredSandboxFleetsResult, at as DriverType, b as BatchRunRequest, ba as TeeAttestationResponse, bi as SandboxShape, bn as IntelligenceReportSubjectType, br as SandboxConfig, bt as FileInfo, c as AttachGpuLeaseOptions, ci as SandboxFleetWorkspaceSnapshotResult, cn as GpuLeaseCommandResult, co as BackendType, cr as RenameOptions, d as BackendConfig, da as StorageConfig, di as SandboxIntelligenceEnvelope, dn as GpuLeaseManager, dr as Rollout, dt as EffectiveBackendSource, ea as SessionResultOptions, ei as SandboxFleetTraceBundle, en as GitAuth, er as PublicTemplateInfo, et as DownloadProgress, f as BackendInfo, fa as SubscriptionInfo, fi as SandboxPortBinding, fn as GpuLeaseProviderName, fr as RolloutChildResult, ft as EgressDenial, g as BackendStatus, ga as TaskSessionInfo, gi as SandboxResources, gn as InstalledTool, gr as RolloutStatus, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as TaskSessionFileChange, hi as SandboxResourceUsage, hn as HostAgentRuntimeBackend, hr as RolloutStartResult, ht as EnsureDevServerOptions, ia as SnapshotIdempotency, ii as SandboxFleetUsage, in as GitDiff, io as BatchEventDataMap, ir as ReapExpiredSandboxFleetsOptions, it as DriverInfo, j as CompletedTurnResult, ja as WaitForRolloutOptions, ji as SandboxTraceEvent, jn as NetworkManager, jr as SandboxFleetAgentSpec, jt as FileUsageResult, ka as UsageInfo, ki as SandboxTerminals, kn as MkdirOptions, kr as SandboxEvent, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as StartupDiagnostics, li as SandboxIdentity, ln as GpuLeaseExecOptions, lo as parseBackendType, lt as EffectiveBackend, m as BackendMcpServerStatus, ma as TaskSessionCommitResult, mi as SandboxRemovalState, mn as HostAgentDriverConfig, mr as RolloutScorer, mt as EgressPolicy, n as AccessPolicyRule, na as SnapshotDeleteAcknowledgement, ni as SandboxFleetTraceExport, nn as GitCommit, no as BatchBackendStats, nr as PublishPublicTemplateOptions, nt as DriveTurnOptions, oa as SnapshotOptions, oi as SandboxFleetWorkspaceReconcileResult, on as GpuLease, oo as BatchTaskUsage, or as ReconcileSandboxFleetsOptions, ot as DurablePlan, p as BackendManager, pa as TaskSessionChanges, pi as SandboxPortPreviewLink, pn as GpuLeaseStatus, pr as RolloutOptions, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as RawEvidenceArchiveManifest, qi as SessionForkOptions, qn as PromptOptions, qr as SandboxFleetOperationsSummary, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SnapshotDeleteOutcome, ri as SandboxFleetTraceOptions, rn as GitConfig, ro as BatchEvent, rr as PublishPublicTemplateVersionOptions, rt as DriverConfig, sa as SnapshotResult, si as SandboxFleetWorkspaceRestoreResult, sn as GpuLeaseBilling, so as ALL_BACKEND_TYPES, sr as ReconcileSandboxFleetsResult, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SessionStatus, ti as SandboxFleetTraceEvent, tn as GitBranch, to as PublicBatchRunRequest, tr as PublicTemplateVersionInfo, tt as DownloadResult, u as BackendCapabilities, ua as StartupOperation, ui as SandboxInfo, un as GpuLeaseExecResult, ut as EffectiveBackendProfile, v as BatchResult, va as TeeAttestationOptions, vi as SandboxRuntimeCapabilities, vn as IntelligenceReportBudget, vr as SSHCommandDescriptor, vt as ExecOptions, w as ChunkedUploadOptions, wa as TokenUsage, wi as SandboxTerminalAttachOptions, wn as ListOptions, wr as SandboxDeleteAcknowledgement, wt as FileReadResult, x as BatchTask, xa as TeePublicKey, xi as SandboxShapePreset, xn as IntelligenceReportWindow, xr as SandboxConnection, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TeeAttestationReport, yi as SandboxRuntimeHealth, yn as IntelligenceReportCompareTo, yr as SSHCredentials, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as ManagedProcessJobs, zi as SendSessionMessageOptions, zn as ProcessInfo, zr as SandboxFleetInfo, zt as FleetDispatchResultBufferOptions } from "./types-i3Vs02b8.js";
|
|
3
|
+
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CV1pMSKC.js";
|
|
4
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
5
|
+
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-DNbLzamS.js";
|
|
6
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-BOWMNDp5.js";
|
|
7
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-B6JfkRhc.js";
|
|
8
|
+
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as StreamInterruptionReason, y as TimeoutError } from "./errors-CRssX9qs.js";
|
|
9
|
+
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BgmgfYZZ.js";
|
|
10
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-DHuHjNie.js";
|
|
11
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CGf6PAs8.js";
|
|
12
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-DHgljRHu.js";
|
|
13
13
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
14
14
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
15
15
|
import { z } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as requestedPublicProfileDigest, F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, w as parseSSEStream } from "./interactive-controller-Dxt5sW2N.js";
|
|
3
3
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, f as ResumeEnvRequiredError, g as StreamInterruptedError, h as StateError, i as EgressProxyRecoveryError, l as NotFoundError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-Cq4hMysQ.js";
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-p2d-6oAH.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-B6LlVm4f.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
9
|
-
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DaWEv29D.js";
|
|
9
|
+
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-Ux41HNTu.js";
|
|
11
11
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as TerminalStreamReconnectAuthority, l as ScopedToken, t as TerminalStream } from "./terminal-stream-
|
|
2
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
1
|
+
import { a as TerminalStreamReconnectAuthority, l as ScopedToken, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
|
|
2
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
3
3
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
5
5
|
//#region src/interactive-controller.d.ts
|