@tangle-network/sandbox 0.19.2 → 0.19.3-develop.20260810003248.905b2e7
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 +1 -0
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-DbalFqjR.d.ts → client-Df-a0rRN.d.ts} +2 -2
- package/dist/{client-pCS5kUjE.js → client-IcpcJ4PR.js} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-BKlgF68O.d.ts → index-a-4NtZuk.d.ts} +2 -2
- package/dist/index.d.ts +35 -5
- package/dist/index.js +4 -4
- package/dist/{runtime-api-BRQkJnW4.js → runtime-api-BQii48NT.js} +15 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-BHA5uUjk.d.ts → sandbox-CGim6MNE.d.ts} +1 -1
- package/dist/{sandbox-Db7pv-IY.js → sandbox-DspZjkLZ.js} +9 -6
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Crg-3hVP.js → tangle-DXUfsPhQ.js} +1 -1
- package/dist/{types-BSXWeu-Q.d.ts → types-n0Dc74wv.d.ts} +45 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -267,6 +267,7 @@ Keep the returned `executionId` with the session ID whenever another caller can
|
|
|
267
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.
|
|
268
268
|
Use session events with an event ID when the consumer must replay a dropped stream.
|
|
269
269
|
Use the `/session-gateway` entrypoint for browser WebSocket reconnect and replay.
|
|
270
|
+
A dispatched run that dies before producing output reports its cause on `session.status()`: `failureReason.message` carries the runtime's own error, such as a backend binary that could not be spawned or an agent profile that could not be materialized.
|
|
270
271
|
|
|
271
272
|
## Fleets
|
|
272
273
|
|
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-n0Dc74wv.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-CGim6MNE.js";
|
|
3
|
+
import { i as Sandbox } from "../client-Df-a0rRN.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,
|
|
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, Dn as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mn as ReapExpiredSandboxFleetsResult, Nn as ReconcileSandboxFleetsOptions, O as CreateRequestOptions, Oi as TokenRefreshHandler, On as PublicTemplateVersionInfo, Pi as UsageInfo, Pn as ReconcileSandboxFleetsResult, Qn as SandboxFleetArtifactSpec, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, Xi as BatchEvent, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Zn as SandboxFleetArtifact, _i as SubscriptionInfo, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, bn as PromptInputPart, bt as FleetDriveTurnOutcome, cr as SandboxFleetMachineRecord, en as ListSandboxOptions, f as BatchResult, fr as SandboxFleetOperationsSummary, 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, pi as SshKeysManager, 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-n0Dc74wv.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-CGim6MNE.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-BQii48NT.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 normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, v as exportTraceBundle, x as parseSSEStream } from "./sandbox-
|
|
3
|
+
import { g as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, v as exportTraceBundle, x as parseSSEStream } from "./sandbox-DspZjkLZ.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-n0Dc74wv.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-CGim6MNE.js";
|
|
3
|
+
import { i as Sandbox } from "./client-Df-a0rRN.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-IcpcJ4PR.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-DspZjkLZ.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-n0Dc74wv.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-CGim6MNE.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 BatchTaskUsage, $n as SandboxFleetCostEstimate, $r as SessionBackendCredentials, $t as ListSandboxFleetOptions, Ai as TurnDriveResult, An as PublishPublicTemplateVersionOptions, Ar as SandboxResources, At as GitCommit, B as DownloadOptions, Bi as TERMINAL_WS_ECHO_SUBPROTOCOL, Bn as RolloutOptions, Br as SandboxTraceEvent, Bt as GpuLeaseProviderName, Ci as TeeAttestationOptions, Cn as ProvisionEvent, Cr as SandboxFleetWorkspaceSnapshotResult, D as CreateIntelligenceReportOptions, Di as TeePublicKeyResponse, Dn as PublicTemplateInfo, Dr as SandboxPortBinding, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TeePublicKey, En as ProvisionStep, Er as SandboxIntelligenceEnvelope, F as DeleteOptions, Fi as WaitForOptions, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamError, Gn as SSHCommandDescriptor, Gr as ScopedTokenScope, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalReadyInfo, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WaitForRolloutOptions, Ir as SandboxTerminalManager, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as TerminalStreamToken, Jn as SandboxConnection, Jr as SecretInfo, Jt as IntelligenceReportSubjectType, Ki as TerminalStreamHandlers, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as WriteFileOptions, Lr as SandboxTerminalRequestOptions, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as UploadOptions, Mn as ReapExpiredSandboxFleetsResult, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as UploadProgress, Nn as ReconcileSandboxFleetsOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as TokenRefreshHandler, On as PublicTemplateVersionInfo, Or as SandboxPortPreviewLink, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as UsageInfo, Pn as ReconcileSandboxFleetsResult, Pr as SandboxTerminalCreateOptions, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as BatchSidecarGroup, Qn as SandboxFleetArtifactSpec, Qr as SentSessionMessage, Qt as ListOptions, R as DispatchPromptOptions, Ri as WriteManyFile, Rn as Rollout, Rr as SandboxTerminals, Rt as GpuLeaseExecResult, Si as TaskSessionProfile, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TeeAttestationResponse, Tn as ProvisionStatus, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStream, Un as RolloutStatus, Ur as SandboxUser, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalExitInfo, Vn as RolloutScorer, Vr as SandboxTraceExport, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamAuthFormat, Wn as RolloutTurnPart, Wr as ScopedToken, Wt as InstalledTool, X as EgressManager, Xi as BatchEvent, Xn as SandboxEvent, Xr as SendSessionMessageOptions, Y as EffectiveBackendSource, Yi as BatchBackendStats, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as BatchEventDataMap, Zn as SandboxFleetArtifact, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _ as BranchOptions, _i as SubscriptionInfo, _n as ProcessSignal, _r as SandboxFleetTraceExport, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionListOptions, an as NetworkManager, ar as SandboxFleetIntelligenceEnvelope, at as FileReadBatchResult, bi as TaskSessionFileChange, bn as PromptInputPart, br as SandboxFleetWorkspace, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SessionResultOptions, cn as PermissionsManager, cr as SandboxFleetMachineRecord, ct as FileRenameResult, d as BatchBackend, di as SnapshotOptions, dn as PreviewLinkWaitOptions, dr as SandboxFleetManifestMachine, dt as FileTreeOptions, ea as PublicBatchRunRequest, ei as SessionEventStreamOptions, en as ListSandboxOptions, er as SandboxFleetDispatchFailureClass, et as ExactProcessSpawnOptions, f as BatchResult, fi as SnapshotResult, fn as Process, fr as SandboxFleetOperationsSummary, ft as FileTreeResult, g as BatchTaskResult, gi as StorageConfig, gn as ProcessManager, gr as SandboxFleetTraceEvent, gt as FleetDispatchCancelResult, h as BatchTask, hi as StartupOperation, hn as ProcessLogEntry, hr as SandboxFleetTraceBundle, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionInterruptOptions, in as NetworkConfig, ir as SandboxFleetInfo, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UpdateUserOptions, jn as ReapExpiredSandboxFleetsOptions, jr as SandboxRuntimeHealth, jt as GitConfig, k as CreateSandboxFleetOptions, ki as TokenUsage, kn as PublishPublicTemplateOptions, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SessionStatus, ln as PreviewLinkInfo, lr as SandboxFleetMachineSpec, lt as FileSystem, m as BatchRunRequest, mi as StartupDiagnostics, mn as ProcessListOptions, mr as SandboxFleetToken, mt as FileUsageResult, n as AccessPolicyRule, na as parseBackendType, ni as SessionForkOptions, nn as MintScopedTokenOptions, nr as SandboxFleetDriverCapability, nt as ExecResult, o as BackendCapabilities, oi as SessionMessage, on as NonHostAgentDriverConfig, or as SandboxFleetMachine, ot as FileReadError, p as BatchRunOptions, pn as ProcessInfo, pr as SandboxFleetPolicy, pt as FileUsageOptions, q as EffectiveBackend, qi as TerminalStreamOptions, qn as SandboxConfig, qr as SearchOptions, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionInfo, rn as MkdirOptions, rr as SandboxFleetDriverTimings, rt as FileInfo, s as BackendConfig, si as SessionMessageInputPart, sn as PermissionLevel, sr as SandboxFleetMachineMeteredUsage, st as FileReadResult, t as AcceleratorKind, ta as BackendType, ti as SessionFailureReason, tn as McpServerConfig, tr as SandboxFleetDispatchResponse, tt as ExecOptions, u as BackendStatus, ui as SnapshotInfo, un as PreviewLinkManager, ur as SandboxFleetManifest, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionChanges, vn as ProcessSpawnOptions, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeeAttestationReport, wn as ProvisionResult, wr as SandboxIdentity, wt as FleetMachineId, xi as TaskSessionInfo, xn as PromptOptions, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionCommitResult, yn as ProcessStatus, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as WriteManyOptions, zn as RolloutChildResult, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-n0Dc74wv.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-CGim6MNE.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-Df-a0rRN.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-a-4NtZuk.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";
|
|
@@ -581,6 +581,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
581
581
|
opencode: "opencode";
|
|
582
582
|
"kimi-code": "kimi-code";
|
|
583
583
|
pi: "pi";
|
|
584
|
+
prime: "prime";
|
|
584
585
|
hermes: "hermes";
|
|
585
586
|
openclaw: "openclaw";
|
|
586
587
|
amp: "amp";
|
|
@@ -597,6 +598,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
597
598
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
598
599
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
599
600
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
601
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
600
602
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
601
603
|
}, z.core.$strict>>;
|
|
602
604
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -621,6 +623,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
621
623
|
opencode: "opencode";
|
|
622
624
|
"kimi-code": "kimi-code";
|
|
623
625
|
pi: "pi";
|
|
626
|
+
prime: "prime";
|
|
624
627
|
gemini: "gemini";
|
|
625
628
|
hermes: "hermes";
|
|
626
629
|
openclaw: "openclaw";
|
|
@@ -903,6 +906,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
903
906
|
opencode: "opencode";
|
|
904
907
|
"kimi-code": "kimi-code";
|
|
905
908
|
pi: "pi";
|
|
909
|
+
prime: "prime";
|
|
906
910
|
hermes: "hermes";
|
|
907
911
|
openclaw: "openclaw";
|
|
908
912
|
amp: "amp";
|
|
@@ -919,6 +923,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
919
923
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
920
924
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
921
925
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
926
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
922
927
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
923
928
|
}, z.core.$strict>>;
|
|
924
929
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -943,6 +948,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
943
948
|
opencode: "opencode";
|
|
944
949
|
"kimi-code": "kimi-code";
|
|
945
950
|
pi: "pi";
|
|
951
|
+
prime: "prime";
|
|
946
952
|
gemini: "gemini";
|
|
947
953
|
hermes: "hermes";
|
|
948
954
|
openclaw: "openclaw";
|
|
@@ -1235,6 +1241,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1235
1241
|
opencode: "opencode";
|
|
1236
1242
|
"kimi-code": "kimi-code";
|
|
1237
1243
|
pi: "pi";
|
|
1244
|
+
prime: "prime";
|
|
1238
1245
|
hermes: "hermes";
|
|
1239
1246
|
openclaw: "openclaw";
|
|
1240
1247
|
amp: "amp";
|
|
@@ -1251,6 +1258,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1251
1258
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1252
1259
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
1253
1260
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
1254
1262
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1255
1263
|
}, z.core.$strict>>;
|
|
1256
1264
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1275,6 +1283,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1275
1283
|
opencode: "opencode";
|
|
1276
1284
|
"kimi-code": "kimi-code";
|
|
1277
1285
|
pi: "pi";
|
|
1286
|
+
prime: "prime";
|
|
1278
1287
|
gemini: "gemini";
|
|
1279
1288
|
hermes: "hermes";
|
|
1280
1289
|
openclaw: "openclaw";
|
|
@@ -1552,6 +1561,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1552
1561
|
opencode: "opencode";
|
|
1553
1562
|
"kimi-code": "kimi-code";
|
|
1554
1563
|
pi: "pi";
|
|
1564
|
+
prime: "prime";
|
|
1555
1565
|
hermes: "hermes";
|
|
1556
1566
|
openclaw: "openclaw";
|
|
1557
1567
|
amp: "amp";
|
|
@@ -1568,6 +1578,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1568
1578
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1569
1579
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
1570
1580
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
1571
1582
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1572
1583
|
}, z.core.$strict>>;
|
|
1573
1584
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1592,6 +1603,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1592
1603
|
opencode: "opencode";
|
|
1593
1604
|
"kimi-code": "kimi-code";
|
|
1594
1605
|
pi: "pi";
|
|
1606
|
+
prime: "prime";
|
|
1595
1607
|
gemini: "gemini";
|
|
1596
1608
|
hermes: "hermes";
|
|
1597
1609
|
openclaw: "openclaw";
|
|
@@ -1874,6 +1886,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1874
1886
|
opencode: "opencode";
|
|
1875
1887
|
"kimi-code": "kimi-code";
|
|
1876
1888
|
pi: "pi";
|
|
1889
|
+
prime: "prime";
|
|
1877
1890
|
hermes: "hermes";
|
|
1878
1891
|
openclaw: "openclaw";
|
|
1879
1892
|
amp: "amp";
|
|
@@ -1890,6 +1903,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1890
1903
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1891
1904
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
1892
1905
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
1893
1907
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1894
1908
|
}, z.core.$strict>>;
|
|
1895
1909
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1914,6 +1928,7 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1914
1928
|
opencode: "opencode";
|
|
1915
1929
|
"kimi-code": "kimi-code";
|
|
1916
1930
|
pi: "pi";
|
|
1931
|
+
prime: "prime";
|
|
1917
1932
|
gemini: "gemini";
|
|
1918
1933
|
hermes: "hermes";
|
|
1919
1934
|
openclaw: "openclaw";
|
|
@@ -2301,6 +2316,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2301
2316
|
opencode: "opencode";
|
|
2302
2317
|
"kimi-code": "kimi-code";
|
|
2303
2318
|
pi: "pi";
|
|
2319
|
+
prime: "prime";
|
|
2304
2320
|
hermes: "hermes";
|
|
2305
2321
|
openclaw: "openclaw";
|
|
2306
2322
|
amp: "amp";
|
|
@@ -2317,6 +2333,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2317
2333
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2318
2334
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
2319
2335
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
2336
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
2320
2337
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2321
2338
|
}, z.core.$strict>>;
|
|
2322
2339
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2341,6 +2358,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2341
2358
|
opencode: "opencode";
|
|
2342
2359
|
"kimi-code": "kimi-code";
|
|
2343
2360
|
pi: "pi";
|
|
2361
|
+
prime: "prime";
|
|
2344
2362
|
gemini: "gemini";
|
|
2345
2363
|
hermes: "hermes";
|
|
2346
2364
|
openclaw: "openclaw";
|
|
@@ -2623,6 +2641,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2623
2641
|
opencode: "opencode";
|
|
2624
2642
|
"kimi-code": "kimi-code";
|
|
2625
2643
|
pi: "pi";
|
|
2644
|
+
prime: "prime";
|
|
2626
2645
|
hermes: "hermes";
|
|
2627
2646
|
openclaw: "openclaw";
|
|
2628
2647
|
amp: "amp";
|
|
@@ -2639,6 +2658,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2639
2658
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2640
2659
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
2641
2660
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
2661
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
2642
2662
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2643
2663
|
}, z.core.$strict>>;
|
|
2644
2664
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2663,6 +2683,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2663
2683
|
opencode: "opencode";
|
|
2664
2684
|
"kimi-code": "kimi-code";
|
|
2665
2685
|
pi: "pi";
|
|
2686
|
+
prime: "prime";
|
|
2666
2687
|
gemini: "gemini";
|
|
2667
2688
|
hermes: "hermes";
|
|
2668
2689
|
openclaw: "openclaw";
|
|
@@ -2955,6 +2976,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2955
2976
|
opencode: "opencode";
|
|
2956
2977
|
"kimi-code": "kimi-code";
|
|
2957
2978
|
pi: "pi";
|
|
2979
|
+
prime: "prime";
|
|
2958
2980
|
hermes: "hermes";
|
|
2959
2981
|
openclaw: "openclaw";
|
|
2960
2982
|
amp: "amp";
|
|
@@ -2971,6 +2993,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2971
2993
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2972
2994
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
2973
2995
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
2974
2997
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2975
2998
|
}, z.core.$strict>>;
|
|
2976
2999
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -2995,6 +3018,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2995
3018
|
opencode: "opencode";
|
|
2996
3019
|
"kimi-code": "kimi-code";
|
|
2997
3020
|
pi: "pi";
|
|
3021
|
+
prime: "prime";
|
|
2998
3022
|
gemini: "gemini";
|
|
2999
3023
|
hermes: "hermes";
|
|
3000
3024
|
openclaw: "openclaw";
|
|
@@ -3272,6 +3296,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3272
3296
|
opencode: "opencode";
|
|
3273
3297
|
"kimi-code": "kimi-code";
|
|
3274
3298
|
pi: "pi";
|
|
3299
|
+
prime: "prime";
|
|
3275
3300
|
hermes: "hermes";
|
|
3276
3301
|
openclaw: "openclaw";
|
|
3277
3302
|
amp: "amp";
|
|
@@ -3288,6 +3313,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3288
3313
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3289
3314
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
3290
3315
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
3316
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
3291
3317
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3292
3318
|
}, z.core.$strict>>;
|
|
3293
3319
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -3312,6 +3338,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3312
3338
|
opencode: "opencode";
|
|
3313
3339
|
"kimi-code": "kimi-code";
|
|
3314
3340
|
pi: "pi";
|
|
3341
|
+
prime: "prime";
|
|
3315
3342
|
gemini: "gemini";
|
|
3316
3343
|
hermes: "hermes";
|
|
3317
3344
|
openclaw: "openclaw";
|
|
@@ -3594,6 +3621,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3594
3621
|
opencode: "opencode";
|
|
3595
3622
|
"kimi-code": "kimi-code";
|
|
3596
3623
|
pi: "pi";
|
|
3624
|
+
prime: "prime";
|
|
3597
3625
|
hermes: "hermes";
|
|
3598
3626
|
openclaw: "openclaw";
|
|
3599
3627
|
amp: "amp";
|
|
@@ -3610,6 +3638,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3610
3638
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3611
3639
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
3612
3640
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
3641
|
+
appendSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
3613
3642
|
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3614
3643
|
}, z.core.$strict>>;
|
|
3615
3644
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -3634,6 +3663,7 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3634
3663
|
opencode: "opencode";
|
|
3635
3664
|
"kimi-code": "kimi-code";
|
|
3636
3665
|
pi: "pi";
|
|
3666
|
+
prime: "prime";
|
|
3637
3667
|
gemini: "gemini";
|
|
3638
3668
|
hermes: "hermes";
|
|
3639
3669
|
openclaw: "openclaw";
|
|
@@ -4364,4 +4394,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4364
4394
|
}
|
|
4365
4395
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4366
4396
|
//#endregion
|
|
4367
|
-
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, collectAgentFinalMessageText, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4397
|
+
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 SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartInteractiveOptions, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createBatchResultAccumulator, createConfidentialSandbox, createManageSandboxesTool, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-
|
|
1
|
+
import { h as parseBackendType, m as backendTypeSchema, p as normalizeRuntimeBackendConfig } from "./runtime-api-BQii48NT.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 buildTraceExportPayload, a as TERMINAL_WS_ECHO_SUBPROTOCOL, b as toOtelJson, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentFinalMessageText, h as isToolBearingEvent, i as WorkspaceImages, l as SandboxSession, m as getSandboxEventText, o as TerminalStream, p as collectAgentResponseText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as exportTraceBundle, x as parseSSEStream, y as otelTraceIdForTangleTrace } 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-IcpcJ4PR.js";
|
|
4
|
+
import { _ as buildTraceExportPayload, a as TERMINAL_WS_ECHO_SUBPROTOCOL, b as toOtelJson, c as SandboxTaskSession, d as applySandboxEventText, f as collectAgentFinalMessageText, h as isToolBearingEvent, i as WorkspaceImages, l as SandboxSession, m as getSandboxEventText, o as TerminalStream, p as collectAgentResponseText, s as TerminalStreamError, t as SandboxInstance, u as InteractiveSessionHandle, v as exportTraceBundle, x as parseSSEStream, y as otelTraceIdForTangleTrace } from "./sandbox-DspZjkLZ.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-DXUfsPhQ.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
|
|
@@ -18,6 +18,7 @@ const BACKEND_TYPE = {
|
|
|
18
18
|
AMP: "amp",
|
|
19
19
|
FACTORY_DROIDS: "factory-droids",
|
|
20
20
|
PI: "pi",
|
|
21
|
+
PRIME: "prime",
|
|
21
22
|
HERMES: "hermes",
|
|
22
23
|
FORGE: "forge",
|
|
23
24
|
OPENCLAW: "openclaw",
|
|
@@ -778,6 +779,19 @@ function normalizeEffectiveBackend(value) {
|
|
|
778
779
|
...profile ? { profile } : {}
|
|
779
780
|
};
|
|
780
781
|
}
|
|
782
|
+
function normalizeSessionFailureReason(value) {
|
|
783
|
+
if (!value || typeof value !== "object") return void 0;
|
|
784
|
+
const raw = value;
|
|
785
|
+
const message = nonEmptyField(raw.message);
|
|
786
|
+
if (!message) return void 0;
|
|
787
|
+
const code = nonEmptyField(raw.code);
|
|
788
|
+
const executionId = nonEmptyField(raw.executionId);
|
|
789
|
+
return {
|
|
790
|
+
message,
|
|
791
|
+
...code ? { code } : {},
|
|
792
|
+
...executionId ? { executionId } : {}
|
|
793
|
+
};
|
|
794
|
+
}
|
|
781
795
|
function normalizeSessionInfo(raw) {
|
|
782
796
|
const id = raw.id;
|
|
783
797
|
if (typeof id !== "string") return null;
|
|
@@ -793,6 +807,7 @@ function normalizeSessionInfo(raw) {
|
|
|
793
807
|
"failed",
|
|
794
808
|
"cancelled"
|
|
795
809
|
].includes(status) ? status : "running",
|
|
810
|
+
failureReason: normalizeSessionFailureReason(raw.failureReason),
|
|
796
811
|
activeExecutionId: typeof raw.activeExecutionId === "string" && raw.activeExecutionId.length > 0 ? raw.activeExecutionId : void 0,
|
|
797
812
|
latestExecutionId: typeof raw.latestExecutionId === "string" && raw.latestExecutionId.length > 0 ? raw.latestExecutionId : void 0,
|
|
798
813
|
backend: typeof raw.backendType === "string" ? raw.backendType : typeof raw.backend === "string" ? raw.backend : void 0,
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as SandboxPortBinding, Fn as RenameOptions, Fr as SandboxTerminalInfo,
|
|
1
|
+
import { Dr as SandboxPortBinding, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ir as SandboxTerminalManager, Li as WriteFileOptions, Lr as SandboxTerminalRequestOptions, N as CreateSessionOptions, Ni as UploadProgress, P as CreateTaskSessionOptions, Pr as SandboxTerminalCreateOptions, Qr as SentSessionMessage, Xr as SendSessionMessageOptions, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, at as FileReadBatchResult, ct as FileRenameResult, dt as FileTreeOptions, ft as FileTreeResult, ht as FileWriteResult, it as FileReadBatchOptions, jr as SandboxRuntimeHealth, mt as FileUsageResult, oi as SessionMessage, pt as FileUsageOptions, ri as SessionInfo, v as ChunkedUploadOptions, vi as TaskSessionChanges, w as CommitTaskSessionOptions, xi as TaskSessionInfo, y as ChunkedUploadResult, yi as TaskSessionCommitResult } from "./types-n0Dc74wv.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-BQii48NT.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, Bn as RolloutOptions,
|
|
1
|
+
import { $ as EventStreamOptions, Ai as TurnDriveResult, At as GitCommit, Bn as RolloutOptions, Ci as TeeAttestationOptions, Cn as ProvisionEvent, Di as TeePublicKeyResponse, Dr as SandboxPortBinding, Fi as WaitForOptions, Gn as SSHCommandDescriptor, Gt as IntelligenceReport, H as DriveTurnOptions, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ii as WaitForRolloutOptions, In as RestoreSnapshotOptions, Jn as SandboxConnection, K as DurablePlan, Ki as TerminalStreamHandlers, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, Li as WriteFileOptions, Ln as ResumeOptions, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, P as CreateTaskSessionOptions, Pt as GpuLease, Qr as SentSessionMessage, R as DispatchPromptOptions, Ri as WriteManyFile, Rn as Rollout, Rr as SandboxTerminals, S as CodeLanguage, Sn as PromptResult, T as CompletedTurnResult, Ti as TeeAttestationResponse, Tr as SandboxInfo, Ui as TerminalStream, 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, ai as SessionListOptions, an as NetworkManager, b as CodeExecutionOptions, bn as PromptInputPart, ci as SessionResultOptions, cn as PermissionsManager, di as SnapshotOptions, ei as SessionEventStreamOptions, fi as SnapshotResult, gn as ProcessManager, hr as SandboxFleetTraceBundle, ht as FileWriteResult, ii as SessionInterruptOptions, jr as SandboxRuntimeHealth, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, lt as FileSystem, mi as StartupDiagnostics, ni as SessionForkOptions, nn as MintScopedTokenOptions, nt as ExecResult, oi as SessionMessage, qr as SearchOptions, qt as IntelligenceReportCompareTo, ri as SessionInfo, s as BackendConfig, ta as BackendType, tt as ExecOptions, ui as SnapshotInfo, un as PreviewLinkManager, vi as TaskSessionChanges, w as CommitTaskSessionOptions, wn as ProvisionResult, x as CodeExecutionResult, xi as TaskSessionInfo, xn as PromptOptions, yi as TaskSessionCommitResult, z as DispatchedSession, zi as WriteManyOptions, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-n0Dc74wv.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -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-BQii48NT.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
|
|
@@ -5455,15 +5455,18 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5455
5455
|
if (info && !awaitingFirstTurn) {
|
|
5456
5456
|
if (!info.latestExecutionId) return {
|
|
5457
5457
|
state: "failed",
|
|
5458
|
-
error: `session ${opts.sessionId} ${info.status}: no execution result is available`
|
|
5458
|
+
error: `session ${opts.sessionId} ${info.status}: ${info.failureReason?.message ?? "no execution result is available"}`
|
|
5459
5459
|
};
|
|
5460
5460
|
const result = await this._sessionResult(opts.sessionId, { executionId: info.latestExecutionId }, info);
|
|
5461
5461
|
const settled = settleTurnDrive({ ...result });
|
|
5462
5462
|
if (settled.state === "awaiting_plan_decision") return settled;
|
|
5463
|
-
if (!result.success)
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5463
|
+
if (!result.success) {
|
|
5464
|
+
const cause = result.error ?? info.failureReason?.message;
|
|
5465
|
+
return {
|
|
5466
|
+
state: "failed",
|
|
5467
|
+
error: `session ${opts.sessionId} ${info.status}: ${cause ?? "no error detail"}`
|
|
5468
|
+
};
|
|
5469
|
+
}
|
|
5467
5470
|
return settled;
|
|
5468
5471
|
}
|
|
5469
5472
|
await this.dispatchPrompt(message, {
|
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-a-4NtZuk.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-DXUfsPhQ.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-DspZjkLZ.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -31,6 +31,7 @@ declare const batchBackendSchema: z.ZodObject<{
|
|
|
31
31
|
opencode: "opencode";
|
|
32
32
|
"kimi-code": "kimi-code";
|
|
33
33
|
pi: "pi";
|
|
34
|
+
prime: "prime";
|
|
34
35
|
hermes: "hermes";
|
|
35
36
|
openclaw: "openclaw";
|
|
36
37
|
amp: "amp";
|
|
@@ -76,6 +77,7 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
76
77
|
opencode: "opencode";
|
|
77
78
|
"kimi-code": "kimi-code";
|
|
78
79
|
pi: "pi";
|
|
80
|
+
prime: "prime";
|
|
79
81
|
hermes: "hermes";
|
|
80
82
|
openclaw: "openclaw";
|
|
81
83
|
amp: "amp";
|
|
@@ -139,6 +141,7 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
139
141
|
opencode: "opencode";
|
|
140
142
|
"kimi-code": "kimi-code";
|
|
141
143
|
pi: "pi";
|
|
144
|
+
prime: "prime";
|
|
142
145
|
hermes: "hermes";
|
|
143
146
|
openclaw: "openclaw";
|
|
144
147
|
amp: "amp";
|
|
@@ -203,6 +206,7 @@ declare const batchBackendStatsSchema: z.ZodObject<{
|
|
|
203
206
|
opencode: "opencode";
|
|
204
207
|
"kimi-code": "kimi-code";
|
|
205
208
|
pi: "pi";
|
|
209
|
+
prime: "prime";
|
|
206
210
|
hermes: "hermes";
|
|
207
211
|
openclaw: "openclaw";
|
|
208
212
|
amp: "amp";
|
|
@@ -225,6 +229,7 @@ declare const batchSidecarGroupSchema: z.ZodObject<{
|
|
|
225
229
|
opencode: "opencode";
|
|
226
230
|
"kimi-code": "kimi-code";
|
|
227
231
|
pi: "pi";
|
|
232
|
+
prime: "prime";
|
|
228
233
|
hermes: "hermes";
|
|
229
234
|
openclaw: "openclaw";
|
|
230
235
|
amp: "amp";
|
|
@@ -260,6 +265,7 @@ declare const batchEventDataSchemas: {
|
|
|
260
265
|
opencode: "opencode";
|
|
261
266
|
"kimi-code": "kimi-code";
|
|
262
267
|
pi: "pi";
|
|
268
|
+
prime: "prime";
|
|
263
269
|
hermes: "hermes";
|
|
264
270
|
openclaw: "openclaw";
|
|
265
271
|
amp: "amp";
|
|
@@ -290,6 +296,7 @@ declare const batchEventDataSchemas: {
|
|
|
290
296
|
opencode: "opencode";
|
|
291
297
|
"kimi-code": "kimi-code";
|
|
292
298
|
pi: "pi";
|
|
299
|
+
prime: "prime";
|
|
293
300
|
hermes: "hermes";
|
|
294
301
|
openclaw: "openclaw";
|
|
295
302
|
amp: "amp";
|
|
@@ -334,6 +341,7 @@ declare const batchEventDataSchemas: {
|
|
|
334
341
|
opencode: "opencode";
|
|
335
342
|
"kimi-code": "kimi-code";
|
|
336
343
|
pi: "pi";
|
|
344
|
+
prime: "prime";
|
|
337
345
|
hermes: "hermes";
|
|
338
346
|
openclaw: "openclaw";
|
|
339
347
|
amp: "amp";
|
|
@@ -376,6 +384,7 @@ declare const batchEventDataSchemas: {
|
|
|
376
384
|
opencode: "opencode";
|
|
377
385
|
"kimi-code": "kimi-code";
|
|
378
386
|
pi: "pi";
|
|
387
|
+
prime: "prime";
|
|
379
388
|
hermes: "hermes";
|
|
380
389
|
openclaw: "openclaw";
|
|
381
390
|
amp: "amp";
|
|
@@ -406,6 +415,7 @@ declare const batchEventDataSchemas: {
|
|
|
406
415
|
opencode: "opencode";
|
|
407
416
|
"kimi-code": "kimi-code";
|
|
408
417
|
pi: "pi";
|
|
418
|
+
prime: "prime";
|
|
409
419
|
hermes: "hermes";
|
|
410
420
|
openclaw: "openclaw";
|
|
411
421
|
amp: "amp";
|
|
@@ -436,6 +446,7 @@ declare const batchEventDataSchemas: {
|
|
|
436
446
|
opencode: "opencode";
|
|
437
447
|
"kimi-code": "kimi-code";
|
|
438
448
|
pi: "pi";
|
|
449
|
+
prime: "prime";
|
|
439
450
|
hermes: "hermes";
|
|
440
451
|
openclaw: "openclaw";
|
|
441
452
|
amp: "amp";
|
|
@@ -461,6 +472,7 @@ declare const batchEventDataSchemas: {
|
|
|
461
472
|
opencode: "opencode";
|
|
462
473
|
"kimi-code": "kimi-code";
|
|
463
474
|
pi: "pi";
|
|
475
|
+
prime: "prime";
|
|
464
476
|
hermes: "hermes";
|
|
465
477
|
openclaw: "openclaw";
|
|
466
478
|
amp: "amp";
|
|
@@ -499,6 +511,7 @@ declare const batchEventDataSchemas: {
|
|
|
499
511
|
opencode: "opencode";
|
|
500
512
|
"kimi-code": "kimi-code";
|
|
501
513
|
pi: "pi";
|
|
514
|
+
prime: "prime";
|
|
502
515
|
hermes: "hermes";
|
|
503
516
|
openclaw: "openclaw";
|
|
504
517
|
amp: "amp";
|
|
@@ -536,6 +549,7 @@ declare const batchEventDataSchemas: {
|
|
|
536
549
|
opencode: "opencode";
|
|
537
550
|
"kimi-code": "kimi-code";
|
|
538
551
|
pi: "pi";
|
|
552
|
+
prime: "prime";
|
|
539
553
|
hermes: "hermes";
|
|
540
554
|
openclaw: "openclaw";
|
|
541
555
|
amp: "amp";
|
|
@@ -569,6 +583,7 @@ declare const batchEventDataSchemas: {
|
|
|
569
583
|
opencode: "opencode";
|
|
570
584
|
"kimi-code": "kimi-code";
|
|
571
585
|
pi: "pi";
|
|
586
|
+
prime: "prime";
|
|
572
587
|
hermes: "hermes";
|
|
573
588
|
openclaw: "openclaw";
|
|
574
589
|
amp: "amp";
|
|
@@ -596,6 +611,7 @@ declare const batchEventDataSchemas: {
|
|
|
596
611
|
opencode: "opencode";
|
|
597
612
|
"kimi-code": "kimi-code";
|
|
598
613
|
pi: "pi";
|
|
614
|
+
prime: "prime";
|
|
599
615
|
hermes: "hermes";
|
|
600
616
|
openclaw: "openclaw";
|
|
601
617
|
amp: "amp";
|
|
@@ -651,6 +667,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
651
667
|
opencode: "opencode";
|
|
652
668
|
"kimi-code": "kimi-code";
|
|
653
669
|
pi: "pi";
|
|
670
|
+
prime: "prime";
|
|
654
671
|
hermes: "hermes";
|
|
655
672
|
openclaw: "openclaw";
|
|
656
673
|
amp: "amp";
|
|
@@ -684,6 +701,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
684
701
|
opencode: "opencode";
|
|
685
702
|
"kimi-code": "kimi-code";
|
|
686
703
|
pi: "pi";
|
|
704
|
+
prime: "prime";
|
|
687
705
|
hermes: "hermes";
|
|
688
706
|
openclaw: "openclaw";
|
|
689
707
|
amp: "amp";
|
|
@@ -731,6 +749,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
731
749
|
opencode: "opencode";
|
|
732
750
|
"kimi-code": "kimi-code";
|
|
733
751
|
pi: "pi";
|
|
752
|
+
prime: "prime";
|
|
734
753
|
hermes: "hermes";
|
|
735
754
|
openclaw: "openclaw";
|
|
736
755
|
amp: "amp";
|
|
@@ -785,6 +804,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
785
804
|
opencode: "opencode";
|
|
786
805
|
"kimi-code": "kimi-code";
|
|
787
806
|
pi: "pi";
|
|
807
|
+
prime: "prime";
|
|
788
808
|
hermes: "hermes";
|
|
789
809
|
openclaw: "openclaw";
|
|
790
810
|
amp: "amp";
|
|
@@ -818,6 +838,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
818
838
|
opencode: "opencode";
|
|
819
839
|
"kimi-code": "kimi-code";
|
|
820
840
|
pi: "pi";
|
|
841
|
+
prime: "prime";
|
|
821
842
|
hermes: "hermes";
|
|
822
843
|
openclaw: "openclaw";
|
|
823
844
|
amp: "amp";
|
|
@@ -851,6 +872,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
851
872
|
opencode: "opencode";
|
|
852
873
|
"kimi-code": "kimi-code";
|
|
853
874
|
pi: "pi";
|
|
875
|
+
prime: "prime";
|
|
854
876
|
hermes: "hermes";
|
|
855
877
|
openclaw: "openclaw";
|
|
856
878
|
amp: "amp";
|
|
@@ -879,6 +901,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
879
901
|
opencode: "opencode";
|
|
880
902
|
"kimi-code": "kimi-code";
|
|
881
903
|
pi: "pi";
|
|
904
|
+
prime: "prime";
|
|
882
905
|
hermes: "hermes";
|
|
883
906
|
openclaw: "openclaw";
|
|
884
907
|
amp: "amp";
|
|
@@ -920,6 +943,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
920
943
|
opencode: "opencode";
|
|
921
944
|
"kimi-code": "kimi-code";
|
|
922
945
|
pi: "pi";
|
|
946
|
+
prime: "prime";
|
|
923
947
|
hermes: "hermes";
|
|
924
948
|
openclaw: "openclaw";
|
|
925
949
|
amp: "amp";
|
|
@@ -960,6 +984,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
960
984
|
opencode: "opencode";
|
|
961
985
|
"kimi-code": "kimi-code";
|
|
962
986
|
pi: "pi";
|
|
987
|
+
prime: "prime";
|
|
963
988
|
hermes: "hermes";
|
|
964
989
|
openclaw: "openclaw";
|
|
965
990
|
amp: "amp";
|
|
@@ -996,6 +1021,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
996
1021
|
opencode: "opencode";
|
|
997
1022
|
"kimi-code": "kimi-code";
|
|
998
1023
|
pi: "pi";
|
|
1024
|
+
prime: "prime";
|
|
999
1025
|
hermes: "hermes";
|
|
1000
1026
|
openclaw: "openclaw";
|
|
1001
1027
|
amp: "amp";
|
|
@@ -1026,6 +1052,7 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1026
1052
|
opencode: "opencode";
|
|
1027
1053
|
"kimi-code": "kimi-code";
|
|
1028
1054
|
pi: "pi";
|
|
1055
|
+
prime: "prime";
|
|
1029
1056
|
hermes: "hermes";
|
|
1030
1057
|
openclaw: "openclaw";
|
|
1031
1058
|
amp: "amp";
|
|
@@ -3083,6 +3110,21 @@ interface EffectiveBackend {
|
|
|
3083
3110
|
/** Identity of the agent profile bound to the turn. */
|
|
3084
3111
|
profile?: EffectiveBackendProfile;
|
|
3085
3112
|
}
|
|
3113
|
+
/**
|
|
3114
|
+
* Why a session reached `status: "failed"` — the runtime's verbatim cause,
|
|
3115
|
+
* not a bucketed label. A dispatched (detached) turn stops reading its SSE
|
|
3116
|
+
* stream the moment the sandbox admits the execution, so a spawn, profile
|
|
3117
|
+
* materialization or provider auth failure lands after the caller is gone;
|
|
3118
|
+
* this is how that caller learns what happened without replaying events.
|
|
3119
|
+
*/
|
|
3120
|
+
interface SessionFailureReason {
|
|
3121
|
+
/** The runtime's error message, unmodified. */
|
|
3122
|
+
message: string;
|
|
3123
|
+
/** Machine-readable code when the runtime classified the failure. */
|
|
3124
|
+
code?: string;
|
|
3125
|
+
/** Execution whose failure this describes. */
|
|
3126
|
+
executionId?: string;
|
|
3127
|
+
}
|
|
3086
3128
|
/**
|
|
3087
3129
|
* Snapshot of a session's state at the moment it was queried. Returned
|
|
3088
3130
|
* by `box.session(id).status()` and `box.sessions()`.
|
|
@@ -3094,6 +3136,8 @@ interface SessionInfo {
|
|
|
3094
3136
|
parentId?: string;
|
|
3095
3137
|
/** Current lifecycle state. */
|
|
3096
3138
|
status: SessionStatus;
|
|
3139
|
+
/** Present when `status` is `"failed"` — the cause the runtime recorded. */
|
|
3140
|
+
failureReason?: SessionFailureReason;
|
|
3097
3141
|
/** Execution currently running, when one is active. */
|
|
3098
3142
|
activeExecutionId?: string;
|
|
3099
3143
|
/** Most recent execution id, retained after completion for event replay. */
|
|
@@ -6205,4 +6249,4 @@ interface CodeExecutionOptions {
|
|
|
6205
6249
|
idempotencyKey?: string;
|
|
6206
6250
|
}
|
|
6207
6251
|
//#endregion
|
|
6208
|
-
export { EventStreamOptions as $,
|
|
6252
|
+
export { EventStreamOptions as $, BatchTaskUsage as $i, SandboxFleetCostEstimate as $n, SessionBackendCredentials as $r, ListSandboxFleetOptions as $t, CreateSandboxFleetTokenOptions as A, TurnDriveResult as Ai, PublishPublicTemplateVersionOptions as An, SandboxResources as Ar, GitCommit as At, DownloadOptions as B, TERMINAL_WS_ECHO_SUBPROTOCOL as Bi, RolloutOptions as Bn, SandboxTraceEvent as Br, GpuLeaseProviderName as Bt, CodeResultPart as C, TeeAttestationOptions as Ci, ProvisionEvent as Cn, SandboxFleetWorkspaceSnapshotResult as Cr, FleetExecDispatchResult as Ct, CreateIntelligenceReportOptions as D, TeePublicKeyResponse as Di, PublicTemplateInfo as Dn, SandboxPortBinding as Dr, GPU_LEASE_PROVIDER_NAMES as Dt, CreateGpuLeaseOptions as E, TeePublicKey as Ei, ProvisionStep as En, SandboxIntelligenceEnvelope as Er, FleetPromptDispatchResult as Et, DeleteOptions as F, WaitForOptions as Fi, RenameOptions as Fn, SandboxTerminalInfo as Fr, GpuLeaseBilling as Ft, DriverType as G, TerminalStreamError as Gi, SSHCommandDescriptor as Gn, ScopedTokenScope as Gr, IntelligenceReport as Gt, DriveTurnOptions as H, TerminalReadyInfo as Hi, RolloutStartResult as Hn, SandboxTraceOptions as Hr, HostAgentDriverConfig as Ht, DevServerInfo as I, WaitForRolloutOptions as Ii, RestoreSnapshotOptions as In, SandboxTerminalManager as Ir, GpuLeaseCommandResult as It, EffectiveBackendProfile as J, TerminalStreamToken as Ji, SandboxConnection as Jn, SecretInfo as Jr, IntelligenceReportSubjectType as Jt, DurablePlan as K, TerminalStreamHandlers as Ki, SSHCredentials as Kn, SearchMatch as Kr, IntelligenceReportBudget as Kt, DirectoryPermission as L, WriteFileOptions as Li, ResumeOptions as Ln, SandboxTerminalRequestOptions as Lr, GpuLeaseExecOptions as Lt, CreateSandboxOptions as M, UploadOptions as Mi, ReapExpiredSandboxFleetsResult as Mn, SandboxStatus as Mr, GitDiff as Mt, CreateSessionOptions as N, UploadProgress as Ni, ReconcileSandboxFleetsOptions as Nn, SandboxTerminalAttachOptions as Nr, GitStatus as Nt, CreateRequestOptions as O, TokenRefreshHandler as Oi, PublicTemplateVersionInfo as On, SandboxPortPreviewLink as Or, GitAuth as Ot, CreateTaskSessionOptions as P, UsageInfo as Pi, ReconcileSandboxFleetsResult as Pn, SandboxTerminalCreateOptions as Pr, GpuLease as Pt, EnsureDevServerOptions as Q, BatchSidecarGroup as Qi, SandboxFleetArtifactSpec as Qn, SentSessionMessage as Qr, ListOptions as Qt, DispatchPromptOptions as R, WriteManyFile as Ri, Rollout as Rn, SandboxTerminals as Rr, GpuLeaseExecResult as Rt, CodeLanguage as S, TaskSessionProfile as Si, PromptResult as Sn, SandboxFleetWorkspaceRestoreResult as Sr, FleetExecDispatchOptions as St, CompletedTurnResult as T, TeeAttestationResponse as Ti, ProvisionStatus as Tn, SandboxInfo as Tr, FleetPromptDispatchOptions as Tt, DriverConfig as U, TerminalStream as Ui, RolloutStatus as Un, SandboxUser as Ur, HostAgentRuntimeBackend as Ut, DownloadProgress as V, TerminalExitInfo as Vi, RolloutScorer as Vn, SandboxTraceExport as Vr, GpuLeaseStatus as Vt, DriverInfo as W, TerminalStreamAuthFormat as Wi, RolloutTurnPart as Wn, ScopedToken as Wr, InstalledTool as Wt, EgressManager as X, BatchEvent as Xi, SandboxEvent as Xn, SendSessionMessageOptions as Xr, JsonValue as Xt, EffectiveBackendSource as Y, BatchBackendStats as Yi, SandboxEnvironment as Yn, SecretsManager as Yr, IntelligenceReportWindow as Yt, EgressPolicy as Z, BatchEventDataMap as Zi, SandboxFleetArtifact as Zn, SendSessionMessageRequest as Zr, ListMessagesOptions as Zt, BranchOptions as _, SubscriptionInfo as _i, ProcessSignal as _n, SandboxFleetTraceExport as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionListOptions as ai, NetworkManager as an, SandboxFleetIntelligenceEnvelope as ar, FileReadBatchResult as at, CodeExecutionOptions as b, TaskSessionFileChange as bi, PromptInputPart as bn, SandboxFleetWorkspace as br, FleetDriveTurnOutcome as bt, BackendInfo as c, SessionResultOptions as ci, PermissionsManager as cn, SandboxFleetMachineRecord as cr, FileRenameResult as ct, BatchBackend as d, SnapshotOptions as di, PreviewLinkWaitOptions as dn, SandboxFleetManifestMachine as dr, FileTreeOptions as dt, PublicBatchRunRequest as ea, SessionEventStreamOptions as ei, ListSandboxOptions as en, SandboxFleetDispatchFailureClass as er, ExactProcessSpawnOptions as et, BatchResult as f, SnapshotResult as fi, Process as fn, SandboxFleetOperationsSummary as fr, FileTreeResult as ft, BatchTaskResult as g, StorageConfig as gi, ProcessManager as gn, SandboxFleetTraceEvent as gr, FleetDispatchCancelResult as gt, BatchTask as h, StartupOperation as hi, ProcessLogEntry as hn, SandboxFleetTraceBundle as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionInterruptOptions as ii, NetworkConfig as in, SandboxFleetInfo as ir, FileReadBatchOptions as it, CreateSandboxFleetWithCoordinatorOptions as j, UpdateUserOptions as ji, ReapExpiredSandboxFleetsOptions as jn, SandboxRuntimeHealth as jr, GitConfig as jt, CreateSandboxFleetOptions as k, TokenUsage as ki, PublishPublicTemplateOptions as kn, SandboxResourceUsage as kr, GitBranch as kt, BackendManager as l, SessionStatus as li, PreviewLinkInfo as ln, SandboxFleetMachineSpec as lr, FileSystem as lt, BatchRunRequest as m, StartupDiagnostics as mi, ProcessListOptions as mn, SandboxFleetToken as mr, FileUsageResult as mt, AccessPolicyRule as n, parseBackendType as na, SessionForkOptions as ni, MintScopedTokenOptions as nn, SandboxFleetDriverCapability as nr, ExecResult as nt, BackendCapabilities as o, SessionMessage as oi, NonHostAgentDriverConfig as on, SandboxFleetMachine as or, FileReadError as ot, BatchRunOptions as p, SshKeysManager as pi, ProcessInfo as pn, SandboxFleetPolicy as pr, FileUsageOptions as pt, EffectiveBackend as q, TerminalStreamOptions as qi, SandboxConfig as qn, SearchOptions as qr, IntelligenceReportCompareTo as qt, AddUserOptions as r, SessionInfo as ri, MkdirOptions as rn, SandboxFleetDriverTimings as rr, FileInfo as rt, BackendConfig as s, SessionMessageInputPart as si, PermissionLevel as sn, SandboxFleetMachineMeteredUsage as sr, FileReadResult as st, AcceleratorKind as t, BackendType as ta, SessionFailureReason as ti, McpServerConfig as tn, SandboxFleetDispatchResponse as tr, ExecOptions as tt, BackendStatus as u, SnapshotInfo as ui, PreviewLinkManager as un, SandboxFleetManifest as ur, FileTreeFile as ut, ChunkedUploadOptions as v, TaskSessionChanges as vi, ProcessSpawnOptions as vn, SandboxFleetTraceOptions as vr, FleetDispatchResultBufferOptions as vt, CommitTaskSessionOptions as w, TeeAttestationReport as wi, ProvisionResult as wn, SandboxIdentity as wr, FleetMachineId as wt, CodeExecutionResult as x, TaskSessionInfo as xi, PromptOptions as xn, SandboxFleetWorkspaceReconcileResult as xr, FleetDriveTurnRequest as xt, ChunkedUploadResult as y, TaskSessionCommitResult as yi, ProcessStatus as yn, SandboxFleetUsage as yr, FleetDispatchStreamOptions as yt, DispatchedSession as z, WriteManyOptions as zi, RolloutChildResult as zn, SandboxTraceBundle as zr, GpuLeaseManager as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3-develop.20260810003248.905b2e7",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"url": "https://github.com/tangle-network/agent-dev-container/issues"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@tangle-network/agent-core": "0.5.
|
|
91
|
-
"@tangle-network/agent-interface": "0.
|
|
90
|
+
"@tangle-network/agent-core": "0.5.2",
|
|
91
|
+
"@tangle-network/agent-interface": "0.45.0",
|
|
92
92
|
"zod": "4.4.3"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"vitest": "^4.1.5",
|
|
128
128
|
"ws": "^8.20.0",
|
|
129
129
|
"yjs": "13.6.30",
|
|
130
|
-
"@
|
|
131
|
-
"@
|
|
130
|
+
"@tangle-network/runtime-contracts": "0.5.0",
|
|
131
|
+
"@repo/shared": "0.0.0"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "node scripts/build-dist.mjs",
|