@tangle-network/sandbox 0.46.0 → 0.49.0-l9.20260924035255.062dd6f
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 +39 -0
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +4 -4
- package/dist/{agent-run-outcome-B_DRpTxx.d.ts → agent-run-outcome-DRsFrVVD.d.ts} +1 -1
- package/dist/{client-DdmHMuCL.d.ts → client-V2L7F4jq.d.ts} +33 -2
- package/dist/{client-BSNkAx2K.js → client-ssVzKUfj.js} +136 -3
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DilBgjXG.js → collaboration-DLPFc9-W.js} +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +3 -3
- package/dist/{errors-BoD3Ifbd.d.ts → errors-CNsmhCen.d.ts} +12 -1
- package/dist/{errors-CdDyExth.js → errors-CmYPVl-k.js} +20 -1
- package/dist/{index-B6eCXD1R.d.ts → index-7j5JIro1.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/{runtime-api-D7CdKcbu.js → runtime-api-DHHveKas.js} +38 -2
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-BRZLdcud.js → sandbox-BotrtJlw.js} +42 -16
- package/dist/{sandbox-cTa_FF5p.d.ts → sandbox-CUCPmTH3.d.ts} +3 -2
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D7KgC1Xb.js → tangle-BWqu6gaT.js} +2 -2
- package/dist/{types-C3Kw-Tml.d.ts → types-BoW_VFjX.d.ts} +111 -3
- package/package.json +1 -1
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.
|
|
@@ -263,6 +285,23 @@ await box.waitFor("running");
|
|
|
263
285
|
await box.delete();
|
|
264
286
|
```
|
|
265
287
|
|
|
288
|
+
The platform does not store secret-named public env values at rest.
|
|
289
|
+
A stopped sandbox keeps them in its stopped runtime.
|
|
290
|
+
When the platform removes that runtime, resume must supply them again:
|
|
291
|
+
|
|
292
|
+
```typescript
|
|
293
|
+
try {
|
|
294
|
+
await box.resume();
|
|
295
|
+
} catch (error) {
|
|
296
|
+
if (!(error instanceof ResumeEnvRequiredError)) throw error;
|
|
297
|
+
// error.missingEnvKeys names each key, for example ["APP_CAPABILITY_TOKEN"].
|
|
298
|
+
await box.resume({ env: { APP_CAPABILITY_TOKEN: freshWorkspaceToken } });
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Resume uses `env` only when it builds a new runtime.
|
|
303
|
+
It rejects a key whose value the platform stores or can refresh itself.
|
|
304
|
+
|
|
266
305
|
Renew application credentials before dispatch when reusing a sandbox:
|
|
267
306
|
|
|
268
307
|
```typescript
|
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-CUCPmTH3.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-BoW_VFjX.js";
|
|
3
|
+
import { i as Sandbox } from "../client-V2L7F4jq.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
|
-
import {
|
|
2
|
-
import { c as NotFoundError,
|
|
3
|
-
import { n as Sandbox } from "../client-
|
|
4
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { y as assertCurrentBackendType } from "../runtime-api-DHHveKas.js";
|
|
2
|
+
import { c as NotFoundError, g as ValidationError, m as StateError } from "../errors-CmYPVl-k.js";
|
|
3
|
+
import { n as Sandbox } from "../client-ssVzKUfj.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-BotrtJlw.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-BoW_VFjX.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-CUCPmTH3.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-BoW_VFjX.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
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { E as backendTypeSchema, _ as parseSSEStream, g as encodeTextForWire, h as encodePromptForWire, p as SANDBOX_PROXY_REQUEST_MAX_BYTES, v as applyRequestedModel, x as normalizeRuntimeBackendConfig, y as assertCurrentBackendType } from "./runtime-api-DHHveKas.js";
|
|
2
|
+
import { _ as parseErrorResponse, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, p as ServerError, s as NetworkError, t as AuthError } from "./errors-CmYPVl-k.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-BotrtJlw.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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DLPFc9-W.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as parseErrorResponse, h as TimeoutError, s as NetworkError } from "./errors-CmYPVl-k.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import { _ as
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-CUCPmTH3.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-BoW_VFjX.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-V2L7F4jq.js";
|
|
4
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CNsmhCen.js";
|
|
5
5
|
|
|
6
6
|
//#region src/core.d.ts
|
|
7
7
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as FileWriteConflictError, c as NotFoundError,
|
|
2
|
-
import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.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-ssVzKUfj.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-BotrtJlw.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
|
|
@@ -170,6 +170,17 @@ declare class EgressProxyRecoveryError extends SandboxError {
|
|
|
170
170
|
readonly phase: "egress_proxy_recovery";
|
|
171
171
|
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Resume must build a new runtime, and that runtime needs public env values
|
|
175
|
+
* the platform does not store at rest: a per-run coordination or capability
|
|
176
|
+
* token, or a secret passed at create. Resume again with each key in
|
|
177
|
+
* `missingEnvKeys` in `ResumeOptions.env`.
|
|
178
|
+
*/
|
|
179
|
+
declare class ResumeEnvRequiredError extends SandboxError {
|
|
180
|
+
/** The env keys the next resume must carry. */
|
|
181
|
+
readonly missingEnvKeys: readonly string[];
|
|
182
|
+
constructor(message: string, missingEnvKeys: readonly string[], metadata?: SandboxErrorMetadata);
|
|
183
|
+
}
|
|
173
184
|
/**
|
|
174
185
|
* The request timed out.
|
|
175
186
|
*/
|
|
@@ -216,4 +227,4 @@ declare class ServerError extends SandboxError {
|
|
|
216
227
|
constructor(message: string, status?: number, metadata?: SandboxErrorMetadata, code?: string);
|
|
217
228
|
}
|
|
218
229
|
//#endregion
|
|
219
|
-
export {
|
|
230
|
+
export { TimeoutError as _, FileWriteConflictError as a, NotFoundError as c, ResumeEnvRequiredError as d, SandboxError as f, StateError as g, ServerError as h, EgressProxyRecoveryError as i, PartialFailureError as l, SandboxFailureDetail as m, CapabilityError as n, KeyBudgetExhaustedError as o, SandboxErrorJson as p, EdgeNotReadyError as r, NetworkError as s, AuthError as t, QuotaError as u, ValidationError as v };
|
|
@@ -211,6 +211,21 @@ var EgressProxyRecoveryError = class extends SandboxError {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
/**
|
|
214
|
+
* Resume must build a new runtime, and that runtime needs public env values
|
|
215
|
+
* the platform does not store at rest: a per-run coordination or capability
|
|
216
|
+
* token, or a secret passed at create. Resume again with each key in
|
|
217
|
+
* `missingEnvKeys` in `ResumeOptions.env`.
|
|
218
|
+
*/
|
|
219
|
+
var ResumeEnvRequiredError = class extends SandboxError {
|
|
220
|
+
/** The env keys the next resume must carry. */
|
|
221
|
+
missingEnvKeys;
|
|
222
|
+
constructor(message, missingEnvKeys, metadata) {
|
|
223
|
+
super(message, "RESUME_ENV_REQUIRED", 409, metadata);
|
|
224
|
+
this.name = "ResumeEnvRequiredError";
|
|
225
|
+
this.missingEnvKeys = missingEnvKeys;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
214
229
|
* The request timed out.
|
|
215
230
|
*/
|
|
216
231
|
var TimeoutError = class extends SandboxError {
|
|
@@ -401,6 +416,10 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
401
416
|
if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
|
|
402
417
|
if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
|
|
403
418
|
if (code === "EGRESS_PROXY_RECOVERY_REQUIRED") return new EgressProxyRecoveryError(message, metadata);
|
|
419
|
+
if (code === "RESUME_ENV_REQUIRED") {
|
|
420
|
+
const keys = data.missingEnvKeys;
|
|
421
|
+
return new ResumeEnvRequiredError(message, Array.isArray(keys) ? keys.filter((key) => typeof key === "string") : [], metadata);
|
|
422
|
+
}
|
|
404
423
|
if (code === "KEY_BUDGET_EXHAUSTED") return new KeyBudgetExhaustedError(message, readKeyBudgetDetails(data.details), metadata);
|
|
405
424
|
if (code === "FILE_WRITE_CONFLICT") {
|
|
406
425
|
const conflict = readFileWriteConflictDetails(errorObj);
|
|
@@ -421,4 +440,4 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
421
440
|
}
|
|
422
441
|
}
|
|
423
442
|
//#endregion
|
|
424
|
-
export { FileWriteConflictError as a, NotFoundError as c,
|
|
443
|
+
export { parseErrorResponse as _, FileWriteConflictError as a, NotFoundError as c, ResumeEnvRequiredError as d, SandboxError as f, ValidationError as g, TimeoutError as h, EgressProxyRecoveryError as i, PartialFailureError as l, StateError as m, CapabilityError as n, KeyBudgetExhaustedError as o, ServerError as p, EdgeNotReadyError as r, NetworkError as s, AuthError as t, QuotaError as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-CUCPmTH3.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-BoW_VFjX.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-CUCPmTH3.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-BoW_VFjX.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-V2L7F4jq.js";
|
|
6
6
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CS-t6tPU.js";
|
|
7
7
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-BzAxTiqF.js";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
8
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CNsmhCen.js";
|
|
9
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DRsFrVVD.js";
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-7j5JIro1.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, ResumeEnvRequiredError, 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
|
-
import { C as
|
|
2
|
-
import { a as FileWriteConflictError, c as NotFoundError, d as
|
|
3
|
-
import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as splitInlineProfileFileMounts, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as validateDeferredProfileFileMounts, p as backendRegistryEntrySchema, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
1
|
+
import { C as deriveAgentResultOutcome, D as parseBackendType, E as backendTypeSchema, S as createAgentRunOutcomeTracker, T as ALL_BACKEND_TYPES, _ as parseSSEStream, w as deriveAgentRunOutcome, x as normalizeRuntimeBackendConfig } from "./runtime-api-DHHveKas.js";
|
|
2
|
+
import { a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as ValidationError, h as TimeoutError, i as EgressProxyRecoveryError, l as PartialFailureError, m as StateError, n as CapabilityError, o as KeyBudgetExhaustedError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.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-ssVzKUfj.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-
|
|
6
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
5
|
+
import { A as 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-BotrtJlw.js";
|
|
6
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DLPFc9-W.js";
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-BWqu6gaT.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
|
|
@@ -1478,4 +1478,4 @@ function stripUndefined(value) {
|
|
|
1478
1478
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1479
1479
|
}
|
|
1480
1480
|
//#endregion
|
|
1481
|
-
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1481
|
+
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as parseErrorResponse, h as TimeoutError, s as NetworkError } from "../errors-CmYPVl-k.js";
|
|
2
2
|
//#region src/intelligence/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as parseErrorResponse, f as SandboxError, g as ValidationError, h as TimeoutError, n as CapabilityError, p as ServerError, s as NetworkError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
2
2
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
3
3
|
import { AgentExactRunControlRefSchema, AgentExecutionOutcomeSchema, AgentRuntimeAttachmentsSchema, DurablePlanSchema, InteractionRequestSchema, agentProfileSchema, canonicalCandidateDigest, harnessTypeSchema } from "@tangle-network/agent-interface";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1096,6 +1096,41 @@ function appendSessionIdQuery(params, sessionId) {
|
|
|
1096
1096
|
return true;
|
|
1097
1097
|
}
|
|
1098
1098
|
//#endregion
|
|
1099
|
+
//#region src/lib/trace-id.ts
|
|
1100
|
+
/**
|
|
1101
|
+
* Request header that carries one turn's trace id. The Sandbox API adopts it
|
|
1102
|
+
* as the request's correlation id, the orchestrator logs it on every proxied
|
|
1103
|
+
* sidecar call, the runtime copies it onto each model request, and the router
|
|
1104
|
+
* stores it on the dispatch row. One value joins every hop of one turn.
|
|
1105
|
+
*/
|
|
1106
|
+
const TRACE_ID_HEADER = "x-tangle-trace-id";
|
|
1107
|
+
/** The token charset every hop accepts unquoted in a header or log field. */
|
|
1108
|
+
const TRACE_ID = /^[\w-]{8,200}$/;
|
|
1109
|
+
/** Whether `value` survives every hop unchanged. */
|
|
1110
|
+
function isTraceId(value) {
|
|
1111
|
+
return typeof value === "string" && TRACE_ID.test(value);
|
|
1112
|
+
}
|
|
1113
|
+
/** A fresh trace id in the edge's `ptid_<uuid>` form. */
|
|
1114
|
+
function mintTraceId() {
|
|
1115
|
+
const c = globalThis.crypto;
|
|
1116
|
+
if (c?.randomUUID) return `ptid_${c.randomUUID()}`;
|
|
1117
|
+
if (c?.getRandomValues) {
|
|
1118
|
+
const bytes = c.getRandomValues(new Uint8Array(16));
|
|
1119
|
+
return `ptid_${Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("")}`;
|
|
1120
|
+
}
|
|
1121
|
+
throw new Error("trace id generation requires global crypto");
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* The caller's trace id, or a fresh one when the caller gave none. A malformed
|
|
1125
|
+
* caller id is refused: the Sandbox API would replace it with its own, and the
|
|
1126
|
+
* caller would hold an id that matches no hop.
|
|
1127
|
+
*/
|
|
1128
|
+
function resolveTraceId(requested) {
|
|
1129
|
+
if (requested === void 0) return mintTraceId();
|
|
1130
|
+
if (!isTraceId(requested)) throw new ValidationError("traceId must be 8-200 characters of letters, digits, '_' or '-'", { traceId: "Invalid trace id" });
|
|
1131
|
+
return requested;
|
|
1132
|
+
}
|
|
1133
|
+
//#endregion
|
|
1099
1134
|
//#region src/runtime-api.ts
|
|
1100
1135
|
function isRetryableCredentialRefusal(error) {
|
|
1101
1136
|
return error instanceof SandboxError && error.status === 503 && (error.code === "MODEL_CREDENTIAL_SUPERSEDED" || error.code === "HUB_CREDENTIAL_REFRESH_UNAVAILABLE");
|
|
@@ -1439,6 +1474,7 @@ var SandboxRuntimeApi = class {
|
|
|
1439
1474
|
const headers = new Headers({ "x-no-retry": "true" });
|
|
1440
1475
|
if (options.credentials?.apiKey) headers.set("X-Backend-Api-Key", options.credentials.apiKey);
|
|
1441
1476
|
if (options.credentials?.baseUrl) headers.set("X-Backend-Base-Url", options.credentials.baseUrl);
|
|
1477
|
+
if (options.traceId !== void 0) headers.set(TRACE_ID_HEADER, resolveTraceId(options.traceId));
|
|
1442
1478
|
const timeoutSignal = options.timeoutMs !== void 0 ? AbortSignal.timeout(options.timeoutMs) : void 0;
|
|
1443
1479
|
const signal = options.signal && timeoutSignal ? combineAbortSignals([options.signal, timeoutSignal]) : options.signal ?? timeoutSignal;
|
|
1444
1480
|
const path = `/agents/sessions/${encodeURIComponent(id)}/messages`;
|
|
@@ -1647,4 +1683,4 @@ function sessionMessageRequestBody(request) {
|
|
|
1647
1683
|
};
|
|
1648
1684
|
}
|
|
1649
1685
|
//#endregion
|
|
1650
|
-
export {
|
|
1686
|
+
export { deriveAgentResultOutcome as C, parseBackendType as D, backendTypeSchema as E, createAgentRunOutcomeTracker as S, ALL_BACKEND_TYPES as T, parseSSEStream as _, isTraceId as a, mergeRuntimeBackendConfig as b, appendSessionIdQuery as c, resolveDispatchRunIdentity as d, validateAcceptedDispatchRunRef as f, encodeTextForWire as g, encodePromptForWire as h, TRACE_ID_HEADER as i, sessionHeaders as l, FILE_DECODED_WRITE_MAX_BYTES as m, normalizeSessionInfo as n, mintTraceId as o, SANDBOX_PROXY_REQUEST_MAX_BYTES as p, sessionMessageRequestBody as r, resolveTraceId as s, SandboxRuntimeApi as t, uploadChunked as u, applyRequestedModel as v, deriveAgentRunOutcome as w, normalizeRuntimeBackendConfig as x, assertCurrentBackendType as y };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions,
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
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-BoW_VFjX.js";
|
|
2
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-CNsmhCen.js";
|
|
3
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DRsFrVVD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/chunked-upload.d.ts
|
|
6
6
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as FileWriteConflictError, c as NotFoundError,
|
|
1
|
+
import { C as deriveAgentResultOutcome, S as createAgentRunOutcomeTracker, t as SandboxRuntimeApi, u as uploadChunked, w as deriveAgentRunOutcome } from "./runtime-api-DHHveKas.js";
|
|
2
|
+
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
4
|
//#region src/runtime-client.ts
|
|
5
5
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
1
|
+
import { C as deriveAgentResultOutcome, S as createAgentRunOutcomeTracker, _ as parseSSEStream, a as isTraceId, b as mergeRuntimeBackendConfig, c as appendSessionIdQuery, d as resolveDispatchRunIdentity, f as validateAcceptedDispatchRunRef, h as encodePromptForWire, i as TRACE_ID_HEADER, l as sessionHeaders, n as normalizeSessionInfo, o as mintTraceId, p as SANDBOX_PROXY_REQUEST_MAX_BYTES, r as sessionMessageRequestBody, s as resolveTraceId, t as SandboxRuntimeApi, u as uploadChunked, v as applyRequestedModel, x as normalizeRuntimeBackendConfig, y as assertCurrentBackendType } from "./runtime-api-DHHveKas.js";
|
|
2
|
+
import { _ as parseErrorResponse, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, m as StateError, n as CapabilityError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
3
3
|
import { c as createInteractiveControlHolderId, d as interactiveSessionControlReleaseResponseSchema, f as interactiveSessionControlValidationResponseSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, p as interactiveSessionStatusResponseSchema, r as browserInteractiveTerminalEndpoint, s as assertInteractiveSessionRef, u as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-si1WMfJb.js";
|
|
5
5
|
import { AgentExactRunControlRefSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
@@ -4540,10 +4540,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4540
4540
|
async prompt(message, options) {
|
|
4541
4541
|
if (options?.ttlMs === void 0 || timerMsViolation(options.ttlMs) === void 0) await this.ensureRunning();
|
|
4542
4542
|
const startTime = Date.now();
|
|
4543
|
+
const traceId = resolveTraceId(options?.traceId);
|
|
4543
4544
|
let responseText;
|
|
4544
4545
|
const outcomeTracker = createAgentRunOutcomeTracker();
|
|
4545
4546
|
let executionId = options?.lastEventId ? options.executionId : void 0;
|
|
4546
|
-
let traceId;
|
|
4547
4547
|
let usage;
|
|
4548
4548
|
let costUsd;
|
|
4549
4549
|
const controller = new AbortController();
|
|
@@ -4551,6 +4551,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4551
4551
|
const signal = options?.signal ? combineAbortSignals([options.signal, controller.signal]) : controller.signal;
|
|
4552
4552
|
for await (const event of this.streamPrompt(message, {
|
|
4553
4553
|
...options,
|
|
4554
|
+
traceId,
|
|
4554
4555
|
signal
|
|
4555
4556
|
})) {
|
|
4556
4557
|
outcomeTracker.observe(event);
|
|
@@ -4561,7 +4562,6 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4561
4562
|
usage = readTokenUsage(event.data) ?? usage;
|
|
4562
4563
|
costUsd = readTokenCostUsd(event.data) ?? costUsd;
|
|
4563
4564
|
}
|
|
4564
|
-
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
4565
4565
|
}
|
|
4566
4566
|
const outcome = outcomeTracker.finish();
|
|
4567
4567
|
return {
|
|
@@ -4587,6 +4587,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4587
4587
|
status: "failed",
|
|
4588
4588
|
...executionId ? { executionId } : {},
|
|
4589
4589
|
error: err instanceof Error ? err.message : String(err),
|
|
4590
|
+
traceId,
|
|
4590
4591
|
durationMs: Date.now() - startTime
|
|
4591
4592
|
};
|
|
4592
4593
|
} finally {
|
|
@@ -4681,7 +4682,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4681
4682
|
}
|
|
4682
4683
|
return normalized;
|
|
4683
4684
|
}
|
|
4684
|
-
async *streamPrompt(message,
|
|
4685
|
+
async *streamPrompt(message, requestedOptions) {
|
|
4686
|
+
const options = {
|
|
4687
|
+
...requestedOptions,
|
|
4688
|
+
traceId: resolveTraceId(requestedOptions?.traceId)
|
|
4689
|
+
};
|
|
4685
4690
|
const isCallerAbort = () => options?.signal?.aborted === true;
|
|
4686
4691
|
let receivedTerminal = false;
|
|
4687
4692
|
let sessionId = options?.sessionId;
|
|
@@ -4694,9 +4699,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4694
4699
|
for await (const event of this.streamPromptInner(message, options, { forceFullProfile: profileResendAttempted })) {
|
|
4695
4700
|
yieldedThisAttempt = true;
|
|
4696
4701
|
if (event.type === "done") receivedTerminal = true;
|
|
4697
|
-
if (event.type === "execution.started" && event.data.executionId)
|
|
4698
|
-
|
|
4699
|
-
|
|
4702
|
+
if (event.type === "execution.started" && event.data.executionId) {
|
|
4703
|
+
executionId = event.data.executionId;
|
|
4704
|
+
const sid = event.data.sessionId;
|
|
4705
|
+
if (sessionId === void 0 && typeof sid === "string" && sid.length > 0) sessionId = sid;
|
|
4706
|
+
}
|
|
4700
4707
|
yield event;
|
|
4701
4708
|
}
|
|
4702
4709
|
break;
|
|
@@ -4785,6 +4792,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4785
4792
|
let lastReplayStatus;
|
|
4786
4793
|
let lastExecutionStatus;
|
|
4787
4794
|
let firstSseEventSeen = false;
|
|
4795
|
+
const traceHeaders = options?.traceId ? { [TRACE_ID_HEADER]: options.traceId } : {};
|
|
4788
4796
|
let response;
|
|
4789
4797
|
try {
|
|
4790
4798
|
logStreamCheckpoint("runtime_post_start", {
|
|
@@ -4797,11 +4805,13 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4797
4805
|
});
|
|
4798
4806
|
const request = explicitReplay ? {
|
|
4799
4807
|
method: "GET",
|
|
4800
|
-
signal: streamSignal
|
|
4808
|
+
signal: streamSignal,
|
|
4809
|
+
headers: traceHeaders
|
|
4801
4810
|
} : {
|
|
4802
4811
|
method: "POST",
|
|
4803
4812
|
signal: streamSignal,
|
|
4804
4813
|
headers: {
|
|
4814
|
+
...traceHeaders,
|
|
4805
4815
|
...options?.executionId ? { "X-Execution-ID": options.executionId } : {},
|
|
4806
4816
|
...options?.detach ? { "x-agent-detach": "true" } : {}
|
|
4807
4817
|
},
|
|
@@ -4851,9 +4861,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4851
4861
|
});
|
|
4852
4862
|
}
|
|
4853
4863
|
if (event.id) lastEventId = event.id;
|
|
4854
|
-
if (event.type === "execution.started" && event.data?.executionId)
|
|
4855
|
-
|
|
4856
|
-
|
|
4864
|
+
if (event.type === "execution.started" && event.data?.executionId) {
|
|
4865
|
+
executionId = event.data.executionId;
|
|
4866
|
+
const eventSessionId = event.data?.sessionId;
|
|
4867
|
+
if (sessionId === void 0 && typeof eventSessionId === "string" && eventSessionId.length > 0) sessionId = eventSessionId;
|
|
4868
|
+
}
|
|
4857
4869
|
if (event.type === "done" || event.type === "error") {
|
|
4858
4870
|
receivedTerminal = true;
|
|
4859
4871
|
logStreamCheckpoint("terminal_event", {
|
|
@@ -4895,7 +4907,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4895
4907
|
const queryParams = lastEventId ? `?lastEventId=${encodeURIComponent(lastEventId)}&format=sse` : "?format=sse";
|
|
4896
4908
|
const replayResponse = await this.runtimeFetch(`/agents/run/${encodeURIComponent(executionId)}/events${queryParams}`, {
|
|
4897
4909
|
method: "GET",
|
|
4898
|
-
signal: streamSignal
|
|
4910
|
+
signal: streamSignal,
|
|
4911
|
+
headers: traceHeaders
|
|
4899
4912
|
});
|
|
4900
4913
|
logStreamCheckpoint("replay_response_status", {
|
|
4901
4914
|
attempt,
|
|
@@ -7284,6 +7297,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7284
7297
|
const response = await withLifecycleConflictRetry(async () => {
|
|
7285
7298
|
const attempt = await this.client.fetch(`/v1/sandboxes/${this.id}/resume`, {
|
|
7286
7299
|
method: "POST",
|
|
7300
|
+
...options.env ? { body: JSON.stringify({ env: options.env }) } : {},
|
|
7287
7301
|
...signal ? { signal } : {}
|
|
7288
7302
|
}, usableTimeoutMs(options.timeoutMs));
|
|
7289
7303
|
if (!attempt.ok) {
|
|
@@ -8092,7 +8106,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8092
8106
|
turnId
|
|
8093
8107
|
}, {
|
|
8094
8108
|
...opts.timeoutMs !== void 0 ? { timeoutMs: opts.timeoutMs } : {},
|
|
8095
|
-
...opts.signal ? { signal: opts.signal } : {}
|
|
8109
|
+
...opts.signal ? { signal: opts.signal } : {},
|
|
8110
|
+
traceId: isTraceId(turnId) ? turnId : mintTraceId()
|
|
8096
8111
|
});
|
|
8097
8112
|
return { state: "running" };
|
|
8098
8113
|
}
|
|
@@ -8100,6 +8115,13 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8100
8115
|
* Admission receipts are independent of expiring event logs. A previous
|
|
8101
8116
|
* turn's terminal session status cannot settle a newly submitted message. */
|
|
8102
8117
|
async driveConversationTurn(message, opts) {
|
|
8118
|
+
const traceId = resolveTraceId(opts.traceId ?? (isTraceId(opts.turnId) ? opts.turnId : void 0));
|
|
8119
|
+
return {
|
|
8120
|
+
...await this.driveConversationTurnPass(message, opts, traceId),
|
|
8121
|
+
traceId
|
|
8122
|
+
};
|
|
8123
|
+
}
|
|
8124
|
+
async driveConversationTurnPass(message, opts, traceId) {
|
|
8103
8125
|
if (!opts.sessionId || !opts.turnId) throw new Error("Conversation sessionId and turnId are required");
|
|
8104
8126
|
if (opts.wallCapMs !== void 0 && (!Number.isFinite(opts.wallCapMs) || opts.wallCapMs <= 0)) throw new Error("wallCapMs must be a positive finite duration");
|
|
8105
8127
|
const backend = mergeRuntimeBackendConfig(this.defaultRuntimeBackend, applyRequestedModel(opts.backend, opts.model));
|
|
@@ -8129,7 +8151,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8129
8151
|
}
|
|
8130
8152
|
const response = await this.runtimeFetch(`/agents/sessions/${encodeURIComponent(opts.sessionId)}/admissions/${encodeURIComponent(opts.turnId)}/check`, {
|
|
8131
8153
|
method: "POST",
|
|
8132
|
-
headers: {
|
|
8154
|
+
headers: {
|
|
8155
|
+
"Content-Type": "application/json",
|
|
8156
|
+
[TRACE_ID_HEADER]: traceId
|
|
8157
|
+
},
|
|
8133
8158
|
body: JSON.stringify(wireRequest),
|
|
8134
8159
|
signal: opts.signal
|
|
8135
8160
|
});
|
|
@@ -8143,7 +8168,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8143
8168
|
if (isSessionInFlight(info)) return { state: "running" };
|
|
8144
8169
|
const receipt = await this.session(opts.sessionId).sendMessage(request, {
|
|
8145
8170
|
...opts.timeoutMs !== void 0 ? { timeoutMs: opts.timeoutMs } : {},
|
|
8146
|
-
...opts.signal ? { signal: opts.signal } : {}
|
|
8171
|
+
...opts.signal ? { signal: opts.signal } : {},
|
|
8172
|
+
traceId
|
|
8147
8173
|
});
|
|
8148
8174
|
if (!receipt.info?.id) throw new Error("Message admission returned no execution identity");
|
|
8149
8175
|
return {
|
|
@@ -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-BoW_VFjX.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
|
|
|
@@ -1127,7 +1127,7 @@ declare class SandboxInstance {
|
|
|
1127
1127
|
* content references by hash, changed content sends inline.
|
|
1128
1128
|
*/
|
|
1129
1129
|
private buildRunBackendBody;
|
|
1130
|
-
streamPrompt(message: string | PromptInputPart[],
|
|
1130
|
+
streamPrompt(message: string | PromptInputPart[], requestedOptions?: PromptOptions): AsyncGenerator<SandboxEvent>;
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Inner prompt stream: opens the SSE connection and reconnects on silent
|
|
1133
1133
|
* drops. May throw (pre-stream HTTP error, timeout, reconnect exhausted);
|
|
@@ -2042,6 +2042,7 @@ declare class SandboxInstance {
|
|
|
2042
2042
|
* Admission receipts are independent of expiring event logs. A previous
|
|
2043
2043
|
* turn's terminal session status cannot settle a newly submitted message. */
|
|
2044
2044
|
driveConversationTurn(message: string | PromptInputPart[], opts: ConversationTurnOptions): Promise<ConversationTurnResult>;
|
|
2045
|
+
private driveConversationTurnPass;
|
|
2045
2046
|
/**
|
|
2046
2047
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
2047
2048
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
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-7j5JIro1.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-BWqu6gaT.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { _ as parseErrorResponse } from "./errors-CmYPVl-k.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BotrtJlw.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -2551,7 +2551,12 @@ interface PromptResult {
|
|
|
2551
2551
|
interaction?: _$_tangle_network_agent_interface0.InteractionRequest;
|
|
2552
2552
|
/** Set when `status === "awaiting_plan_decision"`. */
|
|
2553
2553
|
plan?: DurablePlanSnapshot;
|
|
2554
|
-
/**
|
|
2554
|
+
/**
|
|
2555
|
+
* Trace id this prompt sent as `x-tangle-trace-id`: the caller's
|
|
2556
|
+
* `PromptOptions.traceId`, or one the SDK minted. The Sandbox API, the
|
|
2557
|
+
* orchestrator's proxy log, the runtime and the router's dispatch rows all
|
|
2558
|
+
* record the same value, so it finds every hop of this turn.
|
|
2559
|
+
*/
|
|
2555
2560
|
traceId?: string;
|
|
2556
2561
|
/** Duration in milliseconds */
|
|
2557
2562
|
durationMs: number;
|
|
@@ -2643,6 +2648,13 @@ interface PromptOptions {
|
|
|
2643
2648
|
requireVisibleAssistantOutput?: boolean;
|
|
2644
2649
|
/** AbortSignal for cancellation */
|
|
2645
2650
|
signal?: AbortSignal;
|
|
2651
|
+
/**
|
|
2652
|
+
* Trace id sent as `x-tangle-trace-id` on every request this prompt makes,
|
|
2653
|
+
* including reconnects. Pass your own turn or request id (8-200 letters,
|
|
2654
|
+
* digits, `_` or `-`) to join platform records to yours; omit it and the
|
|
2655
|
+
* SDK mints one. `PromptResult.traceId` returns the value used.
|
|
2656
|
+
*/
|
|
2657
|
+
traceId?: string;
|
|
2646
2658
|
/**
|
|
2647
2659
|
* Stable execution id for tracing a first dispatch or selecting an existing
|
|
2648
2660
|
* execution for replay. Forwarded as `X-Execution-ID` on a first dispatch.
|
|
@@ -2915,6 +2927,14 @@ interface ResumeOptions {
|
|
|
2915
2927
|
timeoutMs?: number;
|
|
2916
2928
|
/** AbortSignal for cancellation */
|
|
2917
2929
|
signal?: AbortSignal;
|
|
2930
|
+
/**
|
|
2931
|
+
* Public env values the platform does not store at rest, such as a per-run
|
|
2932
|
+
* coordination token or a secret passed at create. Pass the keys a
|
|
2933
|
+
* `ResumeEnvRequiredError` named. They are used only when the resume
|
|
2934
|
+
* builds a new runtime; a sandbox whose stopped runtime still exists keeps
|
|
2935
|
+
* its own values.
|
|
2936
|
+
*/
|
|
2937
|
+
env?: Record<string, string>;
|
|
2918
2938
|
}
|
|
2919
2939
|
/**
|
|
2920
2940
|
* Usage information for the account.
|
|
@@ -3310,6 +3330,8 @@ interface SendSessionMessageOptions {
|
|
|
3310
3330
|
credentials?: SessionBackendCredentials;
|
|
3311
3331
|
timeoutMs?: number;
|
|
3312
3332
|
signal?: AbortSignal;
|
|
3333
|
+
/** Trace id sent as `x-tangle-trace-id`; see `PromptOptions.traceId`. */
|
|
3334
|
+
traceId?: string;
|
|
3313
3335
|
}
|
|
3314
3336
|
/** Receipt returned after a session message is accepted for processing. */
|
|
3315
3337
|
interface SentSessionMessage {
|
|
@@ -3557,8 +3579,14 @@ interface ConversationTurnOptions {
|
|
|
3557
3579
|
timeoutMs?: number;
|
|
3558
3580
|
signal?: AbortSignal;
|
|
3559
3581
|
wallCapMs?: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Trace id sent as `x-tangle-trace-id` on this pass's runtime requests.
|
|
3584
|
+
* Defaults to `turnId` when it is 8-200 letters, digits, `_` or `-`, so
|
|
3585
|
+
* every pass over one turn shares one trace; otherwise the SDK mints one.
|
|
3586
|
+
*/
|
|
3587
|
+
traceId?: string;
|
|
3560
3588
|
}
|
|
3561
|
-
type ConversationTurnResult = (TurnDriveResult & {
|
|
3589
|
+
type ConversationTurnResult = ((TurnDriveResult & {
|
|
3562
3590
|
executionId?: string;
|
|
3563
3591
|
}) | {
|
|
3564
3592
|
state: "not_admitted";
|
|
@@ -3566,6 +3594,8 @@ type ConversationTurnResult = (TurnDriveResult & {
|
|
|
3566
3594
|
state: "awaiting_input";
|
|
3567
3595
|
executionId: string;
|
|
3568
3596
|
requests: _$_tangle_network_agent_interface0.InteractionRequest[];
|
|
3597
|
+
}) & {
|
|
3598
|
+
/** Trace id this pass sent as `x-tangle-trace-id`. */traceId?: string;
|
|
3569
3599
|
};
|
|
3570
3600
|
interface DriveTurnOptions {
|
|
3571
3601
|
/** Deterministic session id — required, it is the resume key. Every
|
|
@@ -3773,6 +3803,84 @@ interface SandboxDeleteAcknowledgement {
|
|
|
3773
3803
|
*/
|
|
3774
3804
|
removal?: SandboxRemovalState;
|
|
3775
3805
|
}
|
|
3806
|
+
/**
|
|
3807
|
+
* Which sandboxes {@link Sandbox.deleteMatching} removes: the caller's own
|
|
3808
|
+
* sandboxes whose metadata matches every entry.
|
|
3809
|
+
*/
|
|
3810
|
+
interface DeleteMatchingSandboxesFilter {
|
|
3811
|
+
/**
|
|
3812
|
+
* Metadata key to required value prefix, 1 to 8 entries. A sandbox matches
|
|
3813
|
+
* when each named key holds a string that starts with its prefix, for
|
|
3814
|
+
* example `{ retainedIdempotencyKey: "runtime:<runId>:" }` for every
|
|
3815
|
+
* sandbox one Agent Runtime run created.
|
|
3816
|
+
*/
|
|
3817
|
+
metadataPrefix: Record<string, string>;
|
|
3818
|
+
}
|
|
3819
|
+
interface DeleteMatchingSandboxesOptions {
|
|
3820
|
+
/** Delete each matched sandbox's branch children with it. */
|
|
3821
|
+
cascade?: boolean;
|
|
3822
|
+
/** Hold each delete until the runtime's removal proof, as {@link SandboxDeleteOptions.until}. */
|
|
3823
|
+
until?: "removed";
|
|
3824
|
+
/** AbortSignal for cancellation */
|
|
3825
|
+
signal?: AbortSignal;
|
|
3826
|
+
/**
|
|
3827
|
+
* Timeout for each request. The API deletes a bounded batch per request,
|
|
3828
|
+
* so the default is 120 s, or 300 s with `until: "removed"`.
|
|
3829
|
+
*/
|
|
3830
|
+
timeoutMs?: number;
|
|
3831
|
+
}
|
|
3832
|
+
/**
|
|
3833
|
+
* What happened to one matched sandbox.
|
|
3834
|
+
*
|
|
3835
|
+
* - `destroyed`: this call removed it.
|
|
3836
|
+
* - `already_absent`: it was gone when the delete reached it.
|
|
3837
|
+
* - `failed`: the delete was refused; `status`, `code` and `error` say why,
|
|
3838
|
+
* and the sandbox may still exist.
|
|
3839
|
+
*/
|
|
3840
|
+
type DeleteMatchingSandboxOutcome = "destroyed" | "already_absent" | "failed";
|
|
3841
|
+
interface DeleteMatchingSandboxResult {
|
|
3842
|
+
id: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* True when the sandbox is confirmed gone: `destroyed` or `already_absent`.
|
|
3845
|
+
* With `until: "removed"`, a destroyed sandbox also needs its removal proof:
|
|
3846
|
+
* one whose wait ran out reports `removal: "pending"` and `confirmed: false`.
|
|
3847
|
+
*/
|
|
3848
|
+
confirmed: boolean;
|
|
3849
|
+
outcome: DeleteMatchingSandboxOutcome;
|
|
3850
|
+
removal?: SandboxRemovalState;
|
|
3851
|
+
/** Branch children deleted with it when `cascade` was set. */
|
|
3852
|
+
deletedChildren?: string[];
|
|
3853
|
+
/** The compute charge settles through the durable queue instead of inline. */
|
|
3854
|
+
settlementDeferred?: boolean;
|
|
3855
|
+
/** HTTP status of the refused delete. */
|
|
3856
|
+
status?: number;
|
|
3857
|
+
code?: string;
|
|
3858
|
+
error?: string;
|
|
3859
|
+
/** Live branch children that refused the delete (`CHILDREN_EXIST`). */
|
|
3860
|
+
children?: string[];
|
|
3861
|
+
}
|
|
3862
|
+
interface DeleteMatchingSandboxesResult {
|
|
3863
|
+
/**
|
|
3864
|
+
* True only when every orchestrator was listed and every matching sandbox
|
|
3865
|
+
* is confirmed gone. This is the teardown verdict; read `sandboxes` for
|
|
3866
|
+
* the per-sandbox evidence.
|
|
3867
|
+
*
|
|
3868
|
+
* It covers the sandboxes the call listed. Stop creating matching sandboxes
|
|
3869
|
+
* before calling, and call again once in-flight creates have settled: a
|
|
3870
|
+
* create that registers after the listing, or retries with the same
|
|
3871
|
+
* idempotency key, can leave a match behind a `true`.
|
|
3872
|
+
*/
|
|
3873
|
+
complete: boolean;
|
|
3874
|
+
/** False when an orchestrator could not be listed, so a match may be missing. */
|
|
3875
|
+
listingComplete: boolean;
|
|
3876
|
+
/**
|
|
3877
|
+
* Matching sandboxes not yet attempted when the call stopped. Nonzero only
|
|
3878
|
+
* when the call reached its request bound; call again for them.
|
|
3879
|
+
*/
|
|
3880
|
+
remaining: number;
|
|
3881
|
+
/** The latest result for each sandbox this call attempted. */
|
|
3882
|
+
sandboxes: DeleteMatchingSandboxResult[];
|
|
3883
|
+
}
|
|
3776
3884
|
/**
|
|
3777
3885
|
* Whether the operation bound to an idempotency key is decided.
|
|
3778
3886
|
*
|
|
@@ -6560,4 +6668,4 @@ interface CodeExecutionOptions {
|
|
|
6560
6668
|
idempotencyKey?: string;
|
|
6561
6669
|
}
|
|
6562
6670
|
//#endregion
|
|
6563
|
-
export {
|
|
6671
|
+
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