@tangle-network/sandbox 0.15.3-develop.20260729120224.ad0e824 → 0.15.3-develop.20260729134815.aa93de4
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 +3 -3
- package/dist/{client-doY7g6iX.js → client-CKGCvT1s.js} +3 -3
- package/dist/{client-BFjKSTAR.d.ts → client-CSoYXeax.d.ts} +2 -2
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DdD_rFZQ.js → collaboration-CVdLf_4n.js} +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +4 -4
- package/dist/{errors-BzMmpmqU.d.ts → errors-Bdy5jXzc.d.ts} +8 -1
- package/dist/{errors-D9fFOWX9.js → errors-Bf-A-4SA.js} +31 -1
- package/dist/{index-B3Is-8kz.d.ts → index-D1cS-vqo.d.ts} +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/intelligence/index.js +1 -1
- package/dist/{runtime-api-Bage44Xd.js → runtime-api-d1lY25yx.js} +9 -4
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -3
- package/dist/{sandbox-DXxyuhfL.d.ts → sandbox--82CsagW.d.ts} +1 -1
- package/dist/{sandbox-CJr9ovil.js → sandbox-DC1Gcjd-.js} +12 -5
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DU9UMwY3.js → tangle-du724ESF.js} +2 -2
- package/dist/{types-BZkxpBDM.d.ts → types-BgXrR--P.d.ts} +32 -0
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-BgXrR--P.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox--82CsagW.js";
|
|
3
|
+
import { i as Sandbox } from "../client-CSoYXeax.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,6 +1,6 @@
|
|
|
1
|
-
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-
|
|
2
|
-
import { a as
|
|
3
|
-
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-
|
|
1
|
+
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-d1lY25yx.js";
|
|
2
|
+
import { a as NetworkError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-DC1Gcjd-.js";
|
|
4
4
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as ReapExpiredSandboxFleetsOptions, Cr as SandboxIdentity, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Dn as PublicTemplateVersionInfo, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Kn as SandboxConfig, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Nn as ReconcileSandboxFleetsResult, O as CreateRequestOptions, On as PublishPublicTemplateOptions, Qn as SandboxFleetCostEstimate, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, Tt as FleetPromptDispatchOptions, Xn as SandboxFleetArtifact, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifactSpec, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, dr as SandboxFleetOperationsSummary, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, f as BatchResult, gt as FleetDispatchCancelResult, j as CreateSandboxFleetWithCoordinatorOptions, jn as ReapExpiredSandboxFleetsResult, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateVersionOptions, li as SshKeysManager, lr as SandboxFleetManifest, m as BatchRunRequest, mr as SandboxFleetTraceBundle, nt as ExecResult, p as BatchRunOptions, pi as SubscriptionInfo, pr as SandboxFleetToken, qt as IntelligenceReportCompareTo, rr as SandboxFleetInfo, sr as SandboxFleetMachineRecord, tr as SandboxFleetDriverCapability, tt as ExecOptions, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wr as SandboxInfo, wt as FleetMachineId, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, yn as PromptInputPart, yt as FleetDispatchStreamOptions } from "./types-
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox
|
|
1
|
+
import { $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as ReapExpiredSandboxFleetsOptions, Cr as SandboxIdentity, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Dn as PublicTemplateVersionInfo, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Kn as SandboxConfig, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Nn as ReconcileSandboxFleetsResult, O as CreateRequestOptions, On as PublishPublicTemplateOptions, Qn as SandboxFleetCostEstimate, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, Tt as FleetPromptDispatchOptions, Xn as SandboxFleetArtifact, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifactSpec, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, dr as SandboxFleetOperationsSummary, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, f as BatchResult, gt as FleetDispatchCancelResult, j as CreateSandboxFleetWithCoordinatorOptions, jn as ReapExpiredSandboxFleetsResult, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateVersionOptions, li as SshKeysManager, lr as SandboxFleetManifest, m as BatchRunRequest, mr as SandboxFleetTraceBundle, nt as ExecResult, p as BatchRunOptions, pi as SubscriptionInfo, pr as SandboxFleetToken, qt as IntelligenceReportCompareTo, rr as SandboxFleetInfo, sr as SandboxFleetMachineRecord, tr as SandboxFleetDriverCapability, tt as ExecOptions, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, wr as SandboxInfo, wt as FleetMachineId, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, yn as PromptInputPart, yt as FleetDispatchStreamOptions } from "./types-BgXrR--P.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox--82CsagW.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-CVdLf_4n.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "./errors-Bf-A-4SA.js";
|
|
2
2
|
//#region src/collaboration/client.ts
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Kn as SandboxConfig, M as CreateSandboxOptions, in as NetworkConfig, jr as SandboxStatus, ln as PreviewLinkInfo, nt as ExecResult, tt as ExecOptions, un as PreviewLinkManager, wr as SandboxInfo, yn as PromptInputPart } from "./types-
|
|
2
|
-
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
4
|
-
import { a as
|
|
5
|
-
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
|
1
|
+
import { Kn as SandboxConfig, M as CreateSandboxOptions, in as NetworkConfig, jr as SandboxStatus, ln as PreviewLinkInfo, nt as ExecResult, tt as ExecOptions, un as PreviewLinkManager, wr as SandboxInfo, yn as PromptInputPart } from "./types-BgXrR--P.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox--82CsagW.js";
|
|
3
|
+
import { i as Sandbox } from "./client-CSoYXeax.js";
|
|
4
|
+
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
5
|
+
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, 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
|
-
import { a as
|
|
2
|
-
import { n as Sandbox } from "./client-
|
|
3
|
-
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
4
|
-
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
1
|
+
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
2
|
+
import { n as Sandbox } from "./client-CKGCvT1s.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-DC1Gcjd-.js";
|
|
4
|
+
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -102,6 +102,13 @@ declare class StateError extends SandboxError {
|
|
|
102
102
|
readonly requiredState?: string;
|
|
103
103
|
constructor(message: string, currentState: string, requiredState?: string, metadata?: SandboxErrorMetadata, code?: string);
|
|
104
104
|
}
|
|
105
|
+
declare class FileWriteConflictError extends SandboxError {
|
|
106
|
+
readonly path: string;
|
|
107
|
+
readonly currentHash: string | null;
|
|
108
|
+
readonly currentMtime: number | null;
|
|
109
|
+
readonly expectedHash?: string;
|
|
110
|
+
constructor(message: string, path: string, expectedHash: string | undefined, currentHash: string | null, currentMtime: number | null, metadata?: SandboxErrorMetadata);
|
|
111
|
+
}
|
|
105
112
|
declare class EgressProxyRecoveryError extends SandboxError {
|
|
106
113
|
readonly phase: "egress_proxy_recovery";
|
|
107
114
|
constructor(message: string, metadata?: SandboxErrorMetadata);
|
|
@@ -129,4 +136,4 @@ declare class ServerError extends SandboxError {
|
|
|
129
136
|
constructor(message: string, status?: number, metadata?: SandboxErrorMetadata, code?: string);
|
|
130
137
|
}
|
|
131
138
|
//#endregion
|
|
132
|
-
export {
|
|
139
|
+
export { NetworkError as a, QuotaError as c, SandboxFailureDetail as d, ServerError as f, ValidationError as h, FileWriteConflictError as i, SandboxError as l, TimeoutError as m, CapabilityError as n, NotFoundError as o, StateError as p, EgressProxyRecoveryError as r, PartialFailureError as s, AuthError as t, SandboxErrorJson as u };
|
|
@@ -130,6 +130,17 @@ var StateError = class extends SandboxError {
|
|
|
130
130
|
this.requiredState = requiredState;
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
+
var FileWriteConflictError = class extends SandboxError {
|
|
134
|
+
expectedHash;
|
|
135
|
+
constructor(message, path, expectedHash, currentHash, currentMtime, metadata) {
|
|
136
|
+
super(message, "FILE_WRITE_CONFLICT", 409, metadata);
|
|
137
|
+
this.path = path;
|
|
138
|
+
this.currentHash = currentHash;
|
|
139
|
+
this.currentMtime = currentMtime;
|
|
140
|
+
this.name = "FileWriteConflictError";
|
|
141
|
+
if (expectedHash !== void 0) this.expectedHash = expectedHash;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
133
144
|
var EgressProxyRecoveryError = class extends SandboxError {
|
|
134
145
|
phase;
|
|
135
146
|
constructor(message, metadata) {
|
|
@@ -218,6 +229,20 @@ function readCapability(data, errorObj) {
|
|
|
218
229
|
const nested = typeof errorObj === "object" && errorObj !== null ? asString(errorObj.capability) : void 0;
|
|
219
230
|
return asString(data.capability) ?? nested;
|
|
220
231
|
}
|
|
232
|
+
function readFileWriteConflictDetails(errorObj) {
|
|
233
|
+
if (typeof errorObj !== "object" || errorObj === null) return void 0;
|
|
234
|
+
const path = asString(errorObj.path);
|
|
235
|
+
const expectedHash = errorObj.expectedHash === void 0 ? void 0 : asString(errorObj.expectedHash);
|
|
236
|
+
const currentHash = errorObj.currentHash === null ? null : asString(errorObj.currentHash);
|
|
237
|
+
const currentMtime = errorObj.currentMtime === null && Object.hasOwn(errorObj, "currentMtime") ? null : typeof errorObj.currentMtime === "number" && Number.isFinite(errorObj.currentMtime) ? errorObj.currentMtime : void 0;
|
|
238
|
+
if (path === void 0 || errorObj.expectedHash !== void 0 && expectedHash === void 0 || currentHash === void 0 || currentMtime === void 0) return;
|
|
239
|
+
return {
|
|
240
|
+
path,
|
|
241
|
+
expectedHash,
|
|
242
|
+
currentHash,
|
|
243
|
+
currentMtime
|
|
244
|
+
};
|
|
245
|
+
}
|
|
221
246
|
function readFailures(data, errorObj) {
|
|
222
247
|
if (Array.isArray(data.failures)) return data.failures.filter(isFailureDetail);
|
|
223
248
|
if (Array.isArray(data.results)) {
|
|
@@ -258,6 +283,11 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
258
283
|
if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
|
|
259
284
|
if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
|
|
260
285
|
if (code === "EGRESS_PROXY_RECOVERY_REQUIRED") return new EgressProxyRecoveryError(message, metadata);
|
|
286
|
+
if (code === "FILE_WRITE_CONFLICT") {
|
|
287
|
+
const conflict = readFileWriteConflictDetails(errorObj);
|
|
288
|
+
if (!conflict) return new ServerError(`${message}: malformed FILE_WRITE_CONFLICT response`, 502, metadata, "INVALID_ERROR_RESPONSE");
|
|
289
|
+
return new FileWriteConflictError(message, conflict.path, conflict.expectedHash, conflict.currentHash, conflict.currentMtime, metadata);
|
|
290
|
+
}
|
|
261
291
|
switch (status) {
|
|
262
292
|
case 400: return new ValidationError(message, data.fields, metadata, code);
|
|
263
293
|
case 401: return new AuthError(message, metadata);
|
|
@@ -272,4 +302,4 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
272
302
|
}
|
|
273
303
|
}
|
|
274
304
|
//#endregion
|
|
275
|
-
export {
|
|
305
|
+
export { NetworkError as a, QuotaError as c, StateError as d, TimeoutError as f, FileWriteConflictError as i, SandboxError as l, parseErrorResponse as m, CapabilityError as n, NotFoundError as o, ValidationError as p, EgressProxyRecoveryError as r, PartialFailureError as s, AuthError as t, ServerError as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as CreateSandboxOptions } from "./types-
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox
|
|
1
|
+
import { M as CreateSandboxOptions } from "./types-BgXrR--P.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox--82CsagW.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $i as BackendType, $n as SandboxFleetDispatchFailureClass, $r as SessionEventStreamOptions, $t as ListSandboxFleetOptions, Ai as UploadOptions, An as ReapExpiredSandboxFleetsOptions, Ar as SandboxRuntimeHealth, At as GitCommit, B as DownloadOptions, Bi as TerminalReadyInfo, Bn as RolloutScorer, Br as SandboxTraceExport, Bt as GpuLeaseProviderName, Ci as TeeAttestationResponse, Cn as ProvisionResult, Cr as SandboxIdentity, D as CreateIntelligenceReportOptions, Di as TokenUsage, Dn as PublicTemplateVersionInfo, Dr as SandboxPortPreviewLink, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Er as SandboxPortBinding, F as DeleteOptions, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStreamAuthFormat, Hn as RolloutStatus, Hr as SandboxUser, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteManyFile, Ir as SandboxTerminalRequestOptions, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Jt as IntelligenceReportSubjectType, Ki as TerminalStreamToken, Kn as SandboxConfig, Kr as SearchOptions, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nn as ReconcileSandboxFleetsResult, Nr as SandboxTerminalCreateOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as TurnDriveResult, On as PublishPublicTemplateOptions, Or as SandboxResourceUsage, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as PublicBatchRunRequest, Qn as SandboxFleetCostEstimate, Qr as SessionBackendCredentials, Qt as ListOptions, R as DispatchPromptOptions, Ri as TERMINAL_WS_ECHO_SUBPROTOCOL, Rn as RolloutChildResult, Rr as SandboxTraceBundle, Rt as GpuLeaseExecResult, Si as TeeAttestationReport, Sn as ProvisionEvent, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Tn as ProvisionStep, Tr as SandboxIntelligenceEnvelope, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamError, Un as RolloutTurnPart, Ur as ScopedToken, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wr as ScopedTokenScope, Wt as InstalledTool, X as EgressManager, Xi as BatchSidecarGroup, Xn as SandboxFleetArtifact, Xr as SendSessionMessageRequest, Y as EffectiveBackendSource, Yi as BatchEventDataMap, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as BatchTaskUsage, Zn as SandboxFleetArtifactSpec, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, _n as ProcessSpawnOptions, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionStatus, an as NetworkManager, ar as SandboxFleetMachine, at as FileReadBatchResult, bi as TaskSessionProfile, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SnapshotResult, cn as PermissionsManager, cr as SandboxFleetMachineSpec, ct as FileRenameResult, d as BatchBackend, di as StartupOperation, dn as Process, dr as SandboxFleetOperationsSummary, dt as FileTreeOptions, ei as SessionForkOptions, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, et as ExactProcessSpawnOptions, f as BatchResult, fi as StorageConfig, fn as ProcessInfo, fr as SandboxFleetPolicy, ft as FileTreeResult, g as BatchTaskResult, gi as TaskSessionChanges, gn as ProcessSignal, gr as SandboxFleetTraceExport, gt as FleetDispatchCancelResult, h as BatchTask, hi as TaskResult, hn as ProcessManager, hr as SandboxFleetTraceEvent, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionMessageInputPart, in as NetworkConfig, ir as SandboxFleetIntelligenceEnvelope, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UploadProgress, jn as ReapExpiredSandboxFleetsResult, jr as SandboxStatus, jt as GitConfig, k as CreateSandboxFleetOptions, ki as UpdateUserOptions, kn as PublishPublicTemplateVersionOptions, kr as SandboxResources, kt as GitBranch, l as BackendManager, ln as PreviewLinkInfo, lr as SandboxFleetManifest, lt as FileSystem, m as BatchRunRequest, mi as TaskOptions, mn as ProcessLogEntry, mr as SandboxFleetTraceBundle, mt as FileUsageResult, n as AccessPolicyRule, ni as SessionListOptions, nn as MintScopedTokenOptions, nr as SandboxFleetDriverTimings, nt as ExecResult, o as BackendCapabilities, oi as SnapshotInfo, on as NonHostAgentDriverConfig, or as SandboxFleetMachineMeteredUsage, ot as FileReadError, p as BatchRunOptions, pi as SubscriptionInfo, pn as ProcessListOptions, pr as SandboxFleetToken, pt as FileUsageOptions, q as EffectiveBackend, qi as BatchBackendStats, qn as SandboxConnection, qr as SecretInfo, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionMessage, rn as MkdirOptions, rr as SandboxFleetInfo, rt as FileInfo, s as BackendConfig, si as SnapshotOptions, sn as PermissionLevel, sr as SandboxFleetMachineRecord, st as FileReadResult, t as AcceleratorKind, ti as SessionInfo, tn as McpServerConfig, tr as SandboxFleetDriverCapability, tt as ExecOptions, u as BackendStatus, ui as StartupDiagnostics, un as PreviewLinkManager, ur as SandboxFleetManifestMachine, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionFileChange, vn as ProcessStatus, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeePublicKey, wn as ProvisionStatus, wr as SandboxInfo, wt as FleetMachineId, xi as TeeAttestationOptions, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionInfo, yn as PromptInputPart, yr as SandboxFleetWorkspace, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TerminalExitInfo, zn as RolloutOptions, zr as SandboxTraceEvent, zt as GpuLeaseManager } from "./types-
|
|
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 Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as EventStreamOptions, $i as BackendType, $n as SandboxFleetDispatchFailureClass, $r as SessionEventStreamOptions, $t as ListSandboxFleetOptions, Ai as UploadOptions, An as ReapExpiredSandboxFleetsOptions, Ar as SandboxRuntimeHealth, At as GitCommit, B as DownloadOptions, Bi as TerminalReadyInfo, Bn as RolloutScorer, Br as SandboxTraceExport, Bt as GpuLeaseProviderName, Ci as TeeAttestationResponse, Cn as ProvisionResult, Cr as SandboxIdentity, D as CreateIntelligenceReportOptions, Di as TokenUsage, Dn as PublicTemplateVersionInfo, Dr as SandboxPortPreviewLink, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TokenRefreshHandler, En as PublicTemplateInfo, Er as SandboxPortBinding, F as DeleteOptions, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStreamAuthFormat, Hn as RolloutStatus, Hr as SandboxUser, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteManyFile, Ir as SandboxTerminalRequestOptions, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchEvent, Jn as SandboxEnvironment, Jr as SecretsManager, Jt as IntelligenceReportSubjectType, Ki as TerminalStreamToken, Kn as SandboxConfig, Kr as SearchOptions, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as UsageInfo, Mn as ReconcileSandboxFleetsOptions, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nn as ReconcileSandboxFleetsResult, Nr as SandboxTerminalCreateOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as TurnDriveResult, On as PublishPublicTemplateOptions, Or as SandboxResourceUsage, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as PublicBatchRunRequest, Qn as SandboxFleetCostEstimate, Qr as SessionBackendCredentials, Qt as ListOptions, R as DispatchPromptOptions, Ri as TERMINAL_WS_ECHO_SUBPROTOCOL, Rn as RolloutChildResult, Rr as SandboxTraceBundle, Rt as GpuLeaseExecResult, Si as TeeAttestationReport, Sn as ProvisionEvent, Sr as SandboxFleetWorkspaceSnapshotResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Tn as ProvisionStep, Tr as SandboxIntelligenceEnvelope, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamError, Un as RolloutTurnPart, Ur as ScopedToken, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wr as ScopedTokenScope, Wt as InstalledTool, X as EgressManager, Xi as BatchSidecarGroup, Xn as SandboxFleetArtifact, Xr as SendSessionMessageRequest, Y as EffectiveBackendSource, Yi as BatchEventDataMap, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as BatchTaskUsage, Zn as SandboxFleetArtifactSpec, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, _n as ProcessSpawnOptions, _r as SandboxFleetTraceOptions, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionStatus, an as NetworkManager, ar as SandboxFleetMachine, at as FileReadBatchResult, bi as TaskSessionProfile, bn as PromptOptions, br as SandboxFleetWorkspaceReconcileResult, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SnapshotResult, cn as PermissionsManager, cr as SandboxFleetMachineSpec, ct as FileRenameResult, d as BatchBackend, di as StartupOperation, dn as Process, dr as SandboxFleetOperationsSummary, dt as FileTreeOptions, ei as SessionForkOptions, en as ListSandboxOptions, er as SandboxFleetDispatchResponse, et as ExactProcessSpawnOptions, f as BatchResult, fi as StorageConfig, fn as ProcessInfo, fr as SandboxFleetPolicy, ft as FileTreeResult, g as BatchTaskResult, gi as TaskSessionChanges, gn as ProcessSignal, gr as SandboxFleetTraceExport, gt as FleetDispatchCancelResult, h as BatchTask, hi as TaskResult, hn as ProcessManager, hr as SandboxFleetTraceEvent, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionMessageInputPart, in as NetworkConfig, ir as SandboxFleetIntelligenceEnvelope, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UploadProgress, jn as ReapExpiredSandboxFleetsResult, jr as SandboxStatus, jt as GitConfig, k as CreateSandboxFleetOptions, ki as UpdateUserOptions, kn as PublishPublicTemplateVersionOptions, kr as SandboxResources, kt as GitBranch, l as BackendManager, ln as PreviewLinkInfo, lr as SandboxFleetManifest, lt as FileSystem, m as BatchRunRequest, mi as TaskOptions, mn as ProcessLogEntry, mr as SandboxFleetTraceBundle, mt as FileUsageResult, n as AccessPolicyRule, ni as SessionListOptions, nn as MintScopedTokenOptions, nr as SandboxFleetDriverTimings, nt as ExecResult, o as BackendCapabilities, oi as SnapshotInfo, on as NonHostAgentDriverConfig, or as SandboxFleetMachineMeteredUsage, ot as FileReadError, p as BatchRunOptions, pi as SubscriptionInfo, pn as ProcessListOptions, pr as SandboxFleetToken, pt as FileUsageOptions, q as EffectiveBackend, qi as BatchBackendStats, qn as SandboxConnection, qr as SecretInfo, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionMessage, rn as MkdirOptions, rr as SandboxFleetInfo, rt as FileInfo, s as BackendConfig, si as SnapshotOptions, sn as PermissionLevel, sr as SandboxFleetMachineRecord, st as FileReadResult, t as AcceleratorKind, ti as SessionInfo, tn as McpServerConfig, tr as SandboxFleetDriverCapability, tt as ExecOptions, u as BackendStatus, ui as StartupDiagnostics, un as PreviewLinkManager, ur as SandboxFleetManifestMachine, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionFileChange, vn as ProcessStatus, vr as SandboxFleetUsage, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeePublicKey, wn as ProvisionStatus, wr as SandboxInfo, wt as FleetMachineId, xi as TeeAttestationOptions, xn as PromptResult, xr as SandboxFleetWorkspaceRestoreResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionInfo, yn as PromptInputPart, yr as SandboxFleetWorkspace, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TerminalExitInfo, zn as RolloutOptions, zr as SandboxTraceEvent, zt as GpuLeaseManager } from "./types-BgXrR--P.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--82CsagW.js";
|
|
3
|
+
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-CSoYXeax.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DtRFVx5U.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-Cp1KYanB.js";
|
|
6
|
-
import { a as
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
6
|
+
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, r as EgressProxyRecoveryError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-D1cS-vqo.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -4192,4 +4192,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4194
4194
|
//#endregion
|
|
4195
|
-
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 BatchResult, type BatchResultAccumulator, 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 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 EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, 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 PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type 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 SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, 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, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4195
|
+
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 BatchResult, type BatchResultAccumulator, 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 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 EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, 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 PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type 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 SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, 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, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-
|
|
4
|
-
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-
|
|
5
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
1
|
+
import { m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-d1lY25yx.js";
|
|
2
|
+
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, r as EgressProxyRecoveryError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
|
+
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-CKGCvT1s.js";
|
|
4
|
+
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-DC1Gcjd-.js";
|
|
5
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-CVdLf_4n.js";
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-du724ESF.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/confidential.ts
|
|
@@ -1473,4 +1473,4 @@ function stripUndefined(value) {
|
|
|
1473
1473
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1474
1474
|
}
|
|
1475
1475
|
//#endregion
|
|
1476
|
-
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, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1476
|
+
export { AuthError, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EgressProxyRecoveryError, FileWriteConflictError, 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, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "../errors-Bf-A-4SA.js";
|
|
2
2
|
//#region src/intelligence/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* `@tangle-network/sandbox/intelligence` — browser-safe typed client for the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { a as NetworkError, c as QuotaError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, n as CapabilityError, p as ValidationError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
2
2
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const ALL_BACKEND_TYPES = Object.values({
|
|
@@ -493,15 +493,20 @@ var SandboxRuntimeApi = class {
|
|
|
493
493
|
appendSessionIdQuery(params, options.sessionId);
|
|
494
494
|
const query = params.toString();
|
|
495
495
|
await this.transport.ensureRunning();
|
|
496
|
-
|
|
496
|
+
const payload = await this.json(`/files/write${query ? `?${query}` : ""}`, {
|
|
497
497
|
method: "POST",
|
|
498
498
|
body: JSON.stringify({
|
|
499
499
|
path,
|
|
500
500
|
content,
|
|
501
501
|
...options.encoding !== void 0 ? { encoding: options.encoding } : {},
|
|
502
|
-
...options.mode !== void 0 ? { mode: options.mode } : {}
|
|
502
|
+
...options.mode !== void 0 ? { mode: options.mode } : {},
|
|
503
|
+
...options.ifHash !== void 0 ? { expectedHash: options.ifHash } : {},
|
|
504
|
+
...options.ifAbsent !== void 0 ? { ifAbsent: options.ifAbsent } : {}
|
|
503
505
|
})
|
|
504
|
-
})
|
|
506
|
+
});
|
|
507
|
+
if ([...options.ifHash !== void 0 ? ["ifHash"] : [], ...options.ifAbsent ? ["ifAbsent"] : []].some((precondition) => !payload.data?.preconditionsApplied?.includes(precondition))) throw new CapabilityError("sidecar does not support write preconditions");
|
|
508
|
+
if (!payload.data) throw new ServerError("Invalid file write response: missing data", 502);
|
|
509
|
+
return payload.data;
|
|
505
510
|
}
|
|
506
511
|
/**
|
|
507
512
|
* Upload in-memory binary or text data to the sandbox over the chunked
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ar as SandboxRuntimeHealth, Er as SandboxPortBinding, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ir as SandboxTerminalRequestOptions, N as CreateSessionOptions, Nr as SandboxTerminalCreateOptions, P as CreateTaskSessionOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Xr as SendSessionMessageRequest, Yr as SendSessionMessageOptions, Zr as SentSessionMessage, Zt as ListMessagesOptions, _i as TaskSessionCommitResult, at as FileReadBatchResult, ct as FileRenameResult, dt as FileTreeOptions, ft as FileTreeResult, gi as TaskSessionChanges, ht as FileWriteResult, it as FileReadBatchOptions, ji as UploadProgress, mt as FileUsageResult, pt as FileUsageOptions, ri as SessionMessage, ti as SessionInfo, v as ChunkedUploadOptions, w as CommitTaskSessionOptions, y as ChunkedUploadResult, yi as TaskSessionInfo } from "./types-
|
|
2
|
-
import { a as
|
|
1
|
+
import { Ar as SandboxRuntimeHealth, Er as SandboxPortBinding, Fi as WriteFileOptions, Fr as SandboxTerminalManager, Ir as SandboxTerminalRequestOptions, N as CreateSessionOptions, Nr as SandboxTerminalCreateOptions, P as CreateTaskSessionOptions, Pn as RenameOptions, Pr as SandboxTerminalInfo, Xr as SendSessionMessageRequest, Yr as SendSessionMessageOptions, Zr as SentSessionMessage, Zt as ListMessagesOptions, _i as TaskSessionCommitResult, at as FileReadBatchResult, ct as FileRenameResult, dt as FileTreeOptions, ft as FileTreeResult, gi as TaskSessionChanges, ht as FileWriteResult, it as FileReadBatchOptions, ji as UploadProgress, mt as FileUsageResult, pt as FileUsageOptions, ri as SessionMessage, ti as SessionInfo, v as ChunkedUploadOptions, w as CommitTaskSessionOptions, y as ChunkedUploadResult, yi as TaskSessionInfo } from "./types-BgXrR--P.js";
|
|
2
|
+
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/chunked-upload.d.ts
|
|
5
5
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -103,4 +103,4 @@ declare class SandboxRuntimeClient extends SandboxRuntimeApi {
|
|
|
103
103
|
}
|
|
104
104
|
declare function createSandboxRuntimeClient(config: SandboxRuntimeClientConfig): SandboxRuntimeClient;
|
|
105
105
|
//#endregion
|
|
106
|
-
export { AuthError, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, type FileWriteResult, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, ServerError, type SessionMessage, StateError, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, createSandboxRuntimeClient, uploadChunked };
|
|
106
|
+
export { AuthError, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type ChunkedUploadTransport, type FileReadBatchOptions, type FileReadBatchResult, type FileRenameResult, type FileTreeOptions, type FileTreeResult, FileWriteConflictError, type FileWriteResult, type ListMessagesOptions, NetworkError, NotFoundError, PartialFailureError, QuotaError, type RenameOptions, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, SandboxRuntimeClient, type SandboxRuntimeClientConfig, type SandboxRuntimeHealth, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, ServerError, type SessionMessage, StateError, TimeoutError, type UploadProgress, ValidationError, type WriteFileOptions, createSandboxRuntimeClient, uploadChunked };
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-
|
|
2
|
-
import { a as
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-d1lY25yx.js";
|
|
2
|
+
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
3
|
//#region src/runtime-client.ts
|
|
4
4
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
5
5
|
function requireToken(token) {
|
|
@@ -80,4 +80,4 @@ function createSandboxRuntimeClient(config) {
|
|
|
80
80
|
return new SandboxRuntimeClient(config);
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, createSandboxRuntimeClient, uploadChunked };
|
|
83
|
+
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxError, SandboxRuntimeClient, ServerError, StateError, TimeoutError, ValidationError, createSandboxRuntimeClient, uploadChunked };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $i as BackendType, $r as SessionEventStreamOptions, Ar as SandboxRuntimeHealth, At as GitCommit, Ci as TeeAttestationResponse, Cn as ProvisionResult, Er as SandboxPortBinding, Fi as WriteFileOptions, Fn as RestoreSnapshotOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Ii as WriteManyFile, In as ResumeOptions, K as DurablePlan, Kr as SearchOptions, Kt as IntelligenceReportBudget, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nt as GitStatus, Oi as TurnDriveResult, Or as SandboxResourceUsage, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pt as GpuLease, R as DispatchPromptOptions, Rr as SandboxTraceBundle, S as CodeLanguage, Sn as ProvisionEvent, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Ur as ScopedToken, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wt as InstalledTool, X as EgressManager, Xr as SendSessionMessageRequest, Xt as JsonValue, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, an as NetworkManager, b as CodeExecutionOptions, bn as PromptOptions, ci as SnapshotResult, cn as PermissionsManager, ei as SessionForkOptions, gi as TaskSessionChanges, hn as ProcessManager, ht as FileWriteResult, jr as SandboxStatus, kt as GitBranch, l as BackendManager, lt as FileSystem, mr as SandboxFleetTraceBundle, ni as SessionListOptions, nn as MintScopedTokenOptions, nt as ExecResult, oi as SnapshotInfo, qn as SandboxConnection, qt as IntelligenceReportCompareTo, ri as SessionMessage, s as BackendConfig, si as SnapshotOptions, ti as SessionInfo, tt as ExecOptions, ui as StartupDiagnostics, un as PreviewLinkManager, w as CommitTaskSessionOptions, wr as SandboxInfo, x as CodeExecutionResult, xi as TeeAttestationOptions, xn as PromptResult, yi as TaskSessionInfo, yn as PromptInputPart, z as DispatchedSession, zn as RolloutOptions, zt as GpuLeaseManager } from "./types-
|
|
1
|
+
import { $ as EventStreamOptions, $i as BackendType, $r as SessionEventStreamOptions, Ar as SandboxRuntimeHealth, At as GitCommit, Ci as TeeAttestationResponse, Cn as ProvisionResult, Er as SandboxPortBinding, Fi as WriteFileOptions, Fn as RestoreSnapshotOptions, Gn as SSHCredentials, Gr as SearchMatch, Gt as IntelligenceReport, H as DriveTurnOptions, Ii as WriteManyFile, In as ResumeOptions, K as DurablePlan, Kr as SearchOptions, Kt as IntelligenceReportBudget, Li as WriteManyOptions, Ln as Rollout, Lr as SandboxTerminals, Mr as SandboxTerminalAttachOptions, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForOptions, Nt as GitStatus, Oi as TurnDriveResult, Or as SandboxResourceUsage, P as CreateTaskSessionOptions, Pi as WaitForRolloutOptions, Pt as GpuLease, R as DispatchPromptOptions, Rr as SandboxTraceBundle, S as CodeLanguage, Sn as ProvisionEvent, T as CompletedTurnResult, Ti as TeePublicKeyResponse, Ur as ScopedToken, Vi as TerminalStream, Vn as RolloutStartResult, Vr as SandboxTraceOptions, W as DriverInfo, Wi as TerminalStreamHandlers, Wn as SSHCommandDescriptor, Wt as InstalledTool, X as EgressManager, Xr as SendSessionMessageRequest, Xt as JsonValue, Yn as SandboxEvent, Yr as SendSessionMessageOptions, Yt as IntelligenceReportWindow, Zr as SentSessionMessage, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionCommitResult, an as NetworkManager, b as CodeExecutionOptions, bn as PromptOptions, ci as SnapshotResult, cn as PermissionsManager, ei as SessionForkOptions, gi as TaskSessionChanges, hn as ProcessManager, ht as FileWriteResult, jr as SandboxStatus, kt as GitBranch, l as BackendManager, lt as FileSystem, mr as SandboxFleetTraceBundle, ni as SessionListOptions, nn as MintScopedTokenOptions, nt as ExecResult, oi as SnapshotInfo, qn as SandboxConnection, qt as IntelligenceReportCompareTo, ri as SessionMessage, s as BackendConfig, si as SnapshotOptions, ti as SessionInfo, tt as ExecOptions, ui as StartupDiagnostics, un as PreviewLinkManager, w as CommitTaskSessionOptions, wr as SandboxInfo, x as CodeExecutionResult, xi as TeeAttestationOptions, xn as PromptResult, yi as TaskSessionInfo, yn as PromptInputPart, z as DispatchedSession, zn as RolloutOptions, zt as GpuLeaseManager } from "./types-BgXrR--P.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-
|
|
2
|
-
import { a as
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-d1lY25yx.js";
|
|
2
|
+
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, n as CapabilityError, o as NotFoundError, p as ValidationError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
3
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
4
4
|
//#region src/lib/sse-parser.ts
|
|
5
5
|
/**
|
|
@@ -2066,14 +2066,19 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2066
2066
|
path,
|
|
2067
2067
|
content,
|
|
2068
2068
|
encoding: options?.encoding,
|
|
2069
|
-
mode: options?.mode
|
|
2069
|
+
mode: options?.mode,
|
|
2070
|
+
expectedHash: options?.ifHash,
|
|
2071
|
+
ifAbsent: options?.ifAbsent
|
|
2070
2072
|
})
|
|
2071
2073
|
});
|
|
2072
2074
|
if (!response.ok) {
|
|
2073
2075
|
const body = await response.text();
|
|
2074
2076
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2075
2077
|
}
|
|
2076
|
-
|
|
2078
|
+
const data = await response.json();
|
|
2079
|
+
if ([...options?.ifHash !== void 0 ? ["ifHash"] : [], ...options?.ifAbsent ? ["ifAbsent"] : []].some((precondition) => !data.data?.preconditionsApplied?.includes(precondition))) throw new CapabilityError("sidecar does not support write preconditions");
|
|
2080
|
+
if (!data.data) throw new ServerError("Invalid file write response: missing data", 502);
|
|
2081
|
+
return data.data;
|
|
2077
2082
|
}
|
|
2078
2083
|
/**
|
|
2079
2084
|
* Write many files in one paced, retry-aware batch — see
|
|
@@ -2093,7 +2098,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2093
2098
|
try {
|
|
2094
2099
|
await this.write(file.path, file.content, {
|
|
2095
2100
|
mode: file.mode,
|
|
2096
|
-
encoding: file.encoding
|
|
2101
|
+
encoding: file.encoding,
|
|
2102
|
+
ifHash: file.ifHash,
|
|
2103
|
+
ifAbsent: file.ifAbsent
|
|
2097
2104
|
});
|
|
2098
2105
|
break;
|
|
2099
2106
|
} catch (err) {
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as AgentSandboxBlueprintAbi, d as SandboxCreateParamTypes, f as SandboxCreateResponseParamTypes, i as TANGLE_CHAIN_ID, l as ITangleJobsAbi, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, p as SandboxIdParamTypes, r as JOB_SANDBOX_DELETE, s as TangleSandboxClientConfig, t as TangleSandboxClient, u as JsonResponseParamTypes } from "../index-D1cS-vqo.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TANGLE_MAINNET_RPC, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../tangle-du724ESF.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TANGLE_MAINNET_RPC, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { m as parseErrorResponse } from "./errors-Bf-A-4SA.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-DC1Gcjd-.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -5551,6 +5551,8 @@ interface FileWriteResult {
|
|
|
5551
5551
|
mtime: number;
|
|
5552
5552
|
/** Encoding echoed by runtimes that include it in write responses. */
|
|
5553
5553
|
encoding?: "utf8" | "base64";
|
|
5554
|
+
/** Preconditions the sidecar confirmed it enforced for this write. */
|
|
5555
|
+
preconditionsApplied?: ("ifHash" | "ifAbsent")[];
|
|
5554
5556
|
}
|
|
5555
5557
|
/** Metadata returned after a successful file or directory rename. */
|
|
5556
5558
|
interface FileRenameResult {
|
|
@@ -5725,6 +5727,21 @@ interface WriteManyFile {
|
|
|
5725
5727
|
mode?: number;
|
|
5726
5728
|
/** Encoding of `content` on the wire. */
|
|
5727
5729
|
encoding?: "utf8" | "base64";
|
|
5730
|
+
/**
|
|
5731
|
+
* Only write when the current content SHA-256 matches this value.
|
|
5732
|
+
* Use the hash returned by a prior {@link FileWriteResult} or
|
|
5733
|
+
* {@link FileReadResult}. The SDK detects an old sidecar only after the write
|
|
5734
|
+
* if it does not echo this precondition in `preconditionsApplied`, so the
|
|
5735
|
+
* write may already have occurred before `CapabilityError` is thrown.
|
|
5736
|
+
*/
|
|
5737
|
+
ifHash?: string;
|
|
5738
|
+
/**
|
|
5739
|
+
* Only write when the path does not exist.
|
|
5740
|
+
* The SDK detects an old sidecar only after the write if it does not echo
|
|
5741
|
+
* this precondition in `preconditionsApplied`, so the write may already have
|
|
5742
|
+
* occurred before `CapabilityError` is thrown.
|
|
5743
|
+
*/
|
|
5744
|
+
ifAbsent?: boolean;
|
|
5728
5745
|
}
|
|
5729
5746
|
/** Options for {@link FileSystem.write}. */
|
|
5730
5747
|
interface WriteFileOptions {
|
|
@@ -5734,6 +5751,21 @@ interface WriteFileOptions {
|
|
|
5734
5751
|
encoding?: "utf8" | "base64";
|
|
5735
5752
|
/** Agent session whose workspace and change history receive the write. */
|
|
5736
5753
|
sessionId?: string;
|
|
5754
|
+
/**
|
|
5755
|
+
* Only write when the current content SHA-256 matches this value.
|
|
5756
|
+
* Use the hash returned by a prior {@link FileWriteResult} or
|
|
5757
|
+
* {@link FileReadResult}. The SDK detects an old sidecar only after the write
|
|
5758
|
+
* if it does not echo this precondition in `preconditionsApplied`, so the
|
|
5759
|
+
* write may already have occurred before `CapabilityError` is thrown.
|
|
5760
|
+
*/
|
|
5761
|
+
ifHash?: string;
|
|
5762
|
+
/**
|
|
5763
|
+
* Only write when the path does not exist.
|
|
5764
|
+
* The SDK detects an old sidecar only after the write if it does not echo
|
|
5765
|
+
* this precondition in `preconditionsApplied`, so the write may already have
|
|
5766
|
+
* occurred before `CapabilityError` is thrown.
|
|
5767
|
+
*/
|
|
5768
|
+
ifAbsent?: boolean;
|
|
5737
5769
|
}
|
|
5738
5770
|
/** Options for {@link FileSystem.writeMany}. */
|
|
5739
5771
|
interface WriteManyOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.15.3-develop.
|
|
3
|
+
"version": "0.15.3-develop.20260729134815.aa93de4",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"vitest": "^4.1.5",
|
|
128
128
|
"ws": "^8.20.0",
|
|
129
129
|
"yjs": "13.6.30",
|
|
130
|
-
"@
|
|
131
|
-
"@
|
|
130
|
+
"@repo/shared": "0.0.0",
|
|
131
|
+
"@tangle-network/runtime-contracts": "0.3.2"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "node scripts/build-dist.mjs",
|