@tangle-network/sandbox 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-DS6fz6PF.js → client-BKnsOQze.js} +2 -2
- package/dist/{client-BIr5NPKo.d.ts → client-CZr3ENPZ.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-C89k_hW1.d.ts → index-1b5v8Xeo.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/{runtime-api-Bd9NAChb.js → runtime-api-O5VW0tcU.js} +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CkaqBz54.js → sandbox-BnHquSkr.js} +113 -53
- package/dist/{sandbox-CiVbnsQp.d.ts → sandbox-Cbcaqm8c.d.ts} +21 -19
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Cxe2HYQb.js → tangle-Dy4tv_Sm.js} +1 -1
- package/dist/{types-DTHan0Lc.d.ts → types-C_Hdq6RK.d.ts} +34 -1
- package/package.json +1 -1
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-C_Hdq6RK.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-Cbcaqm8c.js";
|
|
3
|
+
import { i as Sandbox } from "../client-CZr3ENPZ.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, l as encodePromptForWire, m as backendTypeSchema, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as normalizeRuntimeBackendConfig, u as encodeTextForWire } from "./runtime-api-
|
|
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-O5VW0tcU.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-BnHquSkr.js";
|
|
4
4
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $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-C_Hdq6RK.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-Cbcaqm8c.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
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-C_Hdq6RK.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-Cbcaqm8c.js";
|
|
3
|
+
import { i as Sandbox } from "./client-CZr3ENPZ.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-BKnsOQze.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-BnHquSkr.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-C_Hdq6RK.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-Cbcaqm8c.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-C_Hdq6RK.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-Cbcaqm8c.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-CZr3ENPZ.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-1b5v8Xeo.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";
|
|
@@ -4303,4 +4303,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4305
4305
|
//#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 };
|
|
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 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-O5VW0tcU.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-BKnsOQze.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-BnHquSkr.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-Dy4tv_Sm.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
|
|
@@ -801,6 +801,7 @@ function normalizeSessionInfo(raw) {
|
|
|
801
801
|
"failed",
|
|
802
802
|
"cancelled"
|
|
803
803
|
].includes(status) ? status : "running",
|
|
804
|
+
activeExecutionId: typeof raw.activeExecutionId === "string" && raw.activeExecutionId.length > 0 ? raw.activeExecutionId : void 0,
|
|
804
805
|
latestExecutionId: typeof raw.latestExecutionId === "string" && raw.latestExecutionId.length > 0 ? raw.latestExecutionId : void 0,
|
|
805
806
|
backend: typeof raw.backendType === "string" ? raw.backendType : typeof raw.backend === "string" ? raw.backend : void 0,
|
|
806
807
|
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-C_Hdq6RK.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-O5VW0tcU.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 { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-
|
|
1
|
+
import { a as uploadChunked, c as combineAbortSignals, d as applyRequestedModel, f as assertCurrentBackendType, i as sessionHeaders, l as encodePromptForWire, n as normalizeSessionInfo, p as normalizeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi } from "./runtime-api-O5VW0tcU.js";
|
|
2
2
|
import { a as NetworkError, c as QuotaError, d as StateError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, n as CapabilityError, o as NotFoundError, p as ValidationError, t as AuthError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
3
3
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
4
4
|
//#region src/lib/sse-parser.ts
|
|
@@ -512,8 +512,9 @@ var InteractiveSessionHandle = class {
|
|
|
512
512
|
* routes: `status` reads `GET /agents/sessions/{id}`, `events` opens an
|
|
513
513
|
* SSE stream against `/agents/events?sessionId=...` (with `since` for
|
|
514
514
|
* replay), `prompt` continues the session via `/agents/run/stream`,
|
|
515
|
-
* `interrupt` calls `/agents/sessions/{id}/abort
|
|
516
|
-
*
|
|
515
|
+
* `interrupt` calls `/agents/sessions/{id}/abort` by default or the
|
|
516
|
+
* execution-scoped cancel route when an execution id is supplied. No new
|
|
517
|
+
* sidecar surface is required — every endpoint already exists.
|
|
517
518
|
*
|
|
518
519
|
* Construction is private to the SDK: get a Session from
|
|
519
520
|
* `box.session(id)` (lazy reference, no network) or `box.sessions(...)`
|
|
@@ -555,16 +556,15 @@ var SandboxSession = class SandboxSession {
|
|
|
555
556
|
return this.box._sessionEvents(this.id, opts);
|
|
556
557
|
}
|
|
557
558
|
/**
|
|
558
|
-
* Await
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
* to call after the execution has already finished.
|
|
559
|
+
* Await a terminal result. With `executionId`, drains only that execution;
|
|
560
|
+
* without it, reads status and selects the latest execution. Event replay
|
|
561
|
+
* makes either form safe after the execution has already finished.
|
|
562
562
|
*
|
|
563
563
|
* Use this to wait for a session that was started by another caller
|
|
564
564
|
* (e.g. `dispatchPrompt`).
|
|
565
565
|
*/
|
|
566
|
-
async result() {
|
|
567
|
-
return this.box._sessionResult(this.id);
|
|
566
|
+
async result(options) {
|
|
567
|
+
return options ? this.box._sessionResult(this.id, options) : this.box._sessionResult(this.id);
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
570
570
|
* List persisted messages for this session, including in-flight assistant
|
|
@@ -630,12 +630,13 @@ var SandboxSession = class SandboxSession {
|
|
|
630
630
|
return this.box._respondToPermission(this.id, permissionID, options);
|
|
631
631
|
}
|
|
632
632
|
/**
|
|
633
|
-
* Interrupt
|
|
634
|
-
*
|
|
635
|
-
*
|
|
633
|
+
* Interrupt an execution without deleting the session. Pass `executionId`
|
|
634
|
+
* to make the cancellation exact: a newer run on the same session is never
|
|
635
|
+
* touched. Without it, the current execution is selected. Returns
|
|
636
|
+
* `{ cancelled: false }` when the selected execution is not running.
|
|
636
637
|
*/
|
|
637
|
-
async interrupt() {
|
|
638
|
-
return this.box._interrupt(this.id);
|
|
638
|
+
async interrupt(options) {
|
|
639
|
+
return options ? this.box._interrupt(this.id, options) : this.box._interrupt(this.id);
|
|
639
640
|
}
|
|
640
641
|
/**
|
|
641
642
|
* Answer a question the agent asked via a question tool invocation. `answers`
|
|
@@ -2164,6 +2165,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2164
2165
|
let responseText;
|
|
2165
2166
|
let runError;
|
|
2166
2167
|
let runErrorCode;
|
|
2168
|
+
let executionId = options?.lastEventId ? options.executionId : void 0;
|
|
2167
2169
|
let traceId;
|
|
2168
2170
|
let usage;
|
|
2169
2171
|
let costUsd;
|
|
@@ -2179,6 +2181,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2179
2181
|
signal
|
|
2180
2182
|
})) {
|
|
2181
2183
|
responseText = applySandboxEventText(responseText, event);
|
|
2184
|
+
const eventExecutionId = event.data.executionId;
|
|
2185
|
+
if (typeof eventExecutionId === "string" && eventExecutionId.length > 0) executionId = eventExecutionId;
|
|
2182
2186
|
if (event.type === "result" || event.type === "done") {
|
|
2183
2187
|
usage = readTokenUsage(event.data) ?? usage;
|
|
2184
2188
|
costUsd = readTokenCostUsd(event.data) ?? costUsd;
|
|
@@ -2206,6 +2210,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2206
2210
|
return {
|
|
2207
2211
|
success: outcome.success,
|
|
2208
2212
|
status: outcome.status,
|
|
2213
|
+
...executionId ? { executionId } : {},
|
|
2209
2214
|
response: responseText,
|
|
2210
2215
|
error: outcome.error,
|
|
2211
2216
|
errorCode: outcome.errorCode,
|
|
@@ -2222,6 +2227,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2222
2227
|
return {
|
|
2223
2228
|
success: false,
|
|
2224
2229
|
status: "failed",
|
|
2230
|
+
...executionId ? { executionId } : {},
|
|
2225
2231
|
error: err instanceof Error ? err.message : String(err),
|
|
2226
2232
|
durationMs: Date.now() - startTime
|
|
2227
2233
|
};
|
|
@@ -2323,7 +2329,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
2323
2329
|
const isCallerAbort = () => options?.signal?.aborted === true;
|
|
2324
2330
|
let receivedTerminal = false;
|
|
2325
2331
|
let sessionId = options?.sessionId;
|
|
2326
|
-
let executionId = options?.executionId;
|
|
2332
|
+
let executionId = options?.lastEventId ? options.executionId : void 0;
|
|
2327
2333
|
let profileResendAttempted = false;
|
|
2328
2334
|
try {
|
|
2329
2335
|
for (;;) {
|
|
@@ -5118,14 +5124,14 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5118
5124
|
* already in flight or already finished — never on the mere existence
|
|
5119
5125
|
* of a session with the same id:
|
|
5120
5126
|
*
|
|
5121
|
-
* 1.
|
|
5122
|
-
* `latestExecutionId` — → a second dispatch would run two agents
|
|
5123
|
-
* against one session, so return the live status with
|
|
5124
|
-
* `dispatched: false`.
|
|
5125
|
-
* 2. `opts.turnId` is set and the completed-turn cache has it → the
|
|
5127
|
+
* 1. `opts.turnId` is set and the completed-turn cache has it → the
|
|
5126
5128
|
* turn already finished; return `dispatched: false`. This is the
|
|
5127
5129
|
* only durable idempotency key, and it outlives the session (the
|
|
5128
5130
|
* cache survives session eviction, see `findCompletedTurn`).
|
|
5131
|
+
* 2. Otherwise, the session is in flight — `running`, or `queued` with a
|
|
5132
|
+
* `latestExecutionId` — → a second dispatch would run two agents
|
|
5133
|
+
* against one session, so return the live status with
|
|
5134
|
+
* `dispatched: false`.
|
|
5129
5135
|
*
|
|
5130
5136
|
* Anything else dispatches. Two cases in particular:
|
|
5131
5137
|
*
|
|
@@ -5149,17 +5155,26 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5149
5155
|
let existing = null;
|
|
5150
5156
|
if (opts?.sessionId) {
|
|
5151
5157
|
existing = await this._sessionStatus(opts.sessionId);
|
|
5152
|
-
if (existing && isSessionInFlight(existing)) return {
|
|
5153
|
-
sessionId: existing.id,
|
|
5154
|
-
status: existing.status,
|
|
5155
|
-
alreadyExisted: true,
|
|
5156
|
-
dispatched: false
|
|
5157
|
-
};
|
|
5158
5158
|
if (opts.turnId) {
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5159
|
+
const cached = await this.findCompletedTurn(opts.turnId, { sessionId: opts.sessionId });
|
|
5160
|
+
if (cached) {
|
|
5161
|
+
const cachedExecutionId = typeof cached.result.executionId === "string" && cached.result.executionId.length > 0 ? cached.result.executionId : void 0;
|
|
5162
|
+
return {
|
|
5163
|
+
sessionId: existing?.id ?? opts.sessionId,
|
|
5164
|
+
...cachedExecutionId ? { executionId: cachedExecutionId } : {},
|
|
5165
|
+
status: existing?.status ?? "completed",
|
|
5166
|
+
alreadyExisted: existing !== null,
|
|
5167
|
+
dispatched: false
|
|
5168
|
+
};
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
if (existing && isSessionInFlight(existing)) {
|
|
5172
|
+
const existingExecutionId = existing.activeExecutionId ?? existing.latestExecutionId;
|
|
5173
|
+
return {
|
|
5174
|
+
sessionId: existing.id,
|
|
5175
|
+
...existingExecutionId ? { executionId: existingExecutionId } : {},
|
|
5176
|
+
status: existing.status,
|
|
5177
|
+
alreadyExisted: true,
|
|
5163
5178
|
dispatched: false
|
|
5164
5179
|
};
|
|
5165
5180
|
}
|
|
@@ -5171,20 +5186,29 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5171
5186
|
signal: ctrl.signal
|
|
5172
5187
|
});
|
|
5173
5188
|
let resolvedSessionId = opts?.sessionId;
|
|
5189
|
+
let resolvedExecutionId;
|
|
5190
|
+
let admissionObserved = false;
|
|
5191
|
+
let dispatchError;
|
|
5174
5192
|
try {
|
|
5175
5193
|
for await (const event of stream) {
|
|
5176
|
-
const
|
|
5177
|
-
if (typeof
|
|
5178
|
-
|
|
5179
|
-
|
|
5194
|
+
const data = event.data;
|
|
5195
|
+
if (event.type === "error") dispatchError = typeof data?.message === "string" ? data.message : "sandbox rejected the prompt before admission";
|
|
5196
|
+
if (event.type === "execution.started") {
|
|
5197
|
+
const id = data?.sessionId;
|
|
5198
|
+
const executionId = data?.executionId;
|
|
5199
|
+
if (typeof executionId === "string" && executionId.length > 0) resolvedExecutionId = executionId;
|
|
5200
|
+
if (typeof id === "string" && id.length > 0) resolvedSessionId = id;
|
|
5201
|
+
admissionObserved = Boolean(resolvedSessionId && resolvedExecutionId);
|
|
5180
5202
|
}
|
|
5203
|
+
if (admissionObserved || event.type === "result" || event.type === "done") break;
|
|
5181
5204
|
}
|
|
5182
5205
|
} finally {
|
|
5183
5206
|
ctrl.abort();
|
|
5184
5207
|
}
|
|
5185
|
-
if (!resolvedSessionId) throw new ServerError("dispatchPrompt did not receive
|
|
5208
|
+
if (!admissionObserved || !resolvedSessionId || !resolvedExecutionId) throw new ServerError(dispatchError ?? "dispatchPrompt did not receive an execution admission from the sandbox");
|
|
5186
5209
|
return {
|
|
5187
5210
|
sessionId: resolvedSessionId,
|
|
5211
|
+
...resolvedExecutionId ? { executionId: resolvedExecutionId } : {},
|
|
5188
5212
|
status: "running",
|
|
5189
5213
|
alreadyExisted: existing !== null,
|
|
5190
5214
|
dispatched: true
|
|
@@ -5304,7 +5328,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5304
5328
|
const startedAt = info.startedAt ?? info.createdAt;
|
|
5305
5329
|
const elapsedMs = startedAt ? Date.now() - startedAt.getTime() : void 0;
|
|
5306
5330
|
if (opts.wallCapMs !== void 0 && elapsedMs !== void 0 && elapsedMs > opts.wallCapMs) {
|
|
5307
|
-
await this._interrupt(opts.sessionId);
|
|
5331
|
+
await this._interrupt(opts.sessionId, info.activeExecutionId ? { executionId: info.activeExecutionId } : void 0);
|
|
5308
5332
|
return {
|
|
5309
5333
|
state: "failed",
|
|
5310
5334
|
error: `session ${opts.sessionId} exceeded the ${opts.wallCapMs}ms wall-clock cap and was cancelled`
|
|
@@ -5321,7 +5345,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5321
5345
|
state: "failed",
|
|
5322
5346
|
error: `session ${opts.sessionId} ${info.status}: no execution result is available`
|
|
5323
5347
|
};
|
|
5324
|
-
const result = await this._sessionResult(opts.sessionId, info);
|
|
5348
|
+
const result = await this._sessionResult(opts.sessionId, { executionId: info.latestExecutionId }, info);
|
|
5325
5349
|
const settled = settleTurnDrive({ ...result });
|
|
5326
5350
|
if (settled.state === "awaiting_plan_decision") return settled;
|
|
5327
5351
|
if (!result.success) return {
|
|
@@ -5398,18 +5422,42 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5398
5422
|
if ((stopOnTurnTerminal || opts?.executionId !== void 0) && turnTerminal) return;
|
|
5399
5423
|
}
|
|
5400
5424
|
}
|
|
5425
|
+
/** Replay one execution without subscribing to other runs on its session. */
|
|
5426
|
+
async *_executionEvents(sessionId, executionId) {
|
|
5427
|
+
await this.ensureRunning();
|
|
5428
|
+
const search = new URLSearchParams({
|
|
5429
|
+
lastEventId: "0",
|
|
5430
|
+
format: "sse",
|
|
5431
|
+
sessionId
|
|
5432
|
+
});
|
|
5433
|
+
const response = await this.runtimeFetch(`/agents/run/${encodeURIComponent(executionId)}/events?${search.toString()}`);
|
|
5434
|
+
if (!response.ok) {
|
|
5435
|
+
const body = await response.text();
|
|
5436
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
5437
|
+
}
|
|
5438
|
+
for await (const event of this.parseSSEStream(response)) {
|
|
5439
|
+
yield event;
|
|
5440
|
+
if (event.type === "result" || event.type === "done" || event.type === "error") return;
|
|
5441
|
+
}
|
|
5442
|
+
}
|
|
5401
5443
|
/** @internal — invoked by SandboxSession.result(). */
|
|
5402
|
-
async _sessionResult(id, knownSession) {
|
|
5444
|
+
async _sessionResult(id, options, knownSession) {
|
|
5445
|
+
if (options?.executionId !== void 0 && !options.executionId) throw new ValidationError("executionId must not be empty", { executionId: "Expected a non-empty runtime execution id" });
|
|
5403
5446
|
const startTime = Date.now();
|
|
5404
|
-
|
|
5405
|
-
if (!
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5447
|
+
let executionId = options?.executionId;
|
|
5448
|
+
if (!executionId) {
|
|
5449
|
+
const session = knownSession ?? await this._sessionStatus(id);
|
|
5450
|
+
if (!session) throw new NotFoundError("Session", id, {
|
|
5451
|
+
origin: "runtime",
|
|
5452
|
+
endpoint: `/agents/sessions/${encodeURIComponent(id)}`
|
|
5453
|
+
});
|
|
5454
|
+
if (!session.latestExecutionId) throw new StateError(`Session ${id} has no execution result to await`, session.status, "session with an admitted execution", {
|
|
5455
|
+
origin: "runtime",
|
|
5456
|
+
endpoint: `/agents/sessions/${encodeURIComponent(id)}`
|
|
5457
|
+
}, "SESSION_EXECUTION_MISSING");
|
|
5458
|
+
executionId = session.latestExecutionId;
|
|
5459
|
+
}
|
|
5460
|
+
let resultExecutionId = executionId;
|
|
5413
5461
|
let response;
|
|
5414
5462
|
let runError;
|
|
5415
5463
|
let runErrorCode;
|
|
@@ -5420,13 +5468,15 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5420
5468
|
let question;
|
|
5421
5469
|
let plan;
|
|
5422
5470
|
let terminalReached = false;
|
|
5423
|
-
|
|
5471
|
+
const events = options?.executionId ? this._executionEvents(id, executionId) : this._sessionEvents(id, {
|
|
5424
5472
|
since: "0",
|
|
5425
|
-
executionId
|
|
5426
|
-
}, true)
|
|
5473
|
+
executionId
|
|
5474
|
+
}, true);
|
|
5475
|
+
for await (const event of events) {
|
|
5427
5476
|
response = applySandboxEventText(response, event);
|
|
5428
5477
|
if (event.type === "result" || event.type === "done") {
|
|
5429
5478
|
const data = event.data;
|
|
5479
|
+
if (typeof data.executionId === "string" && data.executionId) resultExecutionId = data.executionId;
|
|
5430
5480
|
usage = readTokenUsage(data) ?? usage;
|
|
5431
5481
|
costUsd = readTokenCostUsd(data) ?? costUsd;
|
|
5432
5482
|
}
|
|
@@ -5460,6 +5510,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5460
5510
|
return {
|
|
5461
5511
|
success: outcome.success,
|
|
5462
5512
|
status: outcome.status,
|
|
5513
|
+
executionId: resultExecutionId,
|
|
5463
5514
|
response,
|
|
5464
5515
|
error: outcome.error,
|
|
5465
5516
|
errorCode: outcome.errorCode,
|
|
@@ -5630,15 +5681,24 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5630
5681
|
}
|
|
5631
5682
|
}
|
|
5632
5683
|
/** @internal — invoked by SandboxSession.interrupt(). */
|
|
5633
|
-
async _interrupt(id) {
|
|
5684
|
+
async _interrupt(id, options) {
|
|
5685
|
+
if (options?.executionId !== void 0 && !options.executionId) throw new ValidationError("executionId must not be empty", { executionId: "Expected a non-empty runtime execution id" });
|
|
5634
5686
|
await this.ensureRunning();
|
|
5635
|
-
const response = await this.runtimeFetch(
|
|
5687
|
+
const response = options?.executionId ? await this.runtimeFetch("/agents/run/cancel", {
|
|
5688
|
+
method: "POST",
|
|
5689
|
+
headers: { "content-type": "application/json" },
|
|
5690
|
+
body: JSON.stringify({
|
|
5691
|
+
executionId: options.executionId,
|
|
5692
|
+
sessionId: id
|
|
5693
|
+
})
|
|
5694
|
+
}) : await this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/abort`, { method: "POST" });
|
|
5636
5695
|
if (response.status === 404) return { cancelled: false };
|
|
5637
5696
|
if (!response.ok) {
|
|
5638
5697
|
const body = await response.text();
|
|
5639
5698
|
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
5640
5699
|
}
|
|
5641
|
-
|
|
5700
|
+
const json = await response.json();
|
|
5701
|
+
return { cancelled: options?.executionId ? json.success === true : json.data?.cancelled === true };
|
|
5642
5702
|
}
|
|
5643
5703
|
/**
|
|
5644
5704
|
* @internal — invoked by SandboxSession.answer(). Resolves the session's
|
|
@@ -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-C_Hdq6RK.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
|
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-1b5v8Xeo.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-Dy4tv_Sm.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 { m as parseErrorResponse } from "./errors-Bf-A-4SA.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BnHquSkr.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -2513,6 +2513,15 @@ interface PromptResult {
|
|
|
2513
2513
|
success: boolean;
|
|
2514
2514
|
/** Granular run outcome. */
|
|
2515
2515
|
status: AgentRunStatus;
|
|
2516
|
+
/**
|
|
2517
|
+
* Runtime execution that produced this result.
|
|
2518
|
+
*
|
|
2519
|
+
* Preserve this value when a session may receive another turn: passing it
|
|
2520
|
+
* to `session.result({ executionId })` or
|
|
2521
|
+
* `session.interrupt({ executionId })` keeps the later operation bound to
|
|
2522
|
+
* this run instead of whichever run is newest at call time.
|
|
2523
|
+
*/
|
|
2524
|
+
executionId?: string;
|
|
2516
2525
|
/** Agent's response text */
|
|
2517
2526
|
response?: string;
|
|
2518
2527
|
/** Error message when the run did not succeed */
|
|
@@ -3056,6 +3065,8 @@ interface SessionInfo {
|
|
|
3056
3065
|
parentId?: string;
|
|
3057
3066
|
/** Current lifecycle state. */
|
|
3058
3067
|
status: SessionStatus;
|
|
3068
|
+
/** Execution currently running, when one is active. */
|
|
3069
|
+
activeExecutionId?: string;
|
|
3059
3070
|
/** Most recent execution id, retained after completion for event replay. */
|
|
3060
3071
|
latestExecutionId?: string;
|
|
3061
3072
|
/** Backend identifier (e.g. provider name). */
|
|
@@ -3234,6 +3245,26 @@ interface SessionEventStreamOptions {
|
|
|
3234
3245
|
/** Cancel the stream by aborting this signal. */
|
|
3235
3246
|
signal?: AbortSignal;
|
|
3236
3247
|
}
|
|
3248
|
+
/** Select one exact execution when awaiting a session result. */
|
|
3249
|
+
interface SessionResultOptions {
|
|
3250
|
+
/**
|
|
3251
|
+
* Runtime execution to replay and aggregate.
|
|
3252
|
+
*
|
|
3253
|
+
* When omitted, `result()` retains its existing behavior and selects the
|
|
3254
|
+
* session's latest execution at call time.
|
|
3255
|
+
*/
|
|
3256
|
+
executionId?: string;
|
|
3257
|
+
}
|
|
3258
|
+
/** Select one exact execution when interrupting a session. */
|
|
3259
|
+
interface SessionInterruptOptions {
|
|
3260
|
+
/**
|
|
3261
|
+
* Runtime execution to cancel.
|
|
3262
|
+
*
|
|
3263
|
+
* When supplied, a newer execution on the same session is never cancelled.
|
|
3264
|
+
* When omitted, `interrupt()` selects the current execution.
|
|
3265
|
+
*/
|
|
3266
|
+
executionId?: string;
|
|
3267
|
+
}
|
|
3237
3268
|
/**
|
|
3238
3269
|
* Options for `box.dispatchPrompt()` — fire-and-detach prompt semantics.
|
|
3239
3270
|
*/
|
|
@@ -3337,6 +3368,8 @@ interface DispatchedSession {
|
|
|
3337
3368
|
/** Session id (either the one the caller supplied or one the sandbox
|
|
3338
3369
|
* minted). */
|
|
3339
3370
|
sessionId: string;
|
|
3371
|
+
/** Runtime execution id when the admission event supplied one. */
|
|
3372
|
+
executionId?: string;
|
|
3340
3373
|
/** Lifecycle state at the moment dispatch returned. */
|
|
3341
3374
|
status: SessionStatus;
|
|
3342
3375
|
/** True when a session with the supplied id already existed. On its own
|
|
@@ -6143,4 +6176,4 @@ interface CodeExecutionOptions {
|
|
|
6143
6176
|
idempotencyKey?: string;
|
|
6144
6177
|
}
|
|
6145
6178
|
//#endregion
|
|
6146
|
-
export { EventStreamOptions as $,
|
|
6179
|
+
export { EventStreamOptions as $, PublicBatchRunRequest as $i, SandboxFleetCostEstimate as $n, SessionBackendCredentials as $r, ListSandboxFleetOptions as $t, CreateSandboxFleetTokenOptions as A, UpdateUserOptions as Ai, PublishPublicTemplateVersionOptions as An, SandboxResources as Ar, GitCommit as At, DownloadOptions as B, TerminalExitInfo as Bi, RolloutOptions as Bn, SandboxTraceEvent as Br, GpuLeaseProviderName as Bt, CodeResultPart as C, TeeAttestationReport as Ci, ProvisionEvent as Cn, SandboxFleetWorkspaceSnapshotResult as Cr, FleetExecDispatchResult as Ct, CreateIntelligenceReportOptions as D, TokenRefreshHandler as Di, PublicTemplateInfo as Dn, SandboxPortBinding as Dr, GPU_LEASE_PROVIDER_NAMES as Dt, CreateGpuLeaseOptions as E, TeePublicKeyResponse as Ei, ProvisionStep as En, SandboxIntelligenceEnvelope as Er, FleetPromptDispatchResult as Et, DeleteOptions as F, WaitForRolloutOptions as Fi, RenameOptions as Fn, SandboxTerminalInfo as Fr, GpuLeaseBilling as Ft, DriverType as G, TerminalStreamHandlers as Gi, SSHCommandDescriptor as Gn, ScopedTokenScope as Gr, IntelligenceReport as Gt, DriveTurnOptions as H, TerminalStream as Hi, RolloutStartResult as Hn, SandboxTraceOptions as Hr, HostAgentDriverConfig as Ht, DevServerInfo as I, WriteFileOptions as Ii, RestoreSnapshotOptions as In, SandboxTerminalManager as Ir, GpuLeaseCommandResult as It, EffectiveBackendProfile as J, BatchBackendStats as Ji, SandboxConnection as Jn, SecretInfo as Jr, IntelligenceReportSubjectType as Jt, DurablePlan as K, TerminalStreamOptions as Ki, SSHCredentials as Kn, SearchMatch as Kr, IntelligenceReportBudget as Kt, DirectoryPermission as L, WriteManyFile as Li, ResumeOptions as Ln, SandboxTerminalRequestOptions as Lr, GpuLeaseExecOptions as Lt, CreateSandboxOptions as M, UploadProgress as Mi, ReapExpiredSandboxFleetsResult as Mn, SandboxStatus as Mr, GitDiff as Mt, CreateSessionOptions as N, UsageInfo as Ni, ReconcileSandboxFleetsOptions as Nn, SandboxTerminalAttachOptions as Nr, GitStatus as Nt, CreateRequestOptions as O, TokenUsage as Oi, PublicTemplateVersionInfo as On, SandboxPortPreviewLink as Or, GitAuth as Ot, CreateTaskSessionOptions as P, WaitForOptions as Pi, ReconcileSandboxFleetsResult as Pn, SandboxTerminalCreateOptions as Pr, GpuLease as Pt, EnsureDevServerOptions as Q, BatchTaskUsage as Qi, SandboxFleetArtifactSpec as Qn, SentSessionMessage as Qr, ListOptions as Qt, DispatchPromptOptions as R, WriteManyOptions as Ri, Rollout as Rn, SandboxTerminals as Rr, GpuLeaseExecResult as Rt, CodeLanguage as S, TeeAttestationOptions as Si, PromptResult as Sn, SandboxFleetWorkspaceRestoreResult as Sr, FleetExecDispatchOptions as St, CompletedTurnResult as T, TeePublicKey as Ti, ProvisionStatus as Tn, SandboxInfo as Tr, FleetPromptDispatchOptions as Tt, DriverConfig as U, TerminalStreamAuthFormat as Ui, RolloutStatus as Un, SandboxUser as Ur, HostAgentRuntimeBackend as Ut, DownloadProgress as V, TerminalReadyInfo as Vi, RolloutScorer as Vn, SandboxTraceExport as Vr, GpuLeaseStatus as Vt, DriverInfo as W, TerminalStreamError as Wi, RolloutTurnPart as Wn, ScopedToken as Wr, InstalledTool as Wt, EgressManager as X, BatchEventDataMap as Xi, SandboxEvent as Xn, SendSessionMessageOptions as Xr, JsonValue as Xt, EffectiveBackendSource as Y, BatchEvent as Yi, SandboxEnvironment as Yn, SecretsManager as Yr, IntelligenceReportWindow as Yt, EgressPolicy as Z, BatchSidecarGroup as Zi, SandboxFleetArtifact as Zn, SendSessionMessageRequest as Zr, ListMessagesOptions as Zt, BranchOptions as _, TaskSessionChanges as _i, ProcessSignal as _n, SandboxFleetTraceExport as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionMessage as ai, NetworkManager as an, SandboxFleetIntelligenceEnvelope as ar, FileReadBatchResult as at, CodeExecutionOptions as b, TaskSessionInfo as bi, PromptInputPart as bn, SandboxFleetWorkspace as br, FleetDriveTurnOutcome as bt, BackendInfo as c, SessionStatus as ci, PermissionsManager as cn, SandboxFleetMachineRecord as cr, FileRenameResult as ct, BatchBackend as d, SnapshotResult as di, PreviewLinkWaitOptions as dn, SandboxFleetManifestMachine as dr, FileTreeOptions as dt, BackendType as ea, SessionEventStreamOptions as ei, ListSandboxOptions as en, SandboxFleetDispatchFailureClass as er, ExactProcessSpawnOptions as et, BatchResult as f, SshKeysManager as fi, Process as fn, SandboxFleetOperationsSummary as fr, FileTreeResult as ft, BatchTaskResult as g, SubscriptionInfo as gi, ProcessManager as gn, SandboxFleetTraceEvent as gr, FleetDispatchCancelResult as gt, BatchTask as h, StorageConfig as hi, ProcessLogEntry as hn, SandboxFleetTraceBundle as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionListOptions as ii, NetworkConfig as in, SandboxFleetInfo as ir, FileReadBatchOptions as it, CreateSandboxFleetWithCoordinatorOptions as j, UploadOptions as ji, ReapExpiredSandboxFleetsOptions as jn, SandboxRuntimeHealth as jr, GitConfig as jt, CreateSandboxFleetOptions as k, TurnDriveResult as ki, PublishPublicTemplateOptions as kn, SandboxResourceUsage as kr, GitBranch as kt, BackendManager as l, SnapshotInfo as li, PreviewLinkInfo as ln, SandboxFleetMachineSpec as lr, FileSystem as lt, BatchRunRequest as m, StartupOperation as mi, ProcessListOptions as mn, SandboxFleetToken as mr, FileUsageResult as mt, AccessPolicyRule as n, SessionInfo as ni, MintScopedTokenOptions as nn, SandboxFleetDriverCapability as nr, ExecResult as nt, BackendCapabilities as o, SessionMessageInputPart as oi, NonHostAgentDriverConfig as on, SandboxFleetMachine as or, FileReadError as ot, BatchRunOptions as p, StartupDiagnostics as pi, ProcessInfo as pn, SandboxFleetPolicy as pr, FileUsageOptions as pt, EffectiveBackend as q, TerminalStreamToken as qi, SandboxConfig as qn, SearchOptions as qr, IntelligenceReportCompareTo as qt, AddUserOptions as r, SessionInterruptOptions as ri, MkdirOptions as rn, SandboxFleetDriverTimings as rr, FileInfo as rt, BackendConfig as s, SessionResultOptions as si, PermissionLevel as sn, SandboxFleetMachineMeteredUsage as sr, FileReadResult as st, AcceleratorKind as t, parseBackendType as ta, SessionForkOptions as ti, McpServerConfig as tn, SandboxFleetDispatchResponse as tr, ExecOptions as tt, BackendStatus as u, SnapshotOptions as ui, PreviewLinkManager as un, SandboxFleetManifest as ur, FileTreeFile as ut, ChunkedUploadOptions as v, TaskSessionCommitResult as vi, ProcessSpawnOptions as vn, SandboxFleetTraceOptions as vr, FleetDispatchResultBufferOptions as vt, CommitTaskSessionOptions as w, TeeAttestationResponse as wi, ProvisionResult as wn, SandboxIdentity as wr, FleetMachineId as wt, CodeExecutionResult as x, TaskSessionProfile as xi, PromptOptions as xn, SandboxFleetWorkspaceReconcileResult as xr, FleetDriveTurnRequest as xt, ChunkedUploadResult as y, TaskSessionFileChange as yi, ProcessStatus as yn, SandboxFleetUsage as yr, FleetDispatchStreamOptions as yt, DispatchedSession as z, TERMINAL_WS_ECHO_SUBPROTOCOL as zi, RolloutChildResult as zn, SandboxTraceBundle as zr, GpuLeaseManager as zt };
|
package/package.json
CHANGED