@tangle-network/sandbox 0.12.2-develop.20260726034003.c2b79f5 → 0.13.0-develop.20260726072320.8402d7e
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 +8 -8
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-BjkNkFl7.d.ts → client-BDejoJQR.d.ts} +2 -2
- package/dist/{client-B1cU2xzD.js → client-DS8qSxCp.js} +17 -109
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-DHhxHd85.d.ts → index-DwjU-4s_.d.ts} +2 -2
- package/dist/index.d.ts +9 -42
- package/dist/index.js +95 -19
- package/dist/{runtime-api-XhAv6YiH.js → runtime-api-BFtk4_HK.js} +1 -11
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-eH5LS4U_.d.ts → sandbox-CxflW4z4.d.ts} +11 -36
- package/dist/{sandbox-D77F7Yja.js → sandbox-DXuuroty.js} +10 -41
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DpxmcNGp.js → tangle-46aLycNc.js} +2 -2
- package/dist/{types-Dph9_dE4.d.ts → types-DFYV3JSL.d.ts} +34 -221
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ const client = new Sandbox({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
const box = await client.create({
|
|
29
|
-
|
|
29
|
+
environment: "universal",
|
|
30
30
|
name: "agent-smoke",
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -101,7 +101,7 @@ const client = new Sandbox({
|
|
|
101
101
|
// Create a sandbox
|
|
102
102
|
const box = await client.create({
|
|
103
103
|
name: "my-project",
|
|
104
|
-
|
|
104
|
+
environment: "node:20",
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
// Execute commands
|
|
@@ -135,7 +135,7 @@ const image = await Image.create("python:3.12-slim")
|
|
|
135
135
|
.addCommands(["python - <<'PY'\nprint('image ready')\nPY"])
|
|
136
136
|
.build({ client });
|
|
137
137
|
|
|
138
|
-
const box = await client.create({
|
|
138
|
+
const box = await client.create({ environment: image.id });
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
## Stream durability is platform-managed — do not build your own
|
|
@@ -417,7 +417,7 @@ A sandbox is an isolated dev container with:
|
|
|
417
417
|
```typescript
|
|
418
418
|
const box = await client.create({
|
|
419
419
|
name: "my-sandbox",
|
|
420
|
-
|
|
420
|
+
environment: "python:3.12",
|
|
421
421
|
env: { DEBUG: "true" },
|
|
422
422
|
sshEnabled: true,
|
|
423
423
|
maxLifetimeSeconds: 7200, // 2 hours
|
|
@@ -460,7 +460,7 @@ Create a new sandbox.
|
|
|
460
460
|
```typescript
|
|
461
461
|
const box = await client.create({
|
|
462
462
|
name: "my-project",
|
|
463
|
-
|
|
463
|
+
environment: "node:20", // or "typescript" for a named environment
|
|
464
464
|
agentIdentifier: "my-agent", // agent to run
|
|
465
465
|
env: { NODE_ENV: "development" },
|
|
466
466
|
sshEnabled: true,
|
|
@@ -1070,7 +1070,7 @@ There are two creation shapes. Use `create` when every machine is symmetric, and
|
|
|
1070
1070
|
// Symmetric fleet
|
|
1071
1071
|
const fleet = await client.fleets.create({
|
|
1072
1072
|
defaults: {
|
|
1073
|
-
|
|
1073
|
+
environment: "python:3.12",
|
|
1074
1074
|
maxLifetimeSeconds: 60 * 60,
|
|
1075
1075
|
},
|
|
1076
1076
|
policy: {
|
|
@@ -1092,7 +1092,7 @@ const fleet = await client.fleets.create({
|
|
|
1092
1092
|
|
|
1093
1093
|
// Coordinator + workers
|
|
1094
1094
|
const cluster = await client.fleets.createWithCoordinator({
|
|
1095
|
-
defaults: {
|
|
1095
|
+
defaults: { environment: "python:3.12" },
|
|
1096
1096
|
coordinator: { resources: { cpuCores: 1, memoryMB: 1024 } },
|
|
1097
1097
|
workers: [
|
|
1098
1098
|
{ machineId: "worker-1", resources: { cpuCores: 2, memoryMB: 4096 } },
|
|
@@ -1191,7 +1191,7 @@ const token = await fleet.createToken({ expiresInSeconds: 3600 });
|
|
|
1191
1191
|
|
|
1192
1192
|
```typescript
|
|
1193
1193
|
const preEstimate = await client.fleets.estimateCost({
|
|
1194
|
-
defaults: {
|
|
1194
|
+
defaults: { environment: "python:3.12" },
|
|
1195
1195
|
policy: { maxMachines: 4, maxSpendUsd: 5 },
|
|
1196
1196
|
machines: [
|
|
1197
1197
|
{ machineId: "worker-1", resources: { cpuCores: 2, memoryMB: 4096 } },
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CodeExecutionResult, E as CodeResultPart, S as CodeExecutionOptions, w as CodeLanguage } from "../types-
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { C as CodeExecutionResult, E as CodeResultPart, S as CodeExecutionOptions, w as CodeLanguage } from "../types-DFYV3JSL.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-CxflW4z4.js";
|
|
3
|
+
import { i as SandboxClient } from "../client-BDejoJQR.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $n as SandboxFleetCostEstimate, $t as ListSandboxFleetOptions, A as CreateIntelligenceReportOptions, Ai as TokenRefreshHandler, An as ReapExpiredSandboxFleetsOptions, Cr as SandboxFleetWorkspaceSnapshotResult, Ct as FleetExecDispatchResult, Dn as PublicTemplateVersionInfo, En as PublicTemplateInfo, Et as FleetPromptDispatchResult, F as CreateSandboxOptions, Gt as IntelligenceReport, Ii as UsageInfo, Kt as IntelligenceReportBudget, M as CreateSandboxFleetOptions, Mn as ReconcileSandboxFleetsOptions, N as CreateSandboxFleetTokenOptions, Nn as ReconcileSandboxFleetsResult, On as PublishPublicTemplateOptions, P as CreateSandboxFleetWithCoordinatorOptions, Qn as SandboxFleetArtifactSpec, Qr as SecretsManager, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, Ui as BatchEvent, Yn as SandboxEnvironment, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifact, _ as BatchTask, _i as SubscriptionInfo, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptOptions, bt as FleetDriveTurnOutcome, cr as SandboxFleetMachineRecord, en as ListSandboxOptions, fr as SandboxFleetOperationsSummary, g as BatchRunRequest, gt as FleetDispatchCancelResult, h as BatchRunOptions, hr as SandboxFleetTraceBundle, ir as SandboxFleetInfo, j as CreateRequestOptions, jn as ReapExpiredSandboxFleetsResult, kn as PublishPublicTemplateVersionOptions, kr as SandboxProfileSummary, m as BatchResult, mr as SandboxFleetToken, nr as SandboxFleetDriverCapability, nt as ExecResult, p as BatchOptions, pi as SshKeysManager, qn as SandboxClientConfig, qt as IntelligenceReportCompareTo, tr as SandboxFleetDispatchResponse, tt as ExecOptions, ur as SandboxFleetManifest, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, wr as SandboxIdentity, wt as FleetMachineId, xn as PromptResult, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, yn as PromptInputPart, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions } from "./types-DFYV3JSL.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-CxflW4z4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -1,92 +1,6 @@
|
|
|
1
|
-
import { c as encodeTextForWire, i as SANDBOX_PROXY_REQUEST_MAX_BYTES, o as combineAbortSignals, s as encodePromptForWire } from "./runtime-api-
|
|
1
|
+
import { c as encodeTextForWire, i as SANDBOX_PROXY_REQUEST_MAX_BYTES, o as combineAbortSignals, s as encodePromptForWire } from "./runtime-api-BFtk4_HK.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, o as PartialFailureError, p as parseErrorResponse, t as AuthError } from "./errors-D9fFOWX9.js";
|
|
3
|
-
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-
|
|
4
|
-
//#region src/resources.ts
|
|
5
|
-
/**
|
|
6
|
-
* Compute tiers, ordered smallest → largest. Defined HERE (not imported from
|
|
7
|
-
* `@tangle-network/agent-interface`) so the SDK is self-contained: a consumer
|
|
8
|
-
* that type-checks the SDK SOURCE never has to resolve a cross-package export
|
|
9
|
-
* for the size vocabulary. `agent-interface` keeps its own identical copy for
|
|
10
|
-
* `Capability.recommendedSize`; a platform test guards the two against drift.
|
|
11
|
-
*/
|
|
12
|
-
const SANDBOX_SIZE_PRESET_NAMES = [
|
|
13
|
-
"nano",
|
|
14
|
-
"small",
|
|
15
|
-
"medium",
|
|
16
|
-
"large"
|
|
17
|
-
];
|
|
18
|
-
/**
|
|
19
|
-
* The concrete compute behind each {@link SandboxSizePreset} — the SINGLE source
|
|
20
|
-
* of truth for what a tier means. `@tangle-network/agent-interface` owns the
|
|
21
|
-
* tier NAMES (so the lowest layer can reference a size); this owns the numbers.
|
|
22
|
-
*
|
|
23
|
-
* Values stay within the sandbox-api default plan caps (8 vCPU / 16 GB / 100 GB)
|
|
24
|
-
* and keep memory at or above the driver's firecracker-snapshot floor (1536 MB),
|
|
25
|
-
* so a requested tier is never silently bumped. `diskGB` is in gigabytes;
|
|
26
|
-
* `memoryMB` in megabytes. The server still clamps every request to the owner's
|
|
27
|
-
* actual plan limits — these are the unclamped tier definitions, not guarantees.
|
|
28
|
-
*/
|
|
29
|
-
const SANDBOX_SIZE_PRESETS = {
|
|
30
|
-
nano: {
|
|
31
|
-
cpuCores: 1,
|
|
32
|
-
memoryMB: 2048,
|
|
33
|
-
diskGB: 5
|
|
34
|
-
},
|
|
35
|
-
small: {
|
|
36
|
-
cpuCores: 2,
|
|
37
|
-
memoryMB: 4096,
|
|
38
|
-
diskGB: 10
|
|
39
|
-
},
|
|
40
|
-
medium: {
|
|
41
|
-
cpuCores: 4,
|
|
42
|
-
memoryMB: 8192,
|
|
43
|
-
diskGB: 20
|
|
44
|
-
},
|
|
45
|
-
large: {
|
|
46
|
-
cpuCores: 8,
|
|
47
|
-
memoryMB: 16384,
|
|
48
|
-
diskGB: 50
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Default tier when a caller provisions without picking a size. The smallest
|
|
53
|
-
* tier that comfortably runs an agent harness (opencode + a repo clone + a
|
|
54
|
-
* build) — deliberately NOT a maxed box, so a thin task is cheap by default and
|
|
55
|
-
* a heavy one opts up explicitly.
|
|
56
|
-
*/
|
|
57
|
-
const DEFAULT_SANDBOX_SIZE = "small";
|
|
58
|
-
/** The resources for a named tier, as a fresh object (never the shared preset).
|
|
59
|
-
* Fails loud on an unknown key rather than spreading `undefined` into an empty
|
|
60
|
-
* resources object — a silent zero would send no compute request downstream. */
|
|
61
|
-
function sandboxResourcesForSize(size) {
|
|
62
|
-
const preset = SANDBOX_SIZE_PRESETS[size];
|
|
63
|
-
if (!preset) throw new Error(`sandboxResourcesForSize: unknown size preset '${size}' (expected one of ${SANDBOX_SIZE_PRESET_NAMES.join(", ")})`);
|
|
64
|
-
return { ...preset };
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Resolve a caller's size intent to concrete {@link SandboxResources}. Raw
|
|
68
|
-
* `resources` win (an explicit cpu/memory request is authoritative); else a
|
|
69
|
-
* named `size` expands to its preset; else `undefined` (the caller applies its
|
|
70
|
-
* own default). Raw and preset are intentionally exclusive at the schema layer —
|
|
71
|
-
* if both arrive here, the explicit numbers take precedence rather than being
|
|
72
|
-
* silently merged.
|
|
73
|
-
*/
|
|
74
|
-
function resolveSandboxResources(opts) {
|
|
75
|
-
if (opts.resources) return opts.resources;
|
|
76
|
-
if (opts.size) return sandboxResourcesForSize(opts.size);
|
|
77
|
-
}
|
|
78
|
-
function normalizeSandboxResources(resources, driver) {
|
|
79
|
-
const legacyAccelerator = driver?.gpuRequired || driver?.gpuType || driver?.gpuCount ? {
|
|
80
|
-
kind: driver.gpuType ?? "gpu",
|
|
81
|
-
count: driver.gpuCount ?? 1
|
|
82
|
-
} : void 0;
|
|
83
|
-
if (!legacyAccelerator) return resources;
|
|
84
|
-
return {
|
|
85
|
-
...resources,
|
|
86
|
-
accelerator: resources?.accelerator ?? legacyAccelerator
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-DXuuroty.js";
|
|
90
4
|
//#region src/fleet.ts
|
|
91
5
|
const FLEET_ID_META = "tangle.fleet.id";
|
|
92
6
|
const MACHINE_ID_META = "tangle.fleet.machine_id";
|
|
@@ -143,13 +57,14 @@ function mergeCreateOptions(defaults, machine) {
|
|
|
143
57
|
} : void 0;
|
|
144
58
|
const driver = machine.driver ?? defaults?.driver;
|
|
145
59
|
const gpuLease = mergeGpuLeaseOptions(defaults?.gpuLease, machine.gpuLease);
|
|
60
|
+
const resources = defaults?.resources || machine.resources ? {
|
|
61
|
+
...defaults?.resources,
|
|
62
|
+
...machine.resources
|
|
63
|
+
} : void 0;
|
|
146
64
|
return {
|
|
147
65
|
...defaults,
|
|
148
66
|
...rest,
|
|
149
|
-
resources
|
|
150
|
-
...defaults?.resources,
|
|
151
|
-
...machine.resources
|
|
152
|
-
}, driver),
|
|
67
|
+
resources,
|
|
153
68
|
env: {
|
|
154
69
|
...defaults?.env,
|
|
155
70
|
...machine.env
|
|
@@ -212,8 +127,8 @@ function assertPolicy(machines, defaults, policy) {
|
|
|
212
127
|
function assertMachineDescriptorPolicy(machineId, options, policy) {
|
|
213
128
|
const driverType = options.driver?.type;
|
|
214
129
|
if (policy?.allowedDrivers && driverType && !policy.allowedDrivers.includes(driverType)) throw new ValidationError(`Fleet machine '${machineId}' requested driver '${driverType}' outside policy.allowedDrivers`, { "policy.allowedDrivers": "exceeded" });
|
|
215
|
-
const
|
|
216
|
-
if (policy?.allowedImages &&
|
|
130
|
+
const environment = options.environment;
|
|
131
|
+
if (policy?.allowedImages && environment && !policy.allowedImages.includes(environment)) throw new ValidationError(`Fleet machine '${machineId}' requested environment '${environment}' outside policy.allowedImages`, { "policy.allowedImages": "exceeded" });
|
|
217
132
|
const templateId = options.templateId ?? options.publicTemplateId;
|
|
218
133
|
if (policy?.allowedTemplateIds && templateId && !policy.allowedTemplateIds.includes(templateId)) throw new ValidationError(`Fleet machine '${machineId}' requested template '${templateId}' outside policy.allowedTemplateIds`, { "policy.allowedTemplateIds": "exceeded" });
|
|
219
134
|
if (policy?.allowAccelerators === false && (options.resources?.accelerator?.count ?? (options.resources?.accelerator ? 1 : 0)) > 0) throw new ValidationError(`Fleet machine '${machineId}' requested accelerators but policy.allowAccelerators is false`, { "policy.allowAccelerators": "exceeded" });
|
|
@@ -957,7 +872,6 @@ function getMachineDescriptor(options, machineId) {
|
|
|
957
872
|
const merged = mergeCreateOptions(options.defaults, spec);
|
|
958
873
|
return {
|
|
959
874
|
driverType: merged.driver?.type,
|
|
960
|
-
image: merged.image,
|
|
961
875
|
environment: merged.environment,
|
|
962
876
|
templateId: merged.templateId,
|
|
963
877
|
publicTemplateId: merged.publicTemplateId,
|
|
@@ -1722,7 +1636,7 @@ var SandboxClient = class {
|
|
|
1722
1636
|
sparse: options.git.sparse,
|
|
1723
1637
|
auth: options.git.auth
|
|
1724
1638
|
} : void 0;
|
|
1725
|
-
const
|
|
1639
|
+
const environment = options?.environment;
|
|
1726
1640
|
const backend = await hydrateLocalCliBackendAuth(options?.backend, this.baseUrl, this.trustLocalCliAuth);
|
|
1727
1641
|
const resolvedBackend = backend ? {
|
|
1728
1642
|
...backend,
|
|
@@ -1736,14 +1650,14 @@ var SandboxClient = class {
|
|
|
1736
1650
|
let handleBackend = resolvedBackend;
|
|
1737
1651
|
let deferredProfileForPriming;
|
|
1738
1652
|
if (resolvedBackend?.profile && typeof resolvedBackend.profile === "object") {
|
|
1739
|
-
const
|
|
1740
|
-
let handleProfile =
|
|
1653
|
+
const profile = resolvedBackend.profile;
|
|
1654
|
+
let handleProfile = profile;
|
|
1741
1655
|
if (autoMaterializeProfileFiles) {
|
|
1742
|
-
const split = splitInlineProfileFileMounts(
|
|
1656
|
+
const split = splitInlineProfileFileMounts(profile);
|
|
1743
1657
|
deferredProfileFiles = split.deferredFiles;
|
|
1744
1658
|
handleProfile = split.leanProfile;
|
|
1745
1659
|
if (deferredProfileFiles.length > 0) {
|
|
1746
|
-
profileFilesFailOnError =
|
|
1660
|
+
profileFilesFailOnError = profile.resources?.failOnError !== false;
|
|
1747
1661
|
if (profileFilesFailOnError) validateDeferredProfileFileMounts(deferredProfileFiles);
|
|
1748
1662
|
}
|
|
1749
1663
|
}
|
|
@@ -1763,23 +1677,17 @@ var SandboxClient = class {
|
|
|
1763
1677
|
}
|
|
1764
1678
|
}
|
|
1765
1679
|
}
|
|
1766
|
-
const resources =
|
|
1680
|
+
const resources = options?.resources;
|
|
1767
1681
|
const postDeadline = AbortSignal.timeout(timeoutMs);
|
|
1768
1682
|
const postSignal = requestOptions?.signal ? combineAbortSignals([requestOptions.signal, postDeadline]) : postDeadline;
|
|
1769
1683
|
const createRequestBody = JSON.stringify({
|
|
1770
1684
|
name: options?.name,
|
|
1771
|
-
...
|
|
1772
|
-
environment: resolvedEnvironment,
|
|
1773
|
-
image: resolvedEnvironment
|
|
1774
|
-
} : {},
|
|
1685
|
+
...environment !== void 0 ? { environment } : {},
|
|
1775
1686
|
git,
|
|
1776
|
-
tools: options?.tools,
|
|
1777
1687
|
bare: options?.bare,
|
|
1778
1688
|
agent: options?.agent,
|
|
1779
|
-
...options?.publicEdge === false ? { publicEdge: false } : {},
|
|
1780
1689
|
driver: options?.driver,
|
|
1781
1690
|
backend: requestBackend,
|
|
1782
|
-
permissions: options?.permissions,
|
|
1783
1691
|
env: options?.env,
|
|
1784
1692
|
resources,
|
|
1785
1693
|
gpuLease: options?.gpuLease,
|
|
@@ -2795,4 +2703,4 @@ var TeamsClient = class {
|
|
|
2795
2703
|
}
|
|
2796
2704
|
};
|
|
2797
2705
|
//#endregion
|
|
2798
|
-
export { splitInlineProfileSkills as a, SandboxFleetClient as c,
|
|
2706
|
+
export { splitInlineProfileSkills as a, SandboxFleetClient as c, splitInlineProfileFileMounts as i, SandboxClient as n, validateDeferredProfileFileMounts as o, materializeProfileFileMounts as r, SandboxFleet as s, IntelligenceClient as t };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
3
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { F as CreateSandboxOptions, Fr as SandboxStatus, Tr as SandboxInfo, in as NetworkConfig, ln as PreviewLinkInfo, nt as ExecResult, qn as SandboxClientConfig, tt as ExecOptions, un as PreviewLinkManager } from "./types-DFYV3JSL.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-CxflW4z4.js";
|
|
3
|
+
import { i as SandboxClient } from "./client-BDejoJQR.js";
|
|
4
4
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-C8HMx78o.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, QuotaError, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
3
|
-
import { n as SandboxClient } from "./client-
|
|
2
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-DXuuroty.js";
|
|
3
|
+
import { n as SandboxClient } from "./client-DS8qSxCp.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as CreateSandboxOptions } from "./types-
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { F as CreateSandboxOptions } from "./types-DFYV3JSL.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-CxflW4z4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $i as
|
|
2
|
-
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as EventStreamOptions, $i as TerminalStreamHandlers, $n as SandboxFleetCostEstimate, $r as SendSessionMessageOptions, $t as ListSandboxFleetOptions, A as CreateIntelligenceReportOptions, Ai as TokenRefreshHandler, An as ReapExpiredSandboxFleetsOptions, Ar as SandboxResourceUsage, At as GitCommit, B as DirectoryPermission, Bi as WriteManyFile, Bn as RolloutScorer, Br as SandboxTerminalRequestOptions, Bt as GpuLeaseProviderName, Ci as TaskSessionInfo, Cn as ProvisionResult, Cr as SandboxFleetWorkspaceSnapshotResult, D as CommitTaskSessionOptions, Di as TeeAttestationResponse, Dn as PublicTemplateVersionInfo, Dr as SandboxPortBinding, Dt as GPU_LEASE_PROVIDER_NAMES, Ei as TeeAttestationReport, En as PublicTemplateInfo, Er as SandboxIntelligenceEnvelope, F as CreateSandboxOptions, Fi as UploadProgress, Fr as SandboxStatus, Ft as GpuLeaseBilling, G as DriveTurnOptions, Gi as BatchSidecarGroup, Gn as SSHCommandDescriptor, Gr as SandboxTraceOptions, Gt as IntelligenceReport, H as DispatchedSession, Hi as BatchBackendStats, Hn as RolloutStatus, Hr as SandboxTraceBundle, Ht as HostAgentDriverConfig, I as CreateSessionOptions, Ii as UsageInfo, Ir as SandboxTerminalAttachOptions, It as GpuLeaseCommandResult, J as DriverType, Ji as TerminalExitInfo, Jn as SandboxConnection, Jr as ScopedTokenScope, Jt as IntelligenceReportSubjectType, K as DriverConfig, Ki as BatchTaskUsage, Kn as SSHCredentials, Kr as SandboxUser, Kt as IntelligenceReportBudget, L as CreateTaskSessionOptions, Li as WaitForOptions, Ln as Rollout, Lr as SandboxTerminalCreateOptions, Lt as GpuLeaseExecOptions, M as CreateSandboxFleetOptions, Mi as TurnDriveResult, Mn as ReconcileSandboxFleetsOptions, Mr as SandboxRuntimeHealth, Mt as GitDiff, Ni as UpdateUserOptions, Nn as ReconcileSandboxFleetsResult, Nr as SandboxRuntimeProfile, Nt as GitStatus, O as CompletedTurnResult, Oi as TeePublicKey, On as PublishPublicTemplateOptions, Or as SandboxPortPreviewLink, Ot as GitAuth, P as CreateSandboxFleetWithCoordinatorOptions, Pi as UploadOptions, Pn as RenameOptions, Pr as SandboxRuntimeProfileList, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as TerminalStreamError, Qn as SandboxFleetArtifactSpec, Qr as SecretsManager, Qt as ListOptions, R as DeleteOptions, Ri as WaitForRolloutOptions, Rn as RolloutChildResult, Rr as SandboxTerminalInfo, Rt as GpuLeaseExecResult, Si as TaskSessionFileChange, Sn as ProvisionEvent, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, T as CodeResult, Ti as TeeAttestationOptions, Tn as ProvisionStep, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, U as DownloadOptions, Ui as BatchEvent, Un as RolloutTurnPart, Ur as SandboxTraceEvent, Ut as HostAgentRuntimeBackend, V as DispatchPromptOptions, Vi as WriteManyOptions, Vn as RolloutStartResult, Vr as SandboxTerminals, Vt as GpuLeaseStatus, W as DownloadProgress, Wi as BatchEventDataMap, Wn as RunCodeOptions, Wr as SandboxTraceExport, Wt as InstalledTool, X as EgressManager, Xi as TerminalStream, Xn as SandboxEvent, Xr as SearchOptions, Yi as TerminalReadyInfo, Yn as SandboxEnvironment, Yr as SearchMatch, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as TerminalStreamAuthFormat, Zn as SandboxFleetArtifact, Zr as SecretInfo, Zt as ListMessagesOptions, _ as BatchTask, _i as SubscriptionInfo, _n as ProcessSpawnOptions, _r as SandboxFleetTraceExport, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionInfo, an as NetworkManager, ar as SandboxFleetIntelligenceEnvelope, at as FileReadBatchResult, b as ChunkedUploadOptions, bi as TaskSessionChanges, bn as PromptOptions, br as SandboxFleetWorkspace, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SessionMessageInputPart, cn as PermissionsManager, cr as SandboxFleetMachineRecord, ct as FileRenameResult, d as BackendType, di as SnapshotOptions, dn as Process, dr as SandboxFleetManifestMachine, dt as FileTreeOptions, ea as TerminalStreamOptions, ei as SendSessionMessageRequest, en as ListSandboxOptions, er as SandboxFleetDispatchFailureClass, et as ExactProcessSpawnOptions, f as BatchBackend, fi as SnapshotResult, fn as ProcessInfo, fr as SandboxFleetOperationsSummary, ft as FileTreeResult, g as BatchRunRequest, gi as StorageConfig, gn as ProcessSignal, gr as SandboxFleetTraceEvent, gt as FleetDispatchCancelResult, h as BatchRunOptions, hi as StartupOperation, hn as ProcessManager, hr as SandboxFleetTraceBundle, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionForkOptions, in as NetworkConfig, ir as SandboxFleetInfo, it as FileReadBatchOptions, j as CreateRequestOptions, ji as TokenUsage, jn as ReapExpiredSandboxFleetsResult, jr as SandboxResources, jt as GitConfig, k as CreateGpuLeaseOptions, ki as TeePublicKeyResponse, kn as PublishPublicTemplateVersionOptions, kr as SandboxProfileSummary, kt as GitBranch, l as BackendManager, li as SessionStatus, ln as PreviewLinkInfo, lr as SandboxFleetMachineSpec, lt as FileSystem, m as BatchResult, mi as StartupDiagnostics, mn as ProcessLogEntry, mr as SandboxFleetToken, mt as FileUsageResult, n as AccessPolicyRule, ni as SessionBackendCredentials, nn as MintScopedTokenOptions, nr as SandboxFleetDriverCapability, nt as ExecResult, o as BackendCapabilities, oi as SessionListOptions, on as NonHostAgentDriverConfig, or as SandboxFleetMachine, ot as FileReadError, p as BatchOptions, pn as ProcessListOptions, pr as SandboxFleetPolicy, pt as FileUsageOptions, q as DriverInfo, qi as TERMINAL_WS_ECHO_SUBPROTOCOL, qn as SandboxClientConfig, qr as ScopedToken, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionEventStreamOptions, rn as MkdirOptions, rr as SandboxFleetDriverTimings, rt as FileInfo, s as BackendConfig, si as SessionMessage, sn as PermissionLevel, sr as SandboxFleetMachineMeteredUsage, st as FileReadResult, t as AcceleratorKind, ta as TerminalStreamToken, ti as SentSessionMessage, tn as McpServerConfig, tr as SandboxFleetDispatchResponse, tt as ExecOptions, u as BackendStatus, ui as SnapshotInfo, un as PreviewLinkManager, ur as SandboxFleetManifest, ut as FileTreeFile, v as BatchTaskResult, vi as TaskOptions, vn as ProcessStatus, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, wi as TaskSessionProfile, wn as ProvisionStatus, wr as SandboxIdentity, wt as FleetMachineId, x as ChunkedUploadResult, xi as TaskSessionCommitResult, xn as PromptResult, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, y as BranchOptions, yi as TaskResult, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions, z as DevServerInfo, zi as WriteFileOptions, zn as RolloutOptions, zr as SandboxTerminalManager, zt as GpuLeaseManager } from "./types-DFYV3JSL.js";
|
|
2
|
+
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-CxflW4z4.js";
|
|
3
|
+
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-BDejoJQR.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CyHojkuA.js";
|
|
5
5
|
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-DKzapw-9.js";
|
|
6
6
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors-C8HMx78o.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DwjU-4s_.js";
|
|
8
|
+
import { AgentProfile, AgentProfileConfidential, AgentProfileFileMount, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
8
9
|
|
|
9
10
|
//#region src/attestation-heartbeat.d.ts
|
|
10
11
|
interface TeeAttestationHeartbeatSample {
|
|
@@ -55,11 +56,6 @@ declare function startTeeAttestationHeartbeat(sandbox: Pick<SandboxInstance, "ge
|
|
|
55
56
|
declare function normalizeRuntimeBackendConfig(backend: Partial<BackendConfig> | undefined, options?: {
|
|
56
57
|
model?: string;
|
|
57
58
|
}): Record<string, unknown> | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated Canonical profile objects can be sent directly as
|
|
60
|
-
* `backend.profile`; this compatibility export now preserves that object.
|
|
61
|
-
*/
|
|
62
|
-
declare function serializeForSidecar(profile: Exclude<BackendConfig["profile"], string | undefined>): Record<string, unknown>;
|
|
63
59
|
//#endregion
|
|
64
60
|
//#region src/confidential.d.ts
|
|
65
61
|
type SandboxCreator = {
|
|
@@ -109,7 +105,7 @@ declare function createConfidentialSandbox(client: SandboxCreator, options: Crea
|
|
|
109
105
|
* .withSecrets(["HF_TOKEN"])
|
|
110
106
|
* .build({ client });
|
|
111
107
|
*
|
|
112
|
-
* const box = await client.create({
|
|
108
|
+
* const box = await client.create({ environment: image.id });
|
|
113
109
|
* ```
|
|
114
110
|
*/
|
|
115
111
|
/**
|
|
@@ -245,7 +241,7 @@ declare class Image {
|
|
|
245
241
|
* @example
|
|
246
242
|
* ```typescript
|
|
247
243
|
* const image = Image.fromId("sha256:abc123...");
|
|
248
|
-
* const box = await client.create({
|
|
244
|
+
* const box = await client.create({ environment: image.id });
|
|
249
245
|
* ```
|
|
250
246
|
*/
|
|
251
247
|
static fromId(imageId: string): Image;
|
|
@@ -444,7 +440,7 @@ declare class ImageBuilder {
|
|
|
444
440
|
* onProgress: (e) => console.log(e.message),
|
|
445
441
|
* });
|
|
446
442
|
*
|
|
447
|
-
* const box = await client.create({
|
|
443
|
+
* const box = await client.create({ environment: image.id });
|
|
448
444
|
* ```
|
|
449
445
|
*/
|
|
450
446
|
build(options?: ImageBuildOptions): Promise<Image>;
|
|
@@ -629,10 +625,6 @@ declare const MANAGE_SANDBOXES_PARAMETERS: {
|
|
|
629
625
|
type: string;
|
|
630
626
|
additionalProperties: boolean;
|
|
631
627
|
properties: {
|
|
632
|
-
image: {
|
|
633
|
-
type: string;
|
|
634
|
-
minLength: number;
|
|
635
|
-
};
|
|
636
628
|
environment: {
|
|
637
629
|
type: string;
|
|
638
630
|
minLength: number;
|
|
@@ -711,10 +703,6 @@ declare const MANAGE_SANDBOXES_PARAMETERS: {
|
|
|
711
703
|
type: string;
|
|
712
704
|
enum: string[];
|
|
713
705
|
};
|
|
714
|
-
image: {
|
|
715
|
-
type: string;
|
|
716
|
-
minLength: number;
|
|
717
|
-
};
|
|
718
706
|
environment: {
|
|
719
707
|
type: string;
|
|
720
708
|
minLength: number;
|
|
@@ -795,10 +783,6 @@ declare const MANAGE_SANDBOXES_PARAMETERS: {
|
|
|
795
783
|
type: string;
|
|
796
784
|
enum: string[];
|
|
797
785
|
};
|
|
798
|
-
image: {
|
|
799
|
-
type: string;
|
|
800
|
-
minLength: number;
|
|
801
|
-
};
|
|
802
786
|
environment: {
|
|
803
787
|
type: string;
|
|
804
788
|
minLength: number;
|
|
@@ -877,10 +861,6 @@ declare const MANAGE_SANDBOXES_PARAMETERS: {
|
|
|
877
861
|
type: string;
|
|
878
862
|
enum: string[];
|
|
879
863
|
};
|
|
880
|
-
image: {
|
|
881
|
-
type: string;
|
|
882
|
-
minLength: number;
|
|
883
|
-
};
|
|
884
864
|
environment: {
|
|
885
865
|
type: string;
|
|
886
866
|
minLength: number;
|
|
@@ -1104,19 +1084,6 @@ declare function splitInlineProfileFileMounts(profile: AgentProfile): SplitInlin
|
|
|
1104
1084
|
declare function materializeProfileFileMounts(box: ProfileFileMountBox, files: readonly AgentProfileFileMount[], options?: MaterializeProfileFileMountsOptions): Promise<MaterializeProfileFileMountsResult>;
|
|
1105
1085
|
//#endregion
|
|
1106
1086
|
//#region src/resources.d.ts
|
|
1107
|
-
/**
|
|
1108
|
-
* Compute tiers, ordered smallest → largest. Defined HERE (not imported from
|
|
1109
|
-
* `@tangle-network/agent-interface`) so the SDK is self-contained: a consumer
|
|
1110
|
-
* that type-checks the SDK SOURCE never has to resolve a cross-package export
|
|
1111
|
-
* for the size vocabulary. `agent-interface` keeps its own identical copy for
|
|
1112
|
-
* `Capability.recommendedSize`; a platform test guards the two against drift.
|
|
1113
|
-
*/
|
|
1114
|
-
declare const SANDBOX_SIZE_PRESET_NAMES: readonly ["nano", "small", "medium", "large"];
|
|
1115
|
-
/**
|
|
1116
|
-
* A named compute tier for a sandbox. `nano` suits thin glue work; `large` suits
|
|
1117
|
-
* heavy builds. Sizing is per-task — a thin step shouldn't provision a maxed box.
|
|
1118
|
-
*/
|
|
1119
|
-
type SandboxSizePreset = (typeof SANDBOX_SIZE_PRESET_NAMES)[number];
|
|
1120
1087
|
/** The concrete cpu/memory/disk for each named tier. */
|
|
1121
1088
|
type SizePresetResources = Required<Pick<SandboxResources, "cpuCores" | "memoryMB" | "diskGB">>;
|
|
1122
1089
|
/**
|
|
@@ -1404,4 +1371,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
1404
1371
|
}
|
|
1405
1372
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
1406
1373
|
//#endregion
|
|
1407
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, 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 AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, 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 GpuType, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, 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 Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, 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 TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type ToolsConfig, 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 WriteFileOptions, type WriteManyFile, type WriteManyOptions, agentProfileSchema, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, capabilitySchema, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateAgentProfileSecurity, validateDeferredProfileFileMounts };
|
|
1374
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, 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, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, 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 Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, 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 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 WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateDeferredProfileFileMounts };
|