@tangle-network/sandbox 0.16.0 → 0.17.2-develop.20260803000136.6dc5f0b
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 +9 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-BIr5NPKo.d.ts → client-DHwvqxth.d.ts} +2 -2
- package/dist/{client-DS6fz6PF.js → client-jlWtzNDF.js} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-C89k_hW1.d.ts → index-DXwZxrlU.d.ts} +2 -2
- package/dist/index.d.ts +45 -25
- package/dist/index.js +4 -4
- package/dist/{runtime-api-Bd9NAChb.js → runtime-api-BRQkJnW4.js} +3 -10
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CiVbnsQp.d.ts → sandbox-BrcMNTFB.d.ts} +21 -19
- package/dist/{sandbox-CkaqBz54.js → sandbox-DQ1yf_nX.js} +113 -53
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Cxe2HYQb.js → tangle-Bbf2QqDC.js} +1 -1
- package/dist/{types-DTHan0Lc.d.ts → types-B9NCgBp-.d.ts} +91 -65
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -252,11 +252,19 @@ const reloaded = await client.get(box.id);
|
|
|
252
252
|
if (!reloaded) {
|
|
253
253
|
throw new Error(`Sandbox ${box.id} no longer exists`);
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
if (!dispatched.executionId) {
|
|
256
|
+
throw new Error("Sandbox did not return the dispatched execution id");
|
|
257
|
+
}
|
|
258
|
+
const result = await reloaded
|
|
259
|
+
.session(dispatched.sessionId)
|
|
260
|
+
.result({ executionId: dispatched.executionId });
|
|
256
261
|
console.log(result.status, result.response);
|
|
257
262
|
```
|
|
258
263
|
|
|
259
264
|
Reusing the same caller-owned session ID makes a repeated dispatch find the existing session instead of starting another run.
|
|
265
|
+
Keep the returned `executionId` with the session ID whenever another caller can add a turn to the same session.
|
|
266
|
+
`session.result({ executionId })` replays only that run, and `session.interrupt({ executionId })` cancels only that run, so neither operation can move to a newer turn between lookup and action.
|
|
267
|
+
`prompt()` also returns the execution ID that actually produced its result, including an idempotent replay that resolves to an earlier execution than the caller requested.
|
|
260
268
|
Use session events with an event ID when the consumer must replay a dropped stream.
|
|
261
269
|
Use the `/session-gateway` entrypoint for browser WebSocket reconnect and replay.
|
|
262
270
|
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-
|
|
2
|
-
import { n as SandboxInstance } from "../sandbox-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { C as CodeResultPart, S as CodeLanguage, b as CodeExecutionOptions, x as CodeExecutionResult } from "../types-B9NCgBp-.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-BrcMNTFB.js";
|
|
3
|
+
import { i as Sandbox } from "../client-DHwvqxth.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
|
-
import { $n as SandboxFleetCostEstimate, $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as PublishPublicTemplateVersionOptions, Cr as SandboxFleetWorkspaceSnapshotResult, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Dn as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mn as ReapExpiredSandboxFleetsResult, Nn as ReconcileSandboxFleetsOptions, O as CreateRequestOptions, On as PublicTemplateVersionInfo, Pn as ReconcileSandboxFleetsResult, Qn as SandboxFleetArtifactSpec, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions,
|
|
2
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { $n as SandboxFleetCostEstimate, $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as PublishPublicTemplateVersionOptions, Cr as SandboxFleetWorkspaceSnapshotResult, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Di as TokenRefreshHandler, Dn as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mn as ReapExpiredSandboxFleetsResult, Ni as UsageInfo, Nn as ReconcileSandboxFleetsOptions, O as CreateRequestOptions, On as PublicTemplateVersionInfo, Pn as ReconcileSandboxFleetsResult, Qn as SandboxFleetArtifactSpec, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, Yi as BatchEvent, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifact, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptInputPart, bt as FleetDriveTurnOutcome, cr as SandboxFleetMachineRecord, en as ListSandboxOptions, f as BatchResult, fi as SshKeysManager, fr as SandboxFleetOperationsSummary, gi as SubscriptionInfo, gt as FleetDispatchCancelResult, hr as SandboxFleetTraceBundle, ir as SandboxFleetInfo, j as CreateSandboxFleetWithCoordinatorOptions, jn as ReapExpiredSandboxFleetsOptions, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateOptions, m as BatchRunRequest, mr as SandboxFleetToken, nr as SandboxFleetDriverCapability, nt as ExecResult, p as BatchRunOptions, qn as SandboxConfig, qt as IntelligenceReportCompareTo, tr as SandboxFleetDispatchResponse, tt as ExecOptions, ur as SandboxFleetManifest, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, wr as SandboxIdentity, wt as FleetMachineId, xn as PromptOptions, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions } from "./types-B9NCgBp-.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-BrcMNTFB.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-
|
|
1
|
+
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-BRQkJnW4.js";
|
|
2
2
|
import { a as NetworkError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
|
-
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-DQ1yf_nX.js";
|
|
4
4
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as CreateSandboxOptions, Mr as SandboxStatus, Tr as SandboxInfo, bn as PromptInputPart, dn as PreviewLinkWaitOptions, in as NetworkConfig, ln as PreviewLinkInfo, nt as ExecResult, qn as SandboxConfig, tt as ExecOptions, un as PreviewLinkManager } from "./types-
|
|
2
|
-
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { M as CreateSandboxOptions, Mr as SandboxStatus, Tr as SandboxInfo, bn as PromptInputPart, dn as PreviewLinkWaitOptions, in as NetworkConfig, ln as PreviewLinkInfo, nt as ExecResult, qn as SandboxConfig, tt as ExecOptions, un as PreviewLinkManager } from "./types-B9NCgBp-.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-BrcMNTFB.js";
|
|
3
|
+
import { i as Sandbox } from "./client-DHwvqxth.js";
|
|
4
4
|
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
5
5
|
export { AuthError, CapabilityError, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
2
|
-
import { n as Sandbox } from "./client-
|
|
3
|
-
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { n as Sandbox } from "./client-jlWtzNDF.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-DQ1yf_nX.js";
|
|
4
4
|
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as CreateSandboxOptions } from "./types-
|
|
2
|
-
import { n as SandboxInstance, t as HttpClient } from "./sandbox-
|
|
1
|
+
import { M as CreateSandboxOptions } from "./types-B9NCgBp-.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-BrcMNTFB.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, $i as
|
|
2
|
-
import { A as SandboxMcpEndpoint, C as RespondToPermissionOptions, D as CONTROL_PLANE_MCP_SERVER_NAME, E as BuildSandboxMcpConfigOptions, M as buildControlPlaneMcpConfig, N as buildSandboxMcpConfig, O as SANDBOX_MCP_SERVER_NAME, S as InterruptResult, T as BuildControlPlaneMcpConfigOptions, _ as InteractiveAuthFile, a as WorkspaceImagePublishResult, b as InteractiveSessionInfo, c as TraceExportResult, d as exportTraceBundle, f as otelTraceIdForTangleTrace, g as InteractiveAttachOptions, h as SandboxSession, i as WorkspaceImagePublishRequestOptions, j as SandboxMcpServerEntry, k as SandboxMcpConfig, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, o as WorkspaceImages, p as toOtelJson, r as WorkspaceImagePublishInput, s as TraceExportFormat, u as buildTraceExportPayload, v as InteractiveSessionHandle, w as StartInteractiveOptions, x as InteractiveSessionStatus, y as InteractiveSessionHost } from "./sandbox-
|
|
3
|
-
import { a as Team, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, i as Sandbox, l as SessionBroadcastResult, m as parseSSEStream, n as IntelligenceClient, o as TeamInvitation, p as ParsedSSEEvent, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as SandboxFleet } from "./client-
|
|
1
|
+
import { $ as EventStreamOptions, $i as PublicBatchRunRequest, $n as SandboxFleetCostEstimate, $r as SessionBackendCredentials, $t as ListSandboxFleetOptions, Ai as UpdateUserOptions, An as PublishPublicTemplateVersionOptions, Ar as SandboxResources, At as GitCommit, B as DownloadOptions, Bi as TerminalExitInfo, Bn as RolloutOptions, Br as SandboxTraceEvent, Bt as GpuLeaseProviderName, Ci as TeeAttestationReport, Cn as ProvisionEvent, Cr as SandboxFleetWorkspaceSnapshotResult, D as CreateIntelligenceReportOptions, Di as TokenRefreshHandler, Dn as PublicTemplateInfo, Dr as SandboxPortBinding, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TeePublicKeyResponse, En as ProvisionStep, Er as SandboxIntelligenceEnvelope, F as DeleteOptions, Fi as WaitForRolloutOptions, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamHandlers, Gn as SSHCommandDescriptor, Gr as ScopedTokenScope, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStream, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteFileOptions, Ir as SandboxTerminalManager, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchBackendStats, Jn as SandboxConnection, Jr as SecretInfo, Jt as IntelligenceReportSubjectType, Ki as TerminalStreamOptions, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as WriteManyFile, Lr as SandboxTerminalRequestOptions, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as UploadProgress, Mn as ReapExpiredSandboxFleetsResult, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as UsageInfo, Nn as ReconcileSandboxFleetsOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as TokenUsage, On as PublicTemplateVersionInfo, Or as SandboxPortPreviewLink, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WaitForOptions, Pn as ReconcileSandboxFleetsResult, Pr as SandboxTerminalCreateOptions, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as BatchTaskUsage, Qn as SandboxFleetArtifactSpec, Qr as SentSessionMessage, Qt as ListOptions, R as DispatchPromptOptions, Ri as WriteManyOptions, Rn as Rollout, Rr as SandboxTerminals, Rt as GpuLeaseExecResult, Si as TeeAttestationOptions, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TeePublicKey, Tn as ProvisionStatus, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamAuthFormat, Un as RolloutStatus, Ur as SandboxUser, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalReadyInfo, Vn as RolloutScorer, Vr as SandboxTraceExport, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamError, Wn as RolloutTurnPart, Wr as ScopedToken, Wt as InstalledTool, X as EgressManager, Xi as BatchEventDataMap, Xn as SandboxEvent, Xr as SendSessionMessageOptions, Y as EffectiveBackendSource, Yi as BatchEvent, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as BatchSidecarGroup, Zn as SandboxFleetArtifact, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionChanges, _n as ProcessSignal, _r as SandboxFleetTraceExport, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionMessage, an as NetworkManager, ar as SandboxFleetIntelligenceEnvelope, at as FileReadBatchResult, bi as TaskSessionInfo, bn as PromptInputPart, br as SandboxFleetWorkspace, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SessionStatus, cn as PermissionsManager, cr as SandboxFleetMachineRecord, ct as FileRenameResult, d as BatchBackend, di as SnapshotResult, dn as PreviewLinkWaitOptions, dr as SandboxFleetManifestMachine, dt as FileTreeOptions, ea as BackendType, ei as SessionEventStreamOptions, en as ListSandboxOptions, er as SandboxFleetDispatchFailureClass, et as ExactProcessSpawnOptions, f as BatchResult, fn as Process, fr as SandboxFleetOperationsSummary, ft as FileTreeResult, g as BatchTaskResult, gi as SubscriptionInfo, gn as ProcessManager, gr as SandboxFleetTraceEvent, gt as FleetDispatchCancelResult, h as BatchTask, hi as StorageConfig, hn as ProcessLogEntry, hr as SandboxFleetTraceBundle, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionListOptions, in as NetworkConfig, ir as SandboxFleetInfo, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UploadOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SandboxRuntimeHealth, jt as GitConfig, k as CreateSandboxFleetOptions, ki as TurnDriveResult, kn as PublishPublicTemplateOptions, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotInfo, ln as PreviewLinkInfo, lr as SandboxFleetMachineSpec, lt as FileSystem, m as BatchRunRequest, mi as StartupOperation, mn as ProcessListOptions, mr as SandboxFleetToken, mt as FileUsageResult, n as AccessPolicyRule, ni as SessionInfo, nn as MintScopedTokenOptions, nr as SandboxFleetDriverCapability, nt as ExecResult, o as BackendCapabilities, oi as SessionMessageInputPart, on as NonHostAgentDriverConfig, or as SandboxFleetMachine, ot as FileReadError, p as BatchRunOptions, pi as StartupDiagnostics, pn as ProcessInfo, pr as SandboxFleetPolicy, pt as FileUsageOptions, q as EffectiveBackend, qi as TerminalStreamToken, qn as SandboxConfig, qr as SearchOptions, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionInterruptOptions, rn as MkdirOptions, rr as SandboxFleetDriverTimings, rt as FileInfo, s as BackendConfig, si as SessionResultOptions, sn as PermissionLevel, sr as SandboxFleetMachineMeteredUsage, st as FileReadResult, t as AcceleratorKind, ta as parseBackendType, ti as SessionForkOptions, tn as McpServerConfig, tr as SandboxFleetDispatchResponse, tt as ExecOptions, u as BackendStatus, ui as SnapshotOptions, un as PreviewLinkManager, ur as SandboxFleetManifest, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionCommitResult, vn as ProcessSpawnOptions, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeeAttestationResponse, wn as ProvisionResult, wr as SandboxIdentity, wt as FleetMachineId, xi as TaskSessionProfile, xn as PromptOptions, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionFileChange, yn as ProcessStatus, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TERMINAL_WS_ECHO_SUBPROTOCOL, zn as RolloutChildResult, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-B9NCgBp-.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-BrcMNTFB.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-DHwvqxth.js";
|
|
4
4
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DtRFVx5U.js";
|
|
5
5
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-Cp1KYanB.js";
|
|
6
6
|
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, r as EgressProxyRecoveryError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
7
|
-
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DXwZxrlU.js";
|
|
8
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -544,10 +544,10 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
544
544
|
openclaw: "openclaw";
|
|
545
545
|
amp: "amp";
|
|
546
546
|
"factory-droids": "factory-droids";
|
|
547
|
-
acp: "acp";
|
|
548
|
-
"cli-base": "cli-base";
|
|
549
547
|
forge: "forge";
|
|
550
548
|
cursor: "cursor";
|
|
549
|
+
acp: "acp";
|
|
550
|
+
"cli-base": "cli-base";
|
|
551
551
|
}>;
|
|
552
552
|
profile: z.ZodOptional<z.ZodObject<{
|
|
553
553
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -585,6 +585,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
585
585
|
openclaw: "openclaw";
|
|
586
586
|
amp: "amp";
|
|
587
587
|
"factory-droids": "factory-droids";
|
|
588
|
+
forge: "forge";
|
|
589
|
+
cursor: "cursor";
|
|
588
590
|
acp: "acp";
|
|
589
591
|
"cli-base": "cli-base";
|
|
590
592
|
}>>;
|
|
@@ -864,10 +866,10 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
864
866
|
openclaw: "openclaw";
|
|
865
867
|
amp: "amp";
|
|
866
868
|
"factory-droids": "factory-droids";
|
|
867
|
-
acp: "acp";
|
|
868
|
-
"cli-base": "cli-base";
|
|
869
869
|
forge: "forge";
|
|
870
870
|
cursor: "cursor";
|
|
871
|
+
acp: "acp";
|
|
872
|
+
"cli-base": "cli-base";
|
|
871
873
|
}>;
|
|
872
874
|
profile: z.ZodOptional<z.ZodObject<{
|
|
873
875
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -905,6 +907,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
905
907
|
openclaw: "openclaw";
|
|
906
908
|
amp: "amp";
|
|
907
909
|
"factory-droids": "factory-droids";
|
|
910
|
+
forge: "forge";
|
|
911
|
+
cursor: "cursor";
|
|
908
912
|
acp: "acp";
|
|
909
913
|
"cli-base": "cli-base";
|
|
910
914
|
}>>;
|
|
@@ -1194,10 +1198,10 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1194
1198
|
openclaw: "openclaw";
|
|
1195
1199
|
amp: "amp";
|
|
1196
1200
|
"factory-droids": "factory-droids";
|
|
1197
|
-
acp: "acp";
|
|
1198
|
-
"cli-base": "cli-base";
|
|
1199
1201
|
forge: "forge";
|
|
1200
1202
|
cursor: "cursor";
|
|
1203
|
+
acp: "acp";
|
|
1204
|
+
"cli-base": "cli-base";
|
|
1201
1205
|
}>;
|
|
1202
1206
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1203
1207
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1235,6 +1239,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1235
1239
|
openclaw: "openclaw";
|
|
1236
1240
|
amp: "amp";
|
|
1237
1241
|
"factory-droids": "factory-droids";
|
|
1242
|
+
forge: "forge";
|
|
1243
|
+
cursor: "cursor";
|
|
1238
1244
|
acp: "acp";
|
|
1239
1245
|
"cli-base": "cli-base";
|
|
1240
1246
|
}>>;
|
|
@@ -1509,10 +1515,10 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1509
1515
|
openclaw: "openclaw";
|
|
1510
1516
|
amp: "amp";
|
|
1511
1517
|
"factory-droids": "factory-droids";
|
|
1512
|
-
acp: "acp";
|
|
1513
|
-
"cli-base": "cli-base";
|
|
1514
1518
|
forge: "forge";
|
|
1515
1519
|
cursor: "cursor";
|
|
1520
|
+
acp: "acp";
|
|
1521
|
+
"cli-base": "cli-base";
|
|
1516
1522
|
}>;
|
|
1517
1523
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1518
1524
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1550,6 +1556,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1550
1556
|
openclaw: "openclaw";
|
|
1551
1557
|
amp: "amp";
|
|
1552
1558
|
"factory-droids": "factory-droids";
|
|
1559
|
+
forge: "forge";
|
|
1560
|
+
cursor: "cursor";
|
|
1553
1561
|
acp: "acp";
|
|
1554
1562
|
"cli-base": "cli-base";
|
|
1555
1563
|
}>>;
|
|
@@ -1829,10 +1837,10 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1829
1837
|
openclaw: "openclaw";
|
|
1830
1838
|
amp: "amp";
|
|
1831
1839
|
"factory-droids": "factory-droids";
|
|
1832
|
-
acp: "acp";
|
|
1833
|
-
"cli-base": "cli-base";
|
|
1834
1840
|
forge: "forge";
|
|
1835
1841
|
cursor: "cursor";
|
|
1842
|
+
acp: "acp";
|
|
1843
|
+
"cli-base": "cli-base";
|
|
1836
1844
|
}>;
|
|
1837
1845
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1838
1846
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1870,6 +1878,8 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1870
1878
|
openclaw: "openclaw";
|
|
1871
1879
|
amp: "amp";
|
|
1872
1880
|
"factory-droids": "factory-droids";
|
|
1881
|
+
forge: "forge";
|
|
1882
|
+
cursor: "cursor";
|
|
1873
1883
|
acp: "acp";
|
|
1874
1884
|
"cli-base": "cli-base";
|
|
1875
1885
|
}>>;
|
|
@@ -2254,10 +2264,10 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2254
2264
|
openclaw: "openclaw";
|
|
2255
2265
|
amp: "amp";
|
|
2256
2266
|
"factory-droids": "factory-droids";
|
|
2257
|
-
acp: "acp";
|
|
2258
|
-
"cli-base": "cli-base";
|
|
2259
2267
|
forge: "forge";
|
|
2260
2268
|
cursor: "cursor";
|
|
2269
|
+
acp: "acp";
|
|
2270
|
+
"cli-base": "cli-base";
|
|
2261
2271
|
}>;
|
|
2262
2272
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2263
2273
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2295,6 +2305,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2295
2305
|
openclaw: "openclaw";
|
|
2296
2306
|
amp: "amp";
|
|
2297
2307
|
"factory-droids": "factory-droids";
|
|
2308
|
+
forge: "forge";
|
|
2309
|
+
cursor: "cursor";
|
|
2298
2310
|
acp: "acp";
|
|
2299
2311
|
"cli-base": "cli-base";
|
|
2300
2312
|
}>>;
|
|
@@ -2574,10 +2586,10 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2574
2586
|
openclaw: "openclaw";
|
|
2575
2587
|
amp: "amp";
|
|
2576
2588
|
"factory-droids": "factory-droids";
|
|
2577
|
-
acp: "acp";
|
|
2578
|
-
"cli-base": "cli-base";
|
|
2579
2589
|
forge: "forge";
|
|
2580
2590
|
cursor: "cursor";
|
|
2591
|
+
acp: "acp";
|
|
2592
|
+
"cli-base": "cli-base";
|
|
2581
2593
|
}>;
|
|
2582
2594
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2583
2595
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2615,6 +2627,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2615
2627
|
openclaw: "openclaw";
|
|
2616
2628
|
amp: "amp";
|
|
2617
2629
|
"factory-droids": "factory-droids";
|
|
2630
|
+
forge: "forge";
|
|
2631
|
+
cursor: "cursor";
|
|
2618
2632
|
acp: "acp";
|
|
2619
2633
|
"cli-base": "cli-base";
|
|
2620
2634
|
}>>;
|
|
@@ -2904,10 +2918,10 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2904
2918
|
openclaw: "openclaw";
|
|
2905
2919
|
amp: "amp";
|
|
2906
2920
|
"factory-droids": "factory-droids";
|
|
2907
|
-
acp: "acp";
|
|
2908
|
-
"cli-base": "cli-base";
|
|
2909
2921
|
forge: "forge";
|
|
2910
2922
|
cursor: "cursor";
|
|
2923
|
+
acp: "acp";
|
|
2924
|
+
"cli-base": "cli-base";
|
|
2911
2925
|
}>;
|
|
2912
2926
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2913
2927
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2945,6 +2959,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2945
2959
|
openclaw: "openclaw";
|
|
2946
2960
|
amp: "amp";
|
|
2947
2961
|
"factory-droids": "factory-droids";
|
|
2962
|
+
forge: "forge";
|
|
2963
|
+
cursor: "cursor";
|
|
2948
2964
|
acp: "acp";
|
|
2949
2965
|
"cli-base": "cli-base";
|
|
2950
2966
|
}>>;
|
|
@@ -3219,10 +3235,10 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3219
3235
|
openclaw: "openclaw";
|
|
3220
3236
|
amp: "amp";
|
|
3221
3237
|
"factory-droids": "factory-droids";
|
|
3222
|
-
acp: "acp";
|
|
3223
|
-
"cli-base": "cli-base";
|
|
3224
3238
|
forge: "forge";
|
|
3225
3239
|
cursor: "cursor";
|
|
3240
|
+
acp: "acp";
|
|
3241
|
+
"cli-base": "cli-base";
|
|
3226
3242
|
}>;
|
|
3227
3243
|
profile: z.ZodOptional<z.ZodObject<{
|
|
3228
3244
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3260,6 +3276,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3260
3276
|
openclaw: "openclaw";
|
|
3261
3277
|
amp: "amp";
|
|
3262
3278
|
"factory-droids": "factory-droids";
|
|
3279
|
+
forge: "forge";
|
|
3280
|
+
cursor: "cursor";
|
|
3263
3281
|
acp: "acp";
|
|
3264
3282
|
"cli-base": "cli-base";
|
|
3265
3283
|
}>>;
|
|
@@ -3539,10 +3557,10 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3539
3557
|
openclaw: "openclaw";
|
|
3540
3558
|
amp: "amp";
|
|
3541
3559
|
"factory-droids": "factory-droids";
|
|
3542
|
-
acp: "acp";
|
|
3543
|
-
"cli-base": "cli-base";
|
|
3544
3560
|
forge: "forge";
|
|
3545
3561
|
cursor: "cursor";
|
|
3562
|
+
acp: "acp";
|
|
3563
|
+
"cli-base": "cli-base";
|
|
3546
3564
|
}>;
|
|
3547
3565
|
profile: z.ZodOptional<z.ZodObject<{
|
|
3548
3566
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3580,6 +3598,8 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3580
3598
|
openclaw: "openclaw";
|
|
3581
3599
|
amp: "amp";
|
|
3582
3600
|
"factory-droids": "factory-droids";
|
|
3601
|
+
forge: "forge";
|
|
3602
|
+
cursor: "cursor";
|
|
3583
3603
|
acp: "acp";
|
|
3584
3604
|
"cli-base": "cli-base";
|
|
3585
3605
|
}>>;
|
|
@@ -4303,4 +4323,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4303
4323
|
}
|
|
4304
4324
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4305
4325
|
//#endregion
|
|
4306
|
-
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type 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, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4326
|
+
export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAuthFile, InteractiveSessionHandle, type InteractiveSessionHost, type InteractiveSessionInfo, type InteractiveSessionStatus, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type 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 SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-
|
|
1
|
+
import { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-BRQkJnW4.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, r as EgressProxyRecoveryError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
|
-
import { a as splitInlineProfileSkills, c as SandboxFleetClient, i as splitInlineProfileFileMounts, l as createBatchResultAccumulator, n as Sandbox, o as validateDeferredProfileFileMounts, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as validateBatchRunRequest } from "./client-
|
|
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-
|
|
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-jlWtzNDF.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-DQ1yf_nX.js";
|
|
5
5
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-CVdLf_4n.js";
|
|
6
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-Bbf2QqDC.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
|
|
@@ -10,13 +10,6 @@ import { z } from "zod";
|
|
|
10
10
|
* backend must keep failing closed rather than dispatching to a runner that cannot start.
|
|
11
11
|
*/
|
|
12
12
|
const NON_BACKEND_HARNESSES = ["gemini"];
|
|
13
|
-
/**
|
|
14
|
-
* Runners with a provider adapter here (`packages/sdk-provider-forge`,
|
|
15
|
-
* `packages/sdk-provider-cursor`) that the canonical enum does not carry yet. The guard below
|
|
16
|
-
* turns their adoption upstream into a compile error so this list is emptied rather than
|
|
17
|
-
* silently duplicating a canonical id.
|
|
18
|
-
*/
|
|
19
|
-
const EXTRA_BACKEND_TYPES = ["forge", "cursor"];
|
|
20
13
|
const BACKEND_TYPE = {
|
|
21
14
|
OPENCODE: "opencode",
|
|
22
15
|
CLAUDE_CODE: "claude-code",
|
|
@@ -48,12 +41,11 @@ const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
|
48
41
|
*/
|
|
49
42
|
const canonicalBackendHarnesses = harnessTypeSchema.options.filter((harness) => !nonBackendHarnesses.has(harness));
|
|
50
43
|
const declaredBackendTypes = new Set(ALL_BACKEND_TYPES);
|
|
51
|
-
const extraBackendTypes = new Set(EXTRA_BACKEND_TYPES);
|
|
52
44
|
const canonicalBackendHarnessSet = new Set(canonicalBackendHarnesses);
|
|
53
45
|
const undeclaredCanonicalHarnesses = canonicalBackendHarnesses.filter((harness) => !declaredBackendTypes.has(harness));
|
|
54
46
|
if (undeclaredCanonicalHarnesses.length > 0) throw new Error(`BACKEND_TYPE is missing canonical harnesses: ${undeclaredCanonicalHarnesses.join(", ")}. Add the named constant plus its CLI_AGENT_SPECS entry, or list it in NON_BACKEND_HARNESSES with a reason.`);
|
|
55
|
-
const unrecognizedBackendTypes = ALL_BACKEND_TYPES.filter((backend) => !
|
|
56
|
-
if (unrecognizedBackendTypes.length > 0) throw new Error(`BACKEND_TYPE declares runners the canonical harness enum does not define: ${unrecognizedBackendTypes.join(", ")}. Reconcile them into @tangle-network/agent-interface
|
|
47
|
+
const unrecognizedBackendTypes = ALL_BACKEND_TYPES.filter((backend) => !canonicalBackendHarnessSet.has(backend));
|
|
48
|
+
if (unrecognizedBackendTypes.length > 0) throw new Error(`BACKEND_TYPE declares runners the canonical harness enum does not define: ${unrecognizedBackendTypes.join(", ")}. Reconcile them into @tangle-network/agent-interface.`);
|
|
57
49
|
const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
58
50
|
const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
|
|
59
51
|
function isBackendType(value) {
|
|
@@ -801,6 +793,7 @@ function normalizeSessionInfo(raw) {
|
|
|
801
793
|
"failed",
|
|
802
794
|
"cancelled"
|
|
803
795
|
].includes(status) ? status : "running",
|
|
796
|
+
activeExecutionId: typeof raw.activeExecutionId === "string" && raw.activeExecutionId.length > 0 ? raw.activeExecutionId : void 0,
|
|
804
797
|
latestExecutionId: typeof raw.latestExecutionId === "string" && raw.latestExecutionId.length > 0 ? raw.latestExecutionId : void 0,
|
|
805
798
|
backend: typeof raw.backendType === "string" ? raw.backendType : typeof raw.backend === "string" ? raw.backend : void 0,
|
|
806
799
|
effectiveBackend,
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as SandboxPortBinding, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ii as WriteFileOptions, Ir as SandboxTerminalManager, Lr as SandboxTerminalRequestOptions, Mi as UploadProgress, N as CreateSessionOptions, P as CreateTaskSessionOptions, Pr as SandboxTerminalCreateOptions, Qr as SentSessionMessage, Xr as SendSessionMessageOptions, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _i as TaskSessionChanges, ai as SessionMessage, at as FileReadBatchResult, bi as TaskSessionInfo, ct as FileRenameResult, dt as FileTreeOptions, ft as FileTreeResult, ht as FileWriteResult, it as FileReadBatchOptions, jr as SandboxRuntimeHealth, mt as FileUsageResult, ni as SessionInfo, pt as FileUsageOptions, v as ChunkedUploadOptions, vi as TaskSessionCommitResult, w as CommitTaskSessionOptions, y as ChunkedUploadResult } from "./types-B9NCgBp-.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as SandboxFailureDetail, f as ServerError, h as ValidationError, i as FileWriteConflictError, l as SandboxError, m as TimeoutError, n as CapabilityError, o as NotFoundError, p as StateError, s as PartialFailureError, t as AuthError, u as SandboxErrorJson } from "./errors-Bdy5jXzc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/chunked-upload.d.ts
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, t as SandboxRuntimeApi } from "./runtime-api-BRQkJnW4.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, i as FileWriteConflictError, l as SandboxError, n as CapabilityError, o as NotFoundError, p as ValidationError, s as PartialFailureError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
3
|
//#region src/runtime-client.ts
|
|
4
4
|
const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EventStreamOptions, At as GitCommit,
|
|
1
|
+
import { $ as EventStreamOptions, At as GitCommit, Bn as RolloutOptions, Cn as ProvisionEvent, Dr as SandboxPortBinding, Ei as TeePublicKeyResponse, Fi as WaitForRolloutOptions, Gi as TerminalStreamHandlers, Gn as SSHCommandDescriptor, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStream, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ii as WriteFileOptions, In as RestoreSnapshotOptions, Jn as SandboxConnection, K as DurablePlan, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, Li as WriteManyFile, Ln as ResumeOptions, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, P as CreateTaskSessionOptions, Pi as WaitForOptions, Pt as GpuLease, Qr as SentSessionMessage, R as DispatchPromptOptions, Ri as WriteManyOptions, Rn as Rollout, Rr as SandboxTerminals, S as CodeLanguage, Si as TeeAttestationOptions, Sn as PromptResult, T as CompletedTurnResult, Tr as SandboxInfo, W as DriverInfo, Wr as ScopedToken, Wt as InstalledTool, X as EgressManager, Xn as SandboxEvent, Xr as SendSessionMessageOptions, Xt as JsonValue, Yt as IntelligenceReportWindow, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionChanges, ai as SessionMessage, an as NetworkManager, b as CodeExecutionOptions, bi as TaskSessionInfo, bn as PromptInputPart, cn as PermissionsManager, di as SnapshotResult, ea as BackendType, ei as SessionEventStreamOptions, gn as ProcessManager, hr as SandboxFleetTraceBundle, ht as FileWriteResult, ii as SessionListOptions, jr as SandboxRuntimeHealth, ki as TurnDriveResult, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotInfo, lt as FileSystem, ni as SessionInfo, nn as MintScopedTokenOptions, nt as ExecResult, pi as StartupDiagnostics, qr as SearchOptions, qt as IntelligenceReportCompareTo, ri as SessionInterruptOptions, s as BackendConfig, si as SessionResultOptions, ti as SessionForkOptions, tt as ExecOptions, ui as SnapshotOptions, un as PreviewLinkManager, vi as TaskSessionCommitResult, w as CommitTaskSessionOptions, wi as TeeAttestationResponse, wn as ProvisionResult, x as CodeExecutionResult, xn as PromptOptions, z as DispatchedSession, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-B9NCgBp-.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -295,13 +295,13 @@ interface SandboxSessionHost extends InteractiveSessionHost {
|
|
|
295
295
|
prompt(message: string | PromptInputPart[], options?: PromptOptions): Promise<PromptResult>;
|
|
296
296
|
_sessionStatus(id: string): Promise<SessionInfo | null>;
|
|
297
297
|
_sessionEvents(id: string, opts?: SessionEventStreamOptions): AsyncGenerator<SandboxEvent>;
|
|
298
|
-
_sessionResult(id: string, session?: SessionInfo): Promise<PromptResult>;
|
|
298
|
+
_sessionResult(id: string, options?: SessionResultOptions, session?: SessionInfo): Promise<PromptResult>;
|
|
299
299
|
_sessionDelete(id: string): Promise<void>;
|
|
300
300
|
_sessionSendMessage(id: string, request: SendSessionMessageRequest, options?: SendSessionMessageOptions): Promise<SentSessionMessage>;
|
|
301
301
|
messages(opts: ListMessagesOptions): Promise<SessionMessage[]>;
|
|
302
302
|
_sessionFork(id: string, opts?: SessionForkOptions): Promise<SessionInfo>;
|
|
303
303
|
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
304
|
-
_interrupt(id: string): Promise<InterruptResult>;
|
|
304
|
+
_interrupt(id: string, options?: SessionInterruptOptions): Promise<InterruptResult>;
|
|
305
305
|
_answerQuestion(id: string, answers: Record<string, string[]>): Promise<void>;
|
|
306
306
|
_currentPlan(id: string): Promise<DurablePlan | null>;
|
|
307
307
|
_decidePlan(id: string, planId: string, decision: {
|
|
@@ -345,15 +345,14 @@ declare class SandboxSession {
|
|
|
345
345
|
*/
|
|
346
346
|
events(opts?: SessionEventStreamOptions): AsyncGenerator<SandboxEvent>;
|
|
347
347
|
/**
|
|
348
|
-
* Await
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* to call after the execution has already finished.
|
|
348
|
+
* Await a terminal result. With `executionId`, drains only that execution;
|
|
349
|
+
* without it, reads status and selects the latest execution. Event replay
|
|
350
|
+
* makes either form safe after the execution has already finished.
|
|
352
351
|
*
|
|
353
352
|
* Use this to wait for a session that was started by another caller
|
|
354
353
|
* (e.g. `dispatchPrompt`).
|
|
355
354
|
*/
|
|
356
|
-
result(): Promise<PromptResult>;
|
|
355
|
+
result(options?: SessionResultOptions): Promise<PromptResult>;
|
|
357
356
|
/**
|
|
358
357
|
* List persisted messages for this session, including in-flight assistant
|
|
359
358
|
* content when the runtime has flushed partial output.
|
|
@@ -397,11 +396,12 @@ declare class SandboxSession {
|
|
|
397
396
|
*/
|
|
398
397
|
respondToPermission(permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
399
398
|
/**
|
|
400
|
-
* Interrupt
|
|
401
|
-
*
|
|
402
|
-
*
|
|
399
|
+
* Interrupt an execution without deleting the session. Pass `executionId`
|
|
400
|
+
* to make the cancellation exact: a newer run on the same session is never
|
|
401
|
+
* touched. Without it, the current execution is selected. Returns
|
|
402
|
+
* `{ cancelled: false }` when the selected execution is not running.
|
|
403
403
|
*/
|
|
404
|
-
interrupt(): Promise<InterruptResult>;
|
|
404
|
+
interrupt(options?: SessionInterruptOptions): Promise<InterruptResult>;
|
|
405
405
|
/**
|
|
406
406
|
* Answer a question the agent asked via a question tool invocation. `answers`
|
|
407
407
|
* maps each question id to the selected option(s). Backend-agnostic: works
|
|
@@ -1597,14 +1597,14 @@ declare class SandboxInstance {
|
|
|
1597
1597
|
* already in flight or already finished — never on the mere existence
|
|
1598
1598
|
* of a session with the same id:
|
|
1599
1599
|
*
|
|
1600
|
-
* 1.
|
|
1601
|
-
* `latestExecutionId` — → a second dispatch would run two agents
|
|
1602
|
-
* against one session, so return the live status with
|
|
1603
|
-
* `dispatched: false`.
|
|
1604
|
-
* 2. `opts.turnId` is set and the completed-turn cache has it → the
|
|
1600
|
+
* 1. `opts.turnId` is set and the completed-turn cache has it → the
|
|
1605
1601
|
* turn already finished; return `dispatched: false`. This is the
|
|
1606
1602
|
* only durable idempotency key, and it outlives the session (the
|
|
1607
1603
|
* cache survives session eviction, see `findCompletedTurn`).
|
|
1604
|
+
* 2. Otherwise, the session is in flight — `running`, or `queued` with a
|
|
1605
|
+
* `latestExecutionId` — → a second dispatch would run two agents
|
|
1606
|
+
* against one session, so return the live status with
|
|
1607
|
+
* `dispatched: false`.
|
|
1608
1608
|
*
|
|
1609
1609
|
* Anything else dispatches. Two cases in particular:
|
|
1610
1610
|
*
|
|
@@ -1698,8 +1698,10 @@ declare class SandboxInstance {
|
|
|
1698
1698
|
_sessionStatus(id: string): Promise<SessionInfo | null>;
|
|
1699
1699
|
/** @internal — invoked by SandboxSession.events(). */
|
|
1700
1700
|
_sessionEvents(id: string, opts?: SessionEventStreamOptions, stopOnTurnTerminal?: boolean): AsyncGenerator<SandboxEvent>;
|
|
1701
|
+
/** Replay one execution without subscribing to other runs on its session. */
|
|
1702
|
+
private _executionEvents;
|
|
1701
1703
|
/** @internal — invoked by SandboxSession.result(). */
|
|
1702
|
-
_sessionResult(id: string, knownSession?: SessionInfo): Promise<PromptResult>;
|
|
1704
|
+
_sessionResult(id: string, options?: SessionResultOptions, knownSession?: SessionInfo): Promise<PromptResult>;
|
|
1703
1705
|
/** @internal — invoked by InteractiveSessionHandle.start(). */
|
|
1704
1706
|
_startInteractive(id: string, options: StartInteractiveOptions): Promise<InteractiveSessionInfo>;
|
|
1705
1707
|
/** @internal — invoked by InteractiveSessionHandle.sendPrompt(). */
|
|
@@ -1736,7 +1738,7 @@ declare class SandboxInstance {
|
|
|
1736
1738
|
/** @internal — invoked by SandboxSession.respondToPermission(). */
|
|
1737
1739
|
_respondToPermission(id: string, permissionID: string, options: RespondToPermissionOptions): Promise<void>;
|
|
1738
1740
|
/** @internal — invoked by SandboxSession.interrupt(). */
|
|
1739
|
-
_interrupt(id: string): Promise<InterruptResult>;
|
|
1741
|
+
_interrupt(id: string, options?: SessionInterruptOptions): Promise<InterruptResult>;
|
|
1740
1742
|
/**
|
|
1741
1743
|
* @internal — invoked by SandboxSession.answer(). Resolves the session's
|
|
1742
1744
|
* outstanding question interaction and posts the answer through the
|