@tangle-network/sandbox 0.9.4-develop.20260712032519.4303618 → 0.9.4-develop.20260712234415.c6da6eb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +2 -2
- package/dist/{client-DvS0QZW1.d.ts → client-B8i6qrQr.d.ts} +1 -1
- package/dist/{client-AcFYKmNB.js → client-CTbtS70f.js} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/{index-CLaqO8VS.d.ts → index-BFnMEze6.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/{sandbox-Di7HEu5T.js → sandbox-BrAeCPJP.js} +41 -8
- package/dist/{sandbox-GFwpmXR6.d.ts → sandbox-BtNWbfd3.d.ts} +17 -0
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-b3Esb6wU.js → tangle-DySjV2Vl.js} +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as CodeLanguage, E as CodeExecutionResult, T as CodeExecutionOptions, k as CodeResultPart } from "../types-BvSoEHz8.js";
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as SandboxClient } from "../client-
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-BtNWbfd3.js";
|
|
3
|
+
import { i as SandboxClient } from "../client-B8i6qrQr.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bn as SandboxClientConfig, Bt as IntelligenceReport, Cn as PublishPublicTemplateVersionOptions, Di as UsageInfo, Dn as ReconcileSandboxFleetsResult, En as ReconcileSandboxFleetsOptions, F as CreateSandboxFleetOptions, Gn as SandboxFleetArtifactSpec, Hn as SandboxEnvironment, Ht as IntelligenceReportCompareTo, I as CreateSandboxFleetTokenOptions, Jn as SandboxFleetDispatchResponse, Jt as ListSandboxFleetOptions, Kn as SandboxFleetCostEstimate, L as CreateSandboxFleetWithCoordinatorOptions, N as CreateIntelligenceReportOptions, P as CreateRequestOptions, R as CreateSandboxOptions, Sn as PublishPublicTemplateOptions, Sr as SandboxProfileSummary, Tn as ReapExpiredSandboxFleetsResult, Ur as SecretsManager, Vt as IntelligenceReportBudget, Wn as SandboxFleetArtifact, Wt as IntelligenceReportWindow, Yn as SandboxFleetDriverCapability, Yt as ListSandboxOptions, Zn as SandboxFleetInfo, _ as BatchResult, _r as SandboxInfo, _t as FleetExecDispatchResult, a as AttachSandboxFleetMachineOptions, ar as SandboxFleetOperationsSummary, bn as PublicTemplateInfo, bt as FleetPromptDispatchResult, ci as SubscriptionInfo, cr as SandboxFleetTraceBundle, dr as SandboxFleetTraceOptions, et as ExecOptions, fr as SandboxFleetUsage, ft as FleetDispatchCancelResult, g as BatchOptions, gr as SandboxFleetWorkspaceSnapshotResult, gt as FleetExecDispatchOptions, hn as PromptResult, hr as SandboxFleetWorkspaceRestoreResult, ht as FleetDispatchStreamOptions, ii as SshKeysManager, m as BatchEvent, mn as PromptOptions, mr as SandboxFleetWorkspaceReconcileResult, mt as FleetDispatchResultBufferOptions, pn as PromptInputPart, pt as FleetDispatchResultBuffer, rr as SandboxFleetManifest, sr as SandboxFleetToken, tr as SandboxFleetMachineRecord, tt as ExecResult, v as BatchRunOptions, vt as FleetMachineId, wn as ReapExpiredSandboxFleetsOptions, x as BatchTask, xi as TokenRefreshHandler, xn as PublicTemplateVersionInfo, y as BatchRunRequest, yt as FleetPromptDispatchOptions } from "./types-BvSoEHz8.js";
|
|
2
|
-
import { a as TraceExportSink, i as TraceExportResult, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
2
|
+
import { a as TraceExportSink, i as TraceExportResult, n as SandboxInstance, t as HttpClient } from "./sandbox-BtNWbfd3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as NotFoundError, d as TimeoutError, f as ValidationError, i as NetworkError, p as parseErrorResponse, t as AuthError } from "./errors-DSz87Rkk.js";
|
|
2
|
-
import { d as exportTraceBundle, g as parseSSEStream, l as normalizeConnection, m as encodePromptForWire, n as normalizeStartupDiagnostics, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { d as exportTraceBundle, g as parseSSEStream, l as normalizeConnection, m as encodePromptForWire, n as normalizeStartupDiagnostics, t as SandboxInstance } from "./sandbox-BrAeCPJP.js";
|
|
3
3
|
//#region src/resources.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute tiers, ordered smallest → largest. Defined HERE (not imported from
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $t as NetworkConfig, Bn as SandboxClientConfig, Or as SandboxStatus, R as CreateSandboxOptions, _r as SandboxInfo, an as PreviewLinkManager, et as ExecOptions, in as PreviewLinkInfo, tt as ExecResult } from "./types-BvSoEHz8.js";
|
|
2
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
3
|
-
import { i as SandboxClient } from "./client-
|
|
2
|
+
import { n as SandboxInstance } from "./sandbox-BtNWbfd3.js";
|
|
3
|
+
import { i as SandboxClient } from "./client-B8i6qrQr.js";
|
|
4
4
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors--P_nbLzM.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, QuotaError, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-DSz87Rkk.js";
|
|
2
|
-
import { t as SandboxInstance } from "./sandbox-
|
|
3
|
-
import { n as SandboxClient } from "./client-
|
|
2
|
+
import { t as SandboxInstance } from "./sandbox-BrAeCPJP.js";
|
|
3
|
+
import { n as SandboxClient } from "./client-CTbtS70f.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, SandboxClient as Sandbox, SandboxClient, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $n as SandboxFleetMachine, $r as SessionMessageInputPart, $t as NetworkConfig, A as CommitTaskSessionOptions, Ai as WriteFileOptions, An as Rollout, Ar as SandboxTerminalInfo, At as GpuLeaseCommandResult, B as CreateTaskSessionOptions, Bi as AgentProfilePermissionValue, Bn as SandboxClientConfig, Br as SearchMatch, Bt as IntelligenceReport, C as BatchTaskUsage, Ci as TurnDriveResult, Cn as PublishPublicTemplateVersionOptions, Cr as SandboxResourceUsage, Ct as GitBranch, Di as UsageInfo, Dn as ReconcileSandboxFleetsResult, Dr as SandboxRuntimeProfileList, Dt as GitStatus, Ei as UploadProgress, En as ReconcileSandboxFleetsOptions, Er as SandboxRuntimeProfile, Et as GitDiff, F as CreateSandboxFleetOptions, Fi as AgentProfileConfidential, Fn as RolloutStatus, Fr as SandboxTraceExport, Ft as GpuLeaseStatus, G as DownloadOptions, Gi as AgentProfileValidationResult, Gn as SandboxFleetArtifactSpec, Gr as SendSessionMessageRequest, H as DirectoryPermission, Hi as AgentProfileResourceRef, Hn as SandboxEnvironment, Hr as SecretInfo, Ht as IntelligenceReportCompareTo, Ii as AgentProfileConnection, In as RolloutTurnPart, Ir as SandboxTraceOptions, It as GpuType, J as DriverConfig, Ji as defineGitHubResource, Jn as SandboxFleetDispatchResponse, Jr as SessionEventStreamOptions, Jt as ListSandboxFleetOptions, K as DownloadProgress, Ki as AgentSubagentProfile, Kn as SandboxFleetCostEstimate, Kr as SentSessionMessage, Kt as ListMessagesOptions, L as CreateSandboxFleetWithCoordinatorOptions, Li as AgentProfileFileMount, Ln as RunCodeOptions, Lr as SandboxUser, Lt as HostAgentDriverConfig, M as CreateGpuLeaseOptions, Mi as WriteManyOptions, Mn as RolloutOptions, Mr as SandboxTerminalRequestOptions, Mt as GpuLeaseExecResult, N as CreateIntelligenceReportOptions, Ni as AgentProfile, Nn as RolloutScorer, Nr as SandboxTraceBundle, Nt as GpuLeaseManager, O as CodeResult, Oi as WaitForOptions, Or as SandboxStatus, Ot as GpuLease, Pi as AgentProfileCapabilities, Pn as RolloutStartResult, Pr as SandboxTraceEvent, Pt as GpuLeaseProviderName, Q as EgressPolicy, Qn as SandboxFleetIntelligenceEnvelope, Qr as SessionMessage, Qt as MkdirOptions, R as CreateSandboxOptions, Ri as AgentProfileMcpServer, Rn as SSHCommandDescriptor, Rr as ScopedToken, Rt as HostAgentRuntimeBackend, S as BatchTaskResult, Si as ToolsConfig, Sn as PublishPublicTemplateOptions, Sr as SandboxProfileSummary, St as GitAuth, Ti as UploadOptions, Tn as ReapExpiredSandboxFleetsResult, Tr as SandboxRuntimeHealth, Tt as GitConfig, U as DispatchPromptOptions, Ui as AgentProfileResources, Un as SandboxEvent, Ur as SecretsManager, Ut as IntelligenceReportSubjectType, V as DeleteOptions, Vi as AgentProfilePrompt, Vn as SandboxConnection, Vr as SearchOptions, Vt as IntelligenceReportBudget, W as DispatchedSession, Wi as AgentProfileValidationIssue, Wn as SandboxFleetArtifact, Wr as SendSessionMessageOptions, Wt as IntelligenceReportWindow, X as DriverType, Xi as mergeAgentProfiles, Xn as SandboxFleetDriverTimings, Xr as SessionInfo, Xt as McpServerConfig, Y as DriverInfo, Yi as defineInlineResource, Yn as SandboxFleetDriverCapability, Yr as SessionForkOptions, Yt as ListSandboxOptions, Z as EgressManager, Zn as SandboxFleetInfo, Zr as SessionListOptions, Zt as MintScopedTokenOptions, _ as BatchResult, _i as TeeAttestationReport, _n as ProvisionResult, _r as SandboxInfo, a as AttachSandboxFleetMachineOptions, ai as StartupDiagnostics, an as PreviewLinkManager, ar as SandboxFleetOperationsSummary, at as FileReadError, b as BatchSidecarGroup, bi as TeePublicKeyResponse, bn as PublicTemplateInfo, br as SandboxPortBinding, c as BackendInfo, ci as SubscriptionInfo, cn as ProcessLogEntry, cr as SandboxFleetTraceBundle, ct as FileTreeFile, d as BackendType, di as TaskSessionChanges, dn as ProcessSpawnOptions, dr as SandboxFleetTraceOptions, dt as FileWriteResult, ei as SessionStatus, en as NetworkManager, er as SandboxFleetMachineMeteredUsage, et as ExecOptions, f as BatchBackend, fi as TaskSessionCommitResult, fn as ProcessStatus, fr as SandboxFleetUsage, ft as FleetDispatchCancelResult, g as BatchOptions, gi as TeeAttestationOptions, gn as ProvisionEvent, gr as SandboxFleetWorkspaceSnapshotResult, gt as FleetExecDispatchOptions, h as BatchEventDataMap, hi as TaskSessionProfile, hn as PromptResult, hr as SandboxFleetWorkspaceRestoreResult, ht as FleetDispatchStreamOptions, i as AttachGpuLeaseOptions, in as PreviewLinkInfo, ir as SandboxFleetManifestMachine, it as FileReadBatchResult, j as CompletedTurnResult, ji as WriteManyFile, jn as RolloutChildResult, jr as SandboxTerminalManager, jt as GpuLeaseExecOptions, ki as WaitForRolloutOptions, kr as SandboxTerminalCreateOptions, kt as GpuLeaseBilling, l as BackendManager, li as TaskOptions, ln as ProcessManager, lr as SandboxFleetTraceEvent, lt as FileTreeOptions, m as BatchEvent, mi as TaskSessionInfo, mn as PromptOptions, mr as SandboxFleetWorkspaceReconcileResult, mt as FleetDispatchResultBufferOptions, n as AccessPolicyRule, ni as SnapshotOptions, nn as PermissionLevel, nr as SandboxFleetMachineSpec, nt as FileInfo, o as BackendCapabilities, oi as StartupOperation, on as Process, or as SandboxFleetPolicy, ot as FileReadResult, p as BatchBackendStats, pi as TaskSessionFileChange, pr as SandboxFleetWorkspace, pt as FleetDispatchResultBuffer, q as DriveTurnOptions, qi as defineAgentProfile, qn as SandboxFleetDispatchFailureClass, qr as SessionBackendCredentials, qt as ListOptions, r as AddUserOptions, ri as SnapshotResult, rn as PermissionsManager, rr as SandboxFleetManifest, rt as FileReadBatchOptions, s as BackendConfig, si as StorageConfig, sn as ProcessInfo, sr as SandboxFleetToken, st as FileSystem, t as AcceleratorKind, ti as SnapshotInfo, tn as NonHostAgentDriverConfig, tr as SandboxFleetMachineRecord, tt as ExecResult, u as BackendStatus, ui as TaskResult, un as ProcessSignal, ur as SandboxFleetTraceExport, ut as FileTreeResult, v as BatchRunOptions, vi as TeeAttestationResponse, vn as ProvisionStatus, vr as SandboxIntelligenceEnvelope, vt as FleetMachineId, w as BranchOptions, wi as UpdateUserOptions, wn as ReapExpiredSandboxFleetsOptions, wr as SandboxResources, wt as GitCommit, x as BatchTask, xi as TokenRefreshHandler, xn as PublicTemplateVersionInfo, xr as SandboxPortPreviewLink, xt as GPU_LEASE_PROVIDER_NAMES, y as BatchRunRequest, yi as TeePublicKey, yn as ProvisionStep, yr as SandboxPermissionsConfig, yt as FleetPromptDispatchOptions, z as CreateSessionOptions, zi as AgentProfileModelHints, zn as SSHCredentials, zr as ScopedTokenScope, zt as InstalledTool } from "./types-BvSoEHz8.js";
|
|
2
|
-
import { C as SandboxMcpConfig, D as buildSandboxMcpConfig, E as buildControlPlaneMcpConfig, S as SANDBOX_MCP_SERVER_NAME, T as SandboxMcpServerEntry, _ as RespondToPermissionOptions, a as TraceExportSink, b as BuildSandboxMcpConfigOptions, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveAuthFile, g as InterruptResult, h as InteractiveSessionInfo, i as TraceExportResult, l as toOtelJson, m as InteractiveSessionHost, n as SandboxInstance, o as buildTraceExportPayload, p as InteractiveSessionHandle, r as TraceExportFormat, s as exportTraceBundle, u as SandboxTaskSession, v as StartInteractiveOptions, w as SandboxMcpEndpoint, x as CONTROL_PLANE_MCP_SERVER_NAME, y as BuildControlPlaneMcpConfigOptions } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as EventStreamOptions, $n as SandboxFleetMachine, $r as SessionMessageInputPart, $t as NetworkConfig, A as CommitTaskSessionOptions, Ai as WriteFileOptions, An as Rollout, Ar as SandboxTerminalInfo, At as GpuLeaseCommandResult, B as CreateTaskSessionOptions, Bi as AgentProfilePermissionValue, Bn as SandboxClientConfig, Br as SearchMatch, Bt as IntelligenceReport, C as BatchTaskUsage, Ci as TurnDriveResult, Cn as PublishPublicTemplateVersionOptions, Cr as SandboxResourceUsage, Ct as GitBranch, Di as UsageInfo, Dn as ReconcileSandboxFleetsResult, Dr as SandboxRuntimeProfileList, Dt as GitStatus, Ei as UploadProgress, En as ReconcileSandboxFleetsOptions, Er as SandboxRuntimeProfile, Et as GitDiff, F as CreateSandboxFleetOptions, Fi as AgentProfileConfidential, Fn as RolloutStatus, Fr as SandboxTraceExport, Ft as GpuLeaseStatus, G as DownloadOptions, Gi as AgentProfileValidationResult, Gn as SandboxFleetArtifactSpec, Gr as SendSessionMessageRequest, H as DirectoryPermission, Hi as AgentProfileResourceRef, Hn as SandboxEnvironment, Hr as SecretInfo, Ht as IntelligenceReportCompareTo, Ii as AgentProfileConnection, In as RolloutTurnPart, Ir as SandboxTraceOptions, It as GpuType, J as DriverConfig, Ji as defineGitHubResource, Jn as SandboxFleetDispatchResponse, Jr as SessionEventStreamOptions, Jt as ListSandboxFleetOptions, K as DownloadProgress, Ki as AgentSubagentProfile, Kn as SandboxFleetCostEstimate, Kr as SentSessionMessage, Kt as ListMessagesOptions, L as CreateSandboxFleetWithCoordinatorOptions, Li as AgentProfileFileMount, Ln as RunCodeOptions, Lr as SandboxUser, Lt as HostAgentDriverConfig, M as CreateGpuLeaseOptions, Mi as WriteManyOptions, Mn as RolloutOptions, Mr as SandboxTerminalRequestOptions, Mt as GpuLeaseExecResult, N as CreateIntelligenceReportOptions, Ni as AgentProfile, Nn as RolloutScorer, Nr as SandboxTraceBundle, Nt as GpuLeaseManager, O as CodeResult, Oi as WaitForOptions, Or as SandboxStatus, Ot as GpuLease, P as CreateRequestOptions, Pi as AgentProfileCapabilities, Pn as RolloutStartResult, Pr as SandboxTraceEvent, Pt as GpuLeaseProviderName, Q as EgressPolicy, Qn as SandboxFleetIntelligenceEnvelope, Qr as SessionMessage, Qt as MkdirOptions, R as CreateSandboxOptions, Ri as AgentProfileMcpServer, Rn as SSHCommandDescriptor, Rr as ScopedToken, Rt as HostAgentRuntimeBackend, S as BatchTaskResult, Si as ToolsConfig, Sn as PublishPublicTemplateOptions, Sr as SandboxProfileSummary, St as GitAuth, Ti as UploadOptions, Tn as ReapExpiredSandboxFleetsResult, Tr as SandboxRuntimeHealth, Tt as GitConfig, U as DispatchPromptOptions, Ui as AgentProfileResources, Un as SandboxEvent, Ur as SecretsManager, Ut as IntelligenceReportSubjectType, V as DeleteOptions, Vi as AgentProfilePrompt, Vn as SandboxConnection, Vr as SearchOptions, Vt as IntelligenceReportBudget, W as DispatchedSession, Wi as AgentProfileValidationIssue, Wn as SandboxFleetArtifact, Wr as SendSessionMessageOptions, Wt as IntelligenceReportWindow, X as DriverType, Xi as mergeAgentProfiles, Xn as SandboxFleetDriverTimings, Xr as SessionInfo, Xt as McpServerConfig, Y as DriverInfo, Yi as defineInlineResource, Yn as SandboxFleetDriverCapability, Yr as SessionForkOptions, Yt as ListSandboxOptions, Z as EgressManager, Zn as SandboxFleetInfo, Zr as SessionListOptions, Zt as MintScopedTokenOptions, _ as BatchResult, _i as TeeAttestationReport, _n as ProvisionResult, _r as SandboxInfo, a as AttachSandboxFleetMachineOptions, ai as StartupDiagnostics, an as PreviewLinkManager, ar as SandboxFleetOperationsSummary, at as FileReadError, b as BatchSidecarGroup, bi as TeePublicKeyResponse, bn as PublicTemplateInfo, br as SandboxPortBinding, c as BackendInfo, ci as SubscriptionInfo, cn as ProcessLogEntry, cr as SandboxFleetTraceBundle, ct as FileTreeFile, d as BackendType, di as TaskSessionChanges, dn as ProcessSpawnOptions, dr as SandboxFleetTraceOptions, dt as FileWriteResult, ei as SessionStatus, en as NetworkManager, er as SandboxFleetMachineMeteredUsage, et as ExecOptions, f as BatchBackend, fi as TaskSessionCommitResult, fn as ProcessStatus, fr as SandboxFleetUsage, ft as FleetDispatchCancelResult, g as BatchOptions, gi as TeeAttestationOptions, gn as ProvisionEvent, gr as SandboxFleetWorkspaceSnapshotResult, gt as FleetExecDispatchOptions, h as BatchEventDataMap, hi as TaskSessionProfile, hn as PromptResult, hr as SandboxFleetWorkspaceRestoreResult, ht as FleetDispatchStreamOptions, i as AttachGpuLeaseOptions, in as PreviewLinkInfo, ir as SandboxFleetManifestMachine, it as FileReadBatchResult, j as CompletedTurnResult, ji as WriteManyFile, jn as RolloutChildResult, jr as SandboxTerminalManager, jt as GpuLeaseExecOptions, ki as WaitForRolloutOptions, kr as SandboxTerminalCreateOptions, kt as GpuLeaseBilling, l as BackendManager, li as TaskOptions, ln as ProcessManager, lr as SandboxFleetTraceEvent, lt as FileTreeOptions, m as BatchEvent, mi as TaskSessionInfo, mn as PromptOptions, mr as SandboxFleetWorkspaceReconcileResult, mt as FleetDispatchResultBufferOptions, n as AccessPolicyRule, ni as SnapshotOptions, nn as PermissionLevel, nr as SandboxFleetMachineSpec, nt as FileInfo, o as BackendCapabilities, oi as StartupOperation, on as Process, or as SandboxFleetPolicy, ot as FileReadResult, p as BatchBackendStats, pi as TaskSessionFileChange, pr as SandboxFleetWorkspace, pt as FleetDispatchResultBuffer, q as DriveTurnOptions, qi as defineAgentProfile, qn as SandboxFleetDispatchFailureClass, qr as SessionBackendCredentials, qt as ListOptions, r as AddUserOptions, ri as SnapshotResult, rn as PermissionsManager, rr as SandboxFleetManifest, rt as FileReadBatchOptions, s as BackendConfig, si as StorageConfig, sn as ProcessInfo, sr as SandboxFleetToken, st as FileSystem, t as AcceleratorKind, ti as SnapshotInfo, tn as NonHostAgentDriverConfig, tr as SandboxFleetMachineRecord, tt as ExecResult, u as BackendStatus, ui as TaskResult, un as ProcessSignal, ur as SandboxFleetTraceExport, ut as FileTreeResult, v as BatchRunOptions, vi as TeeAttestationResponse, vn as ProvisionStatus, vr as SandboxIntelligenceEnvelope, vt as FleetMachineId, w as BranchOptions, wi as UpdateUserOptions, wn as ReapExpiredSandboxFleetsOptions, wr as SandboxResources, wt as GitCommit, x as BatchTask, xi as TokenRefreshHandler, xn as PublicTemplateVersionInfo, xr as SandboxPortPreviewLink, xt as GPU_LEASE_PROVIDER_NAMES, y as BatchRunRequest, yi as TeePublicKey, yn as ProvisionStep, yr as SandboxPermissionsConfig, yt as FleetPromptDispatchOptions, z as CreateSessionOptions, zi as AgentProfileModelHints, zn as SSHCredentials, zr as ScopedTokenScope, zt as InstalledTool } from "./types-BvSoEHz8.js";
|
|
2
|
+
import { C as SandboxMcpConfig, D as buildSandboxMcpConfig, E as buildControlPlaneMcpConfig, S as SANDBOX_MCP_SERVER_NAME, T as SandboxMcpServerEntry, _ as RespondToPermissionOptions, a as TraceExportSink, b as BuildSandboxMcpConfigOptions, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveAuthFile, g as InterruptResult, h as InteractiveSessionInfo, i as TraceExportResult, l as toOtelJson, m as InteractiveSessionHost, n as SandboxInstance, o as buildTraceExportPayload, p as InteractiveSessionHandle, r as TraceExportFormat, s as exportTraceBundle, u as SandboxTaskSession, v as StartInteractiveOptions, w as SandboxMcpEndpoint, x as CONTROL_PLANE_MCP_SERVER_NAME, y as BuildControlPlaneMcpConfigOptions } from "./sandbox-BtNWbfd3.js";
|
|
3
|
+
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as SandboxClient, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-B8i6qrQr.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CyHojkuA.js";
|
|
5
5
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-DKzapw-9.js";
|
|
6
6
|
import { a as NotFoundError, c as SandboxError, d as ServerError, f as StateError, i as NetworkError, l as SandboxErrorJson, m as ValidationError, n as CapabilityError, o as PartialFailureError, p as TimeoutError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as SandboxFailureDetail } from "./errors--P_nbLzM.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-BFnMEze6.js";
|
|
8
8
|
|
|
9
9
|
//#region src/attestation-heartbeat.d.ts
|
|
10
10
|
interface TeeAttestationHeartbeatSample {
|
|
@@ -1371,4 +1371,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
1373
1373
|
//#endregion
|
|
1374
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type GpuType, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|
|
1374
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type GpuType, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunCodeOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxProfileSummary, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, type SandboxRuntimeProfile, type SandboxRuntimeProfileList, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskOptions, type TaskResult, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, materializeProfileFileMounts, mergeAgentProfiles, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, serializeForSidecar, splitInlineProfileFileMounts, startTeeAttestationHeartbeat, toOtelJson };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as serializeForSidecar, r as normalizeRuntimeBackendConfig } from "./runtime-api-CYA2DUQw.js";
|
|
2
2
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, r as EgressProxyRecoveryError, s as QuotaError, t as AuthError, u as StateError } from "./errors-DSz87Rkk.js";
|
|
3
|
-
import { a as InteractiveSessionHandle, c as getSandboxEventText, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as parseSSEStream, h as encodeTextForWire, i as SandboxSession, o as applySandboxEventText, p as toOtelJson, r as SandboxTaskSession, s as collectAgentResponseText, t as SandboxInstance, u as buildTraceExportPayload } from "./sandbox-
|
|
4
|
-
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-
|
|
3
|
+
import { a as InteractiveSessionHandle, c as getSandboxEventText, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as parseSSEStream, h as encodeTextForWire, i as SandboxSession, o as applySandboxEventText, p as toOtelJson, r as SandboxTaskSession, s as collectAgentResponseText, t as SandboxInstance, u as buildTraceExportPayload } from "./sandbox-BrAeCPJP.js";
|
|
4
|
+
import { a as DEFAULT_SANDBOX_SIZE, c as resolveSandboxResources, i as SandboxFleetClient, l as sandboxResourcesForSize, n as SandboxClient, o as SANDBOX_SIZE_PRESETS, r as SandboxFleet, s as SANDBOX_SIZE_PRESET_NAMES, t as IntelligenceClient } from "./client-CTbtS70f.js";
|
|
5
5
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-QZXrXdIb.js";
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-DySjV2Vl.js";
|
|
7
7
|
import { defineAgentProfile, defineGitHubResource, defineInlineResource, mergeAgentProfiles } from "@tangle-network/agent-interface";
|
|
8
8
|
//#region src/confidential.ts
|
|
9
9
|
function generateAttestationNonce(bytes = 32) {
|
|
@@ -751,6 +751,10 @@ function isTransientSnapshotVisibilityError(error) {
|
|
|
751
751
|
const message = error instanceof Error ? error.message : String(error);
|
|
752
752
|
return message.includes("SNAPSHOT_NOT_FOUND") || message.includes("Failed to list snapshot") || message.includes("Storage agent error (404)");
|
|
753
753
|
}
|
|
754
|
+
/** Preserve an absolute filesystem path through the runtime route wildcard. */
|
|
755
|
+
function runtimeFilesystemPath(endpoint, path) {
|
|
756
|
+
return `${endpoint}/${path}`;
|
|
757
|
+
}
|
|
754
758
|
/**
|
|
755
759
|
* Single source of truth for a run's outcome, shared by
|
|
756
760
|
* `prompt`/`task`/`_sessionResult`/turn settling. A run succeeds only when it
|
|
@@ -2366,7 +2370,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2366
2370
|
const fs = await import("node:fs/promises");
|
|
2367
2371
|
const path = await import("node:path");
|
|
2368
2372
|
await fs.mkdir(path.dirname(localPath), { recursive: true });
|
|
2369
|
-
const response = await this.runtimeFetch(
|
|
2373
|
+
const response = await this.runtimeFetch(runtimeFilesystemPath("/fs/download", remotePath), { method: "GET" });
|
|
2370
2374
|
if (!response.ok) {
|
|
2371
2375
|
const body = await response.text();
|
|
2372
2376
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
@@ -2416,7 +2420,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2416
2420
|
const fs = await import("node:fs/promises");
|
|
2417
2421
|
const path = await import("node:path");
|
|
2418
2422
|
const { execSync } = await import("node:child_process");
|
|
2419
|
-
const response = await this.runtimeFetch(
|
|
2423
|
+
const response = await this.runtimeFetch(runtimeFilesystemPath("/fs/download-dir", remoteDir), { method: "GET" });
|
|
2420
2424
|
if (!response.ok) {
|
|
2421
2425
|
const body = await response.text();
|
|
2422
2426
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
@@ -2439,7 +2443,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2439
2443
|
if (options?.long) params.set("long", "true");
|
|
2440
2444
|
if (options?.sessionId) params.set("sessionId", options.sessionId);
|
|
2441
2445
|
const query = params.toString();
|
|
2442
|
-
const
|
|
2446
|
+
const basePath = runtimeFilesystemPath("/fs/list", path);
|
|
2447
|
+
const url = query ? `${basePath}?${query}` : basePath;
|
|
2443
2448
|
const response = await this.runtimeFetch(url, { method: "GET" });
|
|
2444
2449
|
if (!response.ok) {
|
|
2445
2450
|
const body = await response.text();
|
|
@@ -2461,7 +2466,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2461
2466
|
}
|
|
2462
2467
|
async fsStat(path) {
|
|
2463
2468
|
await this.ensureRunning();
|
|
2464
|
-
const response = await this.runtimeFetch(
|
|
2469
|
+
const response = await this.runtimeFetch(runtimeFilesystemPath("/fs/stat", path), { method: "GET" });
|
|
2465
2470
|
if (!response.ok) {
|
|
2466
2471
|
const body = await response.text();
|
|
2467
2472
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
@@ -2499,7 +2504,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2499
2504
|
if (options?.recursive) params.set("recursive", "true");
|
|
2500
2505
|
if (options?.sessionId) params.set("sessionId", options.sessionId);
|
|
2501
2506
|
const query = params.toString();
|
|
2502
|
-
const
|
|
2507
|
+
const basePath = runtimeFilesystemPath("/fs", path);
|
|
2508
|
+
const url = query ? `${basePath}?${query}` : basePath;
|
|
2503
2509
|
const response = await this.runtimeFetch(url, { method: "DELETE" });
|
|
2504
2510
|
if (!response.ok) {
|
|
2505
2511
|
const body = await response.text();
|
|
@@ -2511,7 +2517,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2511
2517
|
const params = new URLSearchParams();
|
|
2512
2518
|
if (options?.recursive) params.set("recursive", "true");
|
|
2513
2519
|
const query = params.toString();
|
|
2514
|
-
const
|
|
2520
|
+
const basePath = runtimeFilesystemPath("/fs/mkdir", path);
|
|
2521
|
+
const url = query ? `${basePath}?${query}` : basePath;
|
|
2515
2522
|
const response = await this.runtimeFetch(url, { method: "POST" });
|
|
2516
2523
|
if (!response.ok) {
|
|
2517
2524
|
const body = await response.text();
|
|
@@ -2520,7 +2527,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2520
2527
|
}
|
|
2521
2528
|
async fsExists(path) {
|
|
2522
2529
|
await this.ensureRunning();
|
|
2523
|
-
const response = await this.runtimeFetch(
|
|
2530
|
+
const response = await this.runtimeFetch(runtimeFilesystemPath("/fs/exists", path), { method: "GET" });
|
|
2524
2531
|
if (!response.ok) {
|
|
2525
2532
|
const body = await response.text();
|
|
2526
2533
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
@@ -3799,6 +3806,11 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3799
3806
|
}
|
|
3800
3807
|
/**
|
|
3801
3808
|
* Stop the sandbox (keeps state for resume).
|
|
3809
|
+
*
|
|
3810
|
+
* The stop response carries the orchestrator's per-phase stop breakdown
|
|
3811
|
+
* (`stop_metering` / `container_kill` / `stop_complete` /
|
|
3812
|
+
* `stop_unaccounted`); after this resolves, {@link startupDiagnostics}
|
|
3813
|
+
* returns it (replacing the create breakdown).
|
|
3802
3814
|
*/
|
|
3803
3815
|
async stop() {
|
|
3804
3816
|
const response = await this.client.fetch(`/v1/sandboxes/${this.id}/stop`, { method: "POST" });
|
|
@@ -3806,7 +3818,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3806
3818
|
const body = await response.text();
|
|
3807
3819
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
3808
3820
|
}
|
|
3821
|
+
const diagnostics = await this.readLifecycleDiagnostics(response);
|
|
3809
3822
|
await this.refresh();
|
|
3823
|
+
if (diagnostics) this.info.startupDiagnostics = diagnostics;
|
|
3810
3824
|
}
|
|
3811
3825
|
/**
|
|
3812
3826
|
* Resume a stopped sandbox.
|
|
@@ -3823,10 +3837,18 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3823
3837
|
const body = await response.text();
|
|
3824
3838
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
3825
3839
|
}
|
|
3840
|
+
const diagnostics = await this.readLifecycleDiagnostics(response);
|
|
3826
3841
|
await this.refresh();
|
|
3842
|
+
if (diagnostics) this.info.startupDiagnostics = diagnostics;
|
|
3827
3843
|
}
|
|
3828
3844
|
/**
|
|
3829
3845
|
* Delete the sandbox permanently.
|
|
3846
|
+
*
|
|
3847
|
+
* The delete response carries the orchestrator's per-phase delete breakdown
|
|
3848
|
+
* (`container_remove` / `storage_binding_wait` / `cleanup_parallel` /
|
|
3849
|
+
* `delete_complete` / `delete_unaccounted`); after this resolves,
|
|
3850
|
+
* {@link startupDiagnostics} returns it for post-mortem reads on the
|
|
3851
|
+
* now-gone sandbox.
|
|
3830
3852
|
*/
|
|
3831
3853
|
async delete() {
|
|
3832
3854
|
const response = await this.client.fetch(`/v1/sandboxes/${this.id}`, { method: "DELETE" });
|
|
@@ -3834,6 +3856,17 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3834
3856
|
const body = await response.text();
|
|
3835
3857
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
3836
3858
|
}
|
|
3859
|
+
const diagnostics = await this.readLifecycleDiagnostics(response);
|
|
3860
|
+
if (diagnostics) this.info.startupDiagnostics = diagnostics;
|
|
3861
|
+
}
|
|
3862
|
+
/**
|
|
3863
|
+
* Read the per-phase lifecycle breakdown off a stop/resume/delete response
|
|
3864
|
+
* body. Never throws: diagnostics are measurement data — a body that fails
|
|
3865
|
+
* to parse (older API, empty body) must not fail the lifecycle call.
|
|
3866
|
+
*/
|
|
3867
|
+
async readLifecycleDiagnostics(response) {
|
|
3868
|
+
const data = await response.json().catch(() => null);
|
|
3869
|
+
return data ? normalizeStartupDiagnostics(data.startupDiagnostics) : null;
|
|
3837
3870
|
}
|
|
3838
3871
|
/**
|
|
3839
3872
|
* keepAlive is intentionally unavailable until the API exposes timeout updates.
|
|
@@ -4459,7 +4492,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4459
4492
|
const search = new URLSearchParams();
|
|
4460
4493
|
search.set("sessionId", id);
|
|
4461
4494
|
if (opts?.since) search.set("since", opts.since);
|
|
4462
|
-
const response = await this.runtimeFetch(`/agents/events
|
|
4495
|
+
const response = await this.runtimeFetch(`/agents/events?${search.toString()}`, { signal: opts?.signal });
|
|
4463
4496
|
if (!response.ok) {
|
|
4464
4497
|
const body = await response.text();
|
|
4465
4498
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
@@ -1277,6 +1277,11 @@ declare class SandboxInstance {
|
|
|
1277
1277
|
waitForRollout(rolloutId: string, options?: WaitForRolloutOptions): Promise<Rollout>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Stop the sandbox (keeps state for resume).
|
|
1280
|
+
*
|
|
1281
|
+
* The stop response carries the orchestrator's per-phase stop breakdown
|
|
1282
|
+
* (`stop_metering` / `container_kill` / `stop_complete` /
|
|
1283
|
+
* `stop_unaccounted`); after this resolves, {@link startupDiagnostics}
|
|
1284
|
+
* returns it (replacing the create breakdown).
|
|
1280
1285
|
*/
|
|
1281
1286
|
stop(): Promise<void>;
|
|
1282
1287
|
/**
|
|
@@ -1285,8 +1290,20 @@ declare class SandboxInstance {
|
|
|
1285
1290
|
resume(options?: ResumeOptions): Promise<void>;
|
|
1286
1291
|
/**
|
|
1287
1292
|
* Delete the sandbox permanently.
|
|
1293
|
+
*
|
|
1294
|
+
* The delete response carries the orchestrator's per-phase delete breakdown
|
|
1295
|
+
* (`container_remove` / `storage_binding_wait` / `cleanup_parallel` /
|
|
1296
|
+
* `delete_complete` / `delete_unaccounted`); after this resolves,
|
|
1297
|
+
* {@link startupDiagnostics} returns it for post-mortem reads on the
|
|
1298
|
+
* now-gone sandbox.
|
|
1288
1299
|
*/
|
|
1289
1300
|
delete(): Promise<void>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Read the per-phase lifecycle breakdown off a stop/resume/delete response
|
|
1303
|
+
* body. Never throws: diagnostics are measurement data — a body that fails
|
|
1304
|
+
* to parse (older API, empty body) must not fail the lifecycle call.
|
|
1305
|
+
*/
|
|
1306
|
+
private readLifecycleDiagnostics;
|
|
1290
1307
|
/**
|
|
1291
1308
|
* keepAlive is intentionally unavailable until the API exposes timeout updates.
|
|
1292
1309
|
* @param seconds - Reserved for future support
|
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-BFnMEze6.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-DySjV2Vl.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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.9.4-develop.
|
|
3
|
+
"version": "0.9.4-develop.20260712234415.c6da6eb",
|
|
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",
|