@tangle-network/sandbox 0.23.0 → 0.24.0
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-ClR-isrv.js → client-DNb9cgwE.js} +5 -4
- package/dist/{client-CF7SC1l6.d.ts → client-QSo4goVc.d.ts} +2 -2
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-CqPA0kar.js → collaboration-COCXdRrk.js} +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +3 -3
- package/dist/{errors-D2aWy99l.js → errors-C6kn-3zt.js} +4 -1
- package/dist/{index-Cx3hAzB9.d.ts → index-BBZKkva-.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/intelligence/index.js +1 -1
- package/dist/{runtime-api-Co-Ow_VR.js → runtime-api-CK-4S7oA.js} +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-CEOxB8dH.js → sandbox-Dwy2Bunb.js} +62 -7
- package/dist/{sandbox-Bqcme9Sj.d.ts → sandbox-S1ayJN7d.d.ts} +29 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BDdxSi54.js → tangle-DAoYvsA6.js} +2 -2
- package/dist/{types-CxkpqFzN.d.ts → types-Dpj6Unaq.d.ts} +30 -1
- package/package.json +1 -1
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-Dpj6Unaq.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-S1ayJN7d.js";
|
|
3
|
+
import { i as Sandbox } from "../client-QSo4goVc.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 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-
|
|
3
|
-
import {
|
|
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-CK-4S7oA.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-C6kn-3zt.js";
|
|
3
|
+
import { S as parseSSEStream, _ as normalizeConnection, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt, y as exportTraceBundle } from "./sandbox-Dwy2Bunb.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
|
|
@@ -3100,7 +3100,8 @@ var Sandbox = class {
|
|
|
3100
3100
|
expiresAt: data.expiresAt ? new Date(data.expiresAt) : void 0,
|
|
3101
3101
|
error: data.error,
|
|
3102
3102
|
gpuLease: data.gpuLease,
|
|
3103
|
-
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? void 0
|
|
3103
|
+
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? void 0,
|
|
3104
|
+
createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? void 0
|
|
3104
3105
|
};
|
|
3105
3106
|
}
|
|
3106
3107
|
_tokenRefreshHandlers = /* @__PURE__ */ new Set();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $r as SecretsManager, A as CreateSandboxFleetTokenOptions, An as PublishPublicTemplateOptions, Cn as PromptResult, Ct as FleetExecDispatchOptions, D as CreateIntelligenceReportOptions, Dr as SandboxIdentity, Dt as FleetPromptDispatchResult, Er as SandboxFleetWorkspaceSnapshotResult, Et as FleetPromptDispatchOptions, Fn as ReconcileSandboxFleetsResult, Jn as SandboxConfig, Jt as IntelligenceReportCompareTo, Kt as IntelligenceReport, M as CreateSandboxOptions, Mi as TokenRefreshHandler, Mn as ReapExpiredSandboxFleetsOptions, Nn as ReapExpiredSandboxFleetsResult, O as CreateRequestOptions, On as PublicTemplateInfo, Or as SandboxInfo, Pn as ReconcileSandboxFleetsOptions, Qn as SandboxEnvironment, Ri as UsageInfo, Sn as PromptOptions, Sr as SandboxFleetUsage, St as FleetDriveTurnRequest, Tr as SandboxFleetWorkspaceRestoreResult, Tt as FleetMachineId, Xt as IntelligenceReportWindow, _i as SshKeysManager, _r as SandboxFleetToken, _t as FleetDispatchCancelResult, a as AttachSandboxFleetMachineOptions, ar as SandboxFleetDriverCapability, bt as FleetDispatchStreamOptions, dr as SandboxFleetMachineRecord, ea as BatchEvent, en as ListSandboxFleetOptions, er as SandboxFleetArtifact, f as BatchResult, hr as SandboxFleetOperationsSummary, ir as SandboxFleetDispatchResponse, j as CreateSandboxFleetWithCoordinatorOptions, jn as PublishPublicTemplateVersionOptions, k as CreateSandboxFleetOptions, kn as PublicTemplateVersionInfo, m as BatchRunRequest, nr as SandboxFleetCostEstimate, nt as ExecOptions, p as BatchRunOptions, pr as SandboxFleetManifest, qt as IntelligenceReportBudget, rt as ExecResult, sr as SandboxFleetInfo, tn as ListSandboxOptions, tr as SandboxFleetArtifactSpec, vr as SandboxFleetTraceBundle, vt as FleetDispatchResultBuffer, wr as SandboxFleetWorkspaceReconcileResult, wt as FleetExecDispatchResult, xi as SubscriptionInfo, xn as PromptInputPart, xr as SandboxFleetTraceOptions, xt as FleetDriveTurnOutcome, yt as FleetDispatchResultBufferOptions } from "./types-Dpj6Unaq.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-S1ayJN7d.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-COCXdRrk.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "./errors-
|
|
1
|
+
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "./errors-C6kn-3zt.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 {
|
|
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-
|
|
1
|
+
import { Ir as SandboxStatus, Jn as SandboxConfig, M as CreateSandboxOptions, Or as SandboxInfo, an as NetworkConfig, dn as PreviewLinkManager, fn as PreviewLinkWaitOptions, nt as ExecOptions, rt as ExecResult, un as PreviewLinkInfo, xn as PromptInputPart } from "./types-Dpj6Unaq.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-S1ayJN7d.js";
|
|
3
|
+
import { i as Sandbox } from "./client-QSo4goVc.js";
|
|
4
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
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, 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 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-
|
|
2
|
-
import { n as Sandbox } from "./client-
|
|
3
|
-
import {
|
|
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-C6kn-3zt.js";
|
|
2
|
+
import { n as Sandbox } from "./client-DNb9cgwE.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-Dwy2Bunb.js";
|
|
4
4
|
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -273,9 +273,12 @@ function parseErrorResponse(status, body, context, headers) {
|
|
|
273
273
|
const rawReason = typeof data.reason === "string" ? data.reason : typeof errorObj === "object" && errorObj !== null ? errorObj.reason : void 0;
|
|
274
274
|
const reason = typeof rawReason === "string" && rawReason.trim().length > 0 ? rawReason.trim() : void 0;
|
|
275
275
|
const code = asErrorCode(data.code) ?? nestedCode;
|
|
276
|
+
const rawLog = typeof errorObj === "object" && errorObj !== null ? errorObj.log : void 0;
|
|
277
|
+
const logTail = typeof rawLog === "string" && rawLog.trim().length > 0 ? rawLog.trim() : void 0;
|
|
276
278
|
const prefix = context ? `${context.method ?? "REQUEST"} ${context.path ?? ""}: ` : "";
|
|
277
279
|
const composedMessage = shouldAppendDetails ? `${baseMessage}: ${details}` : baseMessage;
|
|
278
|
-
const
|
|
280
|
+
const messageWithReason = `${prefix}${reason && !composedMessage.includes(reason) ? `${composedMessage}: ${reason}` : composedMessage}`;
|
|
281
|
+
const message = logTail && !messageWithReason.includes(logTail) ? `${messageWithReason}\n${logTail}` : messageWithReason;
|
|
279
282
|
const metadata = {
|
|
280
283
|
origin: inferOrigin(headers, context),
|
|
281
284
|
endpoint: context?.path ?? headers?.get("x-tangle-request-path") ?? void 0,
|
|
@@ -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-Dpj6Unaq.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-S1ayJN7d.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 EnsureDevServerOptions, $i as
|
|
2
|
-
import { A as BuildSandboxMcpConfigOptions, C as RespondToPermissionOptions, D as SandboxInteractionResolution, E as SandboxInteractionConflict, F as SandboxMcpServerEntry, I as buildControlPlaneMcpConfig, L as buildSandboxMcpConfig, M as SANDBOX_MCP_SERVER_NAME, N as SandboxMcpConfig, O as SandboxInteractionResult, P as SandboxMcpEndpoint, S as InterruptResult, T as SandboxInteractionCommandResult, _ 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 CONTROL_PLANE_MCP_SERVER_NAME, k as BuildControlPlaneMcpConfigOptions, 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 EnsureDevServerOptions, $i as BatchBackendStats, $n as SandboxEvent, $r as SecretsManager, $t as ListOptions, Ai as TeePublicKey, An as PublishPublicTemplateOptions, Ar as SandboxPortBinding, At as GitBranch, B as DownloadOptions, Bi as WaitForRolloutOptions, Bn as RolloutChildResult, Br as SandboxTerminalManager, Bt as GpuLeaseManager, Ci as TaskSessionCommitResult, Cn as PromptResult, Cr as SandboxFleetWorkspace, Ct as FleetExecDispatchOptions, D as CreateIntelligenceReportOptions, Di as TeeAttestationOptions, Dn as ProvisionStep, Dr as SandboxIdentity, E as CreateGpuLeaseOptions, Ei as TaskSessionProfile, En as ProvisionStatus, Er as SandboxFleetWorkspaceSnapshotResult, Et as FleetPromptDispatchOptions, F as DeleteOptions, Fi as UpdateUserOptions, Fn as ReconcileSandboxFleetsResult, Fr as SandboxRuntimeHealth, Ft as GpuLease, G as DriverType, Gi as TerminalExitInfo, Gn as RolloutTurnPart, Gr as SandboxTraceExport, Gt as InstalledTool, H as DriveTurnOptions, Hi as WriteManyFile, Hn as RolloutScorer, Hr as SandboxTerminals, Ht as GpuLeaseStatus, I as DevServerInfo, Ii as UploadOptions, In as RenameOptions, Ir as SandboxStatus, It as GpuLeaseBilling, J as EffectiveBackend, Ji as TerminalStreamAuthFormat, Jn as SandboxConfig, Jr as ScopedToken, Jt as IntelligenceReportCompareTo, K as DurablePlan, Ki as TerminalReadyInfo, Kn as SSHCommandDescriptor, Kr as SandboxTraceOptions, Kt as IntelligenceReport, L as DirectoryPermission, Li as UploadProgress, Lr as SandboxTerminalAttachOptions, Lt as GpuLeaseCommandResult, M as CreateSandboxOptions, Mi as TokenRefreshHandler, Mn as ReapExpiredSandboxFleetsOptions, Mr as SandboxResourceUsage, Mt as GitConfig, N as CreateSessionOptions, Ni as TokenUsage, Nn as ReapExpiredSandboxFleetsResult, Nr as SandboxResources, Nt as GitDiff, O as CreateRequestOptions, Oi as TeeAttestationReport, On as PublicTemplateInfo, Or as SandboxInfo, Ot as GPU_LEASE_PROVIDER_NAMES, P as CreateTaskSessionOptions, Pi as TurnDriveResult, Pn as ReconcileSandboxFleetsOptions, Pr as SandboxRuntimeCapabilities, Pt as GitStatus, Q as EgressPolicy, Qi as TerminalStreamToken, Qn as SandboxEnvironment, Qr as SecretInfo, Qt as ListMessagesOptions, R as DispatchPromptOptions, Ri as UsageInfo, Rr as SandboxTerminalCreateOptions, Rt as GpuLeaseExecOptions, Si as TaskSessionChanges, Sn as PromptOptions, Sr as SandboxFleetUsage, St as FleetDriveTurnRequest, T as CompletedTurnResult, Ti as TaskSessionInfo, Tn as ProvisionResult, Tr as SandboxFleetWorkspaceRestoreResult, Tt as FleetMachineId, U as DriverConfig, Ui as WriteManyOptions, Un as RolloutStartResult, Ur as SandboxTraceBundle, Ut as HostAgentDriverConfig, V as DownloadProgress, Vi as WriteFileOptions, Vn as RolloutOptions, Vr as SandboxTerminalRequestOptions, Vt as GpuLeaseProviderName, W as DriverInfo, Wi as TERMINAL_WS_ECHO_SUBPROTOCOL, Wn as RolloutStatus, Wr as SandboxTraceEvent, Wt as HostAgentRuntimeBackend, X as EffectiveBackendSource, Xi as TerminalStreamHandlers, Xn as SandboxCreateOutcome, Xr as SearchMatch, Xt as IntelligenceReportWindow, Y as EffectiveBackendProfile, Yi as TerminalStreamError, Yn as SandboxConnection, Yr as ScopedTokenScope, Yt as IntelligenceReportSubjectType, Z as EgressManager, Zi as TerminalStreamOptions, Zn as SandboxCreateReceipt, Zr as SearchOptions, _ as BranchOptions, _n as ProcessManager, _r as SandboxFleetToken, _t as FleetDispatchCancelResult, a as AttachSandboxFleetMachineOptions, aa as BackendType, ai as SessionFailureReason, an as NetworkConfig, ar as SandboxFleetDriverCapability, at as FileReadBatchOptions, bi as StorageConfig, bn as ProcessStatus, br as SandboxFleetTraceExport, bt as FleetDispatchStreamOptions, c as BackendInfo, ci as SessionInterruptOptions, cn as PermissionLevel, cr as SandboxFleetIntelligenceEnvelope, ct as FileReadResult, d as BatchBackend, di as SessionMessageInputPart, dn as PreviewLinkManager, dr as SandboxFleetMachineRecord, dt as FileTreeFile, ea as BatchEvent, ei as SendSessionMessageOptions, en as ListSandboxFleetOptions, er as SandboxFleetArtifact, et as EventStreamOptions, f as BatchResult, fi as SessionResultOptions, fn as PreviewLinkWaitOptions, fr as SandboxFleetMachineSpec, ft as FileTreeOptions, g as BatchTaskResult, gi as SnapshotResult, gn as ProcessLogEntry, gr as SandboxFleetPolicy, gt as FileWriteResult, h as BatchTask, hi as SnapshotOptions, hn as ProcessListOptions, hr as SandboxFleetOperationsSummary, ht as FileUsageResult, i as AttachGpuLeaseOptions, ia as PublicBatchRunRequest, ii as SessionEventStreamOptions, in as MkdirOptions, ir as SandboxFleetDispatchResponse, it as FileInfo, j as CreateSandboxFleetWithCoordinatorOptions, ji as TeePublicKeyResponse, jn as PublishPublicTemplateVersionOptions, jr as SandboxPortPreviewLink, jt as GitCommit, k as CreateSandboxFleetOptions, ki as TeeAttestationResponse, kn as PublicTemplateVersionInfo, kr as SandboxIntelligenceEnvelope, kt as GitAuth, l as BackendManager, li as SessionListOptions, ln as PermissionsManager, lr as SandboxFleetMachine, lt as FileRenameResult, m as BatchRunRequest, mi as SnapshotInfo, mn as ProcessInfo, mr as SandboxFleetManifestMachine, mt as FileUsageOptions, n as AccessPolicyRule, na as BatchSidecarGroup, ni as SentSessionMessage, nn as McpServerConfig, nr as SandboxFleetCostEstimate, nt as ExecOptions, o as BackendCapabilities, oa as parseBackendType, oi as SessionForkOptions, on as NetworkManager, or as SandboxFleetDriverTimings, ot as FileReadBatchResult, p as BatchRunOptions, pi as SessionStatus, pn as Process, pr as SandboxFleetManifest, pt as FileTreeResult, q as DurablePlanDecisionResult, qi as TerminalStream, qn as SSHCredentials, qr as SandboxUser, qt as IntelligenceReportBudget, r as AddUserOptions, ra as BatchTaskUsage, ri as SessionBackendCredentials, rn as MintScopedTokenOptions, rr as SandboxFleetDispatchFailureClass, rt as ExecResult, s as BackendConfig, si as SessionInfo, sn as NonHostAgentDriverConfig, sr as SandboxFleetInfo, st as FileReadError, t as AcceleratorKind, ta as BatchEventDataMap, ti as SendSessionMessageRequest, tn as ListSandboxOptions, tr as SandboxFleetArtifactSpec, tt as ExactProcessSpawnOptions, u as BackendStatus, ui as SessionMessage, un as PreviewLinkInfo, ur as SandboxFleetMachineMeteredUsage, ut as FileSystem, v as ChunkedUploadOptions, vi as StartupDiagnostics, vn as ProcessSignal, vr as SandboxFleetTraceBundle, vt as FleetDispatchResultBuffer, w as CommitTaskSessionOptions, wi as TaskSessionFileChange, wn as ProvisionEvent, wr as SandboxFleetWorkspaceReconcileResult, xi as SubscriptionInfo, xn as PromptInputPart, xr as SandboxFleetTraceOptions, xt as FleetDriveTurnOutcome, y as ChunkedUploadResult, yi as StartupOperation, yn as ProcessSpawnOptions, yr as SandboxFleetTraceEvent, yt as FleetDispatchResultBufferOptions, z as DispatchedSession, zi as WaitForOptions, zn as Rollout, zr as SandboxTerminalInfo, zt as GpuLeaseExecResult } from "./types-Dpj6Unaq.js";
|
|
2
|
+
import { A as BuildSandboxMcpConfigOptions, C as RespondToPermissionOptions, D as SandboxInteractionResolution, E as SandboxInteractionConflict, F as SandboxMcpServerEntry, I as buildControlPlaneMcpConfig, L as buildSandboxMcpConfig, M as SANDBOX_MCP_SERVER_NAME, N as SandboxMcpConfig, O as SandboxInteractionResult, P as SandboxMcpEndpoint, S as InterruptResult, T as SandboxInteractionCommandResult, _ 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 CONTROL_PLANE_MCP_SERVER_NAME, k as BuildControlPlaneMcpConfigOptions, 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-S1ayJN7d.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-QSo4goVc.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
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-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-BBZKkva-.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -4425,4 +4425,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4425
4425
|
}
|
|
4426
4426
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4427
4427
|
//#endregion
|
|
4428
|
-
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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, 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 DurablePlan, type DurablePlanDecisionResult, 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 PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, 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 SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, 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 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, collectAgentFinalMessageText, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4428
|
+
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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, 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 DurablePlan, type DurablePlanDecisionResult, 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 PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, 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 SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, 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 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, collectAgentFinalMessageText, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-
|
|
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-
|
|
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 {
|
|
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 { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-CK-4S7oA.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-C6kn-3zt.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-DNb9cgwE.js";
|
|
4
|
+
import { S as parseSSEStream, a as WorkspaceImages, b as otelTraceIdForTangleTrace, c as TerminalStreamError, d as InteractiveSessionHandle, f as applySandboxEventText, g as isToolBearingEvent, h as getSandboxEventText, l as SandboxTaskSession, m as collectAgentResponseText, o as TERMINAL_WS_ECHO_SUBPROTOCOL, p as collectAgentFinalMessageText, s as TerminalStream, t as SandboxInstance, u as SandboxSession, v as buildTraceExportPayload, x as toOtelJson, y as exportTraceBundle } from "./sandbox-Dwy2Bunb.js";
|
|
5
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-COCXdRrk.js";
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-DAoYvsA6.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "../errors-
|
|
1
|
+
import { a as NetworkError, f as TimeoutError, m as parseErrorResponse } from "../errors-C6kn-3zt.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 { 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-
|
|
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-C6kn-3zt.js";
|
|
2
2
|
import { AgentExactRunControlRefSchema, agentProfileSchema, harnessTypeSchema } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.js
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as SandboxPortBinding, Br as SandboxTerminalManager, Ci as TaskSessionCommitResult, Fr as SandboxRuntimeHealth, In as RenameOptions, Li as UploadProgress, N as CreateSessionOptions, P as CreateTaskSessionOptions, Qt as ListMessagesOptions, Rr as SandboxTerminalCreateOptions, Si as TaskSessionChanges, Ti as TaskSessionInfo, Vi as WriteFileOptions, Vr as SandboxTerminalRequestOptions, at as FileReadBatchOptions, ei as SendSessionMessageOptions, ft as FileTreeOptions, gt as FileWriteResult, ht as FileUsageResult, lt as FileRenameResult, mt as FileUsageOptions, ni as SentSessionMessage, ot as FileReadBatchResult, pt as FileTreeResult, si as SessionInfo, ti as SendSessionMessageRequest, ui as SessionMessage, v as ChunkedUploadOptions, w as CommitTaskSessionOptions, y as ChunkedUploadResult, zr as SandboxTerminalInfo } from "./types-Dpj6Unaq.js";
|
|
2
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
|
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 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-
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-CK-4S7oA.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-C6kn-3zt.js";
|
|
3
3
|
//#region src/runtime-client.ts
|
|
4
4
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
5
5
|
function requireToken(token) {
|
|
@@ -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, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-
|
|
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-
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-CK-4S7oA.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-C6kn-3zt.js";
|
|
3
3
|
import { AgentExactRunControlRefSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, InteractionAcknowledgementSchema, InteractionBindingSchema, InteractionRequestSchema, InteractionResponseCommandSchema, InteractionResponseSchema, agentRunCancellationAcknowledgementMatchesRequest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
@@ -1754,6 +1754,30 @@ function normalizeStartupDiagnostics(raw) {
|
|
|
1754
1754
|
phases
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
|
+
const SANDBOX_CREATE_OUTCOMES = [
|
|
1758
|
+
"created",
|
|
1759
|
+
"idempotent_replay",
|
|
1760
|
+
"unknown"
|
|
1761
|
+
];
|
|
1762
|
+
/**
|
|
1763
|
+
* Normalize the raw `createReceipt` field from a sandbox API response into a
|
|
1764
|
+
* {@link SandboxCreateReceipt}. Returns `null` when the payload is absent or
|
|
1765
|
+
* carries no boolean `idempotencyKeyApplied` — the platform emits the receipt
|
|
1766
|
+
* only on the create response, so most reads have no payload to normalize.
|
|
1767
|
+
*
|
|
1768
|
+
* An outcome this SDK version does not know becomes `unknown`: only a known
|
|
1769
|
+
* `created` proves that the call allocated the environment.
|
|
1770
|
+
*/
|
|
1771
|
+
function normalizeSandboxCreateReceipt(raw) {
|
|
1772
|
+
if (!raw || typeof raw !== "object") return null;
|
|
1773
|
+
const record = raw;
|
|
1774
|
+
const idempotencyKeyApplied = record.idempotencyKeyApplied;
|
|
1775
|
+
if (typeof idempotencyKeyApplied !== "boolean") return null;
|
|
1776
|
+
return {
|
|
1777
|
+
outcome: SANDBOX_CREATE_OUTCOMES.includes(record.outcome) ? record.outcome : "unknown",
|
|
1778
|
+
idempotencyKeyApplied
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1757
1781
|
/**
|
|
1758
1782
|
* Replace bearer-secret fields on a `SandboxConnection` with a sentinel
|
|
1759
1783
|
* before serialization. The serialized shape is preserved (so external
|
|
@@ -2249,6 +2273,25 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2249
2273
|
return this.info.startupDiagnostics ?? null;
|
|
2250
2274
|
}
|
|
2251
2275
|
/**
|
|
2276
|
+
* The platform verdict for the create call that returned this sandbox: did
|
|
2277
|
+
* the call allocate the environment, or did it replay an earlier create that
|
|
2278
|
+
* carried the same idempotency key.
|
|
2279
|
+
*
|
|
2280
|
+
* Present only on a freshly created box; `null` for a box resolved by id and
|
|
2281
|
+
* `null` when the platform reported no receipt. Delete the environment only
|
|
2282
|
+
* on a `created` outcome — every other value permits another caller to hold
|
|
2283
|
+
* it, and a delete then destroys work that caller depends on.
|
|
2284
|
+
*
|
|
2285
|
+
* @example
|
|
2286
|
+
* ```typescript
|
|
2287
|
+
* const receipt = box.createReceipt();
|
|
2288
|
+
* if (receipt?.outcome === "created") await box.delete();
|
|
2289
|
+
* ```
|
|
2290
|
+
*/
|
|
2291
|
+
createReceipt() {
|
|
2292
|
+
return this.info.createReceipt ?? null;
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2252
2295
|
* Serialize to the public sandbox shape for logs and structured
|
|
2253
2296
|
* output. Secrets in `connection` (currently `authToken`) are
|
|
2254
2297
|
* redacted so that `JSON.stringify(box)` is safe to ship to log
|
|
@@ -2366,7 +2409,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2366
2409
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2367
2410
|
}
|
|
2368
2411
|
const data = await response.json();
|
|
2369
|
-
this.info = this.parseInfo(data);
|
|
2412
|
+
this.info = this.parseInfo(data, this.info);
|
|
2370
2413
|
sandboxStatusObservedAt.set(this, Date.now());
|
|
2371
2414
|
}
|
|
2372
2415
|
/**
|
|
@@ -5658,7 +5701,18 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5658
5701
|
sessionId: data.sessionId ?? opts.sessionId
|
|
5659
5702
|
};
|
|
5660
5703
|
}
|
|
5661
|
-
|
|
5704
|
+
/**
|
|
5705
|
+
* Parse a sandbox API payload into `SandboxInfo`.
|
|
5706
|
+
*
|
|
5707
|
+
* `carryCreateFacts` supplies the create-time facts a refresh must keep:
|
|
5708
|
+
* the GPU lease, the startup diagnostics, and the create receipt each arrive
|
|
5709
|
+
* once on the create response and are absent from every later payload. They
|
|
5710
|
+
* describe ONE environment's creation, so they travel only when the payload
|
|
5711
|
+
* describes that same environment. A payload for a different sandbox — a
|
|
5712
|
+
* branch child parsed through its parent — passes no carry, or the child
|
|
5713
|
+
* would report its parent's create verdict.
|
|
5714
|
+
*/
|
|
5715
|
+
parseInfo(data, carryCreateFacts) {
|
|
5662
5716
|
const id = data.id ?? this.id;
|
|
5663
5717
|
const incarnation = readFilesystemIncarnationTuple(data);
|
|
5664
5718
|
const incarnationComplete = incarnation.complete;
|
|
@@ -5678,8 +5732,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5678
5732
|
lastActivityAt: data.lastActivityAt ? new Date(data.lastActivityAt) : void 0,
|
|
5679
5733
|
expiresAt: data.expiresAt ? new Date(data.expiresAt) : void 0,
|
|
5680
5734
|
error: data.error,
|
|
5681
|
-
gpuLease: data.gpuLease ??
|
|
5682
|
-
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ??
|
|
5735
|
+
gpuLease: data.gpuLease ?? carryCreateFacts?.gpuLease,
|
|
5736
|
+
startupDiagnostics: normalizeStartupDiagnostics(data.startupDiagnostics) ?? carryCreateFacts?.startupDiagnostics,
|
|
5737
|
+
createReceipt: normalizeSandboxCreateReceipt(data.createReceipt) ?? carryCreateFacts?.createReceipt
|
|
5683
5738
|
};
|
|
5684
5739
|
}
|
|
5685
5740
|
sleep(ms) {
|
|
@@ -6557,4 +6612,4 @@ function quoteForShell(value) {
|
|
|
6557
6612
|
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
6558
6613
|
}
|
|
6559
6614
|
//#endregion
|
|
6560
|
-
export {
|
|
6615
|
+
export { parseSSEStream as S, normalizeConnection as _, WorkspaceImages as a, otelTraceIdForTangleTrace as b, TerminalStreamError as c, InteractiveSessionHandle as d, applySandboxEventText as f, isToolBearingEvent as g, getSandboxEventText as h, normalizeStartupDiagnostics as i, SandboxTaskSession as l, collectAgentResponseText as m, createSandboxInstanceFromResponse as n, TERMINAL_WS_ECHO_SUBPROTOCOL as o, collectAgentFinalMessageText as p, normalizeSandboxCreateReceipt as r, TerminalStream as s, SandboxInstance as t, SandboxSession as u, buildTraceExportPayload as v, toOtelJson as x, exportTraceBundle as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $n as SandboxEvent, Ar as SandboxPortBinding, At as GitBranch, Bi as WaitForRolloutOptions, Bt as GpuLeaseManager, Ci as TaskSessionCommitResult, Cn as PromptResult, Di as TeeAttestationOptions, Fr as SandboxRuntimeHealth, Ft as GpuLease, Gt as InstalledTool, H as DriveTurnOptions, Hi as WriteManyFile, Hr as SandboxTerminals, Ir as SandboxStatus, Jr as ScopedToken, Jt as IntelligenceReportCompareTo, K as DurablePlan, Kn as SSHCommandDescriptor, Kr as SandboxTraceOptions, Kt as IntelligenceReport, Ln as RestoreSnapshotOptions, Lr as SandboxTerminalAttachOptions, Mr as SandboxResourceUsage, N as CreateSessionOptions, Nt as GitDiff, Or as SandboxInfo, P as CreateTaskSessionOptions, Pi as TurnDriveResult, Pr as SandboxRuntimeCapabilities, Pt as GitStatus, Qt as ListMessagesOptions, R as DispatchPromptOptions, Rn as ResumeOptions, S as CodeLanguage, Si as TaskSessionChanges, Sn as PromptOptions, T as CompletedTurnResult, Ti as TaskSessionInfo, Tn as ProvisionResult, Ui as WriteManyOptions, Un as RolloutStartResult, Ur as SandboxTraceBundle, Vi as WriteFileOptions, Vn as RolloutOptions, W as DriverInfo, Xi as TerminalStreamHandlers, Xr as SearchMatch, Xt as IntelligenceReportWindow, Yn as SandboxConnection, Z as EgressManager, Zn as SandboxCreateReceipt, Zr as SearchOptions, Zt as JsonValue, _ as BranchOptions, _n as ProcessManager, aa as BackendType, b as CodeExecutionOptions, ci as SessionInterruptOptions, dn as PreviewLinkManager, ei as SendSessionMessageOptions, et as EventStreamOptions, fi as SessionResultOptions, gi as SnapshotResult, gt as FileWriteResult, hi as SnapshotOptions, ii as SessionEventStreamOptions, ji as TeePublicKeyResponse, jt as GitCommit, ki as TeeAttestationResponse, l as BackendManager, li as SessionListOptions, ln as PermissionsManager, mi as SnapshotInfo, ni as SentSessionMessage, nt as ExecOptions, oi as SessionForkOptions, on as NetworkManager, q as DurablePlanDecisionResult, qi as TerminalStream, qn as SSHCredentials, qt as IntelligenceReportBudget, rn as MintScopedTokenOptions, rt as ExecResult, s as BackendConfig, si as SessionInfo, ti as SendSessionMessageRequest, ui as SessionMessage, ut as FileSystem, vi as StartupDiagnostics, vr as SandboxFleetTraceBundle, w as CommitTaskSessionOptions, wn as ProvisionEvent, x as CodeExecutionResult, xn as PromptInputPart, z as DispatchedSession, zi as WaitForOptions, zn as Rollout } from "./types-Dpj6Unaq.js";
|
|
2
2
|
import { AgentProfile, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand } from "@tangle-network/agent-interface";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -728,6 +728,23 @@ declare class SandboxInstance {
|
|
|
728
728
|
* ```
|
|
729
729
|
*/
|
|
730
730
|
startupDiagnostics(): StartupDiagnostics | null;
|
|
731
|
+
/**
|
|
732
|
+
* The platform verdict for the create call that returned this sandbox: did
|
|
733
|
+
* the call allocate the environment, or did it replay an earlier create that
|
|
734
|
+
* carried the same idempotency key.
|
|
735
|
+
*
|
|
736
|
+
* Present only on a freshly created box; `null` for a box resolved by id and
|
|
737
|
+
* `null` when the platform reported no receipt. Delete the environment only
|
|
738
|
+
* on a `created` outcome — every other value permits another caller to hold
|
|
739
|
+
* it, and a delete then destroys work that caller depends on.
|
|
740
|
+
*
|
|
741
|
+
* @example
|
|
742
|
+
* ```typescript
|
|
743
|
+
* const receipt = box.createReceipt();
|
|
744
|
+
* if (receipt?.outcome === "created") await box.delete();
|
|
745
|
+
* ```
|
|
746
|
+
*/
|
|
747
|
+
createReceipt(): SandboxCreateReceipt | null;
|
|
731
748
|
/**
|
|
732
749
|
* Serialize to the public sandbox shape for logs and structured
|
|
733
750
|
* output. Secrets in `connection` (currently `authToken`) are
|
|
@@ -1654,6 +1671,17 @@ declare class SandboxInstance {
|
|
|
1654
1671
|
success: boolean;
|
|
1655
1672
|
sessionId: string;
|
|
1656
1673
|
}>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Parse a sandbox API payload into `SandboxInfo`.
|
|
1676
|
+
*
|
|
1677
|
+
* `carryCreateFacts` supplies the create-time facts a refresh must keep:
|
|
1678
|
+
* the GPU lease, the startup diagnostics, and the create receipt each arrive
|
|
1679
|
+
* once on the create response and are absent from every later payload. They
|
|
1680
|
+
* describe ONE environment's creation, so they travel only when the payload
|
|
1681
|
+
* describes that same environment. A payload for a different sandbox — a
|
|
1682
|
+
* branch child parsed through its parent — passes no carry, or the child
|
|
1683
|
+
* would report its parent's create verdict.
|
|
1684
|
+
*/
|
|
1657
1685
|
private parseInfo;
|
|
1658
1686
|
private sleep;
|
|
1659
1687
|
/**
|
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-BBZKkva-.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-DAoYvsA6.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 { m as parseErrorResponse } from "./errors-
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { m as parseErrorResponse } from "./errors-C6kn-3zt.js";
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-Dwy2Bunb.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -2077,6 +2077,28 @@ interface StartupDiagnostics {
|
|
|
2077
2077
|
/** Derived map of operation name → measured duration in milliseconds. */
|
|
2078
2078
|
phases: Record<string, number>;
|
|
2079
2079
|
}
|
|
2080
|
+
/**
|
|
2081
|
+
* What one `create()` call did to the sandbox environment.
|
|
2082
|
+
*
|
|
2083
|
+
* - `created`: the call allocated the environment. The platform states this
|
|
2084
|
+
* only when the create identity belonged to the call alone.
|
|
2085
|
+
* - `idempotent_replay`: the platform returned the environment that an earlier
|
|
2086
|
+
* call with the same idempotency key allocated. The call allocated nothing.
|
|
2087
|
+
* - `unknown`: the platform cannot prove either outcome, so another caller can
|
|
2088
|
+
* hold the environment.
|
|
2089
|
+
*/
|
|
2090
|
+
type SandboxCreateOutcome = "created" | "idempotent_replay" | "unknown";
|
|
2091
|
+
/**
|
|
2092
|
+
* The platform verdict for one create call.
|
|
2093
|
+
*
|
|
2094
|
+
* Delete the environment only on a `created` outcome. `idempotencyKeyApplied`
|
|
2095
|
+
* reports whether the idempotency key selected the environment: a false value
|
|
2096
|
+
* means a retry of the same request allocates a second sandbox.
|
|
2097
|
+
*/
|
|
2098
|
+
interface SandboxCreateReceipt {
|
|
2099
|
+
outcome: SandboxCreateOutcome;
|
|
2100
|
+
idempotencyKeyApplied: boolean;
|
|
2101
|
+
}
|
|
2080
2102
|
/**
|
|
2081
2103
|
* Full sandbox information returned from the API.
|
|
2082
2104
|
*/
|
|
@@ -2116,6 +2138,13 @@ interface SandboxInfo {
|
|
|
2116
2138
|
* directly.
|
|
2117
2139
|
*/
|
|
2118
2140
|
startupDiagnostics?: StartupDiagnostics;
|
|
2141
|
+
/**
|
|
2142
|
+
* The platform verdict for the create call that returned this sandbox.
|
|
2143
|
+
* Present only on the create response. An absent value means the platform
|
|
2144
|
+
* reported no receipt: treat it as `unknown`, never as `created`. Use
|
|
2145
|
+
* {@link SandboxInstance.createReceipt} rather than reading this directly.
|
|
2146
|
+
*/
|
|
2147
|
+
createReceipt?: SandboxCreateReceipt;
|
|
2119
2148
|
/** Resolved egress policy */
|
|
2120
2149
|
egressPolicy?: EgressPolicy;
|
|
2121
2150
|
/** Source of the egress policy */
|
|
@@ -6274,4 +6303,4 @@ interface CodeExecutionOptions {
|
|
|
6274
6303
|
idempotencyKey?: string;
|
|
6275
6304
|
}
|
|
6276
6305
|
//#endregion
|
|
6277
|
-
export { EnsureDevServerOptions as $,
|
|
6306
|
+
export { EnsureDevServerOptions as $, BatchBackendStats as $i, SandboxEvent as $n, SecretsManager as $r, ListOptions as $t, CreateSandboxFleetTokenOptions as A, TeePublicKey as Ai, PublishPublicTemplateOptions as An, SandboxPortBinding as Ar, GitBranch as At, DownloadOptions as B, WaitForRolloutOptions as Bi, RolloutChildResult as Bn, SandboxTerminalManager as Br, GpuLeaseManager as Bt, CodeResultPart as C, TaskSessionCommitResult as Ci, PromptResult as Cn, SandboxFleetWorkspace as Cr, FleetExecDispatchOptions as Ct, CreateIntelligenceReportOptions as D, TeeAttestationOptions as Di, ProvisionStep as Dn, SandboxIdentity as Dr, FleetPromptDispatchResult as Dt, CreateGpuLeaseOptions as E, TaskSessionProfile as Ei, ProvisionStatus as En, SandboxFleetWorkspaceSnapshotResult as Er, FleetPromptDispatchOptions as Et, DeleteOptions as F, UpdateUserOptions as Fi, ReconcileSandboxFleetsResult as Fn, SandboxRuntimeHealth as Fr, GpuLease as Ft, DriverType as G, TerminalExitInfo as Gi, RolloutTurnPart as Gn, SandboxTraceExport as Gr, InstalledTool as Gt, DriveTurnOptions as H, WriteManyFile as Hi, RolloutScorer as Hn, SandboxTerminals as Hr, GpuLeaseStatus as Ht, DevServerInfo as I, UploadOptions as Ii, RenameOptions as In, SandboxStatus as Ir, GpuLeaseBilling as It, EffectiveBackend as J, TerminalStreamAuthFormat as Ji, SandboxConfig as Jn, ScopedToken as Jr, IntelligenceReportCompareTo as Jt, DurablePlan as K, TerminalReadyInfo as Ki, SSHCommandDescriptor as Kn, SandboxTraceOptions as Kr, IntelligenceReport as Kt, DirectoryPermission as L, UploadProgress as Li, RestoreSnapshotOptions as Ln, SandboxTerminalAttachOptions as Lr, GpuLeaseCommandResult as Lt, CreateSandboxOptions as M, TokenRefreshHandler as Mi, ReapExpiredSandboxFleetsOptions as Mn, SandboxResourceUsage as Mr, GitConfig as Mt, CreateSessionOptions as N, TokenUsage as Ni, ReapExpiredSandboxFleetsResult as Nn, SandboxResources as Nr, GitDiff as Nt, CreateRequestOptions as O, TeeAttestationReport as Oi, PublicTemplateInfo as On, SandboxInfo as Or, GPU_LEASE_PROVIDER_NAMES as Ot, CreateTaskSessionOptions as P, TurnDriveResult as Pi, ReconcileSandboxFleetsOptions as Pn, SandboxRuntimeCapabilities as Pr, GitStatus as Pt, EgressPolicy as Q, TerminalStreamToken as Qi, SandboxEnvironment as Qn, SecretInfo as Qr, ListMessagesOptions as Qt, DispatchPromptOptions as R, UsageInfo as Ri, ResumeOptions as Rn, SandboxTerminalCreateOptions as Rr, GpuLeaseExecOptions as Rt, CodeLanguage as S, TaskSessionChanges as Si, PromptOptions as Sn, SandboxFleetUsage as Sr, FleetDriveTurnRequest as St, CompletedTurnResult as T, TaskSessionInfo as Ti, ProvisionResult as Tn, SandboxFleetWorkspaceRestoreResult as Tr, FleetMachineId as Tt, DriverConfig as U, WriteManyOptions as Ui, RolloutStartResult as Un, SandboxTraceBundle as Ur, HostAgentDriverConfig as Ut, DownloadProgress as V, WriteFileOptions as Vi, RolloutOptions as Vn, SandboxTerminalRequestOptions as Vr, GpuLeaseProviderName as Vt, DriverInfo as W, TERMINAL_WS_ECHO_SUBPROTOCOL as Wi, RolloutStatus as Wn, SandboxTraceEvent as Wr, HostAgentRuntimeBackend as Wt, EffectiveBackendSource as X, TerminalStreamHandlers as Xi, SandboxCreateOutcome as Xn, SearchMatch as Xr, IntelligenceReportWindow as Xt, EffectiveBackendProfile as Y, TerminalStreamError as Yi, SandboxConnection as Yn, ScopedTokenScope as Yr, IntelligenceReportSubjectType as Yt, EgressManager as Z, TerminalStreamOptions as Zi, SandboxCreateReceipt as Zn, SearchOptions as Zr, JsonValue as Zt, BranchOptions as _, SshKeysManager as _i, ProcessManager as _n, SandboxFleetToken as _r, FleetDispatchCancelResult as _t, AttachSandboxFleetMachineOptions as a, BackendType as aa, SessionFailureReason as ai, NetworkConfig as an, SandboxFleetDriverCapability as ar, FileReadBatchOptions as at, CodeExecutionOptions as b, StorageConfig as bi, ProcessStatus as bn, SandboxFleetTraceExport as br, FleetDispatchStreamOptions as bt, BackendInfo as c, SessionInterruptOptions as ci, PermissionLevel as cn, SandboxFleetIntelligenceEnvelope as cr, FileReadResult as ct, BatchBackend as d, SessionMessageInputPart as di, PreviewLinkManager as dn, SandboxFleetMachineRecord as dr, FileTreeFile as dt, BatchEvent as ea, SendSessionMessageOptions as ei, ListSandboxFleetOptions as en, SandboxFleetArtifact as er, EventStreamOptions as et, BatchResult as f, SessionResultOptions as fi, PreviewLinkWaitOptions as fn, SandboxFleetMachineSpec as fr, FileTreeOptions as ft, BatchTaskResult as g, SnapshotResult as gi, ProcessLogEntry as gn, SandboxFleetPolicy as gr, FileWriteResult as gt, BatchTask as h, SnapshotOptions as hi, ProcessListOptions as hn, SandboxFleetOperationsSummary as hr, FileUsageResult as ht, AttachGpuLeaseOptions as i, PublicBatchRunRequest as ia, SessionEventStreamOptions as ii, MkdirOptions as in, SandboxFleetDispatchResponse as ir, FileInfo as it, CreateSandboxFleetWithCoordinatorOptions as j, TeePublicKeyResponse as ji, PublishPublicTemplateVersionOptions as jn, SandboxPortPreviewLink as jr, GitCommit as jt, CreateSandboxFleetOptions as k, TeeAttestationResponse as ki, PublicTemplateVersionInfo as kn, SandboxIntelligenceEnvelope as kr, GitAuth as kt, BackendManager as l, SessionListOptions as li, PermissionsManager as ln, SandboxFleetMachine as lr, FileRenameResult as lt, BatchRunRequest as m, SnapshotInfo as mi, ProcessInfo as mn, SandboxFleetManifestMachine as mr, FileUsageOptions as mt, AccessPolicyRule as n, BatchSidecarGroup as na, SentSessionMessage as ni, McpServerConfig as nn, SandboxFleetCostEstimate as nr, ExecOptions as nt, BackendCapabilities as o, parseBackendType as oa, SessionForkOptions as oi, NetworkManager as on, SandboxFleetDriverTimings as or, FileReadBatchResult as ot, BatchRunOptions as p, SessionStatus as pi, Process as pn, SandboxFleetManifest as pr, FileTreeResult as pt, DurablePlanDecisionResult as q, TerminalStream as qi, SSHCredentials as qn, SandboxUser as qr, IntelligenceReportBudget as qt, AddUserOptions as r, BatchTaskUsage as ra, SessionBackendCredentials as ri, MintScopedTokenOptions as rn, SandboxFleetDispatchFailureClass as rr, ExecResult as rt, BackendConfig as s, SessionInfo as si, NonHostAgentDriverConfig as sn, SandboxFleetInfo as sr, FileReadError as st, AcceleratorKind as t, BatchEventDataMap as ta, SendSessionMessageRequest as ti, ListSandboxOptions as tn, SandboxFleetArtifactSpec as tr, ExactProcessSpawnOptions as tt, BackendStatus as u, SessionMessage as ui, PreviewLinkInfo as un, SandboxFleetMachineMeteredUsage as ur, FileSystem as ut, ChunkedUploadOptions as v, StartupDiagnostics as vi, ProcessSignal as vn, SandboxFleetTraceBundle as vr, FleetDispatchResultBuffer as vt, CommitTaskSessionOptions as w, TaskSessionFileChange as wi, ProvisionEvent as wn, SandboxFleetWorkspaceReconcileResult as wr, FleetExecDispatchResult as wt, CodeExecutionResult as x, SubscriptionInfo as xi, PromptInputPart as xn, SandboxFleetTraceOptions as xr, FleetDriveTurnOutcome as xt, ChunkedUploadResult as y, StartupOperation as yi, ProcessSpawnOptions as yn, SandboxFleetTraceEvent as yr, FleetDispatchResultBufferOptions as yt, DispatchedSession as z, WaitForOptions as zi, Rollout as zn, SandboxTerminalInfo as zr, GpuLeaseExecResult as zt };
|
package/package.json
CHANGED