@tangle-network/sandbox 0.60.17 → 0.60.19-develop.20261006230654.7041e93
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 +21 -0
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-C8oSKngX.d.ts → agent-run-outcome-CNwQZNx0.d.ts} +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{cli-auth-bundle-D_1bUPSo.js → cli-auth-bundle-DfWwveOy.js} +2 -1
- package/dist/{client-CT9Td-BV.js → client-BmwwO4FI.js} +107 -8
- package/dist/{client-CbOQtx9b.d.ts → client-PouIni5e.d.ts} +119 -5
- package/dist/core.d.ts +4 -4
- package/dist/core.js +2 -2
- package/dist/{index-BWmtGiyF.d.ts → index-59XBAwQK.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -5
- package/dist/{interactive-controller-5_ixpFnR.js → interactive-controller-DqWnVf68.js} +17 -2
- package/dist/{lines-BTZTbYDz.d.ts → lines-DLwul_A9.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-DRXaIXAj.js → local-cli-auth-D8nNxHHt.js} +1 -1
- package/dist/{preview-T96_mF5c.d.ts → preview-Dfp96rJ-.d.ts} +3 -3
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-D3VcDY8b.js → sandbox-B-yuskS6.js} +41 -3
- package/dist/{sandbox-DalvAflZ.d.ts → sandbox-D01Uk-2A.d.ts} +8 -2
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CLrVMWGG.js → tangle-Ci2zR8my.js} +1 -1
- package/dist/{types-CdT-paBK.d.ts → types-BotBEROr.d.ts} +35 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -134,6 +134,26 @@ With `{ until: "removed" }`, a destroyed sandbox counts as confirmed only when i
|
|
|
134
134
|
If the removal wait runs out, the sandbox reports `removal: "pending"` and `confirmed: false`, and `result.complete` is `false`.
|
|
135
135
|
That sandbox is already gone for every read, so a later call does not list it again.
|
|
136
136
|
|
|
137
|
+
## Run a profile without choosing where
|
|
138
|
+
|
|
139
|
+
`client.run()` runs an AgentProfile on a prompt in the environment its needs require. It returns when the run settles.
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
const result = await client.run({
|
|
143
|
+
profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
144
|
+
prompt: "Which plan includes priority support?",
|
|
145
|
+
// placement: "auto" (default) | "inference" | "worker" | "sandbox"
|
|
146
|
+
});
|
|
147
|
+
console.log(result.placement?.chosen, result.placement?.reason, result.text, result.costUsd);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`auto` chooses among three placements:
|
|
151
|
+
- one Router call, when nothing needs a tool, a file or a session;
|
|
152
|
+
- Tangle's sandbox-free agent loop, when the only tools are Hub `connections`, owner `objects` or `http` reads;
|
|
153
|
+
- a sandbox, when the profile needs a harness, files, a shell or MCP servers.
|
|
154
|
+
|
|
155
|
+
A run that cannot be honoured is refused before anything is spent. `client.runs.create()`, `get()`, `wait()` and `cancel()` start, follow and stop a run separately; when `wait()` times out the run keeps executing until it settles or is cancelled. `costUsd` is the model spend Platform booked (sandbox time is billed separately). Runs are served by Platform at `platformUrl`.
|
|
156
|
+
|
|
137
157
|
## Create a sandbox
|
|
138
158
|
|
|
139
159
|
Omit `environment` to use the server's default image. No image choice is
|
|
@@ -855,6 +875,7 @@ The root entrypoint exports the primary client, instance, session, fleet, image,
|
|
|
855
875
|
| Coordinated environments | `SandboxFleetClient`, `SandboxFleet` |
|
|
856
876
|
| Reusable images | `Image`, `ImageBuilder` |
|
|
857
877
|
| Phone and messaging lines | `client.lines`, `box.lines` |
|
|
878
|
+
| Run a profile where its needs require | `client.run()`, `client.runs` |
|
|
858
879
|
| Failures | `SandboxError` and its specific subclasses |
|
|
859
880
|
|
|
860
881
|
The main client provides `create`, `list`, `get`, `usage`, `subscription`, and `health`.
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-D01Uk-2A.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Yi as SessionListOptions, ao as BackendType, d as BackendConfig, k as CodeResultPart, qi as SessionInfo, qr as SandboxFleetParent } from "../types-BotBEROr.js";
|
|
3
|
+
import { i as Sandbox } from "../client-PouIni5e.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-Dfp96rJ-.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DY1CnWBn.js";
|
|
2
|
-
import { k as assertCurrentBackendType } from "../interactive-controller-
|
|
2
|
+
import { k as assertCurrentBackendType } from "../interactive-controller-DqWnVf68.js";
|
|
3
3
|
import { c as NotFoundError, g as ValidationError, m as StateError } from "../errors-D1JIX7Jm.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-BmwwO4FI.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-B-yuskS6.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-Dfp96rJ-.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Or as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-BotBEROr.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-DfWwveOy.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as BACKEND_TYPE } from "./backend-types-C7b_Gpa0.js";
|
|
2
2
|
import { agentProfileJsonSchema, agentProfileSchema as agentProfileSchema$1 } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
+
import "@tangle-network/agent-interface/harness-capabilities";
|
|
4
5
|
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts.mjs
|
|
5
6
|
/**
|
|
6
7
|
* The declared native session of every registered harness. Each entry is
|
|
@@ -373,7 +374,7 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
373
374
|
}
|
|
374
375
|
};
|
|
375
376
|
//#endregion
|
|
376
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
377
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-D_KAP1Dd.mjs
|
|
377
378
|
z.globalRegistry.add(agentProfileSchema$1, {
|
|
378
379
|
id: "AgentProfile",
|
|
379
380
|
...agentProfileJsonSchema
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { A as foldModelRoutingFields, D as parseSSEStream, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, T as encodePromptForWire, k as assertCurrentBackendType, s as requestInteractiveSessionToken } from "./interactive-controller-
|
|
2
|
+
import { A as foldModelRoutingFields, D as parseSSEStream, M as normalizeRuntimeBackendConfig, N as withProfileHarness, O as applyRequestedModel, T as encodePromptForWire, k as assertCurrentBackendType, s as requestInteractiveSessionToken } from "./interactive-controller-DqWnVf68.js";
|
|
3
3
|
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, v as parseResponseError, y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-
|
|
5
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-B-yuskS6.js";
|
|
6
6
|
import { LinesClient } from "./lines.js";
|
|
7
7
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -3096,6 +3096,79 @@ async function read(response) {
|
|
|
3096
3096
|
return { instance: parsed.instance };
|
|
3097
3097
|
}
|
|
3098
3098
|
//#endregion
|
|
3099
|
+
//#region src/runs.ts
|
|
3100
|
+
const SETTLED = new Set([
|
|
3101
|
+
"succeeded",
|
|
3102
|
+
"failed",
|
|
3103
|
+
"cancelled"
|
|
3104
|
+
]);
|
|
3105
|
+
async function platformData(response) {
|
|
3106
|
+
const body = await response.text();
|
|
3107
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
3108
|
+
const parsed = JSON.parse(body);
|
|
3109
|
+
if (parsed.success !== true || parsed.data === void 0) throw parseErrorResponse(502, body, void 0, response.headers);
|
|
3110
|
+
return parsed.data;
|
|
3111
|
+
}
|
|
3112
|
+
function abortableDelay(ms, signal) {
|
|
3113
|
+
return new Promise((resolve, reject) => {
|
|
3114
|
+
if (signal?.aborted) {
|
|
3115
|
+
reject(signal.reason);
|
|
3116
|
+
return;
|
|
3117
|
+
}
|
|
3118
|
+
const timer = setTimeout(() => {
|
|
3119
|
+
signal?.removeEventListener("abort", onAbort);
|
|
3120
|
+
resolve();
|
|
3121
|
+
}, ms);
|
|
3122
|
+
const onAbort = () => {
|
|
3123
|
+
clearTimeout(timer);
|
|
3124
|
+
reject(signal?.reason);
|
|
3125
|
+
};
|
|
3126
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
3127
|
+
});
|
|
3128
|
+
}
|
|
3129
|
+
/** `client.runs`: start a run, read it, wait for it. */
|
|
3130
|
+
var RunsClient = class {
|
|
3131
|
+
constructor(http) {
|
|
3132
|
+
this.http = http;
|
|
3133
|
+
}
|
|
3134
|
+
/** Start a run. Returns at once with its id; it executes on Platform. */
|
|
3135
|
+
async create(options) {
|
|
3136
|
+
if (!options.prompt) throw new ValidationError("prompt is required", { prompt: "required" });
|
|
3137
|
+
return platformData(await this.http.platformFetch("/v1/runs", {
|
|
3138
|
+
method: "POST",
|
|
3139
|
+
headers: { "Content-Type": "application/json" },
|
|
3140
|
+
body: JSON.stringify(options)
|
|
3141
|
+
}));
|
|
3142
|
+
}
|
|
3143
|
+
/** Read a run: its status, placement, answer, cost and error. */
|
|
3144
|
+
async get(id, options = {}) {
|
|
3145
|
+
return platformData(await this.http.platformFetch(`/v1/runs/${encodeURIComponent(id)}`, options.signal ? { signal: options.signal } : void 0));
|
|
3146
|
+
}
|
|
3147
|
+
/** Stop a run. A queued run is cancelled at once (`cancelled`). An
|
|
3148
|
+
* executing one is signalled (`cancelling`) and settles `cancelled` when the
|
|
3149
|
+
* worker holding it stops; read the run to see the final status. */
|
|
3150
|
+
async cancel(id) {
|
|
3151
|
+
return platformData(await this.http.platformFetch(`/v1/runs/${encodeURIComponent(id)}/cancel`, { method: "POST" }));
|
|
3152
|
+
}
|
|
3153
|
+
/** Poll a run until it settles. */
|
|
3154
|
+
async wait(id, options = {}) {
|
|
3155
|
+
const timeoutMs = options.timeoutMs ?? 10 * 6e4;
|
|
3156
|
+
const deadline = Date.now() + timeoutMs;
|
|
3157
|
+
const interval = options.pollIntervalMs ?? 1e3;
|
|
3158
|
+
for (;;) {
|
|
3159
|
+
const record = await this.get(id, options.signal ? { signal: options.signal } : {});
|
|
3160
|
+
if (SETTLED.has(record.status)) return record;
|
|
3161
|
+
if (Date.now() + interval > deadline) throw new TimeoutError(timeoutMs, `run ${id} did not settle within ${timeoutMs}ms (last status ${record.status}); cancel it with client.runs.cancel("${id}")`);
|
|
3162
|
+
await abortableDelay(interval, options.signal);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
/** Start a run and wait for it to settle. */
|
|
3166
|
+
async run(options, wait = {}) {
|
|
3167
|
+
const { id } = await this.create(options);
|
|
3168
|
+
return this.wait(id, wait);
|
|
3169
|
+
}
|
|
3170
|
+
};
|
|
3171
|
+
//#endregion
|
|
3099
3172
|
//#region src/session-events.ts
|
|
3100
3173
|
async function broadcastSessionEvent(client, sessionId, event) {
|
|
3101
3174
|
if (!sessionId.trim()) throw new ValidationError("Session ID is required");
|
|
@@ -3248,11 +3321,11 @@ function withRequestContextHeaders(response, path, method) {
|
|
|
3248
3321
|
return rewrapResponse(response, headers);
|
|
3249
3322
|
}
|
|
3250
3323
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
3251
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
3324
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-D8nNxHHt.js");
|
|
3252
3325
|
return discoverLocalCliAuthFiles(backendType);
|
|
3253
3326
|
}
|
|
3254
3327
|
async function describeLocalCliAuthExpectation(backendType) {
|
|
3255
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
3328
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-D8nNxHHt.js");
|
|
3256
3329
|
return describe(backendType);
|
|
3257
3330
|
}
|
|
3258
3331
|
async function hydrateLocalCliBackendAuth(backend, baseUrl, trustLocalCliAuth) {
|
|
@@ -3320,6 +3393,7 @@ var Sandbox = class Sandbox {
|
|
|
3320
3393
|
_instances = null;
|
|
3321
3394
|
_intelligence = null;
|
|
3322
3395
|
_lines = null;
|
|
3396
|
+
_runs = null;
|
|
3323
3397
|
constructor(config) {
|
|
3324
3398
|
if (!config.apiKey) throw new AuthError("API key is required");
|
|
3325
3399
|
if (!config.baseUrl) throw new ValidationError("Base URL is required");
|
|
@@ -3359,6 +3433,30 @@ var Sandbox = class Sandbox {
|
|
|
3359
3433
|
if (!this._lines) this._lines = new LinesClient(this);
|
|
3360
3434
|
return this._lines;
|
|
3361
3435
|
}
|
|
3436
|
+
/**
|
|
3437
|
+
* Runs: run an AgentProfile on a prompt in the environment its needs
|
|
3438
|
+
* require — one inference call, Tangle's sandbox-free agent loop, or a
|
|
3439
|
+
* sandbox. `placement: "auto"` (the default) chooses and records why.
|
|
3440
|
+
*/
|
|
3441
|
+
get runs() {
|
|
3442
|
+
if (!this._runs) this._runs = new RunsClient(this);
|
|
3443
|
+
return this._runs;
|
|
3444
|
+
}
|
|
3445
|
+
/**
|
|
3446
|
+
* Run an AgentProfile on a prompt and wait for the result.
|
|
3447
|
+
*
|
|
3448
|
+
* @example
|
|
3449
|
+
* ```ts
|
|
3450
|
+
* const result = await client.run({
|
|
3451
|
+
* profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
3452
|
+
* prompt: "Which plan am I on?",
|
|
3453
|
+
* });
|
|
3454
|
+
* console.log(result.placement?.chosen, result.text, result.costUsd);
|
|
3455
|
+
* ```
|
|
3456
|
+
*/
|
|
3457
|
+
run(options, wait) {
|
|
3458
|
+
return this.runs.run(options, wait);
|
|
3459
|
+
}
|
|
3362
3460
|
get intelligence() {
|
|
3363
3461
|
if (!this._intelligence) this._intelligence = new IntelligenceClient(this);
|
|
3364
3462
|
return this._intelligence;
|
|
@@ -3513,9 +3611,10 @@ var Sandbox = class Sandbox {
|
|
|
3513
3611
|
} : void 0;
|
|
3514
3612
|
const environment = options?.environment;
|
|
3515
3613
|
const backend = options?.ownerContext === "isolated" ? options.backend : await hydrateLocalCliBackendAuth(options?.backend, this.baseUrl, this.trustLocalCliAuth);
|
|
3516
|
-
const
|
|
3517
|
-
|
|
3518
|
-
|
|
3614
|
+
const derivedBackend = backend && withProfileHarness(backend);
|
|
3615
|
+
const resolvedBackend = derivedBackend ? {
|
|
3616
|
+
...derivedBackend,
|
|
3617
|
+
type: derivedBackend.type ?? "opencode"
|
|
3519
3618
|
} : void 0;
|
|
3520
3619
|
const autoMaterializeProfileFiles = options?.autoMaterializeProfileFiles ?? true;
|
|
3521
3620
|
const autoDeferProfile = options?.autoDeferProfile ?? true;
|
|
@@ -4527,4 +4626,4 @@ var TeamsClient = class {
|
|
|
4527
4626
|
}
|
|
4528
4627
|
};
|
|
4529
4628
|
//#endregion
|
|
4530
|
-
export {
|
|
4629
|
+
export { parseBackendRegistryResponse as _, InstanceRestartingError as a, SandboxFleetClient as c, validateBatchRunRequest as d, backendRegistryCapabilitiesSchema as f, isBackendRegistryInteractionKind as g, backendRegistryResponseSchema as h, HostedInstance as i, runtimeWorkspaceCwdSchema as l, backendRegistryInteractionKindSchema as m, Sandbox as n, InstancesClient as o, backendRegistryEntrySchema as p, RunsClient as r, SandboxFleet as s, IntelligenceClient as t, createBatchResultAccumulator as u, parseBackendRegistryResponseBody as v };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
2
|
-
import { $
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-D01Uk-2A.js";
|
|
2
|
+
import { $n as PublicTemplateInfo, $r as SandboxFleetTraceBundle, B as CreateSandboxOptions, Bt as FleetDispatchStreamOptions, Dr as SandboxEnvironment, En as ListSandboxOptions, F as CreateIntelligenceReportOptions, Fr as SandboxFleetDispatchResponse, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gt as FleetMachineId, Hr as SandboxFleetMachineRecord, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetDriverCapability, Jn as PromptResult, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kn as PromptInputPart, Kr as SandboxFleetOperationsSummary, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Li as SecretsManager, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxFleetArtifactSpec, N as ConversationTurnResult, Nr as SandboxFleetCostEstimate, Nt as FleetAgentId, Oa as UsageInfo, Qr as SandboxFleetToken, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetInfo, Rt as FleetDispatchResultBuffer, Sa as TokenRefreshHandler, Tn as ListSandboxFleetOptions, Ur as SandboxFleetMachineSpec, Ut as FleetExecDispatchOptions, Vt as FleetDriveTurnOutcome, Wr as SandboxFleetManifest, Wt as FleetExecDispatchResult, Yr as SandboxFleetPolicy, Yt as FleetRunOptions, Zr as SandboxFleetSpend, _n as IntelligenceReport, ai as SandboxFleetWorkspaceReconcileResult, ar as ReconcileSandboxFleetsOptions, b as BatchRunRequest, ci as SandboxIdentity, d as BackendConfig, da as SubscriptionInfo, eo as BatchEvent, er as PublicTemplateVersionInfo, gi as SandboxRunGeneration, ir as ReapExpiredSandboxFleetsResult, jr as SandboxFleetArtifact, kr as SandboxFleetAgent, l as AttachSandboxFleetMachineOptions, li as SandboxInfo, ni as SandboxFleetTraceOptions, nr as PublishPublicTemplateVersionOptions, oi as SandboxFleetWorkspaceRestoreResult, or as ReconcileSandboxFleetsResult, q as DeleteMatchingSandboxesResult, qn as PromptOptions, qr as SandboxFleetParent, qt as FleetPromptDispatchResult, ri as SandboxFleetUsage, rr as ReapExpiredSandboxFleetsOptions, sa as SshKeysManager, si as SandboxFleetWorkspaceSnapshotResult, tr as PublishPublicTemplateOptions, v as BatchResult, vn as IntelligenceReportBudget, vt as ExecOptions, xi as SandboxShapesInfo, xn as IntelligenceReportWindow, y as BatchRunOptions, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchResultBufferOptions } from "./types-BotBEROr.js";
|
|
3
3
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-B6bUr0hj.js";
|
|
4
|
-
import { I as LinesClient } from "./lines-
|
|
4
|
+
import { I as LinesClient } from "./lines-DLwul_A9.js";
|
|
5
5
|
import { f as SandboxError } from "./errors-DS32ViPj.js";
|
|
6
|
-
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
6
|
+
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/backend-registry.d.ts
|
|
@@ -537,6 +537,100 @@ declare class InstancesClient {
|
|
|
537
537
|
private write;
|
|
538
538
|
}
|
|
539
539
|
//#endregion
|
|
540
|
+
//#region src/runs.d.ts
|
|
541
|
+
/** Where a run executes. */
|
|
542
|
+
type RunPlacement = "auto" | "inference" | "worker" | "sandbox";
|
|
543
|
+
interface RunOptions {
|
|
544
|
+
/** The agent: an inline AgentProfile, or a built-in or catalog profile id. */
|
|
545
|
+
profile: AgentProfile | string;
|
|
546
|
+
/** What to do in this run. */
|
|
547
|
+
prompt: string;
|
|
548
|
+
/** Default `auto`. */
|
|
549
|
+
placement?: RunPlacement;
|
|
550
|
+
/** A Router model id, when the profile names none. */
|
|
551
|
+
model?: string;
|
|
552
|
+
/** Hub providers the run may use, by name (`slack`, `github`, …). */
|
|
553
|
+
connections?: string[];
|
|
554
|
+
/** Owner-object prefixes and mode the run may use (worker only). */
|
|
555
|
+
objects?: {
|
|
556
|
+
prefixes: string[];
|
|
557
|
+
mode: "read" | "readwrite";
|
|
558
|
+
};
|
|
559
|
+
/** Public HTTPS hosts the run may GET (worker only). */
|
|
560
|
+
http?: {
|
|
561
|
+
hosts: string[];
|
|
562
|
+
};
|
|
563
|
+
/** The run's own wall-clock budget, a duration (`"5m"`) or milliseconds. */
|
|
564
|
+
timeout?: string | number;
|
|
565
|
+
}
|
|
566
|
+
interface RunWaitOptions {
|
|
567
|
+
/** How long to wait for the run to settle. Default 10 minutes. */
|
|
568
|
+
timeoutMs?: number;
|
|
569
|
+
/** Poll interval. Default 1 second. */
|
|
570
|
+
pollIntervalMs?: number;
|
|
571
|
+
signal?: AbortSignal;
|
|
572
|
+
}
|
|
573
|
+
/** Where the run went and why, as Platform recorded it. */
|
|
574
|
+
interface RunPlacementRecord {
|
|
575
|
+
chosen: Exclude<RunPlacement, "auto">;
|
|
576
|
+
policy: string;
|
|
577
|
+
reason: string;
|
|
578
|
+
rejected: Array<{
|
|
579
|
+
placement: Exclude<RunPlacement, "auto">;
|
|
580
|
+
reason: string;
|
|
581
|
+
}>;
|
|
582
|
+
}
|
|
583
|
+
interface RunRecord {
|
|
584
|
+
id: string;
|
|
585
|
+
/** `queued`, `running`, `waiting`, `succeeded`, `failed` or `cancelled`. */
|
|
586
|
+
status: string;
|
|
587
|
+
placement: RunPlacementRecord | null;
|
|
588
|
+
text: string | null;
|
|
589
|
+
model: string | null;
|
|
590
|
+
usage: {
|
|
591
|
+
inputTokens?: number;
|
|
592
|
+
outputTokens?: number;
|
|
593
|
+
} | null;
|
|
594
|
+
/**
|
|
595
|
+
* The model spend Platform booked for the run: the Router's charge, or
|
|
596
|
+
* Platform's estimate when no charge was read. Sandbox time is billed
|
|
597
|
+
* separately and is not included. `null` when nothing was measured.
|
|
598
|
+
*/
|
|
599
|
+
costUsd: number | null;
|
|
600
|
+
error: string | null;
|
|
601
|
+
createdAt: string;
|
|
602
|
+
startedAt: string | null;
|
|
603
|
+
completedAt: string | null;
|
|
604
|
+
}
|
|
605
|
+
interface RunsHttpClient {
|
|
606
|
+
platformFetch(path: string, options?: RequestInit): Promise<Response>;
|
|
607
|
+
}
|
|
608
|
+
/** `client.runs`: start a run, read it, wait for it. */
|
|
609
|
+
declare class RunsClient {
|
|
610
|
+
private readonly http;
|
|
611
|
+
constructor(http: RunsHttpClient);
|
|
612
|
+
/** Start a run. Returns at once with its id; it executes on Platform. */
|
|
613
|
+
create(options: RunOptions): Promise<{
|
|
614
|
+
id: string;
|
|
615
|
+
status: string;
|
|
616
|
+
}>;
|
|
617
|
+
/** Read a run: its status, placement, answer, cost and error. */
|
|
618
|
+
get(id: string, options?: {
|
|
619
|
+
signal?: AbortSignal;
|
|
620
|
+
}): Promise<RunRecord>;
|
|
621
|
+
/** Stop a run. A queued run is cancelled at once (`cancelled`). An
|
|
622
|
+
* executing one is signalled (`cancelling`) and settles `cancelled` when the
|
|
623
|
+
* worker holding it stops; read the run to see the final status. */
|
|
624
|
+
cancel(id: string): Promise<{
|
|
625
|
+
id: string;
|
|
626
|
+
status: string;
|
|
627
|
+
}>;
|
|
628
|
+
/** Poll a run until it settles. */
|
|
629
|
+
wait(id: string, options?: RunWaitOptions): Promise<RunRecord>;
|
|
630
|
+
/** Start a run and wait for it to settle. */
|
|
631
|
+
run(options: RunOptions, wait?: RunWaitOptions): Promise<RunRecord>;
|
|
632
|
+
}
|
|
633
|
+
//#endregion
|
|
540
634
|
//#region src/scoped-token.d.ts
|
|
541
635
|
interface ScopedTokenHttpClient {
|
|
542
636
|
fetch(path: string, options?: RequestInit, fetchOptions?: {
|
|
@@ -575,6 +669,7 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
575
669
|
private _instances;
|
|
576
670
|
private _intelligence;
|
|
577
671
|
private _lines;
|
|
672
|
+
private _runs;
|
|
578
673
|
constructor(config: SandboxConfig);
|
|
579
674
|
/**
|
|
580
675
|
* Fleet operations for agent-managed groups of sandboxes.
|
|
@@ -596,6 +691,25 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
596
691
|
* sandbox with `sandbox.lines.attach()`.
|
|
597
692
|
*/
|
|
598
693
|
get lines(): LinesClient;
|
|
694
|
+
/**
|
|
695
|
+
* Runs: run an AgentProfile on a prompt in the environment its needs
|
|
696
|
+
* require — one inference call, Tangle's sandbox-free agent loop, or a
|
|
697
|
+
* sandbox. `placement: "auto"` (the default) chooses and records why.
|
|
698
|
+
*/
|
|
699
|
+
get runs(): RunsClient;
|
|
700
|
+
/**
|
|
701
|
+
* Run an AgentProfile on a prompt and wait for the result.
|
|
702
|
+
*
|
|
703
|
+
* @example
|
|
704
|
+
* ```ts
|
|
705
|
+
* const result = await client.run({
|
|
706
|
+
* profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
707
|
+
* prompt: "Which plan am I on?",
|
|
708
|
+
* });
|
|
709
|
+
* console.log(result.placement?.chosen, result.text, result.costUsd);
|
|
710
|
+
* ```
|
|
711
|
+
*/
|
|
712
|
+
run(options: RunOptions, wait?: RunWaitOptions): Promise<RunRecord>;
|
|
599
713
|
get intelligence(): IntelligenceClient;
|
|
600
714
|
getApiKey(): string;
|
|
601
715
|
/** A client with this one's settings that authenticates with `apiKey`. */
|
|
@@ -1138,4 +1252,4 @@ declare class TeamsClient {
|
|
|
1138
1252
|
deleteTemplate(teamId: string, templateId: string): Promise<void>;
|
|
1139
1253
|
}
|
|
1140
1254
|
//#endregion
|
|
1141
|
-
export {
|
|
1255
|
+
export { BackendRegistryEntry as A, InstancesClient as C, ParsedSSEEvent as D, ParseSSEStreamOptions as E, backendRegistryInteractionKindSchema as F, backendRegistryResponseSchema as I, isBackendRegistryInteractionKind as L, BackendRegistryResponse as M, backendRegistryCapabilitiesSchema as N, parseSSEStream as O, backendRegistryEntrySchema as P, parseBackendRegistryResponse as R, InstanceStart as S, SandboxFleetClient as T, EnsureInstanceOptions as _, Team as a, InstanceRecord as b, SessionBroadcastEvent as c, RunPlacement as d, RunPlacementRecord as f, RunsHttpClient as g, RunsClient as h, Sandbox as i, BackendRegistryInteractionKind as j, BackendRegistryCapabilities as k, SessionBroadcastResult as l, RunWaitOptions as m, IntelligenceClient as n, TeamInvitation as o, RunRecord as p, InviteTeamMemberOptions as r, TeamMember as s, CreateTeamOptions as t, RunOptions as u, HostedInstance as v, SandboxFleet as w, InstanceRestartingError as x, InstanceProfile as y, parseBackendRegistryResponseBody as z };
|
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 { An as NetworkConfig, B as CreateSandboxOptions, Ba as
|
|
3
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
4
|
-
import { A as
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-D01Uk-2A.js";
|
|
2
|
+
import { An as NetworkConfig, B as CreateSandboxOptions, Ba as ManagedProcessSpec, Fa as ManagedProcessClient, Fn as PreviewLinkInfo, Ha as SandboxEnvRecovery, Ia as ManagedProcessJobs, In as PreviewLinkManager, Kn as PromptInputPart, La as ManagedProcessOptions, Ln as PreviewLinkWaitOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Ra as ManagedProcessRecord, Si as SandboxStatus, Ua as SandboxEnvRecoveryView, Va as ManagedProcessState, Zi as SessionMessageAdmission, li as SandboxInfo, vt as ExecOptions, yr as SandboxConfig, yt as ExecResult, za as ManagedProcessResumeOptions } from "./types-BotBEROr.js";
|
|
3
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-DLwul_A9.js";
|
|
4
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-PouIni5e.js";
|
|
5
5
|
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-DS32ViPj.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core.d.ts
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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-D1JIX7Jm.js";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-BmwwO4FI.js";
|
|
3
|
+
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-B-yuskS6.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-C2SuT1zK.js";
|
|
6
6
|
//#region src/core.ts
|
|
@@ -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-D01Uk-2A.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-BotBEROr.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $a as
|
|
1
|
+
import { A as InteractiveStopCommand, B as SandboxInteractionConflict, C as InteractiveSessionHandleOptions, D as InteractiveSessionRef, E as InteractiveSessionInfo, F as InteractiveTerminalFrameLog, G as CONTROL_PLANE_MCP_SERVER_NAME, H as SandboxInteractionResult, I as InteractiveTerminalMetadata, J as SandboxMcpEndpoint, K as SANDBOX_MCP_SERVER_NAME, L as createInteractiveTerminalCapture, M as RespondToPermissionOptions, N as agentInteractiveSessionPromptRequestDigest, O as InteractiveSessionStartOptions, P as InteractiveTerminalCapture, R as createInteractiveTerminalSession, S as InteractiveSessionHandle, T as InteractiveSessionIncarnationId, U as BuildControlPlaneMcpConfigOptions, V as SandboxInteractionResolution, W as BuildSandboxMcpConfigOptions, X as buildControlPlaneMcpConfig, Y as SandboxMcpServerEntry, Z as buildSandboxMcpConfig, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, b as InteractivePromptCommand, c as TraceExportFormat, d as buildTraceExportPayload, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as InterruptResult, k as InteractiveSessionStartResult, l as TraceExportResult, m as toOtelJson, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxMcpConfig, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, u as TraceExportSink, v as AgentInteractiveTerminalSession, w as InteractiveSessionHost, x as InteractiveSessionControlClaim, y as InteractiveControlClaimRequest, z as SandboxInteractionCommandResult } from "./sandbox-D01Uk-2A.js";
|
|
2
|
+
import { $ as DownloadOptions, $a as BatchBackendStats, $i as SessionResultOptions, $n as PublicTemplateInfo, $r as SandboxFleetTraceBundle, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as WaitForRolloutOptions, Ai as SandboxTraceEvent, An as NetworkConfig, Ar as SandboxFleetAgentSpec, At as FileUsageOptions, B as CreateSandboxOptions, Ba as ManagedProcessSpec, Bi as SentSessionMessage, Bn as ProcessListOptions, Br as SandboxFleetMachine, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as TokenUsage, Ci as SandboxTerminalAttachOptions, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, Ct as FileReadError, Da as UploadProgress, Di as SandboxTerminalRequestOptions, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxEnvironment, Dt as FileTreeFile, Ea as UploadOptions, Ei as SandboxTerminalManager, En as ListSandboxOptions, Er as SandboxEgressUsage, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as ManagedProcessClient, Fi as SearchOptions, Fn as PreviewLinkInfo, Fr as SandboxFleetDispatchResponse, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as RawEvidenceDirectoryExport, Gi as SessionFailureReason, Gn as ProcessStatus, Gr as SandboxFleetManifestMachine, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as SandboxEnvRecovery, Hi as SessionEventStreamOptions, Hn as ProcessManager, Hr as SandboxFleetMachineRecord, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ia as ManagedProcessJobs, Ii as SecretInfo, In as PreviewLinkManager, Ir as SandboxFleetDriverCapability, It as FleetAgentRunStatus, J as DeleteOptions, Ja as RawEvidencePayloadFile, Ji as SessionInterruptOptions, Jn as PromptResult, Jr as SandboxFleetPlacement, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as RawEvidenceExportOptions, Ki as SessionForkOptions, Kn as PromptInputPart, Kr as SandboxFleetOperationsSummary, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, La as ManagedProcessOptions, Li as SecretsManager, Ln as PreviewLinkWaitOptions, Lr as SandboxFleetDriverTimings, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as WriteFileOptions, Mi as SandboxTraceOptions, Mn as NonHostAgentDriverConfig, Mr as SandboxFleetArtifactSpec, Mt as FileWriteResult, N as ConversationTurnResult, Na as WriteManyFile, Ni as SandboxUser, Nn as PermissionLevel, Nr as SandboxFleetCostEstimate, Nt as FleetAgentId, Oa as UsageInfo, Oi as SandboxTerminals, On as McpServerConfig, Or as SandboxEvent, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as WriteManyOptions, Pi as SearchMatch, Pn as PermissionsManager, Pr as SandboxFleetDispatchFailureClass, Pt as FleetAgentPlacement, Q as DispatchedSession, Qa as PublicBatchRunRequest, Qi as SessionMessageInputPart, Qn as ProvisionStep, Qr as SandboxFleetToken, Qt as ForkLookupOptions, Ra as ManagedProcessRecord, Ri as SendSessionMessageOptions, Rn as Process, Rr as SandboxFleetInfo, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TokenRefreshHandler, Si as SandboxStatus, Sr as SandboxCreateReceipt, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UpdateUserOptions, Ti as SandboxTerminalInfo, Tn as ListSandboxFleetOptions, Tr as SandboxDeleteOutcome, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as SandboxEnvRecoveryView, Ui as SessionExecutionInfo, Un as ProcessSignal, Ur as SandboxFleetMachineSpec, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as ManagedProcessState, Vi as SessionBackendCredentials, Vn as ProcessLogEntry, Vr as SandboxFleetMachineMeteredUsage, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as RawEvidenceArchiveManifest, Wi as SessionExecutionStatus, Wn as ProcessSpawnOptions, Wr as SandboxFleetManifest, X as DirectoryPermission, Xi as SessionMessage, Xn as ProvisionResult, Xr as SandboxFleetProfileRef, Xt as ForkCounts, Y as DevServerInfo, Ya as RawEvidenceRecordsFile, Yi as SessionListOptions, Yn as ProvisionEvent, Yr as SandboxFleetPolicy, Yt as FleetRunOptions, Z as DispatchPromptOptions, Zi as SessionMessageAdmission, Zn as ProvisionStatus, Zr as SandboxFleetSpend, Zt as ForkIdempotency, _ as BatchBackend, _a as TeeAttestationOptions, _i as SandboxRuntimeCapabilities, _n as IntelligenceReport, _r as SSHCommandDescriptor, _t as ExactProcessSpawnOptions, aa as SnapshotOptions, ai as SandboxFleetWorkspaceReconcileResult, an as GitStatus, ao as BackendType, ar as ReconcileSandboxFleetsOptions, at as DriverType, b as BatchRunRequest, ba as TeePublicKey, bi as SandboxShapePreset, bn as IntelligenceReportSubjectType, br as SandboxConnection, bt as FileInfo, c as AttachGpuLeaseOptions, ca as StartupDiagnostics, ci as SandboxIdentity, cn as GpuLeaseCommandResult, d as BackendConfig, da as SubscriptionInfo, di as SandboxPortBinding, dn as GpuLeaseManager, dr as RolloutChildResult, dt as EffectiveBackendSource, ea as SessionStatus, ei as SandboxFleetTraceEvent, en as GitAuth, eo as BatchEvent, er as PublicTemplateVersionInfo, et as DownloadProgress, f as BackendInfo, fa as TaskSessionChanges, fi as SandboxPortPreviewLink, fn as GpuLeaseProviderName, fr as RolloutOptions, ft as EgressDenial, g as BackendStatus, ga as TaskSessionProfile, gi as SandboxRunGeneration, gn as InstalledTool, gr as RolloutTurnPart, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as TaskSessionInfo, hi as SandboxResources, hn as HostAgentRuntimeBackend, hr as RolloutStatus, ht as EnsureDevServerOptions, ia as SnapshotInfo, ii as SandboxFleetWorkspace, in as GitDiff, io as ALL_BACKEND_TYPES, ir as ReapExpiredSandboxFleetsResult, it as DriverInfo, j as CompletedTurnResult, ja as WorkspaceOperationLookup, ji as SandboxTraceExport, jn as NetworkManager, jr as SandboxFleetArtifact, jt as FileUsageResult, ka as WaitForOptions, ki as SandboxTraceBundle, kn as MkdirOptions, kr as SandboxFleetAgent, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as StartupOperation, li as SandboxInfo, ln as GpuLeaseExecOptions, lt as EffectiveBackend, m as BackendMcpServerStatus, ma as TaskSessionFileChange, mi as SandboxResourceUsage, mn as HostAgentDriverConfig, mr as RolloutStartResult, mt as EgressPolicy, n as AccessPolicyRule, na as SnapshotDeleteOutcome, ni as SandboxFleetTraceOptions, nn as GitCommit, no as BatchSidecarGroup, nr as PublishPublicTemplateVersionOptions, nt as DriveTurnOptions, oa as SnapshotResult, oi as SandboxFleetWorkspaceRestoreResult, on as GpuLease, oo as parseBackendType, or as ReconcileSandboxFleetsResult, ot as DurablePlan, p as BackendManager, pa as TaskSessionCommitResult, pi as SandboxRemovalState, pn as GpuLeaseStatus, pr as RolloutScorer, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as RawEvidenceNativeFile, qi as SessionInfo, qn as PromptOptions, qr as SandboxFleetParent, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SnapshotIdempotency, ri as SandboxFleetUsage, rn as GitConfig, ro as BatchTaskUsage, rr as ReapExpiredSandboxFleetsOptions, rt as DriverConfig, si as SandboxFleetWorkspaceSnapshotResult, sn as GpuLeaseBilling, sr as RenameOptions, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SnapshotDeleteAcknowledgement, ti as SandboxFleetTraceExport, tn as GitBranch, to as BatchEventDataMap, tr as PublishPublicTemplateOptions, tt as DownloadResult, u as BackendCapabilities, ua as StorageConfig, ui as SandboxIntelligenceEnvelope, un as GpuLeaseExecResult, ur as Rollout, ut as EffectiveBackendProfile, v as BatchResult, va as TeeAttestationReport, vi as SandboxRuntimeHealth, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, w as ChunkedUploadOptions, wa as TurnDriveResult, wi as SandboxTerminalCreateOptions, wn as ListOptions, wr as SandboxDeleteOptions, wt as FileReadResult, x as BatchTask, xa as TeePublicKeyResponse, xi as SandboxShapesInfo, xn as IntelligenceReportWindow, xr as SandboxCreateOutcome, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TeeAttestationResponse, yi as SandboxShape, yn as IntelligenceReportCompareTo, yr as SandboxConfig, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as ManagedProcessResumeOptions, zi as SendSessionMessageRequest, zn as ProcessInfo, zr as SandboxFleetIntelligenceEnvelope, zt as FleetDispatchResultBufferOptions } from "./types-BotBEROr.js";
|
|
3
3
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-B6bUr0hj.js";
|
|
4
4
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-DRCfxOQz.js";
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-ykaThYp6.js";
|
|
6
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
7
|
-
import { A as
|
|
6
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-DLwul_A9.js";
|
|
7
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-PouIni5e.js";
|
|
8
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-DS32ViPj.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BoQeoNOD.js";
|
|
10
10
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-BXcL8P-U.js";
|
|
11
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
12
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
11
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CNwQZNx0.js";
|
|
12
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-59XBAwQK.js";
|
|
13
13
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
14
14
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
15
15
|
import { z } from "zod";
|
|
@@ -4459,4 +4459,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4459
4459
|
}
|
|
4460
4460
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4461
4461
|
//#endregion
|
|
4462
|
-
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 DownloadResult, 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 EnsureInstanceOptions, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, 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 RawEvidenceArchiveManifest, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, 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 SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4462
|
+
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 DownloadResult, 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 EnsureInstanceOptions, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, type InstanceStart, InstancesClient, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, LinesClient, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, 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 RawEvidenceArchiveManifest, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, 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 RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, type RunsHttpClient, 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 SandboxEgressUsage, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { D as parseSSEStream, F as
|
|
2
|
+
import { D as parseSSEStream, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, M as normalizeRuntimeBackendConfig, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController } from "./interactive-controller-DqWnVf68.js";
|
|
3
3
|
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-D1JIX7Jm.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-BmwwO4FI.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-B-yuskS6.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
8
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-B7QeBrFQ.js";
|
|
9
9
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-C2SuT1zK.js";
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-Ci2zR8my.js";
|
|
11
11
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1481,4 +1481,4 @@ function stripUndefined(value) {
|
|
|
1481
1481
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1482
1482
|
}
|
|
1483
1483
|
//#endregion
|
|
1484
|
-
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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1484
|
+
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, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveSessionNotRunningError, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, RunsClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
@@ -490,7 +490,22 @@ function foldModelRoutingFields(backend) {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
/** Per-turn backend fields override matching defaults; profiles and runtime maps stay whole. */
|
|
493
|
-
|
|
493
|
+
/**
|
|
494
|
+
* The harness a backend selects: `type`, else its profile's harness. A profile
|
|
495
|
+
* names the harness it was written for, so a backend that omits `type` runs
|
|
496
|
+
* that harness instead of a default (agent-dev-container#9380). A harness the
|
|
497
|
+
* Sandbox does not run is sent as-is and refused by the server.
|
|
498
|
+
*/
|
|
499
|
+
function withProfileHarness(backend) {
|
|
500
|
+
if (backend.type !== void 0) return backend;
|
|
501
|
+
const harness = backend.profile?.harness;
|
|
502
|
+
return harness === void 0 ? backend : {
|
|
503
|
+
...backend,
|
|
504
|
+
type: harness
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
function mergeRuntimeBackendConfig(defaults, overrideInput) {
|
|
508
|
+
const override = overrideInput && withProfileHarness(overrideInput);
|
|
494
509
|
if (!defaults) return override;
|
|
495
510
|
if (!override) return defaults;
|
|
496
511
|
if (override.type !== void 0 && override.type !== defaults.type || override.model?.provider !== void 0 && override.model.provider !== defaults.model?.provider || override.model?.baseUrl !== void 0 && override.model.baseUrl !== defaults.model?.baseUrl) return override;
|
|
@@ -2588,4 +2603,4 @@ var BrowserInteractiveSessionController = class extends InteractiveSessionContro
|
|
|
2588
2603
|
}
|
|
2589
2604
|
};
|
|
2590
2605
|
//#endregion
|
|
2591
|
-
export { foldModelRoutingFields as A, SANDBOX_PROXY_REQUEST_MAX_BYTES as C, parseSSEStream as D, encodeTextForWire as E,
|
|
2606
|
+
export { foldModelRoutingFields as A, SANDBOX_PROXY_REQUEST_MAX_BYTES as C, parseSSEStream as D, encodeTextForWire as E, createAgentRunOutcomeTracker as F, deriveAgentResultOutcome as I, deriveAgentRunOutcome as L, normalizeRuntimeBackendConfig as M, withProfileHarness as N, applyRequestedModel as O, withoutRuntimeSecrets as P, validateAcceptedDispatchRunRef as S, encodePromptForWire as T, resolveTraceId as _, TERMINAL_WS_ECHO_SUBPROTOCOL as a, uploadChunked as b, requestScopedToken as c, normalizeSessionInfo as d, sessionMessageRequestBody as f, mintTraceId as g, isTraceId as h, TerminalStreamError as i, mergeRuntimeBackendConfig as j, assertCurrentBackendType as k, SandboxRuntimeApi as l, TRACE_ID_HEADER as m, InteractiveSessionController as n, assertScopedTokenActive as o, waitForRetryAfter as p, TerminalStream as r, requestInteractiveSessionToken as s, BrowserInteractiveSessionController as t, isRetryableCredentialRefusal as u, appendSessionIdQuery as v, FILE_DECODED_WRITE_MAX_BYTES as w, resolveDispatchRunIdentity as x, sessionHeaders as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-BotBEROr.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
1
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-DLwul_A9.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DfWwveOy.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { r as SandboxInstance } from "./sandbox-D01Uk-2A.js";
|
|
2
|
+
import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-BotBEROr.js";
|
|
3
|
+
import { i as Sandbox } from "./client-PouIni5e.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions, At as FileUsageOptions,
|
|
1
|
+
import { A as CommitTaskSessionOptions, At as FileUsageOptions, Bi as SentSessionMessage, Cn as ListMessagesOptions, Da as UploadProgress, Di as SandboxTerminalRequestOptions, Ei as SandboxTerminalManager, H as CreateTaskSessionOptions, Hi as SessionEventStreamOptions, Ma as WriteFileOptions, Mt as FileWriteResult, Or as SandboxEvent, Ot as FileTreeOptions, Ri as SendSessionMessageOptions, St as FileReadBatchResult, T as ChunkedUploadResult, Ti as SandboxTerminalInfo, Tt as FileRenameResult, Ui as SessionExecutionInfo, V as CreateSessionOptions, Wi as SessionExecutionStatus, Xi as SessionMessage, Zi as SessionMessageAdmission, di as SandboxPortBinding, fa as TaskSessionChanges, ha as TaskSessionInfo, jt as FileUsageResult, kt as FileTreeResult, pa as TaskSessionCommitResult, qi as SessionInfo, sr as RenameOptions, vi as SandboxRuntimeHealth, w as ChunkedUploadOptions, wi as SandboxTerminalCreateOptions, xt as FileReadBatchOptions, zi as SendSessionMessageRequest } from "./types-BotBEROr.js";
|
|
2
2
|
import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-B6bUr0hj.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DRCfxOQz.js";
|
|
4
4
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-ykaThYp6.js";
|
|
5
5
|
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-DS32ViPj.js";
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-CNwQZNx0.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, b as uploadChunked, l as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-DqWnVf68.js";
|
|
2
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-D1JIX7Jm.js";
|
|
3
3
|
import { f as combineAbortSignals, n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
4
4
|
//#region src/runtime-client.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
2
|
-
import { C as SANDBOX_PROXY_REQUEST_MAX_BYTES, D as parseSSEStream, E as encodeTextForWire, F as
|
|
2
|
+
import { C as SANDBOX_PROXY_REQUEST_MAX_BYTES, D as parseSSEStream, E as encodeTextForWire, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, P as withoutRuntimeSecrets, S as validateAcceptedDispatchRunRef, T as encodePromptForWire, _ as resolveTraceId, b as uploadChunked, c as requestScopedToken, d as normalizeSessionInfo, f as sessionMessageRequestBody, g as mintTraceId, h as isTraceId, j as mergeRuntimeBackendConfig, k as assertCurrentBackendType, l as SandboxRuntimeApi, m as TRACE_ID_HEADER, n as InteractiveSessionController, o as assertScopedTokenActive, p as waitForRetryAfter, r as TerminalStream, u as isRetryableCredentialRefusal, v as appendSessionIdQuery, x as resolveDispatchRunIdentity, y as sessionHeaders } from "./interactive-controller-DqWnVf68.js";
|
|
3
3
|
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, v as parseResponseError, y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
4
4
|
import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
5
|
import { SandboxLines } from "./lines.js";
|
|
6
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
6
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DfWwveOy.js";
|
|
7
7
|
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, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, canonicalCandidateJson, exactAgentInteractiveSessionStart, sha256DigestSchema, terminalSessionUsable } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AgentInteractiveSessionControlClaimSchema as AgentInteractiveSessionControlClaimSchema$1, AgentInteractiveSessionPromptAcknowledgementSchema as AgentInteractiveSessionPromptAcknowledgementSchema$1, AgentInteractiveSessionRefSchema as AgentInteractiveSessionRefSchema$1, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema as AgentInteractiveSessionStopAcknowledgementSchema$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
@@ -6133,7 +6133,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6133
6133
|
get: () => this.egressGet(),
|
|
6134
6134
|
update: (policy) => this.egressUpdate(policy),
|
|
6135
6135
|
denials: (options) => this.egressDenials(options),
|
|
6136
|
-
activity: (options) => this.egressActivity(options)
|
|
6136
|
+
activity: (options) => this.egressActivity(options),
|
|
6137
|
+
usage: (options) => this.egressUsage(options)
|
|
6137
6138
|
};
|
|
6138
6139
|
}
|
|
6139
6140
|
/**
|
|
@@ -6238,6 +6239,43 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6238
6239
|
return denials;
|
|
6239
6240
|
}
|
|
6240
6241
|
/**
|
|
6242
|
+
* This sandbox's egress for one calendar month, from the billing meter. A
|
|
6243
|
+
* malformed answer is a typed `ServerError`, never a defaulted zero: a
|
|
6244
|
+
* caller budgeting on it must not read a broken reply as no usage.
|
|
6245
|
+
*/
|
|
6246
|
+
async egressUsage(options) {
|
|
6247
|
+
const month = options?.month;
|
|
6248
|
+
if (month !== void 0 && !/^\d{4}-(0[1-9]|1[0-2])$/.test(month)) throw new ValidationError(`egress usage month must be YYYY-MM, got ${month}`);
|
|
6249
|
+
const query = month === void 0 ? "" : `?month=${encodeURIComponent(month)}`;
|
|
6250
|
+
const response = await this.client.fetch(`/v1/sandboxes/${encodeURIComponent(this.id)}/egress/usage${query}`);
|
|
6251
|
+
if (!response.ok) throw await parseResponseError(response);
|
|
6252
|
+
let body;
|
|
6253
|
+
try {
|
|
6254
|
+
body = await response.json();
|
|
6255
|
+
} catch (cause) {
|
|
6256
|
+
const error = new ServerError("Egress usage response was malformed: body is not valid JSON", 502);
|
|
6257
|
+
error.cause = cause;
|
|
6258
|
+
throw error;
|
|
6259
|
+
}
|
|
6260
|
+
const usage = typeof body === "object" && body !== null && !Array.isArray(body) ? body.usage : void 0;
|
|
6261
|
+
const row = typeof usage === "object" && usage !== null && !Array.isArray(usage) ? usage : void 0;
|
|
6262
|
+
const count = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
6263
|
+
const usd = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
6264
|
+
if (!row || typeof row.sandboxId !== "string" || typeof row.month !== "string" || row.plan !== "free" && row.plan !== "pro" && row.plan !== "enterprise" || !count(row.bytes) || !(row.includedBytes === null || count(row.includedBytes)) || !count(row.overageBytes) || !usd(row.chargeUsd) || !usd(row.usdPerGb) || !count(row.accountBytes) || !(row.accountCapBytes === null || count(row.accountCapBytes))) throw new ServerError("Egress usage response was malformed: usage is not a month record", 502);
|
|
6265
|
+
return {
|
|
6266
|
+
sandboxId: row.sandboxId,
|
|
6267
|
+
month: row.month,
|
|
6268
|
+
plan: row.plan,
|
|
6269
|
+
bytes: row.bytes,
|
|
6270
|
+
includedBytes: row.includedBytes,
|
|
6271
|
+
overageBytes: row.overageBytes,
|
|
6272
|
+
chargeUsd: row.chargeUsd,
|
|
6273
|
+
usdPerGb: row.usdPerGb,
|
|
6274
|
+
accountBytes: row.accountBytes,
|
|
6275
|
+
accountCapBytes: row.accountCapBytes
|
|
6276
|
+
};
|
|
6277
|
+
}
|
|
6278
|
+
/**
|
|
6241
6279
|
* What the sandbox reached, and whether that is decidable.
|
|
6242
6280
|
*
|
|
6243
6281
|
* Every malformed answer leaves as a typed `ServerError` rather than a
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BMcIiB-I.js";
|
|
2
|
-
import { A as CommitTaskSessionOptions, Aa as
|
|
2
|
+
import { $i as SessionResultOptions, $r as SandboxFleetTraceBundle, A as CommitTaskSessionOptions, Aa as WaitForRolloutOptions, Bi as SentSessionMessage, C as BranchOptions, Ci as SandboxTerminalAttachOptions, Cn as ListMessagesOptions, Cr as SandboxDeleteAcknowledgement, D as CodeExecutionResult, E as CodeExecutionOptions, Et as FileSystem, Fi as SearchOptions, Ga as RawEvidenceDirectoryExport, H as CreateTaskSessionOptions, Ha as SandboxEnvRecovery, Hi as SessionEventStreamOptions, Hn as ProcessManager, In as PreviewLinkManager, Ji as SessionInterruptOptions, Jn as PromptResult, Ka as RawEvidenceExportOptions, Ki as SessionForkOptions, Kn as PromptInputPart, M as ConversationTurnOptions, Ma as WriteFileOptions, Mi as SandboxTraceOptions, Mt as FileWriteResult, N as ConversationTurnResult, Na as WriteManyFile, O as CodeLanguage, Oi as SandboxTerminals, Or as SandboxEvent, Pa as WriteManyOptions, Pi as SearchMatch, Pn as PermissionsManager, Q as DispatchedSession, Qt as ForkLookupOptions, Ri as SendSessionMessageOptions, Si as SandboxStatus, Sn as JsonValue, Sr as SandboxCreateReceipt, Ua as SandboxEnvRecoveryView, Ui as SessionExecutionInfo, V as CreateSessionOptions, Xa as WorkspaceImagePublishResult$1, Xi as SessionMessage, Xn as ProvisionResult, Xt as ForkCounts, Yi as SessionListOptions, Yn as ProvisionEvent, Z as DispatchPromptOptions, Za as InteractionResolutionAcknowledgement, Zi as SessionMessageAdmission, Zt as ForkIdempotency, _a as TeeAttestationOptions, _i as SandboxRuntimeCapabilities, _n as IntelligenceReport, _r as SSHCommandDescriptor, aa as SnapshotOptions, an as GitStatus, br as SandboxConnection, ca as StartupDiagnostics, cr as RestoreSnapshotOptions, d as BackendConfig, di as SandboxPortBinding, dn as GpuLeaseManager, fa as TaskSessionChanges, fr as RolloutOptions, gn as InstalledTool, gt as EventStreamOptions, ha as TaskSessionInfo, ia as SnapshotInfo, in as GitDiff, it as DriverInfo, j as CompletedTurnResult, ja as WorkspaceOperationLookup, jn as NetworkManager, ka as WaitForOptions, ki as SandboxTraceBundle, li as SandboxInfo, lr as ResumeOptions, mi as SandboxResourceUsage, mr as RolloutStartResult, nn as GitCommit, nt as DriveTurnOptions, oa as SnapshotResult, on as GpuLease, ot as DurablePlan, p as BackendManager, pa as TaskSessionCommitResult, pt as EgressManager, qi as SessionInfo, qn as PromptOptions, st as DurablePlanDecisionResult, ta as SnapshotDeleteAcknowledgement, tn as GitBranch, ur as Rollout, vi as SandboxRuntimeHealth, vn as IntelligenceReportBudget, vr as SSHCredentials, vt as ExecOptions, wa as TurnDriveResult, wr as SandboxDeleteOptions, xa as TeePublicKeyResponse, xn as IntelligenceReportWindow, ya as TeeAttestationResponse, yi as SandboxShape, yn as IntelligenceReportCompareTo, yt as ExecResult, zi as SendSessionMessageRequest } from "./types-BotBEROr.js";
|
|
3
3
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-B6bUr0hj.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-DRCfxOQz.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-ykaThYp6.js";
|
|
6
|
-
import { R as SandboxLines } from "./lines-
|
|
6
|
+
import { R as SandboxLines } from "./lines-DLwul_A9.js";
|
|
7
7
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -1521,6 +1521,12 @@ declare class SandboxInstance {
|
|
|
1521
1521
|
private egressGet;
|
|
1522
1522
|
private egressUpdate;
|
|
1523
1523
|
private egressDenials;
|
|
1524
|
+
/**
|
|
1525
|
+
* This sandbox's egress for one calendar month, from the billing meter. A
|
|
1526
|
+
* malformed answer is a typed `ServerError`, never a defaulted zero: a
|
|
1527
|
+
* caller budgeting on it must not read a broken reply as no usage.
|
|
1528
|
+
*/
|
|
1529
|
+
private egressUsage;
|
|
1524
1530
|
/**
|
|
1525
1531
|
* What the sandbox reached, and whether that is decidable.
|
|
1526
1532
|
*
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-59XBAwQK.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Ci2zR8my.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as readResponseJson } from "./errors-D1JIX7Jm.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-B-yuskS6.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-ChcSLv53.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -5975,6 +5975,40 @@ interface EgressManager {
|
|
|
5975
5975
|
activity(options?: {
|
|
5976
5976
|
limit?: number;
|
|
5977
5977
|
}): Promise<EgressActivityRecord>;
|
|
5978
|
+
/**
|
|
5979
|
+
* This sandbox's egress for one calendar month (UTC), as the billing meter
|
|
5980
|
+
* recorded it. Paid plans include `includedBytes` (2 TB) with each sandbox
|
|
5981
|
+
* per month, not pooled, and bill beyond it at `usdPerGb`. Free sandboxes
|
|
5982
|
+
* share the account's monthly cap (`accountCapBytes`, 100 GiB) and are
|
|
5983
|
+
* never charged; beyond it new sandboxes and prompts are refused.
|
|
5984
|
+
*
|
|
5985
|
+
* @param options.month - Calendar month as `YYYY-MM`; omit for the current
|
|
5986
|
+
* UTC month.
|
|
5987
|
+
*/
|
|
5988
|
+
usage(options?: {
|
|
5989
|
+
month?: string;
|
|
5990
|
+
}): Promise<SandboxEgressUsage>;
|
|
5991
|
+
}
|
|
5992
|
+
/** One sandbox's egress for one calendar month (UTC), from the billing meter. */
|
|
5993
|
+
interface SandboxEgressUsage {
|
|
5994
|
+
sandboxId: string;
|
|
5995
|
+
/** `YYYY-MM`, UTC. */
|
|
5996
|
+
month: string;
|
|
5997
|
+
plan: "free" | "pro" | "enterprise";
|
|
5998
|
+
/** Bytes this sandbox sent this month. */
|
|
5999
|
+
bytes: number;
|
|
6000
|
+
/** Egress included with this sandbox each month; null on Free. */
|
|
6001
|
+
includedBytes: number | null;
|
|
6002
|
+
/** Bytes the meter priced beyond the allowance. */
|
|
6003
|
+
overageBytes: number;
|
|
6004
|
+
/** USD the meter has charged or reserved for this sandbox this month. */
|
|
6005
|
+
chargeUsd: number;
|
|
6006
|
+
/** Price per decimal GB beyond the allowance; 0 on Free. */
|
|
6007
|
+
usdPerGb: number;
|
|
6008
|
+
/** The billing account's egress this month. */
|
|
6009
|
+
accountBytes: number;
|
|
6010
|
+
/** Free: the account's monthly cap, refused beyond it. Null on paid plans. */
|
|
6011
|
+
accountCapBytes: number | null;
|
|
5978
6012
|
}
|
|
5979
6013
|
/**
|
|
5980
6014
|
* Port exposure and runtime network state for a sandbox.
|
|
@@ -7366,4 +7400,4 @@ interface CodeExecutionOptions {
|
|
|
7366
7400
|
idempotencyKey?: string;
|
|
7367
7401
|
}
|
|
7368
7402
|
//#endregion
|
|
7369
|
-
export { DownloadOptions as $,
|
|
7403
|
+
export { DownloadOptions as $, BatchBackendStats as $a, SessionResultOptions as $i, PublicTemplateInfo as $n, SandboxFleetTraceBundle as $r, GPU_LEASE_PROVIDER_NAMES as $t, CommitTaskSessionOptions as A, WaitForRolloutOptions as Aa, SandboxTraceEvent as Ai, NetworkConfig as An, SandboxFleetAgentSpec as Ar, FileUsageOptions as At, CreateSandboxOptions as B, ManagedProcessSpec as Ba, SentSessionMessage as Bi, ProcessListOptions as Bn, SandboxFleetMachine as Br, FleetDispatchStreamOptions as Bt, BranchOptions as C, TokenUsage as Ca, SandboxTerminalAttachOptions as Ci, ListMessagesOptions as Cn, SandboxDeleteAcknowledgement as Cr, FileReadError as Ct, CodeExecutionResult as D, UploadProgress as Da, SandboxTerminalRequestOptions as Di, MAX_EGRESS_DENIALS_LIMIT as Dn, SandboxEnvironment as Dr, FileTreeFile as Dt, CodeExecutionOptions as E, UploadOptions as Ea, SandboxTerminalManager as Ei, ListSandboxOptions as En, SandboxEgressUsage as Er, FileSystem as Et, CreateIntelligenceReportOptions as F, ManagedProcessClient as Fa, SearchOptions as Fi, PreviewLinkInfo as Fn, SandboxFleetDispatchResponse as Fr, FleetAgentResult as Ft, DeleteMatchingSandboxesFilter as G, RawEvidenceDirectoryExport as Ga, SessionFailureReason as Gi, ProcessStatus as Gn, SandboxFleetManifestMachine as Gr, FleetMachineId as Gt, CreateTaskSessionOptions as H, SandboxEnvRecovery as Ha, SessionEventStreamOptions as Hi, ProcessManager as Hn, SandboxFleetMachineRecord as Hr, FleetDriveTurnRequest as Ht, CreateRequestOptions as I, ManagedProcessJobs as Ia, SecretInfo as Ii, PreviewLinkManager as In, SandboxFleetDriverCapability as Ir, FleetAgentRunStatus as It, DeleteOptions as J, RawEvidencePayloadFile as Ja, SessionInterruptOptions as Ji, PromptResult as Jn, SandboxFleetPlacement as Jr, FleetRunEvent as Jt, DeleteMatchingSandboxesOptions as K, RawEvidenceExportOptions as Ka, SessionForkOptions as Ki, PromptInputPart as Kn, SandboxFleetOperationsSummary as Kr, FleetPromptDispatchOptions as Kt, CreateSandboxFleetOptions as L, ManagedProcessOptions as La, SecretsManager as Li, PreviewLinkWaitOptions as Ln, SandboxFleetDriverTimings as Lr, FleetDispatchCancelResult as Lt, ConversationTurnOptions as M, WriteFileOptions as Ma, SandboxTraceOptions as Mi, NonHostAgentDriverConfig as Mn, SandboxFleetArtifactSpec as Mr, FileWriteResult as Mt, ConversationTurnResult as N, WriteManyFile as Na, SandboxUser as Ni, PermissionLevel as Nn, SandboxFleetCostEstimate as Nr, FleetAgentId as Nt, CodeLanguage as O, UsageInfo as Oa, SandboxTerminals as Oi, McpServerConfig as On, SandboxEvent as Or, FileTreeOptions as Ot, CreateGpuLeaseOptions as P, WriteManyOptions as Pa, SearchMatch as Pi, PermissionsManager as Pn, SandboxFleetDispatchFailureClass as Pr, FleetAgentPlacement as Pt, DispatchedSession as Q, PublicBatchRunRequest as Qa, SessionMessageInputPart as Qi, ProvisionStep as Qn, SandboxFleetToken as Qr, ForkLookupOptions as Qt, CreateSandboxFleetTokenOptions as R, ManagedProcessRecord as Ra, SendSessionMessageOptions as Ri, Process as Rn, SandboxFleetInfo as Rr, FleetDispatchResultBuffer as Rt, BatchTaskResult as S, TokenRefreshHandler as Sa, SandboxStatus as Si, JsonValue as Sn, SandboxCreateReceipt as Sr, FileReadBatchResult as St, ChunkedUploadResult as T, UpdateUserOptions as Ta, SandboxTerminalInfo as Ti, ListSandboxFleetOptions as Tn, SandboxDeleteOutcome as Tr, FileRenameResult as Tt, DeleteMatchingSandboxOutcome as U, SandboxEnvRecoveryView as Ua, SessionExecutionInfo as Ui, ProcessSignal as Un, SandboxFleetMachineSpec as Ur, FleetExecDispatchOptions as Ut, CreateSessionOptions as V, ManagedProcessState as Va, SessionBackendCredentials as Vi, ProcessLogEntry as Vn, SandboxFleetMachineMeteredUsage as Vr, FleetDriveTurnOutcome as Vt, DeleteMatchingSandboxResult as W, RawEvidenceArchiveManifest as Wa, SessionExecutionStatus as Wi, ProcessSpawnOptions as Wn, SandboxFleetManifest as Wr, FleetExecDispatchResult as Wt, DirectoryPermission as X, WorkspaceImagePublishResult as Xa, SessionMessage as Xi, ProvisionResult as Xn, SandboxFleetProfileRef as Xr, ForkCounts as Xt, DevServerInfo as Y, RawEvidenceRecordsFile as Ya, SessionListOptions as Yi, ProvisionEvent as Yn, SandboxFleetPolicy as Yr, FleetRunOptions as Yt, DispatchPromptOptions as Z, InteractionResolutionAcknowledgement as Za, SessionMessageAdmission as Zi, ProvisionStatus as Zn, SandboxFleetSpend as Zr, ForkIdempotency as Zt, BatchBackend as _, TeeAttestationOptions as _a, SandboxRuntimeCapabilities as _i, IntelligenceReport as _n, SSHCommandDescriptor as _r, ExactProcessSpawnOptions as _t, AgentQuestionRequest as a, SnapshotOptions as aa, SandboxFleetWorkspaceReconcileResult as ai, GitStatus as an, BackendType as ao, ReconcileSandboxFleetsOptions as ar, DriverType as at, BatchRunRequest as b, TeePublicKey as ba, SandboxShapePreset as bi, IntelligenceReportSubjectType as bn, SandboxConnection as br, FileInfo as bt, AttachGpuLeaseOptions as c, StartupDiagnostics as ca, SandboxIdentity as ci, GpuLeaseCommandResult as cn, RestoreSnapshotOptions as cr, DurablePlanSnapshot as ct, BackendConfig as d, SubscriptionInfo as da, SandboxPortBinding as di, GpuLeaseManager as dn, RolloutChildResult as dr, EffectiveBackendSource as dt, SessionStatus as ea, SandboxFleetTraceEvent as ei, GitAuth as en, BatchEvent as eo, PublicTemplateVersionInfo as er, DownloadProgress as et, BackendInfo as f, TaskSessionChanges as fa, SandboxPortPreviewLink as fi, GpuLeaseProviderName as fn, RolloutOptions as fr, EgressDenial as ft, BackendStatus as g, TaskSessionProfile as ga, SandboxRunGeneration as gi, InstalledTool as gn, RolloutTurnPart as gr, EventStreamOptions as gt, BackendRuntimeConfigUpdate as h, TaskSessionInfo as ha, SandboxResources as hi, HostAgentRuntimeBackend as hn, RolloutStatus as hr, EnsureDevServerOptions as ht, AgentApprovalRequirement as i, SnapshotInfo as ia, SandboxFleetWorkspace as ii, GitDiff as in, ALL_BACKEND_TYPES as io, ReapExpiredSandboxFleetsResult as ir, DriverInfo as it, CompletedTurnResult as j, WorkspaceOperationLookup as ja, SandboxTraceExport as ji, NetworkManager as jn, SandboxFleetArtifact as jr, FileUsageResult as jt, CodeResultPart as k, WaitForOptions as ka, SandboxTraceBundle as ki, MkdirOptions as kn, SandboxFleetAgent as kr, FileTreeResult as kt, AttachSandboxFleetMachineOptions as l, StartupOperation as la, SandboxInfo as li, GpuLeaseExecOptions as ln, ResumeOptions as lr, EffectiveBackend as lt, BackendMcpServerStatus as m, TaskSessionFileChange as ma, SandboxResourceUsage as mi, HostAgentDriverConfig as mn, RolloutStartResult as mr, EgressPolicy as mt, AccessPolicyRule as n, SnapshotDeleteOutcome as na, SandboxFleetTraceOptions as ni, GitCommit as nn, BatchSidecarGroup as no, PublishPublicTemplateVersionOptions as nr, DriveTurnOptions as nt, AgentRunStatus as o, SnapshotResult as oa, SandboxFleetWorkspaceRestoreResult as oi, GpuLease as on, parseBackendType as oo, ReconcileSandboxFleetsResult as or, DurablePlan as ot, BackendManager as p, TaskSessionCommitResult as pa, SandboxRemovalState as pi, GpuLeaseStatus as pn, RolloutScorer as pr, EgressManager as pt, DeleteMatchingSandboxesResult as q, RawEvidenceNativeFile as qa, SessionInfo as qi, PromptOptions as qn, SandboxFleetParent as qr, FleetPromptDispatchResult as qt, AddUserOptions as r, SnapshotIdempotency as ra, SandboxFleetUsage as ri, GitConfig as rn, BatchTaskUsage as ro, ReapExpiredSandboxFleetsOptions as rr, DriverConfig as rt, AgentToolInvocation as s, SshKeysManager as sa, SandboxFleetWorkspaceSnapshotResult as si, GpuLeaseBilling as sn, RenameOptions as sr, DurablePlanDecisionResult as st, AcceleratorKind as t, SnapshotDeleteAcknowledgement as ta, SandboxFleetTraceExport as ti, GitBranch as tn, BatchEventDataMap as to, PublishPublicTemplateOptions as tr, DownloadResult as tt, BackendCapabilities as u, StorageConfig as ua, SandboxIntelligenceEnvelope as ui, GpuLeaseExecResult as un, Rollout as ur, EffectiveBackendProfile as ut, BatchResult as v, TeeAttestationReport as va, SandboxRuntimeHealth as vi, IntelligenceReportBudget as vn, SSHCredentials as vr, ExecOptions as vt, ChunkedUploadOptions as w, TurnDriveResult as wa, SandboxTerminalCreateOptions as wi, ListOptions as wn, SandboxDeleteOptions as wr, FileReadResult as wt, BatchTask as x, TeePublicKeyResponse as xa, SandboxShapesInfo as xi, IntelligenceReportWindow as xn, SandboxCreateOutcome as xr, FileReadBatchOptions as xt, BatchRunOptions as y, TeeAttestationResponse as ya, SandboxShape as yi, IntelligenceReportCompareTo as yn, SandboxConfig as yr, ExecResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, ManagedProcessResumeOptions as za, SendSessionMessageRequest as zi, ProcessInfo as zn, SandboxFleetIntelligenceEnvelope as zr, FleetDispatchResultBufferOptions as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.19-develop.20261006230654.7041e93",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"url": "https://github.com/tangle-network/agent-dev-container/issues"
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@tangle-network/agent-core": "^0.10.
|
|
109
|
-
"@tangle-network/agent-interface": "^
|
|
108
|
+
"@tangle-network/agent-core": "^0.10.3",
|
|
109
|
+
"@tangle-network/agent-interface": "^3.0.0",
|
|
110
110
|
"tar-stream": "3.2.1",
|
|
111
111
|
"zod": "4.6.5"
|
|
112
112
|
},
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
"ws": "^8.20.0",
|
|
152
152
|
"yjs": "13.6.30",
|
|
153
153
|
"@products/sandbox-test-utils": "0.0.0",
|
|
154
|
-
"@tangle-network/agent-profile-materialize": "0.20.9",
|
|
155
|
-
"@tangle-network/cli-agent-registry": "0.5.0",
|
|
156
154
|
"@repo/shared": "0.0.0",
|
|
157
|
-
"@tangle-network/
|
|
158
|
-
"@tangle-network/
|
|
155
|
+
"@tangle-network/agent-profile-materialize": "0.21.0",
|
|
156
|
+
"@tangle-network/cli-agent-registry": "0.6.0",
|
|
157
|
+
"@tangle-network/runtime-contracts": "0.15.0",
|
|
158
|
+
"@tangle-network/sdk": "4.0.0",
|
|
159
159
|
"@tangle-network/sse-core": "0.0.0"
|
|
160
160
|
},
|
|
161
161
|
"scripts": {
|