@tangle-network/sandbox 0.13.0 → 0.14.0-develop.20260727165417.48decf8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-BlTjxYXF.d.ts → client-CGQnn2gj.d.ts} +18 -18
- package/dist/{client-Coi0Jj97.js → client-Cv_z3tRq.js} +1020 -114
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-BPLM_1IR.d.ts → index-DC_39G_I.d.ts} +2 -2
- package/dist/index.d.ts +19 -5
- package/dist/index.js +4 -4
- package/dist/{local-cli-auth-DHBoF3wi.js → local-cli-auth-D4u7fsnH.js} +3 -4
- package/dist/runtime.d.ts +1 -1
- package/dist/{sandbox-CAiVH_Mg.js → sandbox-Bvt_WexG.js} +35 -15
- package/dist/{sandbox-DHLCriUS.d.ts → sandbox-Ceeti101.d.ts} +5 -7
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-xKtW0lNV.js → tangle-Bf2HbxKL.js} +1 -1
- package/dist/{types-DtbMtW0q.d.ts → types-Dr1wNaqo.d.ts} +1107 -294
- package/package.json +3 -3
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 { $ as ExecResult, M as CreateSandboxOptions, Or as SandboxStatus, Q as ExecOptions, Un as SandboxConfig, gn as PromptInputPart, on as PreviewLinkInfo, sn as PreviewLinkManager, tn as NetworkConfig, xr as SandboxInfo } from "./types-Dr1wNaqo.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-Ceeti101.js";
|
|
3
|
+
import { i as Sandbox } from "./client-CGQnn2gj.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-BzMmpmqU.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NotFoundError, c as SandboxError, d as TimeoutError, f as ValidationError, i as NetworkError, l as ServerError, n as CapabilityError, o as PartialFailureError, s as QuotaError, t as AuthError, u as StateError } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { n as Sandbox } from "./client-Cv_z3tRq.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-Bvt_WexG.js";
|
|
4
4
|
export { AuthError, CapabilityError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { M as CreateSandboxOptions } from "./types-Dr1wNaqo.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-Ceeti101.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
|
|
2
|
-
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as ExecResult, $n as SandboxFleetDriverTimings, $r as SessionListOptions, $t as MintScopedTokenOptions, Ai as WriteFileOptions, An as ReconcileSandboxFleetsResult, Ar as SandboxTerminalCreateOptions, At as GitStatus, B as DownloadOptions, Bi as TerminalStreamOptions, Bn as RolloutTurnPart, Br as ScopedToken, Bt as HostAgentRuntimeBackend, Ci as TurnDriveResult, Cn as PublicTemplateInfo, Cr as SandboxPortBinding, D as CreateIntelligenceReportOptions, Di as UsageInfo, Dn as ReapExpiredSandboxFleetsOptions, Dr as SandboxRuntimeHealth, Dt as GitCommit, E as CreateGpuLeaseOptions, Ei as UploadProgress, En as PublishPublicTemplateVersionOptions, Er as SandboxResources, Et as GitBranch, F as DeleteOptions, Fi as TerminalReadyInfo, Fn as RolloutChildResult, Fr as SandboxTraceBundle, Ft as GpuLeaseExecResult, G as DriverType, Gi as BatchSidecarGroup, Gn as SandboxEnvironment, Gr as SecretsManager, Gt as IntelligenceReportSubjectType, H as DriveTurnOptions, Hi as BatchBackendStats, Hn as SSHCredentials, Hr as SearchMatch, Ht as IntelligenceReport, I as DevServerInfo, Ii as TerminalStream, In as RolloutOptions, Ir as SandboxTraceEvent, It as GpuLeaseManager, J as EgressPolicy, Ji as BackendType, Jn as SandboxFleetArtifactSpec, Jr as SentSessionMessage, Jt as ListMessagesOptions, Ki as BatchTaskUsage, Kn as SandboxEvent, Kr as SendSessionMessageOptions, Kt as IntelligenceReportWindow, L as DirectoryPermission, Li as TerminalStreamAuthFormat, Ln as RolloutScorer, Lr as SandboxTraceExport, Lt as GpuLeaseProviderName, M as CreateSandboxOptions, Mi as WriteManyOptions, Mr as SandboxTerminalManager, Mt as GpuLeaseBilling, N as CreateSessionOptions, Ni as TERMINAL_WS_ECHO_SUBPROTOCOL, Nr as SandboxTerminalRequestOptions, Nt as GpuLeaseCommandResult, O as CreateRequestOptions, Oi as WaitForOptions, On as ReapExpiredSandboxFleetsResult, Or as SandboxStatus, Ot as GitConfig, P as CreateTaskSessionOptions, Pi as TerminalExitInfo, Pn as Rollout, Pr as SandboxTerminals, Pt as GpuLeaseExecOptions, Q as ExecOptions, Qn as SandboxFleetDriverCapability, Qr as SessionInfo, Qt as McpServerConfig, R as DispatchPromptOptions, Ri as TerminalStreamError, Rn as RolloutStartResult, Rr as SandboxTraceOptions, Rt as GpuLeaseStatus, Si as TokenUsage, Sn as ProvisionStep, Sr as SandboxIntelligenceEnvelope, St as FleetPromptDispatchOptions, T as CompletedTurnResult, Ti as UploadOptions, Tn as PublishPublicTemplateOptions, Tr as SandboxResourceUsage, Tt as GitAuth, U as DriverConfig, Ui as BatchEvent, Un as SandboxConfig, Ur as SearchOptions, Ut as IntelligenceReportBudget, V as DownloadProgress, Vi as TerminalStreamToken, Vn as SSHCommandDescriptor, Vr as ScopedTokenScope, Vt as InstalledTool, W as DriverInfo, Wi as BatchEventDataMap, Wn as SandboxConnection, Wr as SecretInfo, Wt as IntelligenceReportCompareTo, X as EventStreamOptions, Xn as SandboxFleetDispatchFailureClass, Xr as SessionEventStreamOptions, Xt as ListSandboxFleetOptions, Y as EnsureDevServerOptions, Yn as SandboxFleetCostEstimate, Yr as SessionBackendCredentials, Yt as ListOptions, Z as ExactProcessSpawnOptions, Zn as SandboxFleetDispatchResponse, Zr as SessionForkOptions, Zt as ListSandboxOptions, _ as BranchOptions, _i as TeeAttestationReport, _n as PromptOptions, _r as SandboxFleetWorkspaceReconcileResult, _t as FleetDriveTurnOutcome, a as AttachSandboxFleetMachineOptions, ai as SnapshotResult, an as PermissionsManager, ar as SandboxFleetMachineSpec, at as FileRenameResult, bi as TeePublicKeyResponse, bn as ProvisionResult, br as SandboxIdentity, c as BackendInfo, ci as StartupOperation, cn as Process, cr as SandboxFleetOperationsSummary, ct as FileTreeOptions, d as BatchBackend, di as TaskSessionChanges, dn as ProcessLogEntry, dr as SandboxFleetTraceBundle, dt as FileUsageResult, ei as SessionMessage, en as MkdirOptions, er as SandboxFleetInfo, et as FileInfo, f as BatchResult, fi as TaskSessionCommitResult, fn as ProcessManager, fr as SandboxFleetTraceEvent, ft as FileWriteResult, g as BatchTaskResult, gi as TeeAttestationOptions, gn as PromptInputPart, gr as SandboxFleetWorkspace, gt as FleetDispatchStreamOptions, h as BatchTask, hi as TaskSessionProfile, hn as ProcessStatus, hr as SandboxFleetUsage, ht as FleetDispatchResultBufferOptions, i as AttachGpuLeaseOptions, ii as SnapshotOptions, in as PermissionLevel, ir as SandboxFleetMachineRecord, it as FileReadResult, j as CreateSandboxFleetWithCoordinatorOptions, ji as WriteManyFile, jn as RenameOptions, jr as SandboxTerminalInfo, jt as GpuLease, k as CreateSandboxFleetOptions, ki as WaitForRolloutOptions, kn as ReconcileSandboxFleetsOptions, kr as SandboxTerminalAttachOptions, kt as GitDiff, l as BackendManager, li as StorageConfig, ln as ProcessInfo, lr as SandboxFleetPolicy, lt as FileTreeResult, m as BatchRunRequest, mi as TaskSessionInfo, mn as ProcessSpawnOptions, mr as SandboxFleetTraceOptions, mt as FleetDispatchResultBuffer, n as AccessPolicyRule, ni as SessionStatus, nn as NetworkManager, nr as SandboxFleetMachine, nt as FileReadBatchResult, o as BackendCapabilities, on as PreviewLinkInfo, or as SandboxFleetManifest, ot as FileSystem, p as BatchRunOptions, pi as TaskSessionFileChange, pn as ProcessSignal, pr as SandboxFleetTraceExport, pt as FleetDispatchCancelResult, q as EgressManager, qi as PublicBatchRunRequest, qn as SandboxFleetArtifact, qr as SendSessionMessageRequest, r as AddUserOptions, ri as SnapshotInfo, rn as NonHostAgentDriverConfig, rr as SandboxFleetMachineMeteredUsage, rt as FileReadError, s as BackendConfig, si as StartupDiagnostics, sn as PreviewLinkManager, sr as SandboxFleetManifestMachine, st as FileTreeFile, t as AcceleratorKind, ti as SessionMessageInputPart, tn as NetworkConfig, tr as SandboxFleetIntelligenceEnvelope, tt as FileReadBatchOptions, u as BackendStatus, ui as SubscriptionInfo, un as ProcessListOptions, ur as SandboxFleetToken, ut as FileUsageOptions, v as ChunkedUploadOptions, vi as TeeAttestationResponse, vn as PromptResult, vr as SandboxFleetWorkspaceRestoreResult, vt as FleetDriveTurnRequest, w as CommitTaskSessionOptions, wi as UpdateUserOptions, wn as PublicTemplateVersionInfo, wr as SandboxPortPreviewLink, wt as GPU_LEASE_PROVIDER_NAMES, xi as TokenRefreshHandler, xn as ProvisionStatus, xr as SandboxInfo, xt as FleetMachineId, y as ChunkedUploadResult, yi as TeePublicKey, yn as ProvisionEvent, yr as SandboxFleetWorkspaceSnapshotResult, yt as FleetExecDispatchOptions, z as DispatchedSession, zi as TerminalStreamHandlers, zn as RolloutStatus, zr as SandboxUser, zt as HostAgentDriverConfig } from "./types-Dr1wNaqo.js";
|
|
2
|
+
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-Ceeti101.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-CGQnn2gj.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 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-BzMmpmqU.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DC_39G_I.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile, AgentProfileConfidential, AgentProfileFileMount, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -57,6 +57,20 @@ declare function startTeeAttestationHeartbeat(sandbox: Pick<SandboxInstance, "ge
|
|
|
57
57
|
*/
|
|
58
58
|
declare function normalizeRuntimeBackendConfig(backend: Partial<BackendConfig> | undefined): Record<string, unknown> | undefined;
|
|
59
59
|
//#endregion
|
|
60
|
+
//#region src/batch.d.ts
|
|
61
|
+
/** Validate and normalize one public batch request. */
|
|
62
|
+
declare function validateBatchRunRequest(request: BatchRunRequest): PublicBatchRunRequest;
|
|
63
|
+
/** Stateful adapter for callers that consume batch events manually. */
|
|
64
|
+
interface BatchResultAccumulator {
|
|
65
|
+
add(event: BatchEvent): void;
|
|
66
|
+
finish(): BatchResult;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a result accumulator that preserves Sandbox SDK error types while
|
|
70
|
+
* delegating all event semantics to runtime-contracts.
|
|
71
|
+
*/
|
|
72
|
+
declare function createBatchResultAccumulator(request: BatchRunRequest): BatchResultAccumulator;
|
|
73
|
+
//#endregion
|
|
60
74
|
//#region src/confidential.d.ts
|
|
61
75
|
type SandboxCreator = {
|
|
62
76
|
create(options?: CreateSandboxOptions): Promise<SandboxInstance>;
|
|
@@ -4178,4 +4192,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4178
4192
|
}
|
|
4179
4193
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4180
4194
|
//#endregion
|
|
4181
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchOptions, type BatchResult, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateDeferredProfileFileMounts };
|
|
4195
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type 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, 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 EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeHealth, SandboxSession, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionForkOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as normalizeRuntimeBackendConfig, f as backendTypeSchema } from "./runtime-api-CCvDLhAW.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-D9fFOWX9.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
3
|
+
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-Cv_z3tRq.js";
|
|
4
|
+
import { _ as otelTraceIdForTangleTrace, a as TERMINAL_WS_ECHO_SUBPROTOCOL, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentResponseText, g as exportTraceBundle, h as buildTraceExportPayload, i as WorkspaceImages, l as SandboxSession, o as TerminalStream, p as getSandboxEventText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as toOtelJson, y as parseSSEStream } from "./sandbox-Bvt_WexG.js";
|
|
5
5
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DdD_rFZQ.js";
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-Bf2HbxKL.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/confidential.ts
|
|
@@ -1473,4 +1473,4 @@ function stripUndefined(value) {
|
|
|
1473
1473
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1474
1474
|
}
|
|
1475
1475
|
//#endregion
|
|
1476
|
-
export { AuthError, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EgressProxyRecoveryError, GPU_LEASE_PROVIDER_NAMES, Image, ImageBuilder, IntelligenceClient, InteractiveSessionHandle, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateDeferredProfileFileMounts };
|
|
1476
|
+
export { AuthError, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EgressProxyRecoveryError, GPU_LEASE_PROVIDER_NAMES, Image, ImageBuilder, IntelligenceClient, InteractiveSessionHandle, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, NetworkError, NotFoundError, PartialFailureError, QuotaError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from "node:fs";
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
//#region
|
|
4
|
+
//#region src/local-cli-auth.ts
|
|
5
5
|
const DEFAULT_MODE = 384;
|
|
6
6
|
function readAuthFile(sourcePath, targetPath) {
|
|
7
7
|
if (!existsSync(sourcePath)) return null;
|
|
@@ -22,9 +22,8 @@ function discoverClaudeAuthFiles(homeDir) {
|
|
|
22
22
|
readAuthFile(join(homeDir, ".claude", "settings.local.json"), ".claude/settings.local.json")
|
|
23
23
|
].filter((entry) => entry !== null);
|
|
24
24
|
}
|
|
25
|
-
function discoverLocalCliAuthFiles(backendType
|
|
26
|
-
const
|
|
27
|
-
const authFiles = backendType === "codex" ? discoverCodexAuthFiles(homeDir) : discoverClaudeAuthFiles(homeDir);
|
|
25
|
+
function discoverLocalCliAuthFiles(backendType) {
|
|
26
|
+
const authFiles = backendType === "codex" ? discoverCodexAuthFiles(homedir()) : discoverClaudeAuthFiles(homedir());
|
|
28
27
|
return authFiles.length > 0 ? authFiles : void 0;
|
|
29
28
|
}
|
|
30
29
|
function describeLocalCliAuthExpectation(backendType) {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as WriteFileOptions, Ar as SandboxTerminalCreateOptions, Cr as SandboxPortBinding, Dr as SandboxRuntimeHealth, Ei as UploadProgress, Jr as SentSessionMessage, Jt as ListMessagesOptions, Kr as SendSessionMessageOptions, Mr as SandboxTerminalManager, N as CreateSessionOptions, Nr as SandboxTerminalRequestOptions, P as CreateTaskSessionOptions, Qr as SessionInfo, at as FileRenameResult, ct as FileTreeOptions, di as TaskSessionChanges, dt as FileUsageResult, ei as SessionMessage, fi as TaskSessionCommitResult, ft as FileWriteResult, jn as RenameOptions, jr as SandboxTerminalInfo, lt as FileTreeResult, mi as TaskSessionInfo, nt as FileReadBatchResult, qr as SendSessionMessageRequest, tt as FileReadBatchOptions, ut as FileUsageOptions, v as ChunkedUploadOptions, w as CommitTaskSessionOptions, y as ChunkedUploadResult } from "./types-Dr1wNaqo.js";
|
|
2
2
|
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-BzMmpmqU.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/chunked-upload.d.ts
|
|
@@ -13,7 +13,7 @@ async function* parseSSEStream(body, options) {
|
|
|
13
13
|
if (!body) throw new TypeError("SSE stream has no response body");
|
|
14
14
|
const reader = body.getReader();
|
|
15
15
|
const decoder = new TextDecoder();
|
|
16
|
-
const { signal } = options ?? {};
|
|
16
|
+
const { signal, invalidEvent = "throw" } = options ?? {};
|
|
17
17
|
let buffer = "";
|
|
18
18
|
let currentEvent = "";
|
|
19
19
|
let dataLines = [];
|
|
@@ -27,15 +27,34 @@ async function* parseSSEStream(body, options) {
|
|
|
27
27
|
}
|
|
28
28
|
const effectiveEvent = currentEvent || "message";
|
|
29
29
|
const joined = dataLines.join("\n");
|
|
30
|
+
let data;
|
|
30
31
|
try {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
data = JSON.parse(joined);
|
|
33
|
+
} catch (error) {
|
|
34
|
+
if (invalidEvent === "warn-and-skip") {
|
|
35
|
+
console.warn(`[sandbox-sdk] Malformed SSE JSON for event "${effectiveEvent}": ${joined.slice(0, 200)}`);
|
|
36
|
+
currentEvent = "";
|
|
37
|
+
dataLines = [];
|
|
38
|
+
currentId = "";
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
throw new SyntaxError(`Malformed SSE JSON for event "${effectiveEvent}"`, { cause: error });
|
|
42
|
+
}
|
|
43
|
+
if (typeof data !== "object" || data === null || Array.isArray(data)) {
|
|
44
|
+
if (invalidEvent === "warn-and-skip") {
|
|
45
|
+
console.warn(`[sandbox-sdk] SSE event "${effectiveEvent}" data must be a JSON object`);
|
|
46
|
+
currentEvent = "";
|
|
47
|
+
dataLines = [];
|
|
48
|
+
currentId = "";
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
throw new TypeError(`SSE event "${effectiveEvent}" data must be a JSON object`);
|
|
38
52
|
}
|
|
53
|
+
yield {
|
|
54
|
+
type: effectiveEvent,
|
|
55
|
+
data,
|
|
56
|
+
id: currentId || void 0
|
|
57
|
+
};
|
|
39
58
|
currentEvent = "";
|
|
40
59
|
dataLines = [];
|
|
41
60
|
currentId = "";
|
|
@@ -4788,17 +4807,18 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4788
4807
|
/**
|
|
4789
4808
|
* Delegates to the shared `parseSSEStream` in `lib/sse-parser.ts`
|
|
4790
4809
|
* — one canonical SSE implementation for the whole SDK. The
|
|
4791
|
-
* shared parser throws `AbortError` on cancellation
|
|
4792
|
-
*
|
|
4793
|
-
*
|
|
4794
|
-
*
|
|
4795
|
-
* decide whether to reconnect. The try/catch below preserves that
|
|
4796
|
-
* legacy contract by swallowing AbortError at the delegate layer.
|
|
4810
|
+
* shared parser throws `AbortError` on cancellation, while agent and task
|
|
4811
|
+
* streams inspect the signal after iteration to decide whether to reconnect.
|
|
4812
|
+
* This adapter converts cancellation to that local control flow and lets one
|
|
4813
|
+
* malformed output frame be skipped without losing later valid output.
|
|
4797
4814
|
*/
|
|
4798
4815
|
async *parseSSEStream(response, signal) {
|
|
4799
4816
|
if (!response.body) throw new NetworkError("No response body");
|
|
4800
4817
|
try {
|
|
4801
|
-
for await (const event of parseSSEStream(response.body, {
|
|
4818
|
+
for await (const event of parseSSEStream(response.body, {
|
|
4819
|
+
signal,
|
|
4820
|
+
invalidEvent: "warn-and-skip"
|
|
4821
|
+
})) yield event;
|
|
4802
4822
|
} catch (err) {
|
|
4803
4823
|
if (err instanceof Error && err.name === "AbortError") return;
|
|
4804
4824
|
throw err;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $ as ExecResult, $r as SessionListOptions, $t as MintScopedTokenOptions, Ai as WriteFileOptions, At as GitStatus, Br as ScopedToken, Ci as TurnDriveResult, Cr as SandboxPortBinding, Dr as SandboxRuntimeHealth, Dt as GitCommit, Et as GitBranch, Fr as SandboxTraceBundle, H as DriveTurnOptions, Hn as SSHCredentials, Hr as SearchMatch, Ht as IntelligenceReport, Ii as TerminalStream, In as RolloutOptions, It as GpuLeaseManager, Ji as BackendType, Jr as SentSessionMessage, Jt as ListMessagesOptions, K as DurablePlan, Kn as SandboxEvent, Kr as SendSessionMessageOptions, Kt as IntelligenceReportWindow, Mi as WriteManyOptions, Mn as RestoreSnapshotOptions, N as CreateSessionOptions, Nn as ResumeOptions, Oi as WaitForOptions, Or as SandboxStatus, P as CreateTaskSessionOptions, Pn as Rollout, Pr as SandboxTerminals, Q as ExecOptions, Qr as SessionInfo, R as DispatchPromptOptions, Rn as RolloutStartResult, Rr as SandboxTraceOptions, S as CodeLanguage, T as CompletedTurnResult, Tr as SandboxResourceUsage, Ur as SearchOptions, Ut as IntelligenceReportBudget, Vn as SSHCommandDescriptor, Vt as InstalledTool, W as DriverInfo, Wn as SandboxConnection, Wt as IntelligenceReportCompareTo, X as EventStreamOptions, Xr as SessionEventStreamOptions, Zr as SessionForkOptions, _ as BranchOptions, _n as PromptOptions, ai as SnapshotResult, an as PermissionsManager, b as CodeExecutionOptions, bi as TeePublicKeyResponse, bn as ProvisionResult, di as TaskSessionChanges, dr as SandboxFleetTraceBundle, ei as SessionMessage, fi as TaskSessionCommitResult, fn as ProcessManager, ft as FileWriteResult, gi as TeeAttestationOptions, gn as PromptInputPart, ii as SnapshotOptions, ji as WriteManyFile, jt as GpuLease, ki as WaitForRolloutOptions, kr as SandboxTerminalAttachOptions, kt as GitDiff, l as BackendManager, mi as TaskSessionInfo, nn as NetworkManager, ot as FileSystem, q as EgressManager, qr as SendSessionMessageRequest, qt as JsonValue, ri as SnapshotInfo, s as BackendConfig, si as StartupDiagnostics, sn as PreviewLinkManager, vi as TeeAttestationResponse, vn as PromptResult, w as CommitTaskSessionOptions, x as CodeExecutionResult, xr as SandboxInfo, yn as ProvisionEvent, z as DispatchedSession, zi as TerminalStreamHandlers } from "./types-Dr1wNaqo.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -1505,12 +1505,10 @@ declare class SandboxInstance {
|
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Delegates to the shared `parseSSEStream` in `lib/sse-parser.ts`
|
|
1507
1507
|
* — one canonical SSE implementation for the whole SDK. The
|
|
1508
|
-
* shared parser throws `AbortError` on cancellation
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
* decide whether to reconnect. The try/catch below preserves that
|
|
1513
|
-
* legacy contract by swallowing AbortError at the delegate layer.
|
|
1508
|
+
* shared parser throws `AbortError` on cancellation, while agent and task
|
|
1509
|
+
* streams inspect the signal after iteration to decide whether to reconnect.
|
|
1510
|
+
* This adapter converts cancellation to that local control flow and lets one
|
|
1511
|
+
* malformed output frame be skipped without losing later valid output.
|
|
1514
1512
|
*/
|
|
1515
1513
|
private parseSSEStream;
|
|
1516
1514
|
/**
|
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-DC_39G_I.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-Bf2HbxKL.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
1
|
import { p as parseErrorResponse } from "./errors-D9fFOWX9.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-Bvt_WexG.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|