@tangle-network/sandbox 0.41.0 → 0.42.0
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 +3 -3
- package/dist/agent/index.js +4 -4
- package/dist/{agent-run-outcome-Cli3lQEp.d.ts → agent-run-outcome-B7QDBlIQ.d.ts} +1 -1
- package/dist/{client-DtgNF8r5.d.ts → client-Cs9nH2Ct.d.ts} +2 -2
- package/dist/{client-qxRXUqTJ.js → client-H5uiGOhe.js} +64 -18
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-g2l-dEXt.js → collaboration-DilBgjXG.js} +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +3 -3
- package/dist/{errors-A7Quee1Y.d.ts → errors-BoD3Ifbd.d.ts} +29 -1
- package/dist/{errors-yyl3f2Fc.js → errors-CdDyExth.js} +44 -1
- package/dist/{index-kCpLmOmn.d.ts → index-DPXKKBJu.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/{runtime-api-BWVLRX-H.js → runtime-api-BpOFn4cB.js} +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-CBwyDWgd.js → sandbox-0VHkiqla.js} +2 -2
- package/dist/{sandbox-JroyQLqr.d.ts → sandbox-Dehr5LTP.d.ts} +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DzTt0tFh.js → tangle-NaAvpHBK.js} +2 -2
- package/dist/{types-kuhJ-qiu.d.ts → types-BL3VHr3R.d.ts} +3 -1
- package/package.json +5 -5
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Si as SessionInfo, d as BackendConfig, k as CodeResultPart, wi as SessionListOptions } from "../types-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-Dehr5LTP.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Si as SessionInfo, d as BackendConfig, k as CodeResultPart, wi as SessionListOptions } from "../types-BL3VHr3R.js";
|
|
3
|
+
import { i as Sandbox } from "../client-Cs9nH2Ct.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/instances.d.ts
|
package/dist/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as assertCurrentBackendType } from "../runtime-api-
|
|
2
|
-
import {
|
|
3
|
-
import { n as Sandbox } from "../client-
|
|
4
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { f as assertCurrentBackendType } from "../runtime-api-BpOFn4cB.js";
|
|
2
|
+
import { c as NotFoundError, h as ValidationError, p as StateError } from "../errors-CdDyExth.js";
|
|
3
|
+
import { n as Sandbox } from "../client-H5uiGOhe.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-0VHkiqla.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
//#region src/agent/instances.ts
|
|
7
7
|
const managers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentQuestionRequest, et as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, pr as SandboxEvent, s as AgentToolInvocation } from "./types-
|
|
1
|
+
import { a as AgentQuestionRequest, et as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, pr as SandboxEvent, s as AgentToolInvocation } from "./types-BL3VHr3R.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-Dehr5LTP.js";
|
|
2
2
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CcaBTVg3.js";
|
|
3
|
-
import { At as FleetDriveTurnRequest, Bn as PublicTemplateVersionInfo, Br as SandboxFleetWorkspaceSnapshotResult, Dr as SandboxFleetManifest, Dt as FleetDispatchResultBufferOptions, Et as FleetDispatchResultBuffer, F as CreateSandboxFleetOptions, Fi as SshKeysManager, Fr as SandboxFleetTraceOptions, Ft as FleetPromptDispatchResult, Gn as ReconcileSandboxFleetsOptions, Hn as PublishPublicTemplateVersionOptions, Hr as SandboxInfo, I as CreateSandboxFleetTokenOptions, Ir as SandboxFleetUsage, Kn as ReconcileSandboxFleetsResult, L as CreateSandboxFleetWithCoordinatorOptions, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, Mt as FleetExecDispatchResult, N as CreateIntelligenceReportOptions, Nn as PromptOptions, Nt as FleetMachineId, Ot as FleetDispatchStreamOptions, P as CreateRequestOptions, Pn as PromptResult, Pt as FleetPromptDispatchOptions, R as CreateSandboxOptions, Rr as SandboxFleetWorkspaceReconcileResult, Tr as SandboxFleetMachineRecord, Tt as FleetDispatchCancelResult, Un as ReapExpiredSandboxFleetsOptions, Vn as PublishPublicTemplateOptions, Vr as SandboxIdentity, Wn as ReapExpiredSandboxFleetsResult, Xi as TokenRefreshHandler, an as IntelligenceReportCompareTo, ar as SandboxConfig, b as BatchRunRequest, dn as ListSandboxFleetOptions, dt as ExecResult, fi as SecretsManager, fn as ListSandboxOptions, fr as SandboxEnvironment, gr as SandboxFleetCostEstimate, hr as SandboxFleetArtifactSpec, in as IntelligenceReportBudget, jr as SandboxFleetToken, jt as FleetExecDispatchOptions, kr as SandboxFleetOperationsSummary, kt as FleetDriveTurnOutcome, l as AttachSandboxFleetMachineOptions, mr as SandboxFleetArtifact, na as UsageInfo, rn as IntelligenceReport, sn as IntelligenceReportWindow, ua as BatchEvent, ut as ExecOptions, v as BatchResult, vr as SandboxFleetDispatchResponse, xr as SandboxFleetInfo, y as BatchRunOptions, yr as SandboxFleetDriverCapability, zi as SubscriptionInfo, zn as PublicTemplateInfo, zr as SandboxFleetWorkspaceRestoreResult } from "./types-
|
|
3
|
+
import { At as FleetDriveTurnRequest, Bn as PublicTemplateVersionInfo, Br as SandboxFleetWorkspaceSnapshotResult, Dr as SandboxFleetManifest, Dt as FleetDispatchResultBufferOptions, Et as FleetDispatchResultBuffer, F as CreateSandboxFleetOptions, Fi as SshKeysManager, Fr as SandboxFleetTraceOptions, Ft as FleetPromptDispatchResult, Gn as ReconcileSandboxFleetsOptions, Hn as PublishPublicTemplateVersionOptions, Hr as SandboxInfo, I as CreateSandboxFleetTokenOptions, Ir as SandboxFleetUsage, Kn as ReconcileSandboxFleetsResult, L as CreateSandboxFleetWithCoordinatorOptions, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, Mt as FleetExecDispatchResult, N as CreateIntelligenceReportOptions, Nn as PromptOptions, Nt as FleetMachineId, Ot as FleetDispatchStreamOptions, P as CreateRequestOptions, Pn as PromptResult, Pt as FleetPromptDispatchOptions, R as CreateSandboxOptions, Rr as SandboxFleetWorkspaceReconcileResult, Tr as SandboxFleetMachineRecord, Tt as FleetDispatchCancelResult, Un as ReapExpiredSandboxFleetsOptions, Vn as PublishPublicTemplateOptions, Vr as SandboxIdentity, Wn as ReapExpiredSandboxFleetsResult, Xi as TokenRefreshHandler, an as IntelligenceReportCompareTo, ar as SandboxConfig, b as BatchRunRequest, dn as ListSandboxFleetOptions, dt as ExecResult, fi as SecretsManager, fn as ListSandboxOptions, fr as SandboxEnvironment, gr as SandboxFleetCostEstimate, hr as SandboxFleetArtifactSpec, in as IntelligenceReportBudget, jr as SandboxFleetToken, jt as FleetExecDispatchOptions, kr as SandboxFleetOperationsSummary, kt as FleetDriveTurnOutcome, l as AttachSandboxFleetMachineOptions, mr as SandboxFleetArtifact, na as UsageInfo, rn as IntelligenceReport, sn as IntelligenceReportWindow, ua as BatchEvent, ut as ExecOptions, v as BatchResult, vr as SandboxFleetDispatchResponse, xr as SandboxFleetInfo, y as BatchRunOptions, yr as SandboxFleetDriverCapability, zi as SubscriptionInfo, zn as PublicTemplateInfo, zr as SandboxFleetWorkspaceRestoreResult } from "./types-BL3VHr3R.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, l as encodeTextForWire, m as normalizeRuntimeBackendConfig, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, u as parseSSEStream, y as backendTypeSchema } from "./runtime-api-
|
|
2
|
-
import { c as
|
|
1
|
+
import { c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, l as encodeTextForWire, m as normalizeRuntimeBackendConfig, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, u as parseSSEStream, y as backendTypeSchema } from "./runtime-api-BpOFn4cB.js";
|
|
2
|
+
import { c as NotFoundError, d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, l as PartialFailureError, m as TimeoutError, s as NetworkError, t as AuthError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
|
-
import { E as normalizeConnection, O as exportTraceBundle, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-
|
|
4
|
+
import { E as normalizeConnection, O as exportTraceBundle, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-0VHkiqla.js";
|
|
5
5
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/backend-registry.ts
|
|
@@ -1987,6 +1987,23 @@ const PROFILE_FILE_MOUNT_MAX_RETRIES = 4;
|
|
|
1987
1987
|
const PROFILE_FILE_MOUNT_RETRY_BASE_MS = 250;
|
|
1988
1988
|
const PROFILE_FILE_MOUNT_RETRY_MAX_MS = 2e3;
|
|
1989
1989
|
const PROFILE_FILE_MOUNT_EXEC_TIMEOUT_MS = 3e4;
|
|
1990
|
+
/**
|
|
1991
|
+
* Wall-clock ceiling for retrying one file API batch write that got no decided
|
|
1992
|
+
* answer, waits included. A gateway can answer 502 after waiting out its own
|
|
1993
|
+
* 3 s key-verification budget, so this admits about three such attempts: it
|
|
1994
|
+
* rides out a stall of a few seconds without holding create() through a
|
|
1995
|
+
* platform restart, which the caller is better told about.
|
|
1996
|
+
*/
|
|
1997
|
+
const PROFILE_FILE_MOUNT_WRITE_RETRY_BUDGET_MS = 1e4;
|
|
1998
|
+
/**
|
|
1999
|
+
* Answers that decided nothing about the write: the gateway or proxy in front
|
|
2000
|
+
* of the sandbox runtime answered for it, so the write may never have run.
|
|
2001
|
+
*/
|
|
2002
|
+
const UNDECIDED_WRITE_STATUSES = new Set([
|
|
2003
|
+
502,
|
|
2004
|
+
503,
|
|
2005
|
+
504
|
|
2006
|
+
]);
|
|
1990
2007
|
const PROFILE_FILE_MOUNT_PACE_MS = 0;
|
|
1991
2008
|
const PROFILE_BIN_DIR_RE = /(^|\/)(s?bin)\//;
|
|
1992
2009
|
const PROFILE_AGENT_HOME = ["/home", "agent"].join("/");
|
|
@@ -2220,6 +2237,32 @@ function transientExecError(err) {
|
|
|
2220
2237
|
};
|
|
2221
2238
|
return { retryable: false };
|
|
2222
2239
|
}
|
|
2240
|
+
function isUndecidedWriteFailure(err) {
|
|
2241
|
+
if (err instanceof NetworkError) return true;
|
|
2242
|
+
if (!err || typeof err !== "object") return false;
|
|
2243
|
+
const status = errorStatus(err);
|
|
2244
|
+
return status !== void 0 && UNDECIDED_WRITE_STATUSES.has(status);
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* Run one file API batch write, sending it again after an undecided answer.
|
|
2248
|
+
*
|
|
2249
|
+
* Only a batch without write preconditions comes here, so a repeat after a
|
|
2250
|
+
* write that did land leaves the same files with the same content and mode.
|
|
2251
|
+
* A decided refusal is thrown at once. Retries stop at `maxRetries`, or when
|
|
2252
|
+
* the next attempt would start past {@link PROFILE_FILE_MOUNT_WRITE_RETRY_BUDGET_MS}.
|
|
2253
|
+
*/
|
|
2254
|
+
async function writeBatchRidingOutUndecided(write, maxRetries) {
|
|
2255
|
+
const startedAt = Date.now();
|
|
2256
|
+
for (let attempt = 0;; attempt += 1) try {
|
|
2257
|
+
await write();
|
|
2258
|
+
return;
|
|
2259
|
+
} catch (err) {
|
|
2260
|
+
if (!isUndecidedWriteFailure(err) || attempt >= maxRetries) throw err;
|
|
2261
|
+
const waitMs = retryAfterMs(err) ?? Math.min(PROFILE_FILE_MOUNT_RETRY_BASE_MS * 2 ** attempt, PROFILE_FILE_MOUNT_RETRY_MAX_MS);
|
|
2262
|
+
if (Date.now() - startedAt + waitMs >= PROFILE_FILE_MOUNT_WRITE_RETRY_BUDGET_MS) throw err;
|
|
2263
|
+
await sleep(waitMs);
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2223
2266
|
async function sha256Hex(content) {
|
|
2224
2267
|
const bytes = new TextEncoder().encode(content);
|
|
2225
2268
|
const webSubtle = globalThis.crypto?.subtle;
|
|
@@ -2321,30 +2364,33 @@ async function materializeProfileFileMounts(box, files, options = {}) {
|
|
|
2321
2364
|
});
|
|
2322
2365
|
}
|
|
2323
2366
|
if (viaFileApi.length > 0) try {
|
|
2324
|
-
await fs?.writeMany(viaFileApi, {
|
|
2367
|
+
await writeBatchRidingOutUndecided(async () => fs?.writeMany(viaFileApi, {
|
|
2325
2368
|
paceMs,
|
|
2326
2369
|
maxRetries
|
|
2327
|
-
});
|
|
2370
|
+
}), maxRetries);
|
|
2328
2371
|
} catch (err) {
|
|
2329
2372
|
throw new Error("materializeProfileFileMounts: file API batch write failed", { cause: err });
|
|
2330
2373
|
}
|
|
2331
2374
|
let homeFilesWrittenByApi = 0;
|
|
2332
|
-
if (viaHomeFileApi.length > 0)
|
|
2333
|
-
|
|
2375
|
+
if (viaHomeFileApi.length > 0) {
|
|
2376
|
+
const homeWrites = viaHomeFileApi.map(({ path, content, mode }) => ({
|
|
2334
2377
|
path,
|
|
2335
2378
|
content,
|
|
2336
2379
|
...mode !== void 0 ? { mode } : {}
|
|
2337
|
-
}))
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
content
|
|
2347
|
-
|
|
2380
|
+
}));
|
|
2381
|
+
try {
|
|
2382
|
+
await writeBatchRidingOutUndecided(async () => fs?.writeMany(homeWrites, {
|
|
2383
|
+
paceMs,
|
|
2384
|
+
maxRetries
|
|
2385
|
+
}), maxRetries);
|
|
2386
|
+
homeFilesWrittenByApi = viaHomeFileApi.length;
|
|
2387
|
+
} catch (err) {
|
|
2388
|
+
if (!isFileApiRootOnlyError(err)) throw new Error("materializeProfileFileMounts: home file API batch write failed", { cause: err });
|
|
2389
|
+
viaExec.push(...viaHomeFileApi.map(({ mount, content }) => ({
|
|
2390
|
+
mount,
|
|
2391
|
+
content
|
|
2392
|
+
})));
|
|
2393
|
+
}
|
|
2348
2394
|
}
|
|
2349
2395
|
if (viaUpload.length > 0) {
|
|
2350
2396
|
if (typeof uploadDataFn !== "function") throw new Error("materializeProfileFileMounts: viaUpload entries exist but fs.uploadData is unavailable");
|
|
@@ -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-DilBgjXG.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as parseErrorResponse, m as TimeoutError, s as NetworkError } from "./errors-CdDyExth.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
2
|
-
import { Cn as PreviewLinkWaitOptions, Hr as SandboxInfo, Mn as PromptInputPart, R as CreateSandboxOptions, Sn as PreviewLinkManager, Zr as SandboxStatus, ar as SandboxConfig, dt as ExecResult, gn as NetworkConfig, ut as ExecOptions, xn as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-
|
|
4
|
-
import { a as FileWriteConflictError, c as
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-Dehr5LTP.js";
|
|
2
|
+
import { Cn as PreviewLinkWaitOptions, Hr as SandboxInfo, Mn as PromptInputPart, R as CreateSandboxOptions, Sn as PreviewLinkManager, Zr as SandboxStatus, ar as SandboxConfig, dt as ExecResult, gn as NetworkConfig, ut as ExecOptions, xn as PreviewLinkInfo } from "./types-BL3VHr3R.js";
|
|
3
|
+
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-Cs9nH2Ct.js";
|
|
4
|
+
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, l as PartialFailureError, m as ServerError, n as CapabilityError, p as SandboxFailureDetail, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
5
5
|
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FileWriteConflictError, c as
|
|
2
|
-
import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, p as StateError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
2
|
+
import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-H5uiGOhe.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-0VHkiqla.js";
|
|
4
4
|
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
|
@@ -138,6 +138,34 @@ declare class FileWriteConflictError extends SandboxError {
|
|
|
138
138
|
readonly expectedHash?: string;
|
|
139
139
|
constructor(message: string, path: string, expectedHash: string | undefined, currentHash: string | null, currentMtime: number | null, metadata?: SandboxErrorMetadata);
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* The Platform key funding the request has no lifetime budget left.
|
|
143
|
+
*
|
|
144
|
+
* A budgeted key funds any number of sandboxes until its budget is spent;
|
|
145
|
+
* then every create, resume, and model credential it funds is refused with
|
|
146
|
+
* this error. The refusal is decided: retrying cannot succeed until the
|
|
147
|
+
* budget is raised or another key is used, so the SDK never retries it.
|
|
148
|
+
*/
|
|
149
|
+
declare class KeyBudgetExhaustedError extends SandboxError {
|
|
150
|
+
/**
|
|
151
|
+
* The key the refusal names: the budgeted key with nothing left when
|
|
152
|
+
* Platform refused a delegation, or the presented key when authentication
|
|
153
|
+
* refused it. Absent when the server named none.
|
|
154
|
+
*/
|
|
155
|
+
readonly keyId?: string;
|
|
156
|
+
/** That key's lifetime budget, in USD, when Platform reported it. */
|
|
157
|
+
readonly budgetUsd?: number;
|
|
158
|
+
/** What that key has spent, in USD. */
|
|
159
|
+
readonly spentUsd?: number;
|
|
160
|
+
/** What that key has reserved for budgeted children, in USD. */
|
|
161
|
+
readonly reservedUsd?: number;
|
|
162
|
+
constructor(message: string, details?: {
|
|
163
|
+
keyId?: string;
|
|
164
|
+
budgetUsd?: number;
|
|
165
|
+
spentUsd?: number;
|
|
166
|
+
reservedUsd?: number;
|
|
167
|
+
}, metadata?: SandboxErrorMetadata);
|
|
168
|
+
}
|
|
141
169
|
declare class EgressProxyRecoveryError extends SandboxError {
|
|
142
170
|
readonly phase: "egress_proxy_recovery";
|
|
143
171
|
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
@@ -188,4 +216,4 @@ declare class ServerError extends SandboxError {
|
|
|
188
216
|
constructor(message: string, status?: number, metadata?: SandboxErrorMetadata, code?: string);
|
|
189
217
|
}
|
|
190
218
|
//#endregion
|
|
191
|
-
export { FileWriteConflictError as a,
|
|
219
|
+
export { ValidationError as _, FileWriteConflictError as a, NotFoundError as c, SandboxError as d, SandboxErrorJson as f, TimeoutError as g, StateError as h, EgressProxyRecoveryError as i, PartialFailureError as l, ServerError as m, CapabilityError as n, KeyBudgetExhaustedError as o, SandboxFailureDetail as p, EdgeNotReadyError as r, NetworkError as s, AuthError as t, QuotaError as u };
|
|
@@ -172,6 +172,36 @@ var FileWriteConflictError = class extends SandboxError {
|
|
|
172
172
|
if (expectedHash !== void 0) this.expectedHash = expectedHash;
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* The Platform key funding the request has no lifetime budget left.
|
|
177
|
+
*
|
|
178
|
+
* A budgeted key funds any number of sandboxes until its budget is spent;
|
|
179
|
+
* then every create, resume, and model credential it funds is refused with
|
|
180
|
+
* this error. The refusal is decided: retrying cannot succeed until the
|
|
181
|
+
* budget is raised or another key is used, so the SDK never retries it.
|
|
182
|
+
*/
|
|
183
|
+
var KeyBudgetExhaustedError = class extends SandboxError {
|
|
184
|
+
/**
|
|
185
|
+
* The key the refusal names: the budgeted key with nothing left when
|
|
186
|
+
* Platform refused a delegation, or the presented key when authentication
|
|
187
|
+
* refused it. Absent when the server named none.
|
|
188
|
+
*/
|
|
189
|
+
keyId;
|
|
190
|
+
/** That key's lifetime budget, in USD, when Platform reported it. */
|
|
191
|
+
budgetUsd;
|
|
192
|
+
/** What that key has spent, in USD. */
|
|
193
|
+
spentUsd;
|
|
194
|
+
/** What that key has reserved for budgeted children, in USD. */
|
|
195
|
+
reservedUsd;
|
|
196
|
+
constructor(message, details = {}, metadata) {
|
|
197
|
+
super(message, "KEY_BUDGET_EXHAUSTED", 402, metadata);
|
|
198
|
+
this.name = "KeyBudgetExhaustedError";
|
|
199
|
+
this.keyId = details.keyId;
|
|
200
|
+
this.budgetUsd = details.budgetUsd;
|
|
201
|
+
this.spentUsd = details.spentUsd;
|
|
202
|
+
this.reservedUsd = details.reservedUsd;
|
|
203
|
+
}
|
|
204
|
+
};
|
|
175
205
|
var EgressProxyRecoveryError = class extends SandboxError {
|
|
176
206
|
phase;
|
|
177
207
|
constructor(message, metadata) {
|
|
@@ -292,6 +322,18 @@ function asErrorCode(value) {
|
|
|
292
322
|
function isFailureDetail(value) {
|
|
293
323
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
294
324
|
}
|
|
325
|
+
function finiteNumber(value) {
|
|
326
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
327
|
+
}
|
|
328
|
+
function readKeyBudgetDetails(value) {
|
|
329
|
+
if (!isFailureDetail(value)) return {};
|
|
330
|
+
return {
|
|
331
|
+
keyId: asString(value.keyId),
|
|
332
|
+
budgetUsd: finiteNumber(value.budgetUsd),
|
|
333
|
+
spentUsd: finiteNumber(value.spentUsd),
|
|
334
|
+
reservedUsd: finiteNumber(value.reservedUsd)
|
|
335
|
+
};
|
|
336
|
+
}
|
|
295
337
|
function readCapability(data, errorObj) {
|
|
296
338
|
const nested = typeof errorObj === "object" && errorObj !== null ? asString(errorObj.capability) : void 0;
|
|
297
339
|
return asString(data.capability) ?? nested;
|
|
@@ -359,6 +401,7 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
359
401
|
if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
|
|
360
402
|
if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
|
|
361
403
|
if (code === "EGRESS_PROXY_RECOVERY_REQUIRED") return new EgressProxyRecoveryError(message, metadata);
|
|
404
|
+
if (code === "KEY_BUDGET_EXHAUSTED") return new KeyBudgetExhaustedError(message, readKeyBudgetDetails(data.details), metadata);
|
|
362
405
|
if (code === "FILE_WRITE_CONFLICT") {
|
|
363
406
|
const conflict = readFileWriteConflictDetails(errorObj);
|
|
364
407
|
if (!conflict) return new ServerError(`${message}: malformed FILE_WRITE_CONFLICT response`, 502, metadata, "INVALID_ERROR_RESPONSE");
|
|
@@ -378,4 +421,4 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
378
421
|
}
|
|
379
422
|
}
|
|
380
423
|
//#endregion
|
|
381
|
-
export { FileWriteConflictError as a,
|
|
424
|
+
export { FileWriteConflictError as a, NotFoundError as c, SandboxError as d, ServerError as f, parseErrorResponse as g, ValidationError as h, EgressProxyRecoveryError as i, PartialFailureError as l, TimeoutError as m, CapabilityError as n, KeyBudgetExhaustedError as o, StateError as p, EdgeNotReadyError as r, NetworkError as s, AuthError as t, QuotaError as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { R as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-Dehr5LTP.js";
|
|
2
|
+
import { R as CreateSandboxOptions } from "./types-BL3VHr3R.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-
|
|
1
|
+
import { $ as SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-Dehr5LTP.js";
|
|
2
2
|
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-CcaBTVg3.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
4
|
-
import { $ as DurablePlanDecisionResult, $i as UpdateUserOptions, $n as RolloutScorer, $r as SandboxTerminalCreateOptions, $t as GpuLeaseStatus, A as CommitTaskSessionOptions, Ai as SnapshotDeleteOutcome, An as ProcessSpawnOptions, Ar as SandboxFleetPolicy, At as FleetDriveTurnRequest, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, Bn as PublicTemplateVersionInfo, Br as SandboxFleetWorkspaceSnapshotResult, Bt as GitAuth, C as BranchOptions, Ci as SessionInterruptOptions, Cn as PreviewLinkWaitOptions, Cr as SandboxFleetMachine, Ct as FileUsageResult, Di as SessionResultOptions, Dn as ProcessLogEntry, Dr as SandboxFleetManifest, Dt as FleetDispatchResultBufferOptions, Ei as SessionMessageInputPart, En as ProcessListOptions, Er as SandboxFleetMachineSpec, Et as FleetDispatchResultBuffer, F as CreateSandboxFleetOptions, Fn as ProvisionEvent, Fr as SandboxFleetTraceOptions, G as DispatchedSession, Gi as TeeAttestationOptions, Gn as ReconcileSandboxFleetsOptions, Gr as SandboxPortPreviewLink, Gt as GitStatus, H as DevServerInfo, Hi as TaskSessionFileChange, Hn as PublishPublicTemplateVersionOptions, Hr as SandboxInfo, Ht as GitCommit, Ii as StartupDiagnostics, In as ProvisionResult, Ir as SandboxFleetUsage, It as ForkCounts, J as DriveTurnOptions, Ji as TeePublicKey, Jr as SandboxResources, Jt as GpuLeaseCommandResult, K as DownloadOptions, Ki as TeeAttestationReport, Kn as ReconcileSandboxFleetsResult, Kr as SandboxRemovalState, Kt as GpuLease, L as CreateSandboxFleetWithCoordinatorOptions, Li as StartupOperation, Ln as ProvisionStatus, Lr as SandboxFleetWorkspace, Lt as ForkIdempotency, M as CreateGpuLeaseOptions, Mi as SnapshotInfo, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, N as CreateIntelligenceReportOptions, Ni as SnapshotOptions, Nn as PromptOptions, Nr as SandboxFleetTraceEvent, Nt as FleetMachineId, Oi as SessionStatus, On as ProcessManager, Or as SandboxFleetManifestMachine, Ot as FleetDispatchStreamOptions, P as CreateRequestOptions, Pi as SnapshotResult, Pn as PromptResult, Pr as SandboxFleetTraceExport, Pt as FleetPromptDispatchOptions, Q as DurablePlan, Qi as TurnDriveResult, Qn as RolloutOptions, Qr as SandboxTerminalAttachOptions, Qt as GpuLeaseProviderName, R as CreateSandboxOptions, Ri as StorageConfig, Rn as ProvisionStep, Rr as SandboxFleetWorkspaceReconcileResult, Rt as ForkLookupOptions, S as BatchTaskResult, Si as SessionInfo, Sn as PreviewLinkManager, Sr as SandboxFleetIntelligenceEnvelope, St as FileUsageOptions, T as ChunkedUploadResult, Ti as SessionMessage, Tn as ProcessInfo, Tr as SandboxFleetMachineRecord, Tt as FleetDispatchCancelResult, U as DirectoryPermission, Ui as TaskSessionInfo, Un as ReapExpiredSandboxFleetsOptions, Ur as SandboxIntelligenceEnvelope, Ut as GitConfig, V as DeleteOptions, Vi as TaskSessionCommitResult, Vn as PublishPublicTemplateOptions, Vr as SandboxIdentity, Vt as GitBranch, W as DispatchPromptOptions, Wi as TaskSessionProfile, Wn as ReapExpiredSandboxFleetsResult, Wr as SandboxPortBinding, Wt as GitDiff, X as DriverInfo, Xi as TokenRefreshHandler, Xn as Rollout, Xr as SandboxRuntimeHealth, Xt as GpuLeaseExecResult, Y as DriverConfig, Yi as TeePublicKeyResponse, Yr as SandboxRuntimeCapabilities, Yt as GpuLeaseExecOptions, Z as DriverType, Zi as TokenUsage, Zn as RolloutChildResult, Zr as SandboxStatus, Zt as GpuLeaseManager, _ as BatchBackend, _a as parseBackendType, _i as SessionEventStreamOptions, _n as NetworkManager, _r as SandboxFleetDispatchFailureClass, _t as FileRenameResult, aa as WorkspaceOperationLookup, ai as SandboxTraceEvent, an as IntelligenceReportCompareTo, ar as SandboxConfig, at as EgressManager, b as BatchRunRequest, bi as SessionFailureReason, bn as PermissionsManager, br as SandboxFleetDriverTimings, bt as FileTreeOptions, c as AttachGpuLeaseOptions, ca as WriteManyOptions, ci as SandboxUser, cr as SandboxCreateReceipt, ct as EventStreamOptions, d as BackendConfig, da as BatchEventDataMap, di as SecretInfo, dn as ListSandboxFleetOptions, dr as SandboxDeleteOutcome, dt as ExecResult, ea as UploadOptions, ei as SandboxTerminalInfo, en as HostAgentDriverConfig, er as RolloutStartResult, f as BackendInfo, fa as BatchSidecarGroup, fi as SecretsManager, fn as ListSandboxOptions, fr as SandboxEnvironment, ft as FileInfo, g as BackendStatus, ga as BackendType, gi as SessionBackendCredentials, gn as NetworkConfig, gr as SandboxFleetCostEstimate, gt as FileReadResult, h as BackendRuntimeConfigUpdate, ha as ALL_BACKEND_TYPES, hi as SentSessionMessage, hn as MkdirOptions, hr as SandboxFleetArtifactSpec, ht as FileReadError, ia as WaitForRolloutOptions, ii as SandboxTraceBundle, in as IntelligenceReportBudget, ir as SSHCredentials, it as EgressDenial, j as CompletedTurnResult, ji as SnapshotIdempotency, jn as ProcessStatus, jr as SandboxFleetToken, jt as FleetExecDispatchOptions, ki as SnapshotDeleteAcknowledgement, kn as ProcessSignal, kr as SandboxFleetOperationsSummary, kt as FleetDriveTurnOutcome, l as AttachSandboxFleetMachineOptions, la as BatchBackendStats, li as SearchMatch, ln as ListMessagesOptions, lr as SandboxDeleteAcknowledgement, lt as ExactProcessSpawnOptions, m as BackendMcpServerStatus, ma as PublicBatchRunRequest, mi as SendSessionMessageRequest, mn as McpServerConfig, mr as SandboxFleetArtifact, mt as FileReadBatchResult, n as AccessPolicyRule, na as UsageInfo, ni as SandboxTerminalRequestOptions, nn as InstalledTool, nr as RolloutTurnPart, nt as EffectiveBackendProfile, oa as WriteFileOptions, oi as SandboxTraceExport, on as IntelligenceReportSubjectType, or as SandboxConnection, ot as EgressPolicy, p as BackendManager, pa as BatchTaskUsage, pi as SendSessionMessageOptions, pn as MAX_EGRESS_DENIALS_LIMIT, pr as SandboxEvent, pt as FileReadBatchOptions, q as DownloadProgress, qi as TeeAttestationResponse, qn as RenameOptions, qr as SandboxResourceUsage, qt as GpuLeaseBilling, r as AddUserOptions, ra as WaitForOptions, ri as SandboxTerminals, rn as IntelligenceReport, rr as SSHCommandDescriptor, rt as EffectiveBackendSource, sa as WriteManyFile, si as SandboxTraceOptions, sn as IntelligenceReportWindow, sr as SandboxCreateOutcome, st as EnsureDevServerOptions, t as AcceleratorKind, ta as UploadProgress, ti as SandboxTerminalManager, tn as HostAgentRuntimeBackend, tr as RolloutStatus, tt as EffectiveBackend, u as BackendCapabilities, ua as BatchEvent, ui as SearchOptions, un as ListOptions, ur as SandboxDeleteOptions, ut as ExecOptions, v as BatchResult, vi as SessionExecutionInfo, vn as NonHostAgentDriverConfig, vr as SandboxFleetDispatchResponse, vt as FileSystem, w as ChunkedUploadOptions, wi as SessionListOptions, wn as Process, wr as SandboxFleetMachineMeteredUsage, wt as FileWriteResult, x as BatchTask, xi as SessionForkOptions, xn as PreviewLinkInfo, xr as SandboxFleetInfo, xt as FileTreeResult, y as BatchRunOptions, yi as SessionExecutionStatus, yn as PermissionLevel, yr as SandboxFleetDriverCapability, yt as FileTreeFile, z as CreateSessionOptions, zi as SubscriptionInfo, zn as PublicTemplateInfo, zr as SandboxFleetWorkspaceRestoreResult, zt as GPU_LEASE_PROVIDER_NAMES } from "./types-
|
|
5
|
-
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-
|
|
4
|
+
import { $ as DurablePlanDecisionResult, $i as UpdateUserOptions, $n as RolloutScorer, $r as SandboxTerminalCreateOptions, $t as GpuLeaseStatus, A as CommitTaskSessionOptions, Ai as SnapshotDeleteOutcome, An as ProcessSpawnOptions, Ar as SandboxFleetPolicy, At as FleetDriveTurnRequest, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, Bn as PublicTemplateVersionInfo, Br as SandboxFleetWorkspaceSnapshotResult, Bt as GitAuth, C as BranchOptions, Ci as SessionInterruptOptions, Cn as PreviewLinkWaitOptions, Cr as SandboxFleetMachine, Ct as FileUsageResult, Di as SessionResultOptions, Dn as ProcessLogEntry, Dr as SandboxFleetManifest, Dt as FleetDispatchResultBufferOptions, Ei as SessionMessageInputPart, En as ProcessListOptions, Er as SandboxFleetMachineSpec, Et as FleetDispatchResultBuffer, F as CreateSandboxFleetOptions, Fn as ProvisionEvent, Fr as SandboxFleetTraceOptions, G as DispatchedSession, Gi as TeeAttestationOptions, Gn as ReconcileSandboxFleetsOptions, Gr as SandboxPortPreviewLink, Gt as GitStatus, H as DevServerInfo, Hi as TaskSessionFileChange, Hn as PublishPublicTemplateVersionOptions, Hr as SandboxInfo, Ht as GitCommit, Ii as StartupDiagnostics, In as ProvisionResult, Ir as SandboxFleetUsage, It as ForkCounts, J as DriveTurnOptions, Ji as TeePublicKey, Jr as SandboxResources, Jt as GpuLeaseCommandResult, K as DownloadOptions, Ki as TeeAttestationReport, Kn as ReconcileSandboxFleetsResult, Kr as SandboxRemovalState, Kt as GpuLease, L as CreateSandboxFleetWithCoordinatorOptions, Li as StartupOperation, Ln as ProvisionStatus, Lr as SandboxFleetWorkspace, Lt as ForkIdempotency, M as CreateGpuLeaseOptions, Mi as SnapshotInfo, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, N as CreateIntelligenceReportOptions, Ni as SnapshotOptions, Nn as PromptOptions, Nr as SandboxFleetTraceEvent, Nt as FleetMachineId, Oi as SessionStatus, On as ProcessManager, Or as SandboxFleetManifestMachine, Ot as FleetDispatchStreamOptions, P as CreateRequestOptions, Pi as SnapshotResult, Pn as PromptResult, Pr as SandboxFleetTraceExport, Pt as FleetPromptDispatchOptions, Q as DurablePlan, Qi as TurnDriveResult, Qn as RolloutOptions, Qr as SandboxTerminalAttachOptions, Qt as GpuLeaseProviderName, R as CreateSandboxOptions, Ri as StorageConfig, Rn as ProvisionStep, Rr as SandboxFleetWorkspaceReconcileResult, Rt as ForkLookupOptions, S as BatchTaskResult, Si as SessionInfo, Sn as PreviewLinkManager, Sr as SandboxFleetIntelligenceEnvelope, St as FileUsageOptions, T as ChunkedUploadResult, Ti as SessionMessage, Tn as ProcessInfo, Tr as SandboxFleetMachineRecord, Tt as FleetDispatchCancelResult, U as DirectoryPermission, Ui as TaskSessionInfo, Un as ReapExpiredSandboxFleetsOptions, Ur as SandboxIntelligenceEnvelope, Ut as GitConfig, V as DeleteOptions, Vi as TaskSessionCommitResult, Vn as PublishPublicTemplateOptions, Vr as SandboxIdentity, Vt as GitBranch, W as DispatchPromptOptions, Wi as TaskSessionProfile, Wn as ReapExpiredSandboxFleetsResult, Wr as SandboxPortBinding, Wt as GitDiff, X as DriverInfo, Xi as TokenRefreshHandler, Xn as Rollout, Xr as SandboxRuntimeHealth, Xt as GpuLeaseExecResult, Y as DriverConfig, Yi as TeePublicKeyResponse, Yr as SandboxRuntimeCapabilities, Yt as GpuLeaseExecOptions, Z as DriverType, Zi as TokenUsage, Zn as RolloutChildResult, Zr as SandboxStatus, Zt as GpuLeaseManager, _ as BatchBackend, _a as parseBackendType, _i as SessionEventStreamOptions, _n as NetworkManager, _r as SandboxFleetDispatchFailureClass, _t as FileRenameResult, aa as WorkspaceOperationLookup, ai as SandboxTraceEvent, an as IntelligenceReportCompareTo, ar as SandboxConfig, at as EgressManager, b as BatchRunRequest, bi as SessionFailureReason, bn as PermissionsManager, br as SandboxFleetDriverTimings, bt as FileTreeOptions, c as AttachGpuLeaseOptions, ca as WriteManyOptions, ci as SandboxUser, cr as SandboxCreateReceipt, ct as EventStreamOptions, d as BackendConfig, da as BatchEventDataMap, di as SecretInfo, dn as ListSandboxFleetOptions, dr as SandboxDeleteOutcome, dt as ExecResult, ea as UploadOptions, ei as SandboxTerminalInfo, en as HostAgentDriverConfig, er as RolloutStartResult, f as BackendInfo, fa as BatchSidecarGroup, fi as SecretsManager, fn as ListSandboxOptions, fr as SandboxEnvironment, ft as FileInfo, g as BackendStatus, ga as BackendType, gi as SessionBackendCredentials, gn as NetworkConfig, gr as SandboxFleetCostEstimate, gt as FileReadResult, h as BackendRuntimeConfigUpdate, ha as ALL_BACKEND_TYPES, hi as SentSessionMessage, hn as MkdirOptions, hr as SandboxFleetArtifactSpec, ht as FileReadError, ia as WaitForRolloutOptions, ii as SandboxTraceBundle, in as IntelligenceReportBudget, ir as SSHCredentials, it as EgressDenial, j as CompletedTurnResult, ji as SnapshotIdempotency, jn as ProcessStatus, jr as SandboxFleetToken, jt as FleetExecDispatchOptions, ki as SnapshotDeleteAcknowledgement, kn as ProcessSignal, kr as SandboxFleetOperationsSummary, kt as FleetDriveTurnOutcome, l as AttachSandboxFleetMachineOptions, la as BatchBackendStats, li as SearchMatch, ln as ListMessagesOptions, lr as SandboxDeleteAcknowledgement, lt as ExactProcessSpawnOptions, m as BackendMcpServerStatus, ma as PublicBatchRunRequest, mi as SendSessionMessageRequest, mn as McpServerConfig, mr as SandboxFleetArtifact, mt as FileReadBatchResult, n as AccessPolicyRule, na as UsageInfo, ni as SandboxTerminalRequestOptions, nn as InstalledTool, nr as RolloutTurnPart, nt as EffectiveBackendProfile, oa as WriteFileOptions, oi as SandboxTraceExport, on as IntelligenceReportSubjectType, or as SandboxConnection, ot as EgressPolicy, p as BackendManager, pa as BatchTaskUsage, pi as SendSessionMessageOptions, pn as MAX_EGRESS_DENIALS_LIMIT, pr as SandboxEvent, pt as FileReadBatchOptions, q as DownloadProgress, qi as TeeAttestationResponse, qn as RenameOptions, qr as SandboxResourceUsage, qt as GpuLeaseBilling, r as AddUserOptions, ra as WaitForOptions, ri as SandboxTerminals, rn as IntelligenceReport, rr as SSHCommandDescriptor, rt as EffectiveBackendSource, sa as WriteManyFile, si as SandboxTraceOptions, sn as IntelligenceReportWindow, sr as SandboxCreateOutcome, st as EnsureDevServerOptions, t as AcceleratorKind, ta as UploadProgress, ti as SandboxTerminalManager, tn as HostAgentRuntimeBackend, tr as RolloutStatus, tt as EffectiveBackend, u as BackendCapabilities, ua as BatchEvent, ui as SearchOptions, un as ListOptions, ur as SandboxDeleteOptions, ut as ExecOptions, v as BatchResult, vi as SessionExecutionInfo, vn as NonHostAgentDriverConfig, vr as SandboxFleetDispatchResponse, vt as FileSystem, w as ChunkedUploadOptions, wi as SessionListOptions, wn as Process, wr as SandboxFleetMachineMeteredUsage, wt as FileWriteResult, x as BatchTask, xi as SessionForkOptions, xn as PreviewLinkInfo, xr as SandboxFleetInfo, xt as FileTreeResult, y as BatchRunOptions, yi as SessionExecutionStatus, yn as PermissionLevel, yr as SandboxFleetDriverCapability, yt as FileTreeFile, z as CreateSessionOptions, zi as SubscriptionInfo, zn as PublicTemplateInfo, zr as SandboxFleetWorkspaceRestoreResult, zt as GPU_LEASE_PROVIDER_NAMES } from "./types-BL3VHr3R.js";
|
|
5
|
+
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-Cs9nH2Ct.js";
|
|
6
6
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CS-t6tPU.js";
|
|
7
7
|
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-BzAxTiqF.js";
|
|
8
|
-
import { a as FileWriteConflictError, c as
|
|
9
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
8
|
+
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, i as EgressProxyRecoveryError, l as PartialFailureError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxFailureDetail, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
9
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-B7QDBlIQ.js";
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DPXKKBJu.js";
|
|
11
11
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
12
12
|
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";
|
|
13
13
|
import { z } from "zod";
|
|
@@ -4438,4 +4438,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4438
4438
|
}
|
|
4439
4439
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4440
4440
|
//#endregion
|
|
4441
|
-
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4441
|
+
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as deriveAgentRunOutcome, b as parseBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, m as normalizeRuntimeBackendConfig, u as parseSSEStream, v as ALL_BACKEND_TYPES, y as backendTypeSchema } from "./runtime-api-
|
|
2
|
-
import { a as FileWriteConflictError, c as
|
|
3
|
-
import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as splitInlineProfileFileMounts, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as validateDeferredProfileFileMounts, p as backendRegistryEntrySchema, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
1
|
+
import { _ as deriveAgentRunOutcome, b as parseBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, m as normalizeRuntimeBackendConfig, u as parseSSEStream, v as ALL_BACKEND_TYPES, y as backendTypeSchema } from "./runtime-api-BpOFn4cB.js";
|
|
2
|
+
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, i as EgressProxyRecoveryError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, o as KeyBudgetExhaustedError, p as StateError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
|
+
import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as splitInlineProfileFileMounts, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as validateDeferredProfileFileMounts, p as backendRegistryEntrySchema, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-H5uiGOhe.js";
|
|
4
4
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, c as createInteractiveControlHolderId, l as interactiveSessionIdentityDigest, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
5
|
-
import { A as toOtelJson, C as collectAgentResponseText, D as buildTraceExportPayload, O as exportTraceBundle, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as otelTraceIdForTangleTrace, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-
|
|
6
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
5
|
+
import { A as toOtelJson, C as collectAgentResponseText, D as buildTraceExportPayload, O as exportTraceBundle, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as otelTraceIdForTangleTrace, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-0VHkiqla.js";
|
|
6
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DilBgjXG.js";
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-NaAvpHBK.js";
|
|
8
8
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/confidential.ts
|
|
@@ -1463,4 +1463,4 @@ function stripUndefined(value) {
|
|
|
1463
1463
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1464
1464
|
}
|
|
1465
1465
|
//#endregion
|
|
1466
|
-
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1466
|
+
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as parseErrorResponse, m as TimeoutError, s as NetworkError } from "../errors-CdDyExth.js";
|
|
2
2
|
//#region src/intelligence/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ServerError,
|
|
1
|
+
import { d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, m as TimeoutError, n as CapabilityError, s as NetworkError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
2
2
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
3
3
|
import { AgentExactRunControlRefSchema, AgentExecutionOutcomeSchema, AgentRuntimeAttachmentsSchema, DurablePlanSchema, InteractionRequestSchema, agentProfileSchema, harnessTypeSchema } from "@tangle-network/agent-interface";
|
|
4
4
|
import { z } from "zod";
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $r as SandboxTerminalCreateOptions, A as CommitTaskSessionOptions, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, Ct as FileUsageResult, Si as SessionInfo, St as FileUsageOptions, T as ChunkedUploadResult, Ti as SessionMessage, Ui as TaskSessionInfo, Vi as TaskSessionCommitResult, Wr as SandboxPortBinding, Xr as SandboxRuntimeHealth, _i as SessionEventStreamOptions, _t as FileRenameResult, bt as FileTreeOptions, ei as SandboxTerminalInfo, hi as SentSessionMessage, ln as ListMessagesOptions, mi as SendSessionMessageRequest, mt as FileReadBatchResult, ni as SandboxTerminalRequestOptions, oa as WriteFileOptions, pi as SendSessionMessageOptions, pr as SandboxEvent, pt as FileReadBatchOptions, qn as RenameOptions, ta as UploadProgress, ti as SandboxTerminalManager, vi as SessionExecutionInfo, w as ChunkedUploadOptions, wt as FileWriteResult, xt as FileTreeResult, yi as SessionExecutionStatus, z as CreateSessionOptions } from "./types-
|
|
2
|
-
import { a as FileWriteConflictError, c as
|
|
3
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { $r as SandboxTerminalCreateOptions, A as CommitTaskSessionOptions, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, Ct as FileUsageResult, Si as SessionInfo, St as FileUsageOptions, T as ChunkedUploadResult, Ti as SessionMessage, Ui as TaskSessionInfo, Vi as TaskSessionCommitResult, Wr as SandboxPortBinding, Xr as SandboxRuntimeHealth, _i as SessionEventStreamOptions, _t as FileRenameResult, bt as FileTreeOptions, ei as SandboxTerminalInfo, hi as SentSessionMessage, ln as ListMessagesOptions, mi as SendSessionMessageRequest, mt as FileReadBatchResult, ni as SandboxTerminalRequestOptions, oa as WriteFileOptions, pi as SendSessionMessageOptions, pr as SandboxEvent, pt as FileReadBatchOptions, qn as RenameOptions, ta as UploadProgress, ti as SandboxTerminalManager, vi as SessionExecutionInfo, w as ChunkedUploadOptions, wt as FileWriteResult, xt as FileTreeResult, yi as SessionExecutionStatus, z as CreateSessionOptions } from "./types-BL3VHr3R.js";
|
|
2
|
+
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, l as PartialFailureError, m as ServerError, n as CapabilityError, p as SandboxFailureDetail, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
3
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-B7QDBlIQ.js";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/chunked-upload.d.ts
|
|
6
6
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as deriveAgentRunOutcome, a as uploadChunked, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, t as SandboxRuntimeApi } from "./runtime-api-
|
|
2
|
-
import { a as FileWriteConflictError, c as
|
|
1
|
+
import { _ as deriveAgentRunOutcome, a as uploadChunked, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, t as SandboxRuntimeApi } from "./runtime-api-BpOFn4cB.js";
|
|
2
|
+
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, p as StateError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
4
|
//#region src/runtime-client.ts
|
|
5
5
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as uploadChunked, c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, i as sessionHeaders, m as normalizeRuntimeBackendConfig, n as normalizeSessionInfo, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as mergeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi, u as parseSSEStream } from "./runtime-api-
|
|
2
|
-
import { d as
|
|
1
|
+
import { a as uploadChunked, c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, i as sessionHeaders, m as normalizeRuntimeBackendConfig, n as normalizeSessionInfo, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as mergeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi, u as parseSSEStream } from "./runtime-api-BpOFn4cB.js";
|
|
2
|
+
import { c as NotFoundError, d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, m as TimeoutError, n as CapabilityError, p as StateError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { c as createInteractiveControlHolderId, d as interactiveSessionControlReleaseResponseSchema, f as interactiveSessionControlValidationResponseSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, p as interactiveSessionStatusResponseSchema, r as browserInteractiveTerminalEndpoint, s as assertInteractiveSessionRef, u as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-si1WMfJb.js";
|
|
5
5
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CcaBTVg3.js";
|
|
2
2
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
3
|
-
import { $ as DurablePlanDecisionResult, A as CommitTaskSessionOptions, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, C as BranchOptions, Ci as SessionInterruptOptions, D as CodeExecutionResult, Di as SessionResultOptions, E as CodeExecutionOptions, Fn as ProvisionEvent, G as DispatchedSession, Gi as TeeAttestationOptions, Gt as GitStatus, Hr as SandboxInfo, Ht as GitCommit, Ii as StartupDiagnostics, In as ProvisionResult, It as ForkCounts, J as DriveTurnOptions, Jn as RestoreSnapshotOptions, Kt as GpuLease, Lt as ForkIdempotency, Mi as SnapshotInfo, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, Ni as SnapshotOptions, Nn as PromptOptions, O as CodeLanguage, On as ProcessManager, Pi as SnapshotResult, Pn as PromptResult, Q as DurablePlan, Qi as TurnDriveResult, Qn as RolloutOptions, Qr as SandboxTerminalAttachOptions, Rt as ForkLookupOptions, Si as SessionInfo, Sn as PreviewLinkManager, Ti as SessionMessage, Ui as TaskSessionInfo, Vi as TaskSessionCommitResult, Vt as GitBranch, W as DispatchPromptOptions, Wr as SandboxPortBinding, Wt as GitDiff, X as DriverInfo, Xn as Rollout, Xr as SandboxRuntimeHealth, Yi as TeePublicKeyResponse, Yn as ResumeOptions, Yr as SandboxRuntimeCapabilities, Zr as SandboxStatus, Zt as GpuLeaseManager, _i as SessionEventStreamOptions, _n as NetworkManager, aa as WorkspaceOperationLookup, an as IntelligenceReportCompareTo, at as EgressManager, bn as PermissionsManager, ca as WriteManyOptions, cn as JsonValue, cr as SandboxCreateReceipt, ct as EventStreamOptions, d as BackendConfig, dt as ExecResult, er as RolloutStartResult, hi as SentSessionMessage, ia as WaitForRolloutOptions, ii as SandboxTraceBundle, in as IntelligenceReportBudget, ir as SSHCredentials, j as CompletedTurnResult, ki as SnapshotDeleteAcknowledgement, li as SearchMatch, ln as ListMessagesOptions, lr as SandboxDeleteAcknowledgement, mi as SendSessionMessageRequest, nn as InstalledTool, oa as WriteFileOptions, or as SandboxConnection, p as BackendManager, pi as SendSessionMessageOptions, pr as SandboxEvent, qi as TeeAttestationResponse, qr as SandboxResourceUsage, ra as WaitForOptions, ri as SandboxTerminals, rn as IntelligenceReport, rr as SSHCommandDescriptor, sa as WriteManyFile, si as SandboxTraceOptions, sn as IntelligenceReportWindow, ui as SearchOptions, ur as SandboxDeleteOptions, ut as ExecOptions, vi as SessionExecutionInfo, vt as FileSystem, wi as SessionListOptions, wt as FileWriteResult, xi as SessionForkOptions, z as CreateSessionOptions } from "./types-
|
|
3
|
+
import { $ as DurablePlanDecisionResult, A as CommitTaskSessionOptions, B as CreateTaskSessionOptions, Bi as TaskSessionChanges, C as BranchOptions, Ci as SessionInterruptOptions, D as CodeExecutionResult, Di as SessionResultOptions, E as CodeExecutionOptions, Fn as ProvisionEvent, G as DispatchedSession, Gi as TeeAttestationOptions, Gt as GitStatus, Hr as SandboxInfo, Ht as GitCommit, Ii as StartupDiagnostics, In as ProvisionResult, It as ForkCounts, J as DriveTurnOptions, Jn as RestoreSnapshotOptions, Kt as GpuLease, Lt as ForkIdempotency, Mi as SnapshotInfo, Mn as PromptInputPart, Mr as SandboxFleetTraceBundle, Ni as SnapshotOptions, Nn as PromptOptions, O as CodeLanguage, On as ProcessManager, Pi as SnapshotResult, Pn as PromptResult, Q as DurablePlan, Qi as TurnDriveResult, Qn as RolloutOptions, Qr as SandboxTerminalAttachOptions, Rt as ForkLookupOptions, Si as SessionInfo, Sn as PreviewLinkManager, Ti as SessionMessage, Ui as TaskSessionInfo, Vi as TaskSessionCommitResult, Vt as GitBranch, W as DispatchPromptOptions, Wr as SandboxPortBinding, Wt as GitDiff, X as DriverInfo, Xn as Rollout, Xr as SandboxRuntimeHealth, Yi as TeePublicKeyResponse, Yn as ResumeOptions, Yr as SandboxRuntimeCapabilities, Zr as SandboxStatus, Zt as GpuLeaseManager, _i as SessionEventStreamOptions, _n as NetworkManager, aa as WorkspaceOperationLookup, an as IntelligenceReportCompareTo, at as EgressManager, bn as PermissionsManager, ca as WriteManyOptions, cn as JsonValue, cr as SandboxCreateReceipt, ct as EventStreamOptions, d as BackendConfig, dt as ExecResult, er as RolloutStartResult, hi as SentSessionMessage, ia as WaitForRolloutOptions, ii as SandboxTraceBundle, in as IntelligenceReportBudget, ir as SSHCredentials, j as CompletedTurnResult, ki as SnapshotDeleteAcknowledgement, li as SearchMatch, ln as ListMessagesOptions, lr as SandboxDeleteAcknowledgement, mi as SendSessionMessageRequest, nn as InstalledTool, oa as WriteFileOptions, or as SandboxConnection, p as BackendManager, pi as SendSessionMessageOptions, pr as SandboxEvent, qi as TeeAttestationResponse, qr as SandboxResourceUsage, ra as WaitForOptions, ri as SandboxTerminals, rn as IntelligenceReport, rr as SSHCommandDescriptor, sa as WriteManyFile, si as SandboxTraceOptions, sn as IntelligenceReportWindow, ui as SearchOptions, ur as SandboxDeleteOptions, ut as ExecOptions, vi as SessionExecutionInfo, vt as FileSystem, wi as SessionListOptions, wt as FileWriteResult, xi as SessionForkOptions, z as CreateSessionOptions } from "./types-BL3VHr3R.js";
|
|
4
4
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-DPXKKBJu.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-NaAvpHBK.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { g as parseErrorResponse } from "./errors-CdDyExth.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-0VHkiqla.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1792,7 +1792,9 @@ interface CreateSandboxOptions {
|
|
|
1792
1792
|
* When `true` (the default), a profile with sizeable inline mounts (e.g.
|
|
1793
1793
|
* skills, tool scripts) does not bloat the create POST; the SDK
|
|
1794
1794
|
* materializes those files via {@link FileSystem.writeMany} /
|
|
1795
|
-
* {@link FileSystem.uploadData} after the sandbox reaches `running`.
|
|
1795
|
+
* {@link FileSystem.uploadData} after the sandbox reaches `running`. A batch
|
|
1796
|
+
* write answered 502, 503 or 504, or lost with its connection, is sent again
|
|
1797
|
+
* for up to 10 seconds before create() raises `PartialFailureError`. Only
|
|
1796
1798
|
* applies to an inline `AgentProfile` object on `backend.profile`; a
|
|
1797
1799
|
* named-profile string is never split. Set `false` to send the full profile
|
|
1798
1800
|
* in the create request without a post-create materialization step.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
"vitest": "^4.1.5",
|
|
136
136
|
"ws": "^8.20.0",
|
|
137
137
|
"yjs": "13.6.30",
|
|
138
|
-
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
139
138
|
"@repo/shared": "0.0.0",
|
|
140
|
-
"@tangle-network/
|
|
141
|
-
"@tangle-network/
|
|
142
|
-
"@tangle-network/sse-core": "0.0.0"
|
|
139
|
+
"@tangle-network/runtime-contracts": "0.6.10",
|
|
140
|
+
"@tangle-network/cli-agent-registry": "0.4.5",
|
|
141
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
142
|
+
"@tangle-network/agent-profile-materialize": "0.20.1"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|
|
145
145
|
"build": "node scripts/build-dist.mjs",
|