@tangle-network/sandbox 0.9.4-develop.20260710200846.ca3d375 → 0.9.4-develop.20260711011249.9d3b3b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +2 -2
- package/dist/{client-BlHX4Cf0.d.ts → client-BgKAw8YA.d.ts} +22 -2
- package/dist/{client-bSvcFAca.js → client-DeHvk634.js} +72 -73
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-CuwpLz65.d.ts → index-DS4SOkKG.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/{sandbox-BEkgXuYK.d.ts → sandbox-Bm2C9Phd.d.ts} +571 -20
- package/dist/{sandbox-BZ33qVxk.js → sandbox-CeimsfC8.js} +382 -27
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-sPZOYZkz.js → tangle-DayyZe-i.js} +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as SandboxClient } from "../client-
|
|
1
|
+
import { $ as CodeExecutionResult, Q as CodeExecutionOptions, et as CodeLanguage, n as SandboxInstance, nt as CodeResultPart } from "../sandbox-Bm2C9Phd.js";
|
|
2
|
+
import { i as SandboxClient } from "../client-BgKAw8YA.js";
|
|
3
3
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $n as ReconcileSandboxFleetsResult, Bn as PromptOptions, Bt as FleetDispatchResultBuffer, Dt as ExecOptions, G as BatchRunOptions, Gt as FleetMachineId, Ht as FleetDispatchStreamOptions, J as BatchTask, Jn as PublishPublicTemplateOptions, K as BatchRunRequest, Kn as PublicTemplateInfo, Kt as FleetPromptDispatchOptions, M as AttachSandboxFleetMachineOptions, Mr as SandboxFleetWorkspaceRestoreResult, Nr as SandboxFleetWorkspaceSnapshotResult, Or as SandboxFleetTraceOptions, Ot as ExecResult, Pr as SandboxInfo, Qn as ReconcileSandboxFleetsOptions, Ri as TokenRefreshHandler, Sr as SandboxFleetOperationsSummary, Ti as SubscriptionInfo, Tr as SandboxFleetTraceBundle, U as BatchOptions, Ut as FleetExecDispatchOptions, V as BatchEvent, Vn as PromptResult, Vt as FleetDispatchResultBufferOptions, W as BatchResult, Wi as UsageInfo, Wt as FleetExecDispatchResult, Xn as ReapExpiredSandboxFleetsOptions, Yn as PublishPublicTemplateVersionOptions, Zn as ReapExpiredSandboxFleetsResult, _n as IntelligenceReportWindow, a as TraceExportSink, ar as SandboxEnvironment, bn as ListSandboxFleetOptions, br as SandboxFleetManifest, cr as SandboxFleetArtifactSpec, ct as CreateSandboxFleetOptions, dr as SandboxFleetDispatchResponse, dt as CreateSandboxOptions, fr as SandboxFleetDriverCapability, hn as IntelligenceReportCompareTo, i as TraceExportResult, jr as SandboxFleetWorkspaceReconcileResult, kr as SandboxFleetUsage, lr as SandboxFleetCostEstimate, lt as CreateSandboxFleetTokenOptions, mn as IntelligenceReportBudget, mr as SandboxFleetInfo, n as SandboxInstance, oi as SecretsManager, ot as CreateIntelligenceReportOptions, pn as IntelligenceReport, qn as PublicTemplateVersionInfo, qt as FleetPromptDispatchResult, rr as SandboxClientConfig, sr as SandboxFleetArtifact, st as CreateRequestOptions, t as HttpClient, ut as CreateSandboxFleetWithCoordinatorOptions, vr as SandboxFleetMachineRecord, wr as SandboxFleetToken, xi as SshKeysManager, xn as ListSandboxOptions, zn as PromptInputPart, zr as SandboxProfileSummary, zt as FleetDispatchCancelResult } from "./sandbox-Bm2C9Phd.js";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/sse-parser.d.ts
|
|
4
4
|
/**
|
|
@@ -185,6 +185,20 @@ declare class SandboxFleetClient {
|
|
|
185
185
|
private listBySandboxMetadata;
|
|
186
186
|
}
|
|
187
187
|
//#endregion
|
|
188
|
+
//#region src/session-events.d.ts
|
|
189
|
+
/** Event delivered to a product session through the Sandbox session gateway. */
|
|
190
|
+
interface SessionBroadcastEvent {
|
|
191
|
+
type: string;
|
|
192
|
+
id?: string;
|
|
193
|
+
data?: unknown;
|
|
194
|
+
channel?: string;
|
|
195
|
+
}
|
|
196
|
+
/** Result returned after Sandbox accepts or rejects a session event. */
|
|
197
|
+
interface SessionBroadcastResult {
|
|
198
|
+
success: boolean;
|
|
199
|
+
sessionId: string;
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
188
202
|
//#region src/client.d.ts
|
|
189
203
|
/**
|
|
190
204
|
* Client for the Tangle Sandbox platform.
|
|
@@ -254,6 +268,10 @@ declare class SandboxClient implements HttpClient {
|
|
|
254
268
|
*/
|
|
255
269
|
get secrets(): SecretsManager;
|
|
256
270
|
get sshKeys(): SshKeysManager;
|
|
271
|
+
/** List agent profiles registered by the Sandbox API. */
|
|
272
|
+
listProfiles(): Promise<SandboxProfileSummary[]>;
|
|
273
|
+
/** Deliver a server-originated event to a mapped product session. */
|
|
274
|
+
broadcastSessionEvent(sessionId: string, event: SessionBroadcastEvent): Promise<SessionBroadcastResult>;
|
|
257
275
|
private _environments;
|
|
258
276
|
/**
|
|
259
277
|
* Access available development environments.
|
|
@@ -435,6 +453,7 @@ declare class SandboxClient implements HttpClient {
|
|
|
435
453
|
* console.log(`Success rate: ${result.successRate}%`);
|
|
436
454
|
* ```
|
|
437
455
|
*/
|
|
456
|
+
runBatch(request: BatchRunRequest, options?: BatchRunOptions): Promise<BatchResult>;
|
|
438
457
|
runBatch(tasks: BatchTask[], options?: BatchOptions): Promise<BatchResult>;
|
|
439
458
|
/**
|
|
440
459
|
* Stream events from a batch execution.
|
|
@@ -461,6 +480,7 @@ declare class SandboxClient implements HttpClient {
|
|
|
461
480
|
* }
|
|
462
481
|
* ```
|
|
463
482
|
*/
|
|
483
|
+
streamBatch(request: BatchRunRequest, options?: BatchRunOptions): AsyncGenerator<BatchEvent>;
|
|
464
484
|
streamBatch(tasks: BatchTask[], options?: BatchOptions): AsyncGenerator<BatchEvent>;
|
|
465
485
|
/**
|
|
466
486
|
* Make an authenticated HTTP request to the API.
|
|
@@ -712,4 +732,4 @@ declare class TeamsClient {
|
|
|
712
732
|
* Alias for SandboxClient for cleaner imports.
|
|
713
733
|
*/
|
|
714
734
|
//#endregion
|
|
715
|
-
export { Team as a,
|
|
735
|
+
export { Team as a, SessionBroadcastEvent as c, SandboxFleetClient as d, ParseSSEStreamOptions as f, SandboxClient as i, SessionBroadcastResult as l, parseSSEStream as m, IntelligenceClient as n, TeamInvitation as o, ParsedSSEEvent as p, InviteTeamMemberOptions as r, TeamMember as s, CreateTeamOptions as t, SandboxFleet as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as exportTraceBundle, g as parseSSEStream, l as normalizeConnection, m as encodePromptForWire, n as normalizeStartupDiagnostics, t as SandboxInstance } from "./sandbox-CeimsfC8.js";
|
|
2
2
|
import { a as NotFoundError, d as TimeoutError, f as ValidationError, i as NetworkError, p as parseErrorResponse, t as AuthError } from "./errors-DSz87Rkk.js";
|
|
3
3
|
//#region src/resources.ts
|
|
4
4
|
/**
|
|
@@ -946,6 +946,25 @@ function getMachineRole(info) {
|
|
|
946
946
|
return value === "coordinator" || value === "worker" ? value : void 0;
|
|
947
947
|
}
|
|
948
948
|
//#endregion
|
|
949
|
+
//#region src/session-events.ts
|
|
950
|
+
async function broadcastSessionEvent(client, sessionId, event) {
|
|
951
|
+
if (!sessionId.trim()) throw new ValidationError("Session ID is required");
|
|
952
|
+
if (!event.type.trim()) throw new ValidationError("Session event type is required");
|
|
953
|
+
const response = await client.fetch(`/v1/session/${encodeURIComponent(sessionId)}/broadcast`, {
|
|
954
|
+
method: "POST",
|
|
955
|
+
body: JSON.stringify(event)
|
|
956
|
+
});
|
|
957
|
+
if (!response.ok) {
|
|
958
|
+
const body = await response.text();
|
|
959
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
960
|
+
}
|
|
961
|
+
const result = await response.json();
|
|
962
|
+
return {
|
|
963
|
+
success: result.success,
|
|
964
|
+
sessionId: result.sessionId
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
//#endregion
|
|
949
968
|
//#region src/client.ts
|
|
950
969
|
/**
|
|
951
970
|
* Sandbox Client
|
|
@@ -1167,6 +1186,19 @@ var SandboxClient = class {
|
|
|
1167
1186
|
if (!this._sshKeys) this._sshKeys = new SshKeysManagerImpl(this);
|
|
1168
1187
|
return this._sshKeys;
|
|
1169
1188
|
}
|
|
1189
|
+
/** List agent profiles registered by the Sandbox API. */
|
|
1190
|
+
async listProfiles() {
|
|
1191
|
+
const response = await this.fetch("/profiles");
|
|
1192
|
+
if (!response.ok) {
|
|
1193
|
+
const body = await response.text();
|
|
1194
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
1195
|
+
}
|
|
1196
|
+
return (await response.json()).profiles ?? [];
|
|
1197
|
+
}
|
|
1198
|
+
/** Deliver a server-originated event to a mapped product session. */
|
|
1199
|
+
async broadcastSessionEvent(sessionId, event) {
|
|
1200
|
+
return broadcastSessionEvent(this, sessionId, event);
|
|
1201
|
+
}
|
|
1170
1202
|
_environments = null;
|
|
1171
1203
|
/**
|
|
1172
1204
|
* Access available development environments.
|
|
@@ -1489,39 +1521,12 @@ var SandboxClient = class {
|
|
|
1489
1521
|
}
|
|
1490
1522
|
return await response.json();
|
|
1491
1523
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
* Returns the aggregated results after all tasks complete.
|
|
1495
|
-
*
|
|
1496
|
-
* @param tasks - Array of tasks to execute
|
|
1497
|
-
* @param options - Batch execution options
|
|
1498
|
-
* @returns Aggregated batch results
|
|
1499
|
-
*
|
|
1500
|
-
* @throws {@link TimeoutError} if the server hasn't begun responding
|
|
1501
|
-
* before the deadline (pre-stream timeout).
|
|
1502
|
-
* @throws {@link ValidationError} / {@link QuotaError} / other typed
|
|
1503
|
-
* SDK errors if the server rejects the request before streaming.
|
|
1504
|
-
* @throws `DOMException` with `name === "AbortError"` if
|
|
1505
|
-
* `options.signal` fires OR the safety-valve deadline fires
|
|
1506
|
-
* AFTER streaming has begun — parseSSEStream can't distinguish
|
|
1507
|
-
* the source mid-stream. Callers that need to tell cancel from
|
|
1508
|
-
* timeout should check `options.signal?.aborted` in their catch.
|
|
1509
|
-
* @throws `Error` with the server message if the stream emits a
|
|
1510
|
-
* `batch.failed` event.
|
|
1511
|
-
*
|
|
1512
|
-
* @example
|
|
1513
|
-
* ```typescript
|
|
1514
|
-
* const result = await client.runBatch([
|
|
1515
|
-
* { id: "task-1", message: "Analyze this file" },
|
|
1516
|
-
* { id: "task-2", message: "Generate a summary" },
|
|
1517
|
-
* ]);
|
|
1518
|
-
* console.log(`Success rate: ${result.successRate}%`);
|
|
1519
|
-
* ```
|
|
1520
|
-
*/
|
|
1521
|
-
async runBatch(tasks, options) {
|
|
1524
|
+
async runBatch(input, options) {
|
|
1525
|
+
const tasks = Array.isArray(input) ? input : input.tasks;
|
|
1522
1526
|
const results = [];
|
|
1523
1527
|
let totalRetries = 0;
|
|
1524
|
-
|
|
1528
|
+
const stream = Array.isArray(input) ? this.streamBatch(input, options) : this.streamBatch(input, options);
|
|
1529
|
+
for await (const event of stream) {
|
|
1525
1530
|
if (event.type === "task.completed") {
|
|
1526
1531
|
const data = event.data;
|
|
1527
1532
|
const usageTotal = (data.usage?.inputTokens ?? 0) + (data.usage?.outputTokens ?? 0);
|
|
@@ -1531,7 +1536,12 @@ var SandboxClient = class {
|
|
|
1531
1536
|
response: data.resultSummary ?? data.response,
|
|
1532
1537
|
durationMs: data.durationMs ?? 0,
|
|
1533
1538
|
retries: data.retries ?? 0,
|
|
1534
|
-
tokensUsed: data.tokensUsed ?? (usageTotal > 0 ? usageTotal : void 0)
|
|
1539
|
+
tokensUsed: data.tokensUsed ?? (usageTotal > 0 ? usageTotal : void 0),
|
|
1540
|
+
backend: data.backend,
|
|
1541
|
+
backendLabel: data.backendLabel,
|
|
1542
|
+
backendModel: data.backendModel,
|
|
1543
|
+
sessionId: data.sessionId,
|
|
1544
|
+
sandboxId: data.sidecarId
|
|
1535
1545
|
});
|
|
1536
1546
|
totalRetries += data.retries ?? 0;
|
|
1537
1547
|
}
|
|
@@ -1542,7 +1552,11 @@ var SandboxClient = class {
|
|
|
1542
1552
|
success: false,
|
|
1543
1553
|
error: data.error,
|
|
1544
1554
|
durationMs: data.durationMs ?? 0,
|
|
1545
|
-
retries: data.retries ?? 0
|
|
1555
|
+
retries: data.retries ?? 0,
|
|
1556
|
+
backend: data.backend,
|
|
1557
|
+
backendLabel: data.backendLabel,
|
|
1558
|
+
backendModel: data.backendModel,
|
|
1559
|
+
sandboxId: data.sidecarId
|
|
1546
1560
|
});
|
|
1547
1561
|
totalRetries += data.retries ?? 0;
|
|
1548
1562
|
}
|
|
@@ -1558,51 +1572,36 @@ var SandboxClient = class {
|
|
|
1558
1572
|
succeeded,
|
|
1559
1573
|
failed,
|
|
1560
1574
|
totalRetries,
|
|
1561
|
-
successRate:
|
|
1575
|
+
successRate: results.length > 0 ? succeeded / results.length * 100 : 0,
|
|
1562
1576
|
results
|
|
1563
1577
|
};
|
|
1564
1578
|
}
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
* @throws {@link TimeoutError} if the server hasn't begun responding
|
|
1573
|
-
* before the deadline (pre-stream timeout).
|
|
1574
|
-
* @throws {@link ValidationError} / {@link QuotaError} / other typed
|
|
1575
|
-
* SDK errors if the server rejects the request before streaming.
|
|
1576
|
-
* @throws `DOMException` with `name === "AbortError"` if
|
|
1577
|
-
* `options.signal` fires OR the safety-valve deadline fires
|
|
1578
|
-
* AFTER streaming has begun. Distinguish via
|
|
1579
|
-
* `options.signal?.aborted` in the consumer's catch.
|
|
1580
|
-
*
|
|
1581
|
-
* @example
|
|
1582
|
-
* ```typescript
|
|
1583
|
-
* for await (const event of client.streamBatch(tasks)) {
|
|
1584
|
-
* if (event.type === "task.completed") {
|
|
1585
|
-
* console.log(`Task ${event.data.taskId} completed`);
|
|
1586
|
-
* }
|
|
1587
|
-
* }
|
|
1588
|
-
* ```
|
|
1589
|
-
*/
|
|
1590
|
-
async *streamBatch(tasks, options) {
|
|
1579
|
+
async *streamBatch(input, options) {
|
|
1580
|
+
const { signal: legacySignal, ...legacyRequestOptions } = (Array.isArray(input) ? options : void 0) ?? {};
|
|
1581
|
+
const request = Array.isArray(input) ? {
|
|
1582
|
+
tasks: input,
|
|
1583
|
+
...legacyRequestOptions
|
|
1584
|
+
} : input;
|
|
1585
|
+
const userSignal = Array.isArray(input) ? legacySignal : options?.signal;
|
|
1591
1586
|
const url = `${this.baseUrl}/batch/run`;
|
|
1592
|
-
const resolvedTimeoutMs =
|
|
1587
|
+
const resolvedTimeoutMs = request.timeoutMs ?? 3e5;
|
|
1593
1588
|
const requestBody = JSON.stringify({
|
|
1594
|
-
|
|
1595
|
-
backend:
|
|
1596
|
-
...
|
|
1597
|
-
type:
|
|
1598
|
-
} : { type: "opencode" },
|
|
1589
|
+
...request,
|
|
1590
|
+
backend: request.backend ? {
|
|
1591
|
+
...request.backend,
|
|
1592
|
+
type: request.backend.type ?? "opencode"
|
|
1593
|
+
} : request.backends ? void 0 : { type: "opencode" },
|
|
1594
|
+
backends: request.backends?.map((backend) => ({
|
|
1595
|
+
...backend,
|
|
1596
|
+
type: backend.type ?? "opencode"
|
|
1597
|
+
})),
|
|
1599
1598
|
timeoutMs: resolvedTimeoutMs,
|
|
1600
|
-
scalingMode:
|
|
1601
|
-
persistent:
|
|
1602
|
-
graceMs:
|
|
1599
|
+
scalingMode: request.scalingMode ?? "balanced",
|
|
1600
|
+
persistent: request.persistent ?? false,
|
|
1601
|
+
graceMs: request.graceMs ?? 0
|
|
1603
1602
|
});
|
|
1604
1603
|
const deadline = AbortSignal.timeout(resolvedTimeoutMs + CLIENT_DEADLINE_GRACE_MS);
|
|
1605
|
-
const combinedSignal =
|
|
1604
|
+
const combinedSignal = userSignal ? AbortSignal.any([userSignal, deadline]) : deadline;
|
|
1606
1605
|
let response;
|
|
1607
1606
|
try {
|
|
1608
1607
|
response = await globalThis.fetch(url, {
|
|
@@ -1616,7 +1615,7 @@ var SandboxClient = class {
|
|
|
1616
1615
|
signal: combinedSignal
|
|
1617
1616
|
});
|
|
1618
1617
|
} catch (err) {
|
|
1619
|
-
if (
|
|
1618
|
+
if (userSignal?.aborted) throw err instanceof Error && err.name === "AbortError" ? err : new DOMException("Batch aborted", "AbortError");
|
|
1620
1619
|
if (err instanceof Error && (err.name === "AbortError" || err.name === "TimeoutError")) throw new TimeoutError(resolvedTimeoutMs, "Batch request timed out before the first SSE event");
|
|
1621
1620
|
throw new NetworkError(`Failed to connect to Sandbox API: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? err : void 0, {
|
|
1622
1621
|
endpoint: "/batch/run",
|
|
@@ -1627,7 +1626,7 @@ var SandboxClient = class {
|
|
|
1627
1626
|
const errBody = await response.text();
|
|
1628
1627
|
throw parseErrorResponse(response.status, errBody, void 0, response.headers);
|
|
1629
1628
|
}
|
|
1630
|
-
|
|
1629
|
+
for await (const event of parseSSEStream(response.body, { signal: combinedSignal })) yield event;
|
|
1631
1630
|
}
|
|
1632
1631
|
/**
|
|
1633
1632
|
* Make an authenticated HTTP request to the API.
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as SandboxClient } from "./client-
|
|
1
|
+
import { An as PreviewLinkInfo, Dt as ExecOptions, Gr as SandboxStatus, Ot as ExecResult, Pr as SandboxInfo, Tn as NetworkConfig, dt as CreateSandboxOptions, jn as PreviewLinkManager, n as SandboxInstance, rr as SandboxClientConfig } from "./sandbox-Bm2C9Phd.js";
|
|
2
|
+
import { i as SandboxClient } from "./client-BgKAw8YA.js";
|
|
3
3
|
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-H9268M_g.js";
|
|
4
4
|
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 };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SandboxInstance } from "./sandbox-
|
|
1
|
+
import { t as SandboxInstance } from "./sandbox-CeimsfC8.js";
|
|
2
2
|
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-DSz87Rkk.js";
|
|
3
|
-
import { n as SandboxClient } from "./client-
|
|
3
|
+
import { n as SandboxClient } from "./client-DeHvk634.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as Team, c as
|
|
1
|
+
import { $i as AgentProfileFileMount, $n as ReconcileSandboxFleetsResult, $r as SandboxTraceOptions, $t as GitDiff, A as AddUserOptions, Ai as TaskSessionFileChange, An as PreviewLinkInfo, Ar as SandboxFleetWorkspace, At as FileReadBatchOptions, B as BatchBackendStats, Bi as TurnDriveResult, Bn as PromptOptions, Br as SandboxResourceUsage, Bt as FleetDispatchResultBuffer, C as SandboxMcpConfig, Ci as StartupOperation, Cn as MintScopedTokenOptions, Cr as SandboxFleetPolicy, Ct as DriverType, D as buildSandboxMcpConfig, Di as TaskResult, Dn as NonHostAgentDriverConfig, Dr as SandboxFleetTraceExport, Dt as ExecOptions, E as buildControlPlaneMcpConfig, Ei as TaskOptions, En as NetworkManager, Er as SandboxFleetTraceEvent, Et as EventStreamOptions, F as BackendInfo, Fi as TeeAttestationResponse, Fn as ProcessManager, Fr as SandboxIntelligenceEnvelope, Ft as FileTreeFile, G as BatchRunOptions, Gi as WaitForOptions, Gn as ProvisionStep, Gr as SandboxStatus, Gt as FleetMachineId, H as BatchEventDataMap, Hi as UploadOptions, Hn as ProvisionEvent, Hr as SandboxRuntimeHealth, Ht as FleetDispatchStreamOptions, I as BackendManager, Ii as TeePublicKey, In as ProcessSignal, Ir as SandboxPermissionsConfig, It as FileTreeOptions, J as BatchTask, Ji as WriteManyOptions, Jn as PublishPublicTemplateOptions, Jr as SandboxTerminalManager, Jt as GPU_LEASE_PROVIDER_NAMES, K as BatchRunRequest, Ki as WriteFileOptions, Kn as PublicTemplateInfo, Kr as SandboxTerminalCreateOptions, Kt as FleetPromptDispatchOptions, L as BackendStatus, Li as TeePublicKeyResponse, Ln as ProcessSpawnOptions, Lr as SandboxPortBinding, Lt as FileTreeResult, M as AttachSandboxFleetMachineOptions, Mi as TaskSessionProfile, Mn as Process, Mr as SandboxFleetWorkspaceRestoreResult, Mt as FileReadError, N as BackendCapabilities, Ni as TeeAttestationOptions, Nn as ProcessInfo, Nr as SandboxFleetWorkspaceSnapshotResult, Nt as FileReadResult, O as AcceleratorKind, Oi as TaskSessionChanges, On as PermissionLevel, Or as SandboxFleetTraceOptions, Ot as ExecResult, P as BackendConfig, Pi as TeeAttestationReport, Pn as ProcessLogEntry, Pr as SandboxInfo, Pt as FileSystem, Qi as AgentProfileConnection, Qn as ReconcileSandboxFleetsOptions, Qr as SandboxTraceExport, Qt as GitConfig, R as BackendType, Ri as TokenRefreshHandler, Rn as ProcessStatus, Rr as SandboxPortPreviewLink, Rt as FileWriteResult, S as SANDBOX_MCP_SERVER_NAME, Si as StartupDiagnostics, Sn as McpServerConfig, Sr as SandboxFleetOperationsSummary, St as DriverInfo, T as SandboxMcpServerEntry, Ti as SubscriptionInfo, Tn as NetworkConfig, Tr as SandboxFleetTraceBundle, Tt as EgressPolicy, U as BatchOptions, Ui as UploadProgress, Un as ProvisionResult, Ur as SandboxRuntimeProfile, Ut as FleetExecDispatchOptions, V as BatchEvent, Vi as UpdateUserOptions, Vn as PromptResult, Vr as SandboxResources, Vt as FleetDispatchResultBufferOptions, W as BatchResult, Wi as UsageInfo, Wn as ProvisionStatus, Wr as SandboxRuntimeProfileList, X as BatchTaskUsage, Xi as AgentProfileCapabilities, Xn as ReapExpiredSandboxFleetsOptions, Xr as SandboxTraceBundle, Xt as GitBranch, Y as BatchTaskResult, Yi as AgentProfile, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxTerminalRequestOptions, Yt as GitAuth, Z as BranchOptions, Zi as AgentProfileConfidential, Zn as ReapExpiredSandboxFleetsResult, Zr as SandboxTraceEvent, Zt as GitCommit, _ as RespondToPermissionOptions, _i as SessionStatus, _n as IntelligenceReportWindow, _r as SandboxFleetMachineMeteredUsage, _t as DispatchedSession, a as TraceExportSink, aa as AgentProfileResources, ai as SecretInfo, an as GpuLeaseExecResult, ar as SandboxEnvironment, at as CreateGpuLeaseOptions, b as BuildSandboxMcpConfigOptions, bi as SnapshotResult, bn as ListSandboxFleetOptions, br as SandboxFleetManifest, bt as DriveTurnOptions, c as otelTraceIdForTangleTrace, ca as AgentSubagentProfile, ci as SendSessionMessageRequest, cn as GpuLeaseStatus, cr as SandboxFleetArtifactSpec, ct as CreateSandboxFleetOptions, d as SandboxSession, da as defineInlineResource, di as SessionEventStreamOptions, dn as HostAgentRuntimeBackend, dr as SandboxFleetDispatchResponse, dt as CreateSandboxOptions, ea as AgentProfileMcpServer, ei as SandboxUser, en as GitStatus, er as RunCodeOptions, f as InteractiveAuthFile, fa as mergeAgentProfiles, fi as SessionForkOptions, fn as InstalledTool, fr as SandboxFleetDriverCapability, ft as CreateSessionOptions, g as InterruptResult, gi as SessionMessageInputPart, gn as IntelligenceReportSubjectType, gr as SandboxFleetMachine, gt as DispatchPromptOptions, h as InteractiveSessionInfo, hi as SessionMessage, hn as IntelligenceReportCompareTo, hr as SandboxFleetIntelligenceEnvelope, ht as DirectoryPermission, i as TraceExportResult, ia as AgentProfileResourceRef, ii as SearchOptions, in as GpuLeaseExecOptions, ir as SandboxConnection, it as CompletedTurnResult, j as AttachGpuLeaseOptions, ji as TaskSessionInfo, jn as PreviewLinkManager, jr as SandboxFleetWorkspaceReconcileResult, jt as FileReadBatchResult, k as AccessPolicyRule, ki as TaskSessionCommitResult, kn as PermissionsManager, kr as SandboxFleetUsage, kt as FileInfo, l as toOtelJson, la as defineAgentProfile, li as SentSessionMessage, ln as GpuType, lr as SandboxFleetCostEstimate, m as InteractiveSessionHost, mi as SessionListOptions, mn as IntelligenceReportBudget, mr as SandboxFleetInfo, mt as DeleteOptions, n as SandboxInstance, na as AgentProfilePermissionValue, ni as ScopedTokenScope, nn as GpuLeaseBilling, nr as SSHCredentials, o as buildTraceExportPayload, oa as AgentProfileValidationIssue, oi as SecretsManager, on as GpuLeaseManager, or as SandboxEvent, ot as CreateIntelligenceReportOptions, p as InteractiveSessionHandle, pi as SessionInfo, pn as IntelligenceReport, pr as SandboxFleetDriverTimings, pt as CreateTaskSessionOptions, q as BatchSidecarGroup, qi as WriteManyFile, qn as PublicTemplateVersionInfo, qr as SandboxTerminalInfo, r as TraceExportFormat, ra as AgentProfilePrompt, ri as SearchMatch, rn as GpuLeaseCommandResult, rr as SandboxClientConfig, rt as CommitTaskSessionOptions, s as exportTraceBundle, sa as AgentProfileValidationResult, si as SendSessionMessageOptions, sn as GpuLeaseProviderName, sr as SandboxFleetArtifact, ta as AgentProfileModelHints, ti as ScopedToken, tn as GpuLease, tr as SSHCommandDescriptor, tt as CodeResult, u as SandboxTaskSession, ua as defineGitHubResource, ui as SessionBackendCredentials, un as HostAgentDriverConfig, ur as SandboxFleetDispatchFailureClass, ut as CreateSandboxFleetWithCoordinatorOptions, v as StartInteractiveOptions, vi as SnapshotInfo, vn as ListMessagesOptions, vr as SandboxFleetMachineRecord, vt as DownloadOptions, w as SandboxMcpEndpoint, wi as StorageConfig, wn as MkdirOptions, wr as SandboxFleetToken, wt as EgressManager, x as CONTROL_PLANE_MCP_SERVER_NAME, xn as ListSandboxOptions, xr as SandboxFleetManifestMachine, xt as DriverConfig, y as BuildControlPlaneMcpConfigOptions, yi as SnapshotOptions, yn as ListOptions, yr as SandboxFleetMachineSpec, yt as DownloadProgress, z as BatchBackend, zi as ToolsConfig, zr as SandboxProfileSummary, zt as FleetDispatchCancelResult } from "./sandbox-Bm2C9Phd.js";
|
|
2
|
+
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-BgKAw8YA.js";
|
|
3
3
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-D-2pH_70.js";
|
|
4
4
|
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-D7bwmNs8.js";
|
|
5
5
|
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-H9268M_g.js";
|
|
6
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
6
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DS4SOkKG.js";
|
|
7
7
|
|
|
8
8
|
//#region src/attestation-heartbeat.d.ts
|
|
9
9
|
interface TeeAttestationHeartbeatSample {
|
|
@@ -1370,4 +1370,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
1372
1372
|
//#endregion
|
|
1373
|
-
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 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 BatchEvent, type BatchOptions, type BatchResult, type BatchTask, type BatchTaskResult, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, 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 CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileSystem, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, 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 InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, 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 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 RespondToPermissionOptions, 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 SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxResourceUsage, type SandboxResources, SandboxSession, type SandboxSizePreset, type SandboxStatus, 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, ServerError, type SessionEventStreamOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|
|
1373
|
+
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 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, CapabilityError, 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 CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, 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 InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, 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 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 RespondToPermissionOptions, 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 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 SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, 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 StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, 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, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as normalizeRuntimeBackendConfig, a as InteractiveSessionHandle, c as getSandboxEventText, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as parseSSEStream, h as encodeTextForWire, i as SandboxSession, o as applySandboxEventText, p as toOtelJson, r as SandboxTaskSession, s as collectAgentResponseText, t as SandboxInstance, u as buildTraceExportPayload, v as serializeForSidecar } from "./sandbox-CeimsfC8.js";
|
|
2
2
|
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, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as StateError } from "./errors-DSz87Rkk.js";
|
|
3
|
-
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-
|
|
3
|
+
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-DeHvk634.js";
|
|
4
4
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-D17lnOJX.js";
|
|
5
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
5
|
+
import { t as TangleSandboxClient } from "./tangle-DayyZe-i.js";
|
|
6
6
|
import { defineAgentProfile, defineGitHubResource, defineInlineResource, mergeAgentProfiles } from "@tangle-network/agent-interface";
|
|
7
7
|
//#region src/confidential.ts
|
|
8
8
|
function generateAttestationNonce(bytes = 32) {
|
|
@@ -1729,4 +1729,4 @@ function stripUndefined(value) {
|
|
|
1729
1729
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1730
1730
|
}
|
|
1731
1731
|
//#endregion
|
|
1732
|
-
export { AuthError, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EgressProxyRecoveryError, GPU_LEASE_PROVIDER_NAMES, Image, ImageBuilder, IntelligenceClient, InteractiveSessionHandle, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, ServerError, StateError, TangleSandboxClient, TimeoutError, ValidationError, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|
|
1732
|
+
export { AuthError, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EgressProxyRecoveryError, GPU_LEASE_PROVIDER_NAMES, Image, ImageBuilder, IntelligenceClient, InteractiveSessionHandle, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TangleSandboxClient, TimeoutError, ValidationError, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|