@tangle-network/sandbox 0.46.0 → 0.47.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/README.md +22 -0
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +2 -2
- package/dist/{agent-run-outcome-B_DRpTxx.d.ts → agent-run-outcome-CDpN0lAh.d.ts} +1 -1
- package/dist/{client-DdmHMuCL.d.ts → client-BVnci7-6.d.ts} +33 -2
- package/dist/{client-BSNkAx2K.js → client-DWX9LVU8.js} +134 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-B6eCXD1R.d.ts → index-ByUvixzl.d.ts} +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/dist/runtime.d.ts +2 -2
- package/dist/{sandbox-cTa_FF5p.d.ts → sandbox-CpCVgm4V.d.ts} +1 -1
- package/dist/{sandbox-BRZLdcud.js → sandbox-f9NE1NPU.js} +10 -6
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D7KgC1Xb.js → tangle-CBTGyeMO.js} +1 -1
- package/dist/{types-C3Kw-Tml.d.ts → types-CDksqyD4.d.ts} +79 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -111,6 +111,28 @@ Keep `delete()` in `finally` unless the sandbox must outlive the process.
|
|
|
111
111
|
The sandbox is already gone for every read at that point.
|
|
112
112
|
Pass `await box.delete({ until: "removed" })` when you need the reclaim itself, for example before reusing the same host capacity in a test; it reports `removal: "complete"`, or `"pending"` if the wait runs out.
|
|
113
113
|
|
|
114
|
+
To remove every sandbox that one job created, tag them with metadata at create time and delete them by prefix:
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
const result = await client.deleteMatching({
|
|
118
|
+
metadataPrefix: { retainedIdempotencyKey: `runtime:${runId}:` },
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`deleteMatching()` deletes only your own sandboxes, each through the same delete as `box.delete()`.
|
|
123
|
+
`result.complete` is `true` only when every match is confirmed gone.
|
|
124
|
+
`result.sandboxes` reports each sandbox as `destroyed`, `already_absent` or `failed`, with the refusal's `status` and `code`.
|
|
125
|
+
One call attempts every match once, so a refused delete does not hold back the others.
|
|
126
|
+
The call is safe to repeat; a confirmed sandbox no longer matches.
|
|
127
|
+
|
|
128
|
+
Stop creating the job's sandboxes before you call `deleteMatching()`.
|
|
129
|
+
`result.complete` covers only the sandboxes the call listed.
|
|
130
|
+
A create that registers after the listing, or retries with the same idempotency key, can leave a match behind, so call again once in-flight creates have settled.
|
|
131
|
+
|
|
132
|
+
With `{ until: "removed" }`, a destroyed sandbox counts as confirmed only when its removal is proven.
|
|
133
|
+
If the removal wait runs out, the sandbox reports `removal: "pending"` and `confirmed: false`, and `result.complete` is `false`.
|
|
134
|
+
That sandbox is already gone for every read, so a later call does not list it again.
|
|
135
|
+
|
|
114
136
|
## Create a sandbox
|
|
115
137
|
|
|
116
138
|
`client.create()` accepts a named environment, container image, or published image ID.
|
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,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-CpCVgm4V.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, Mi as SessionInfo, O as CodeLanguage, Pi as SessionListOptions, d as BackendConfig, k as CodeResultPart } from "../types-CDksqyD4.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BVnci7-6.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
import { JSONSchema } from "zod/v4/core";
|
|
6
6
|
|
package/dist/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as assertCurrentBackendType } from "../runtime-api-D7CdKcbu.js";
|
|
2
2
|
import { c as NotFoundError, h as ValidationError, p as StateError } from "../errors-CdDyExth.js";
|
|
3
|
-
import { n as Sandbox } from "../client-
|
|
4
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
3
|
+
import { n as Sandbox } from "../client-DWX9LVU8.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-f9NE1NPU.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentQuestionRequest,
|
|
1
|
+
import { a as AgentQuestionRequest, br as SandboxEvent, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation, st as DurablePlanSnapshot } from "./types-CDksqyD4.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-CpCVgm4V.js";
|
|
2
2
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CcaBTVg3.js";
|
|
3
|
-
import {
|
|
3
|
+
import { $n as ReconcileSandboxFleetsResult, B as CreateSandboxOptions, Bn as PromptOptions, Bt as FleetMachineId, Cr as SandboxFleetCostEstimate, Er as SandboxFleetDriverCapability, F as CreateIntelligenceReportOptions, Ft as FleetDispatchStreamOptions, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetWorkspaceReconcileResult, Hr as SandboxFleetTraceOptions, Ht as FleetPromptDispatchResult, I as CreateRequestOptions, Ir as SandboxFleetOperationsSummary, It as FleetDriveTurnOutcome, Jn as PublishPublicTemplateOptions, Jr as SandboxIdentity, K as DeleteMatchingSandboxesOptions, Ki as SshKeysManager, Kn as PublicTemplateInfo, Kr as SandboxFleetWorkspaceRestoreResult, L as CreateSandboxFleetOptions, Lt as FleetDriveTurnRequest, Mr as SandboxFleetMachineRecord, Mt as FleetDispatchCancelResult, Nt as FleetDispatchResultBuffer, Or as SandboxFleetInfo, Pr as SandboxFleetManifest, Pt as FleetDispatchResultBufferOptions, Qn as ReconcileSandboxFleetsOptions, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetToken, Rt as FleetExecDispatchOptions, Si as SecretsManager, Sr as SandboxFleetArtifactSpec, Tr as SandboxFleetDispatchResponse, Ur as SandboxFleetUsage, Vn as PromptResult, Vt as FleetPromptDispatchOptions, Xi as SubscriptionInfo, Xn as ReapExpiredSandboxFleetsOptions, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxInfo, Zn as ReapExpiredSandboxFleetsResult, _t as ExecOptions, b as BatchRunRequest, dn as IntelligenceReportBudget, fn as IntelligenceReportCompareTo, fr as SandboxConfig, l as AttachSandboxFleetMachineOptions, mn as IntelligenceReportWindow, oi as SandboxShapesInfo, pa as UsageInfo, q as DeleteMatchingSandboxesResult, qn as PublicTemplateVersionInfo, qr as SandboxFleetWorkspaceSnapshotResult, sa as TokenRefreshHandler, un as IntelligenceReport, v as BatchResult, vn as ListSandboxFleetOptions, vt as ExecResult, xa as BatchEvent, xr as SandboxFleetArtifact, y as BatchRunOptions, yn as ListSandboxOptions, yr as SandboxEnvironment, z as CreateSandboxFleetWithCoordinatorOptions, zn as PromptInputPart, zr as SandboxFleetTraceBundle, zt as FleetExecDispatchResult } from "./types-CDksqyD4.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -492,6 +492,37 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
492
492
|
* ```
|
|
493
493
|
*/
|
|
494
494
|
get(id: string): Promise<SandboxInstance | null>;
|
|
495
|
+
/**
|
|
496
|
+
* Delete every sandbox this caller owns whose metadata matches, and report
|
|
497
|
+
* which ones are confirmed gone.
|
|
498
|
+
*
|
|
499
|
+
* Each sandbox goes through the same delete as {@link SandboxInstance.delete}.
|
|
500
|
+
* The API deletes a bounded batch per request in ID order; this method
|
|
501
|
+
* follows its cursor, so one call attempts every match once and a refused
|
|
502
|
+
* delete never holds back the matches after it. Calling it again is safe: a
|
|
503
|
+
* sandbox confirmed gone no longer matches.
|
|
504
|
+
*
|
|
505
|
+
* `complete` is the teardown verdict. When it is false, `sandboxes` names
|
|
506
|
+
* each refused delete with its status and code, and `listingComplete` or
|
|
507
|
+
* `remaining` says whether a match may not have been attempted.
|
|
508
|
+
*
|
|
509
|
+
* `complete` covers the sandboxes this call listed. Stop creating
|
|
510
|
+
* sandboxes that match before calling, and call again once in-flight
|
|
511
|
+
* creates have settled; a create that registers after the listing, or that
|
|
512
|
+
* retries with the same idempotency key, can leave a match behind.
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```typescript
|
|
516
|
+
* // Remove every sandbox one Agent Runtime run created.
|
|
517
|
+
* const result = await client.deleteMatching({
|
|
518
|
+
* metadataPrefix: { retainedIdempotencyKey: `runtime:${runId}:` },
|
|
519
|
+
* });
|
|
520
|
+
* if (!result.complete) {
|
|
521
|
+
* console.warn(result.sandboxes.filter((s) => !s.confirmed));
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
deleteMatching(filter: DeleteMatchingSandboxesFilter, options?: DeleteMatchingSandboxesOptions): Promise<DeleteMatchingSandboxesResult>;
|
|
495
526
|
/**
|
|
496
527
|
* Mint the terminal-capable token for one exact interactive session.
|
|
497
528
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as backendTypeSchema, _ as normalizeRuntimeBackendConfig, d as encodePromptForWire, f as encodeTextForWire, h as assertCurrentBackendType, l as SANDBOX_PROXY_REQUEST_MAX_BYTES, m as applyRequestedModel, p as parseSSEStream } from "./runtime-api-D7CdKcbu.js";
|
|
2
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 { D as normalizeSandboxShape, E as normalizeConnection, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, k as exportTraceBundle, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-
|
|
4
|
+
import { D as normalizeSandboxShape, E as normalizeConnection, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, k as exportTraceBundle, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-f9NE1NPU.js";
|
|
5
5
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/backend-registry.ts
|
|
@@ -1076,6 +1076,106 @@ const runtimeWorkspaceCwdSchema = z.string().min(1).max(MAX_RUNTIME_WORKSPACE_CW
|
|
|
1076
1076
|
return value.split("/").filter((segment) => segment.length > 0 && segment !== ".").join("/") || ".";
|
|
1077
1077
|
});
|
|
1078
1078
|
//#endregion
|
|
1079
|
+
//#region src/delete-matching.ts
|
|
1080
|
+
/**
|
|
1081
|
+
* Delete every sandbox the caller owns whose metadata matches, and report
|
|
1082
|
+
* which ones are confirmed gone.
|
|
1083
|
+
*
|
|
1084
|
+
* The API deletes a bounded batch per request, in ID order, and answers a
|
|
1085
|
+
* `next` cursor while matches remain past it. This helper follows the cursor
|
|
1086
|
+
* until no match remains past it, so one pass attempts every match once:
|
|
1087
|
+
* matches whose deletes keep failing never hold back the ones after them.
|
|
1088
|
+
*/
|
|
1089
|
+
const DELETE_MATCHING_PATH = "/v1/sandboxes/delete-matching";
|
|
1090
|
+
const DEFAULT_TIMEOUT_MS$1 = 12e4;
|
|
1091
|
+
const DEFAULT_UNTIL_REMOVED_TIMEOUT_MS = 3e5;
|
|
1092
|
+
const OUTCOMES = new Set([
|
|
1093
|
+
"destroyed",
|
|
1094
|
+
"already_absent",
|
|
1095
|
+
"failed"
|
|
1096
|
+
]);
|
|
1097
|
+
function invalidDeleteMatching(message) {
|
|
1098
|
+
throw new ServerError(`Sandbox API answered delete-matching with ${message}`, 502, {
|
|
1099
|
+
origin: "sandbox-api",
|
|
1100
|
+
endpoint: DELETE_MATCHING_PATH
|
|
1101
|
+
}, "INVALID_DELETE_MATCHING_RESPONSE");
|
|
1102
|
+
}
|
|
1103
|
+
function isRecord(value) {
|
|
1104
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1105
|
+
}
|
|
1106
|
+
function readResult(raw) {
|
|
1107
|
+
if (!isRecord(raw) || typeof raw.id !== "string" || typeof raw.confirmed !== "boolean" || !OUTCOMES.has(raw.outcome)) invalidDeleteMatching("a malformed sandbox result");
|
|
1108
|
+
const deletedChildren = Array.isArray(raw.deletedChildren) ? raw.deletedChildren.map(String) : void 0;
|
|
1109
|
+
const children = Array.isArray(raw.children) ? raw.children.map(String) : void 0;
|
|
1110
|
+
return {
|
|
1111
|
+
id: raw.id,
|
|
1112
|
+
confirmed: raw.confirmed,
|
|
1113
|
+
outcome: raw.outcome,
|
|
1114
|
+
...raw.removal === "pending" || raw.removal === "complete" ? { removal: raw.removal } : {},
|
|
1115
|
+
...deletedChildren ? { deletedChildren } : {},
|
|
1116
|
+
...raw.settlementDeferred === true ? { settlementDeferred: true } : {},
|
|
1117
|
+
...typeof raw.status === "number" ? { status: raw.status } : {},
|
|
1118
|
+
...typeof raw.code === "string" ? { code: raw.code } : {},
|
|
1119
|
+
...typeof raw.error === "string" ? { error: raw.error } : {},
|
|
1120
|
+
...children ? { children } : {}
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
function readPage(raw) {
|
|
1124
|
+
if (!isRecord(raw) || typeof raw.remaining !== "number" || typeof raw.listingComplete !== "boolean" || typeof raw.complete !== "boolean" || !Array.isArray(raw.sandboxes) || raw.next !== void 0 && typeof raw.next !== "string") invalidDeleteMatching("a body missing its result fields");
|
|
1125
|
+
return {
|
|
1126
|
+
remaining: raw.remaining,
|
|
1127
|
+
next: raw.next,
|
|
1128
|
+
listingComplete: raw.listingComplete,
|
|
1129
|
+
complete: raw.complete,
|
|
1130
|
+
sandboxes: raw.sandboxes.map(readResult)
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
async function requestPage(client, body, options) {
|
|
1134
|
+
const timeoutMs = options?.timeoutMs ?? (options?.until === "removed" ? DEFAULT_UNTIL_REMOVED_TIMEOUT_MS : DEFAULT_TIMEOUT_MS$1);
|
|
1135
|
+
const response = await client.fetch(DELETE_MATCHING_PATH, {
|
|
1136
|
+
method: "POST",
|
|
1137
|
+
body,
|
|
1138
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
1139
|
+
}, { timeoutMs });
|
|
1140
|
+
if (!response.ok) throw parseErrorResponse(response.status, await response.text(), {
|
|
1141
|
+
method: "POST",
|
|
1142
|
+
path: DELETE_MATCHING_PATH
|
|
1143
|
+
}, response.headers);
|
|
1144
|
+
return readPage(await response.json());
|
|
1145
|
+
}
|
|
1146
|
+
async function deleteMatchingSandboxes(client, filter, options) {
|
|
1147
|
+
const request = {
|
|
1148
|
+
metadataPrefix: filter.metadataPrefix,
|
|
1149
|
+
...options?.cascade ? { cascade: true } : {},
|
|
1150
|
+
...options?.until ? { until: options.until } : {}
|
|
1151
|
+
};
|
|
1152
|
+
const latest = /* @__PURE__ */ new Map();
|
|
1153
|
+
let listingComplete = true;
|
|
1154
|
+
const send = async (after) => {
|
|
1155
|
+
options?.signal?.throwIfAborted();
|
|
1156
|
+
const page = await requestPage(client, JSON.stringify(after === void 0 ? request : {
|
|
1157
|
+
...request,
|
|
1158
|
+
after
|
|
1159
|
+
}), options);
|
|
1160
|
+
for (const result of page.sandboxes) latest.set(result.id, result);
|
|
1161
|
+
listingComplete &&= page.listingComplete;
|
|
1162
|
+
return page;
|
|
1163
|
+
};
|
|
1164
|
+
let last = await send(void 0);
|
|
1165
|
+
for (let sent = 1; sent < 100 && last.remaining > 0 && last.next !== void 0; sent += 1) {
|
|
1166
|
+
const after = last.next;
|
|
1167
|
+
last = await send(after);
|
|
1168
|
+
if (last.next !== void 0 && last.next <= after) invalidDeleteMatching("a cursor that does not advance");
|
|
1169
|
+
}
|
|
1170
|
+
const sandboxes = [...latest.values()];
|
|
1171
|
+
return {
|
|
1172
|
+
complete: last.complete && last.remaining === 0 && listingComplete && sandboxes.every((result) => result.confirmed),
|
|
1173
|
+
listingComplete,
|
|
1174
|
+
remaining: last.remaining,
|
|
1175
|
+
sandboxes
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
//#endregion
|
|
1079
1179
|
//#region src/fleet.ts
|
|
1080
1180
|
const FLEET_ID_META = "tangle.fleet.id";
|
|
1081
1181
|
const MACHINE_ID_META = "tangle.fleet.machine_id";
|
|
@@ -3092,6 +3192,39 @@ var Sandbox = class {
|
|
|
3092
3192
|
return createSandboxInstanceFromResponse(this, this.parseInfo(data), void 0, data);
|
|
3093
3193
|
}
|
|
3094
3194
|
/**
|
|
3195
|
+
* Delete every sandbox this caller owns whose metadata matches, and report
|
|
3196
|
+
* which ones are confirmed gone.
|
|
3197
|
+
*
|
|
3198
|
+
* Each sandbox goes through the same delete as {@link SandboxInstance.delete}.
|
|
3199
|
+
* The API deletes a bounded batch per request in ID order; this method
|
|
3200
|
+
* follows its cursor, so one call attempts every match once and a refused
|
|
3201
|
+
* delete never holds back the matches after it. Calling it again is safe: a
|
|
3202
|
+
* sandbox confirmed gone no longer matches.
|
|
3203
|
+
*
|
|
3204
|
+
* `complete` is the teardown verdict. When it is false, `sandboxes` names
|
|
3205
|
+
* each refused delete with its status and code, and `listingComplete` or
|
|
3206
|
+
* `remaining` says whether a match may not have been attempted.
|
|
3207
|
+
*
|
|
3208
|
+
* `complete` covers the sandboxes this call listed. Stop creating
|
|
3209
|
+
* sandboxes that match before calling, and call again once in-flight
|
|
3210
|
+
* creates have settled; a create that registers after the listing, or that
|
|
3211
|
+
* retries with the same idempotency key, can leave a match behind.
|
|
3212
|
+
*
|
|
3213
|
+
* @example
|
|
3214
|
+
* ```typescript
|
|
3215
|
+
* // Remove every sandbox one Agent Runtime run created.
|
|
3216
|
+
* const result = await client.deleteMatching({
|
|
3217
|
+
* metadataPrefix: { retainedIdempotencyKey: `runtime:${runId}:` },
|
|
3218
|
+
* });
|
|
3219
|
+
* if (!result.complete) {
|
|
3220
|
+
* console.warn(result.sandboxes.filter((s) => !s.confirmed));
|
|
3221
|
+
* }
|
|
3222
|
+
* ```
|
|
3223
|
+
*/
|
|
3224
|
+
async deleteMatching(filter, options) {
|
|
3225
|
+
return deleteMatchingSandboxes(this, filter, options);
|
|
3226
|
+
}
|
|
3227
|
+
/**
|
|
3095
3228
|
* Mint the terminal-capable token for one exact interactive session.
|
|
3096
3229
|
*
|
|
3097
3230
|
* This is a server-side operation. It validates the complete session
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Cn as
|
|
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-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-CpCVgm4V.js";
|
|
2
|
+
import { An as PreviewLinkWaitOptions, B as CreateSandboxOptions, Cn as NetworkConfig, Ii as SessionMessageAdmission, M as ConversationTurnOptions, N as ConversationTurnResult, On as PreviewLinkInfo, Yr as SandboxInfo, _t as ExecOptions, fr as SandboxConfig, kn as PreviewLinkManager, si as SandboxStatus, vt as ExecResult, zn as PromptInputPart } from "./types-CDksqyD4.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-BVnci7-6.js";
|
|
4
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
|
|
|
6
6
|
//#region src/core.d.ts
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
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-DWX9LVU8.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-f9NE1NPU.js";
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
6
6
|
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-CpCVgm4V.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-CDksqyD4.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-CpCVgm4V.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
|
|
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 DownloadOptions, $i as TaskSessionFileChange, $n as ReconcileSandboxFleetsResult, $r as SandboxRemovalState, $t as GpuLease, A as CommitTaskSessionOptions, Ai as SessionFailureReason, An as PreviewLinkWaitOptions, Ar as SandboxFleetMachine, At as FileUsageResult, B as CreateSandboxOptions, Bi as SnapshotDeleteAcknowledgement, Bn as PromptOptions, Br as SandboxFleetTraceEvent, Bt as FleetMachineId, C as BranchOptions, Ca as BatchSidecarGroup, Ci as SendSessionMessageOptions, Cn as NetworkConfig, Cr as SandboxFleetCostEstimate, Ct as FileReadResult, Da as BackendType, Di as SessionEventStreamOptions, Dn as PermissionsManager, Dr as SandboxFleetDriverTimings, Dt as FileTreeOptions, Ea as ALL_BACKEND_TYPES, Ei as SessionBackendCredentials, En as PermissionLevel, Er as SandboxFleetDriverCapability, Et as FileTreeFile, F as CreateIntelligenceReportOptions, Fi as SessionMessage, Fn as ProcessManager, Fr as SandboxFleetManifestMachine, Ft as FleetDispatchStreamOptions, G as DeleteMatchingSandboxesFilter, Gi as SnapshotResult, Gn as ProvisionStep, Gr as SandboxFleetWorkspaceReconcileResult, Gt as ForkLookupOptions, H as CreateTaskSessionOptions, Hi as SnapshotIdempotency, Hn as ProvisionEvent, Hr as SandboxFleetTraceOptions, I as CreateRequestOptions, Ii as SessionMessageAdmission, In as ProcessSignal, Ir as SandboxFleetOperationsSummary, It as FleetDriveTurnOutcome, J as DeleteOptions, Ji as StartupOperation, Jn as PublishPublicTemplateOptions, Jr as SandboxIdentity, Jt as GitBranch, K as DeleteMatchingSandboxesOptions, Kn as PublicTemplateInfo, Kr as SandboxFleetWorkspaceRestoreResult, Kt as GPU_LEASE_PROVIDER_NAMES, L as CreateSandboxFleetOptions, Li as SessionMessageInputPart, Ln as ProcessSpawnOptions, Lr as SandboxFleetPolicy, Lt as FleetDriveTurnRequest, M as ConversationTurnOptions, Mi as SessionInfo, Mn as ProcessInfo, Mr as SandboxFleetMachineRecord, Mt as FleetDispatchCancelResult, N as ConversationTurnResult, Ni as SessionInterruptOptions, Nn as ProcessListOptions, Nr as SandboxFleetMachineSpec, Nt as FleetDispatchResultBuffer, Oa as parseBackendType, Oi as SessionExecutionInfo, On as PreviewLinkInfo, Or as SandboxFleetInfo, Ot as FileTreeResult, P as CreateGpuLeaseOptions, Pi as SessionListOptions, Pn as ProcessLogEntry, Pr as SandboxFleetManifest, Pt as FleetDispatchResultBufferOptions, Q as DispatchedSession, Qi as TaskSessionCommitResult, Qn as ReconcileSandboxFleetsOptions, Qr as SandboxPortPreviewLink, Qt as GitStatus, Ri as SessionResultOptions, Rn as ProcessStatus, Rr as SandboxFleetToken, Rt as FleetExecDispatchOptions, S as BatchTaskResult, Sa as BatchEventDataMap, Si as SecretsManager, Sn as MkdirOptions, Sr as SandboxFleetArtifactSpec, St as FileReadError, T as ChunkedUploadResult, Ta as PublicBatchRunRequest, Ti as SentSessionMessage, Tn as NonHostAgentDriverConfig, Tr as SandboxFleetDispatchResponse, Tt as FileSystem, U as DeleteMatchingSandboxOutcome, Ui as SnapshotInfo, Un as ProvisionResult, Ur as SandboxFleetUsage, Ut as ForkCounts, V as CreateSessionOptions, Vi as SnapshotDeleteOutcome, Vn as PromptResult, Vr as SandboxFleetTraceExport, Vt as FleetPromptDispatchOptions, W as DeleteMatchingSandboxResult, Wi as SnapshotOptions, Wn as ProvisionStatus, Wr as SandboxFleetWorkspace, Wt as ForkIdempotency, X as DirectoryPermission, Xi as SubscriptionInfo, Xn as ReapExpiredSandboxFleetsOptions, Xr as SandboxIntelligenceEnvelope, Xt as GitConfig, Y as DevServerInfo, Yi as StorageConfig, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxInfo, Yt as GitCommit, Z as DispatchPromptOptions, Zi as TaskSessionChanges, Zn as ReapExpiredSandboxFleetsResult, Zr as SandboxPortBinding, Zt as GitDiff, _ as BatchBackend, _a as WriteFileOptions, _i as SandboxTraceOptions, _n as ListOptions, _r as SandboxDeleteOptions, _t as ExecOptions, aa as TeePublicKey, ai as SandboxShapePreset, an as GpuLeaseProviderName, ar as RolloutOptions, at as DurablePlan, b as BatchRunRequest, ba as BatchBackendStats, bi as SearchOptions, bn as MAX_EGRESS_DENIALS_LIMIT, br as SandboxEvent, bt as FileReadBatchOptions, c as AttachGpuLeaseOptions, ca as TokenUsage, ci as SandboxTerminalAttachOptions, cn as HostAgentRuntimeBackend, cr as RolloutStatus, ct as EffectiveBackend, d as BackendConfig, da as UploadOptions, di as SandboxTerminalManager, dn as IntelligenceReportBudget, dr as SSHCredentials, dt as EgressDenial, ea as TaskSessionInfo, ei as SandboxResourceUsage, en as GpuLeaseBilling, er as RenameOptions, et as DownloadProgress, f as BackendInfo, fa as UploadProgress, fi as SandboxTerminalRequestOptions, fn as IntelligenceReportCompareTo, fr as SandboxConfig, ft as EgressManager, g as BackendStatus, ga as WorkspaceOperationLookup, gi as SandboxTraceExport, gn as ListMessagesOptions, gr as SandboxDeleteAcknowledgement, gt as ExactProcessSpawnOptions, h as BackendRuntimeConfigUpdate, ha as WaitForRolloutOptions, hi as SandboxTraceEvent, hr as SandboxCreateReceipt, ht as EventStreamOptions, ia as TeeAttestationResponse, ii as SandboxShape, in as GpuLeaseManager, ir as RolloutChildResult, it as DriverType, j as CompletedTurnResult, ji as SessionForkOptions, jn as Process, jr as SandboxFleetMachineMeteredUsage, jt as FileWriteResult, ki as SessionExecutionStatus, kn as PreviewLinkManager, kr as SandboxFleetIntelligenceEnvelope, kt as FileUsageOptions, l as AttachSandboxFleetMachineOptions, la as TurnDriveResult, li as SandboxTerminalCreateOptions, ln as InstalledTool, lr as RolloutTurnPart, lt as EffectiveBackendProfile, m as BackendMcpServerStatus, ma as WaitForOptions, mi as SandboxTraceBundle, mn as IntelligenceReportWindow, mr as SandboxCreateOutcome, mt as EnsureDevServerOptions, n as AccessPolicyRule, na as TeeAttestationOptions, ni as SandboxRuntimeCapabilities, nn as GpuLeaseExecOptions, nt as DriverConfig, oa as TeePublicKeyResponse, oi as SandboxShapesInfo, on as GpuLeaseStatus, or as RolloutScorer, ot as DurablePlanDecisionResult, p as BackendManager, pa as UsageInfo, pi as SandboxTerminals, pn as IntelligenceReportSubjectType, pr as SandboxConnection, pt as EgressPolicy, q as DeleteMatchingSandboxesResult, qi as StartupDiagnostics, qn as PublicTemplateVersionInfo, qr as SandboxFleetWorkspaceSnapshotResult, qt as GitAuth, r as AddUserOptions, ra as TeeAttestationReport, ri as SandboxRuntimeHealth, rn as GpuLeaseExecResult, rr as Rollout, rt as DriverInfo, sa as TokenRefreshHandler, si as SandboxStatus, sn as HostAgentDriverConfig, sr as RolloutStartResult, t as AcceleratorKind, ta as TaskSessionProfile, ti as SandboxResources, tn as GpuLeaseCommandResult, tt as DriveTurnOptions, u as BackendCapabilities, ua as UpdateUserOptions, ui as SandboxTerminalInfo, un as IntelligenceReport, ur as SSHCommandDescriptor, ut as EffectiveBackendSource, v as BatchResult, va as WriteManyFile, vi as SandboxUser, vn as ListSandboxFleetOptions, vr as SandboxDeleteOutcome, vt as ExecResult, w as ChunkedUploadOptions, wa as BatchTaskUsage, wi as SendSessionMessageRequest, wn as NetworkManager, wr as SandboxFleetDispatchFailureClass, wt as FileRenameResult, x as BatchTask, xa as BatchEvent, xi as SecretInfo, xn as McpServerConfig, xr as SandboxFleetArtifact, xt as FileReadBatchResult, y as BatchRunOptions, ya as WriteManyOptions, yi as SearchMatch, yn as ListSandboxOptions, yr as SandboxEnvironment, yt as FileInfo, z as CreateSandboxFleetWithCoordinatorOptions, zi as SessionStatus, zn as PromptInputPart, zr as SandboxFleetTraceBundle } from "./types-CDksqyD4.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-BVnci7-6.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
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-
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
9
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CDpN0lAh.js";
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-ByUvixzl.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";
|
|
@@ -4447,4 +4447,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4447
4447
|
}
|
|
4448
4448
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4449
4449
|
//#endregion
|
|
4450
|
-
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 ConversationTurnOptions, type ConversationTurnResult, 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 SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, 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 SessionMessageAdmission, 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 };
|
|
4450
|
+
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 ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, 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 SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, 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 SessionMessageAdmission, 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
1
|
import { C as parseBackendType, S as backendTypeSchema, _ as normalizeRuntimeBackendConfig, b as deriveAgentRunOutcome, p as parseSSEStream, v as createAgentRunOutcomeTracker, x as ALL_BACKEND_TYPES, y as deriveAgentResultOutcome } from "./runtime-api-D7CdKcbu.js";
|
|
2
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-
|
|
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-DWX9LVU8.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 otelTraceIdForTangleTrace, C as collectAgentResponseText, O as buildTraceExportPayload, 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, j as toOtelJson, k as exportTraceBundle, 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-
|
|
5
|
+
import { A as otelTraceIdForTangleTrace, C as collectAgentResponseText, O as buildTraceExportPayload, 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, j as toOtelJson, k as exportTraceBundle, 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-f9NE1NPU.js";
|
|
6
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-
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-CBTGyeMO.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
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions,
|
|
1
|
+
import { A as CommitTaskSessionOptions, At as FileUsageResult, Ci as SendSessionMessageOptions, Di as SessionEventStreamOptions, Dt as FileTreeOptions, Fi as SessionMessage, H as CreateTaskSessionOptions, Ii as SessionMessageAdmission, Mi as SessionInfo, Oi as SessionExecutionInfo, Ot as FileTreeResult, Qi as TaskSessionCommitResult, T as ChunkedUploadResult, Ti as SentSessionMessage, V as CreateSessionOptions, Zi as TaskSessionChanges, Zr as SandboxPortBinding, _a as WriteFileOptions, br as SandboxEvent, bt as FileReadBatchOptions, di as SandboxTerminalManager, ea as TaskSessionInfo, er as RenameOptions, fa as UploadProgress, fi as SandboxTerminalRequestOptions, gn as ListMessagesOptions, jt as FileWriteResult, ki as SessionExecutionStatus, kt as FileUsageOptions, li as SandboxTerminalCreateOptions, ri as SandboxRuntimeHealth, ui as SandboxTerminalInfo, w as ChunkedUploadOptions, wi as SendSessionMessageRequest, wt as FileRenameResult, xt as FileReadBatchResult } from "./types-CDksqyD4.js";
|
|
2
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-
|
|
3
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CDpN0lAh.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}
|
|
@@ -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 { $
|
|
3
|
+
import { $t as GpuLease, A as CommitTaskSessionOptions, Bi as SnapshotDeleteAcknowledgement, Bn as PromptOptions, C as BranchOptions, Ci as SendSessionMessageOptions, D as CodeExecutionResult, Di as SessionEventStreamOptions, Dn as PermissionsManager, E as CodeExecutionOptions, Fi as SessionMessage, Fn as ProcessManager, Gi as SnapshotResult, Gt as ForkLookupOptions, H as CreateTaskSessionOptions, Hn as ProvisionEvent, Ii as SessionMessageAdmission, Jt as GitBranch, M as ConversationTurnOptions, Mi as SessionInfo, N as ConversationTurnResult, Ni as SessionInterruptOptions, O as CodeLanguage, Oi as SessionExecutionInfo, Pi as SessionListOptions, Q as DispatchedSession, Qi as TaskSessionCommitResult, Qt as GitStatus, Ri as SessionResultOptions, Ti as SentSessionMessage, Tt as FileSystem, Ui as SnapshotInfo, Un as ProvisionResult, Ut as ForkCounts, V as CreateSessionOptions, Vn as PromptResult, Wi as SnapshotOptions, Wt as ForkIdempotency, Yr as SandboxInfo, Yt as GitCommit, Z as DispatchPromptOptions, Zi as TaskSessionChanges, Zr as SandboxPortBinding, Zt as GitDiff, _a as WriteFileOptions, _i as SandboxTraceOptions, _r as SandboxDeleteOptions, _t as ExecOptions, ar as RolloutOptions, at as DurablePlan, bi as SearchOptions, br as SandboxEvent, ci as SandboxTerminalAttachOptions, d as BackendConfig, dn as IntelligenceReportBudget, dr as SSHCredentials, ea as TaskSessionInfo, ei as SandboxResourceUsage, fn as IntelligenceReportCompareTo, ft as EgressManager, ga as WorkspaceOperationLookup, gn as ListMessagesOptions, gr as SandboxDeleteAcknowledgement, ha as WaitForRolloutOptions, hn as JsonValue, hr as SandboxCreateReceipt, ht as EventStreamOptions, ia as TeeAttestationResponse, ii as SandboxShape, in as GpuLeaseManager, j as CompletedTurnResult, ji as SessionForkOptions, jt as FileWriteResult, kn as PreviewLinkManager, la as TurnDriveResult, ln as InstalledTool, ma as WaitForOptions, mi as SandboxTraceBundle, mn as IntelligenceReportWindow, na as TeeAttestationOptions, ni as SandboxRuntimeCapabilities, nr as ResumeOptions, oa as TeePublicKeyResponse, ot as DurablePlanDecisionResult, p as BackendManager, pi as SandboxTerminals, pr as SandboxConnection, qi as StartupDiagnostics, ri as SandboxRuntimeHealth, rr as Rollout, rt as DriverInfo, si as SandboxStatus, sr as RolloutStartResult, tr as RestoreSnapshotOptions, tt as DriveTurnOptions, un as IntelligenceReport, ur as SSHCommandDescriptor, va as WriteManyFile, vt as ExecResult, wi as SendSessionMessageRequest, wn as NetworkManager, ya as WriteManyOptions, yi as SearchMatch, zn as PromptInputPart, zr as SandboxFleetTraceBundle } from "./types-CDksqyD4.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
|
|
|
@@ -4694,9 +4694,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4694
4694
|
for await (const event of this.streamPromptInner(message, options, { forceFullProfile: profileResendAttempted })) {
|
|
4695
4695
|
yieldedThisAttempt = true;
|
|
4696
4696
|
if (event.type === "done") receivedTerminal = true;
|
|
4697
|
-
if (event.type === "execution.started" && event.data.executionId)
|
|
4698
|
-
|
|
4699
|
-
|
|
4697
|
+
if (event.type === "execution.started" && event.data.executionId) {
|
|
4698
|
+
executionId = event.data.executionId;
|
|
4699
|
+
const sid = event.data.sessionId;
|
|
4700
|
+
if (sessionId === void 0 && typeof sid === "string" && sid.length > 0) sessionId = sid;
|
|
4701
|
+
}
|
|
4700
4702
|
yield event;
|
|
4701
4703
|
}
|
|
4702
4704
|
break;
|
|
@@ -4851,9 +4853,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4851
4853
|
});
|
|
4852
4854
|
}
|
|
4853
4855
|
if (event.id) lastEventId = event.id;
|
|
4854
|
-
if (event.type === "execution.started" && event.data?.executionId)
|
|
4855
|
-
|
|
4856
|
-
|
|
4856
|
+
if (event.type === "execution.started" && event.data?.executionId) {
|
|
4857
|
+
executionId = event.data.executionId;
|
|
4858
|
+
const eventSessionId = event.data?.sessionId;
|
|
4859
|
+
if (sessionId === void 0 && typeof eventSessionId === "string" && eventSessionId.length > 0) sessionId = eventSessionId;
|
|
4860
|
+
}
|
|
4857
4861
|
if (event.type === "done" || event.type === "error") {
|
|
4858
4862
|
receivedTerminal = true;
|
|
4859
4863
|
logStreamCheckpoint("terminal_event", {
|
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-ByUvixzl.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-CBTGyeMO.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
1
|
import { g as parseErrorResponse } from "./errors-CdDyExth.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-f9NE1NPU.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -3773,6 +3773,84 @@ interface SandboxDeleteAcknowledgement {
|
|
|
3773
3773
|
*/
|
|
3774
3774
|
removal?: SandboxRemovalState;
|
|
3775
3775
|
}
|
|
3776
|
+
/**
|
|
3777
|
+
* Which sandboxes {@link Sandbox.deleteMatching} removes: the caller's own
|
|
3778
|
+
* sandboxes whose metadata matches every entry.
|
|
3779
|
+
*/
|
|
3780
|
+
interface DeleteMatchingSandboxesFilter {
|
|
3781
|
+
/**
|
|
3782
|
+
* Metadata key to required value prefix, 1 to 8 entries. A sandbox matches
|
|
3783
|
+
* when each named key holds a string that starts with its prefix, for
|
|
3784
|
+
* example `{ retainedIdempotencyKey: "runtime:<runId>:" }` for every
|
|
3785
|
+
* sandbox one Agent Runtime run created.
|
|
3786
|
+
*/
|
|
3787
|
+
metadataPrefix: Record<string, string>;
|
|
3788
|
+
}
|
|
3789
|
+
interface DeleteMatchingSandboxesOptions {
|
|
3790
|
+
/** Delete each matched sandbox's branch children with it. */
|
|
3791
|
+
cascade?: boolean;
|
|
3792
|
+
/** Hold each delete until the runtime's removal proof, as {@link SandboxDeleteOptions.until}. */
|
|
3793
|
+
until?: "removed";
|
|
3794
|
+
/** AbortSignal for cancellation */
|
|
3795
|
+
signal?: AbortSignal;
|
|
3796
|
+
/**
|
|
3797
|
+
* Timeout for each request. The API deletes a bounded batch per request,
|
|
3798
|
+
* so the default is 120 s, or 300 s with `until: "removed"`.
|
|
3799
|
+
*/
|
|
3800
|
+
timeoutMs?: number;
|
|
3801
|
+
}
|
|
3802
|
+
/**
|
|
3803
|
+
* What happened to one matched sandbox.
|
|
3804
|
+
*
|
|
3805
|
+
* - `destroyed`: this call removed it.
|
|
3806
|
+
* - `already_absent`: it was gone when the delete reached it.
|
|
3807
|
+
* - `failed`: the delete was refused; `status`, `code` and `error` say why,
|
|
3808
|
+
* and the sandbox may still exist.
|
|
3809
|
+
*/
|
|
3810
|
+
type DeleteMatchingSandboxOutcome = "destroyed" | "already_absent" | "failed";
|
|
3811
|
+
interface DeleteMatchingSandboxResult {
|
|
3812
|
+
id: string;
|
|
3813
|
+
/**
|
|
3814
|
+
* True when the sandbox is confirmed gone: `destroyed` or `already_absent`.
|
|
3815
|
+
* With `until: "removed"`, a destroyed sandbox also needs its removal proof:
|
|
3816
|
+
* one whose wait ran out reports `removal: "pending"` and `confirmed: false`.
|
|
3817
|
+
*/
|
|
3818
|
+
confirmed: boolean;
|
|
3819
|
+
outcome: DeleteMatchingSandboxOutcome;
|
|
3820
|
+
removal?: SandboxRemovalState;
|
|
3821
|
+
/** Branch children deleted with it when `cascade` was set. */
|
|
3822
|
+
deletedChildren?: string[];
|
|
3823
|
+
/** The compute charge settles through the durable queue instead of inline. */
|
|
3824
|
+
settlementDeferred?: boolean;
|
|
3825
|
+
/** HTTP status of the refused delete. */
|
|
3826
|
+
status?: number;
|
|
3827
|
+
code?: string;
|
|
3828
|
+
error?: string;
|
|
3829
|
+
/** Live branch children that refused the delete (`CHILDREN_EXIST`). */
|
|
3830
|
+
children?: string[];
|
|
3831
|
+
}
|
|
3832
|
+
interface DeleteMatchingSandboxesResult {
|
|
3833
|
+
/**
|
|
3834
|
+
* True only when every orchestrator was listed and every matching sandbox
|
|
3835
|
+
* is confirmed gone. This is the teardown verdict; read `sandboxes` for
|
|
3836
|
+
* the per-sandbox evidence.
|
|
3837
|
+
*
|
|
3838
|
+
* It covers the sandboxes the call listed. Stop creating matching sandboxes
|
|
3839
|
+
* before calling, and call again once in-flight creates have settled: a
|
|
3840
|
+
* create that registers after the listing, or retries with the same
|
|
3841
|
+
* idempotency key, can leave a match behind a `true`.
|
|
3842
|
+
*/
|
|
3843
|
+
complete: boolean;
|
|
3844
|
+
/** False when an orchestrator could not be listed, so a match may be missing. */
|
|
3845
|
+
listingComplete: boolean;
|
|
3846
|
+
/**
|
|
3847
|
+
* Matching sandboxes not yet attempted when the call stopped. Nonzero only
|
|
3848
|
+
* when the call reached its request bound; call again for them.
|
|
3849
|
+
*/
|
|
3850
|
+
remaining: number;
|
|
3851
|
+
/** The latest result for each sandbox this call attempted. */
|
|
3852
|
+
sandboxes: DeleteMatchingSandboxResult[];
|
|
3853
|
+
}
|
|
3776
3854
|
/**
|
|
3777
3855
|
* Whether the operation bound to an idempotency key is decided.
|
|
3778
3856
|
*
|
|
@@ -6560,4 +6638,4 @@ interface CodeExecutionOptions {
|
|
|
6560
6638
|
idempotencyKey?: string;
|
|
6561
6639
|
}
|
|
6562
6640
|
//#endregion
|
|
6563
|
-
export {
|
|
6641
|
+
export { DownloadOptions as $, TaskSessionFileChange as $i, ReconcileSandboxFleetsResult as $n, SandboxRemovalState as $r, GpuLease as $t, CommitTaskSessionOptions as A, SessionFailureReason as Ai, PreviewLinkWaitOptions as An, SandboxFleetMachine as Ar, FileUsageResult as At, CreateSandboxOptions as B, SnapshotDeleteAcknowledgement as Bi, PromptOptions as Bn, SandboxFleetTraceEvent as Br, FleetMachineId as Bt, BranchOptions as C, BatchSidecarGroup as Ca, SendSessionMessageOptions as Ci, NetworkConfig as Cn, SandboxFleetCostEstimate as Cr, FileReadResult as Ct, CodeExecutionResult as D, BackendType as Da, SessionEventStreamOptions as Di, PermissionsManager as Dn, SandboxFleetDriverTimings as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, ALL_BACKEND_TYPES as Ea, SessionBackendCredentials as Ei, PermissionLevel as En, SandboxFleetDriverCapability as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, SessionMessage as Fi, ProcessManager as Fn, SandboxFleetManifestMachine as Fr, FleetDispatchStreamOptions as Ft, DeleteMatchingSandboxesFilter as G, SnapshotResult as Gi, ProvisionStep as Gn, SandboxFleetWorkspaceReconcileResult as Gr, ForkLookupOptions as Gt, CreateTaskSessionOptions as H, SnapshotIdempotency as Hi, ProvisionEvent as Hn, SandboxFleetTraceOptions as Hr, FleetPromptDispatchResult as Ht, CreateRequestOptions as I, SessionMessageAdmission as Ii, ProcessSignal as In, SandboxFleetOperationsSummary as Ir, FleetDriveTurnOutcome as It, DeleteOptions as J, StartupOperation as Ji, PublishPublicTemplateOptions as Jn, SandboxIdentity as Jr, GitBranch as Jt, DeleteMatchingSandboxesOptions as K, SshKeysManager as Ki, PublicTemplateInfo as Kn, SandboxFleetWorkspaceRestoreResult as Kr, GPU_LEASE_PROVIDER_NAMES as Kt, CreateSandboxFleetOptions as L, SessionMessageInputPart as Li, ProcessSpawnOptions as Ln, SandboxFleetPolicy as Lr, FleetDriveTurnRequest as Lt, ConversationTurnOptions as M, SessionInfo as Mi, ProcessInfo as Mn, SandboxFleetMachineRecord as Mr, FleetDispatchCancelResult as Mt, ConversationTurnResult as N, SessionInterruptOptions as Ni, ProcessListOptions as Nn, SandboxFleetMachineSpec as Nr, FleetDispatchResultBuffer as Nt, CodeLanguage as O, parseBackendType as Oa, SessionExecutionInfo as Oi, PreviewLinkInfo as On, SandboxFleetInfo as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, SessionListOptions as Pi, ProcessLogEntry as Pn, SandboxFleetManifest as Pr, FleetDispatchResultBufferOptions as Pt, DispatchedSession as Q, TaskSessionCommitResult as Qi, ReconcileSandboxFleetsOptions as Qn, SandboxPortPreviewLink as Qr, GitStatus as Qt, CreateSandboxFleetTokenOptions as R, SessionResultOptions as Ri, ProcessStatus as Rn, SandboxFleetToken as Rr, FleetExecDispatchOptions as Rt, BatchTaskResult as S, BatchEventDataMap as Sa, SecretsManager as Si, MkdirOptions as Sn, SandboxFleetArtifactSpec as Sr, FileReadError as St, ChunkedUploadResult as T, PublicBatchRunRequest as Ta, SentSessionMessage as Ti, NonHostAgentDriverConfig as Tn, SandboxFleetDispatchResponse as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, SnapshotInfo as Ui, ProvisionResult as Un, SandboxFleetUsage as Ur, ForkCounts as Ut, CreateSessionOptions as V, SnapshotDeleteOutcome as Vi, PromptResult as Vn, SandboxFleetTraceExport as Vr, FleetPromptDispatchOptions as Vt, DeleteMatchingSandboxResult as W, SnapshotOptions as Wi, ProvisionStatus as Wn, SandboxFleetWorkspace as Wr, ForkIdempotency as Wt, DirectoryPermission as X, SubscriptionInfo as Xi, ReapExpiredSandboxFleetsOptions as Xn, SandboxIntelligenceEnvelope as Xr, GitConfig as Xt, DevServerInfo as Y, StorageConfig as Yi, PublishPublicTemplateVersionOptions as Yn, SandboxInfo as Yr, GitCommit as Yt, DispatchPromptOptions as Z, TaskSessionChanges as Zi, ReapExpiredSandboxFleetsResult as Zn, SandboxPortBinding as Zr, GitDiff as Zt, BatchBackend as _, WriteFileOptions as _a, SandboxTraceOptions as _i, ListOptions as _n, SandboxDeleteOptions as _r, ExecOptions as _t, AgentQuestionRequest as a, TeePublicKey as aa, SandboxShapePreset as ai, GpuLeaseProviderName as an, RolloutOptions as ar, DurablePlan as at, BatchRunRequest as b, BatchBackendStats as ba, SearchOptions as bi, MAX_EGRESS_DENIALS_LIMIT as bn, SandboxEvent as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, TokenUsage as ca, SandboxTerminalAttachOptions as ci, HostAgentRuntimeBackend as cn, RolloutStatus as cr, EffectiveBackend as ct, BackendConfig as d, UploadOptions as da, SandboxTerminalManager as di, IntelligenceReportBudget as dn, SSHCredentials as dr, EgressDenial as dt, TaskSessionInfo as ea, SandboxResourceUsage as ei, GpuLeaseBilling as en, RenameOptions as er, DownloadProgress as et, BackendInfo as f, UploadProgress as fa, SandboxTerminalRequestOptions as fi, IntelligenceReportCompareTo as fn, SandboxConfig as fr, EgressManager as ft, BackendStatus as g, WorkspaceOperationLookup as ga, SandboxTraceExport as gi, ListMessagesOptions as gn, SandboxDeleteAcknowledgement as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, WaitForRolloutOptions as ha, SandboxTraceEvent as hi, JsonValue as hn, SandboxCreateReceipt as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, TeeAttestationResponse as ia, SandboxShape as ii, GpuLeaseManager as in, RolloutChildResult as ir, DriverType as it, CompletedTurnResult as j, SessionForkOptions as ji, Process as jn, SandboxFleetMachineMeteredUsage as jr, FileWriteResult as jt, CodeResultPart as k, SessionExecutionStatus as ki, PreviewLinkManager as kn, SandboxFleetIntelligenceEnvelope as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TurnDriveResult as la, SandboxTerminalCreateOptions as li, InstalledTool as ln, RolloutTurnPart as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, WaitForOptions as ma, SandboxTraceBundle as mi, IntelligenceReportWindow as mn, SandboxCreateOutcome as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, TeeAttestationOptions as na, SandboxRuntimeCapabilities as ni, GpuLeaseExecOptions as nn, ResumeOptions as nr, DriverConfig as nt, AgentRunStatus as o, TeePublicKeyResponse as oa, SandboxShapesInfo as oi, GpuLeaseStatus as on, RolloutScorer as or, DurablePlanDecisionResult as ot, BackendManager as p, UsageInfo as pa, SandboxTerminals as pi, IntelligenceReportSubjectType as pn, SandboxConnection as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, StartupDiagnostics as qi, PublicTemplateVersionInfo as qn, SandboxFleetWorkspaceSnapshotResult as qr, GitAuth as qt, AddUserOptions as r, TeeAttestationReport as ra, SandboxRuntimeHealth as ri, GpuLeaseExecResult as rn, Rollout as rr, DriverInfo as rt, AgentToolInvocation as s, TokenRefreshHandler as sa, SandboxStatus as si, HostAgentDriverConfig as sn, RolloutStartResult as sr, DurablePlanSnapshot as st, AcceleratorKind as t, TaskSessionProfile as ta, SandboxResources as ti, GpuLeaseCommandResult as tn, RestoreSnapshotOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, UpdateUserOptions as ua, SandboxTerminalInfo as ui, IntelligenceReport as un, SSHCommandDescriptor as ur, EffectiveBackendSource as ut, BatchResult as v, WriteManyFile as va, SandboxUser as vi, ListSandboxFleetOptions as vn, SandboxDeleteOutcome as vr, ExecResult as vt, ChunkedUploadOptions as w, BatchTaskUsage as wa, SendSessionMessageRequest as wi, NetworkManager as wn, SandboxFleetDispatchFailureClass as wr, FileRenameResult as wt, BatchTask as x, BatchEvent as xa, SecretInfo as xi, McpServerConfig as xn, SandboxFleetArtifact as xr, FileReadBatchResult as xt, BatchRunOptions as y, WriteManyOptions as ya, SearchMatch as yi, ListSandboxOptions as yn, SandboxEnvironment as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, SessionStatus as zi, PromptInputPart as zn, SandboxFleetTraceBundle as zr, FleetExecDispatchResult as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.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": [
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
"ws": "^8.20.0",
|
|
139
139
|
"yjs": "13.6.30",
|
|
140
140
|
"@repo/shared": "0.0.0",
|
|
141
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
141
142
|
"@tangle-network/cli-agent-registry": "0.4.6",
|
|
142
143
|
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
143
|
-
"@tangle-network/runtime-contracts": "0.7.0"
|
|
144
|
-
"@tangle-network/sse-core": "0.0.0"
|
|
144
|
+
"@tangle-network/runtime-contracts": "0.7.0"
|
|
145
145
|
},
|
|
146
146
|
"scripts": {
|
|
147
147
|
"build": "node scripts/build-dist.mjs",
|