@tangle-network/sandbox 0.15.3-develop.20260731071553.b437581 → 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-B900SHtj.js → client-BKnsOQze.js} +10 -4
- package/dist/{client-C5rri6ua.d.ts → client-CZr3ENPZ.d.ts} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Om3UH1DJ.d.ts → index-1b5v8Xeo.d.ts} +2 -2
- package/dist/index.d.ts +76 -76
- package/dist/index.js +5 -5
- package/dist/{runtime-api-BWC3U-qO.js → runtime-api-O5VW0tcU.js} +41 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CfScdY7m.js → sandbox-BnHquSkr.js} +123 -64
- package/dist/{sandbox-s91ZluKA.d.ts → sandbox-Cbcaqm8c.d.ts} +31 -30
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DiReWa8T.js → tangle-Dy4tv_Sm.js} +1 -1
- package/dist/{types-DDZCJUWe.d.ts → types-C_Hdq6RK.d.ts} +306 -261
- package/package.json +2 -2
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,8 +1,8 @@
|
|
|
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-
|
|
4
|
-
import { z } from "zod";
|
|
3
|
+
import { g as exportTraceBundle, m as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeStartupDiagnostics, y as parseSSEStream } from "./sandbox-BnHquSkr.js";
|
|
5
4
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
7
7
|
const MAX_GIT_AUTH_TOKEN_LENGTH = 4096;
|
|
8
8
|
const MAX_GIT_REPOSITORY_PATH_SEGMENT_LENGTH = 255;
|
|
@@ -130,7 +130,13 @@ const batchContextSchema = z.record(z.string(), z.unknown()).refine((value) => O
|
|
|
130
130
|
label: "context",
|
|
131
131
|
maxBytes: BATCH_MAX_CONTEXT_BYTES
|
|
132
132
|
}));
|
|
133
|
-
|
|
133
|
+
/**
|
|
134
|
+
* `profile.harness` stays the canonical harness enum. It is a materialization PREFERENCE — which
|
|
135
|
+
* runner's config layout the profile is lowered into — and is a separate question from
|
|
136
|
+
* `backend.type`, the runner this deployment dispatches to. Intersecting the two enums rejected
|
|
137
|
+
* every harness that is canonical but not dispatchable here.
|
|
138
|
+
*/
|
|
139
|
+
const batchProfileSchema = agentProfileSchema.superRefine((value, context) => addStructuredJsonLimits(value, context, {
|
|
134
140
|
label: "profile",
|
|
135
141
|
maxBytes: BATCH_MAX_PROFILE_BYTES
|
|
136
142
|
}));
|
|
@@ -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,13 +1,13 @@
|
|
|
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-
|
|
8
|
-
import { z } from "zod";
|
|
7
|
+
import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-1b5v8Xeo.js";
|
|
9
8
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
10
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
|
+
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/attestation-heartbeat.d.ts
|
|
13
13
|
interface TeeAttestationHeartbeatSample {
|
|
@@ -534,20 +534,20 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
534
534
|
}, z.core.$strict>], "type">>;
|
|
535
535
|
backend: z.ZodOptional<z.ZodObject<{
|
|
536
536
|
type: z.ZodEnum<{
|
|
537
|
-
opencode: "opencode";
|
|
538
537
|
"claude-code": "claude-code";
|
|
539
|
-
|
|
538
|
+
nanoclaw: "nanoclaw";
|
|
540
539
|
codex: "codex";
|
|
541
|
-
|
|
542
|
-
"
|
|
540
|
+
opencode: "opencode";
|
|
541
|
+
"kimi-code": "kimi-code";
|
|
543
542
|
pi: "pi";
|
|
544
543
|
hermes: "hermes";
|
|
545
|
-
forge: "forge";
|
|
546
544
|
openclaw: "openclaw";
|
|
547
|
-
|
|
545
|
+
amp: "amp";
|
|
546
|
+
"factory-droids": "factory-droids";
|
|
548
547
|
acp: "acp";
|
|
549
|
-
cursor: "cursor";
|
|
550
548
|
"cli-base": "cli-base";
|
|
549
|
+
forge: "forge";
|
|
550
|
+
cursor: "cursor";
|
|
551
551
|
}>;
|
|
552
552
|
profile: z.ZodOptional<z.ZodObject<{
|
|
553
553
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -854,20 +854,20 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
854
854
|
}, z.core.$strict>], "type">>;
|
|
855
855
|
backend: z.ZodOptional<z.ZodObject<{
|
|
856
856
|
type: z.ZodEnum<{
|
|
857
|
-
opencode: "opencode";
|
|
858
857
|
"claude-code": "claude-code";
|
|
859
|
-
|
|
858
|
+
nanoclaw: "nanoclaw";
|
|
860
859
|
codex: "codex";
|
|
861
|
-
|
|
862
|
-
"
|
|
860
|
+
opencode: "opencode";
|
|
861
|
+
"kimi-code": "kimi-code";
|
|
863
862
|
pi: "pi";
|
|
864
863
|
hermes: "hermes";
|
|
865
|
-
forge: "forge";
|
|
866
864
|
openclaw: "openclaw";
|
|
867
|
-
|
|
865
|
+
amp: "amp";
|
|
866
|
+
"factory-droids": "factory-droids";
|
|
868
867
|
acp: "acp";
|
|
869
|
-
cursor: "cursor";
|
|
870
868
|
"cli-base": "cli-base";
|
|
869
|
+
forge: "forge";
|
|
870
|
+
cursor: "cursor";
|
|
871
871
|
}>;
|
|
872
872
|
profile: z.ZodOptional<z.ZodObject<{
|
|
873
873
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1184,20 +1184,20 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1184
1184
|
}, z.core.$strict>], "type">>;
|
|
1185
1185
|
backend: z.ZodOptional<z.ZodObject<{
|
|
1186
1186
|
type: z.ZodEnum<{
|
|
1187
|
-
opencode: "opencode";
|
|
1188
1187
|
"claude-code": "claude-code";
|
|
1189
|
-
|
|
1188
|
+
nanoclaw: "nanoclaw";
|
|
1190
1189
|
codex: "codex";
|
|
1191
|
-
|
|
1192
|
-
"
|
|
1190
|
+
opencode: "opencode";
|
|
1191
|
+
"kimi-code": "kimi-code";
|
|
1193
1192
|
pi: "pi";
|
|
1194
1193
|
hermes: "hermes";
|
|
1195
|
-
forge: "forge";
|
|
1196
1194
|
openclaw: "openclaw";
|
|
1197
|
-
|
|
1195
|
+
amp: "amp";
|
|
1196
|
+
"factory-droids": "factory-droids";
|
|
1198
1197
|
acp: "acp";
|
|
1199
|
-
cursor: "cursor";
|
|
1200
1198
|
"cli-base": "cli-base";
|
|
1199
|
+
forge: "forge";
|
|
1200
|
+
cursor: "cursor";
|
|
1201
1201
|
}>;
|
|
1202
1202
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1203
1203
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1499,20 +1499,20 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1499
1499
|
}, z.core.$strict>], "type">>;
|
|
1500
1500
|
backend: z.ZodOptional<z.ZodObject<{
|
|
1501
1501
|
type: z.ZodEnum<{
|
|
1502
|
-
opencode: "opencode";
|
|
1503
1502
|
"claude-code": "claude-code";
|
|
1504
|
-
|
|
1503
|
+
nanoclaw: "nanoclaw";
|
|
1505
1504
|
codex: "codex";
|
|
1506
|
-
|
|
1507
|
-
"
|
|
1505
|
+
opencode: "opencode";
|
|
1506
|
+
"kimi-code": "kimi-code";
|
|
1508
1507
|
pi: "pi";
|
|
1509
1508
|
hermes: "hermes";
|
|
1510
|
-
forge: "forge";
|
|
1511
1509
|
openclaw: "openclaw";
|
|
1512
|
-
|
|
1510
|
+
amp: "amp";
|
|
1511
|
+
"factory-droids": "factory-droids";
|
|
1513
1512
|
acp: "acp";
|
|
1514
|
-
cursor: "cursor";
|
|
1515
1513
|
"cli-base": "cli-base";
|
|
1514
|
+
forge: "forge";
|
|
1515
|
+
cursor: "cursor";
|
|
1516
1516
|
}>;
|
|
1517
1517
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1518
1518
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1819,20 +1819,20 @@ declare const manageSandboxesInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1819
1819
|
}, z.core.$strict>], "type">>;
|
|
1820
1820
|
backend: z.ZodOptional<z.ZodObject<{
|
|
1821
1821
|
type: z.ZodEnum<{
|
|
1822
|
-
opencode: "opencode";
|
|
1823
1822
|
"claude-code": "claude-code";
|
|
1824
|
-
|
|
1823
|
+
nanoclaw: "nanoclaw";
|
|
1825
1824
|
codex: "codex";
|
|
1826
|
-
|
|
1827
|
-
"
|
|
1825
|
+
opencode: "opencode";
|
|
1826
|
+
"kimi-code": "kimi-code";
|
|
1828
1827
|
pi: "pi";
|
|
1829
1828
|
hermes: "hermes";
|
|
1830
|
-
forge: "forge";
|
|
1831
1829
|
openclaw: "openclaw";
|
|
1832
|
-
|
|
1830
|
+
amp: "amp";
|
|
1831
|
+
"factory-droids": "factory-droids";
|
|
1833
1832
|
acp: "acp";
|
|
1834
|
-
cursor: "cursor";
|
|
1835
1833
|
"cli-base": "cli-base";
|
|
1834
|
+
forge: "forge";
|
|
1835
|
+
cursor: "cursor";
|
|
1836
1836
|
}>;
|
|
1837
1837
|
profile: z.ZodOptional<z.ZodObject<{
|
|
1838
1838
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2244,20 +2244,20 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2244
2244
|
}, z.core.$strict>], "type">>;
|
|
2245
2245
|
backend: z.ZodOptional<z.ZodObject<{
|
|
2246
2246
|
type: z.ZodEnum<{
|
|
2247
|
-
opencode: "opencode";
|
|
2248
2247
|
"claude-code": "claude-code";
|
|
2249
|
-
|
|
2248
|
+
nanoclaw: "nanoclaw";
|
|
2250
2249
|
codex: "codex";
|
|
2251
|
-
|
|
2252
|
-
"
|
|
2250
|
+
opencode: "opencode";
|
|
2251
|
+
"kimi-code": "kimi-code";
|
|
2253
2252
|
pi: "pi";
|
|
2254
2253
|
hermes: "hermes";
|
|
2255
|
-
forge: "forge";
|
|
2256
2254
|
openclaw: "openclaw";
|
|
2257
|
-
|
|
2255
|
+
amp: "amp";
|
|
2256
|
+
"factory-droids": "factory-droids";
|
|
2258
2257
|
acp: "acp";
|
|
2259
|
-
cursor: "cursor";
|
|
2260
2258
|
"cli-base": "cli-base";
|
|
2259
|
+
forge: "forge";
|
|
2260
|
+
cursor: "cursor";
|
|
2261
2261
|
}>;
|
|
2262
2262
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2263
2263
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2564,20 +2564,20 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2564
2564
|
}, z.core.$strict>], "type">>;
|
|
2565
2565
|
backend: z.ZodOptional<z.ZodObject<{
|
|
2566
2566
|
type: z.ZodEnum<{
|
|
2567
|
-
opencode: "opencode";
|
|
2568
2567
|
"claude-code": "claude-code";
|
|
2569
|
-
|
|
2568
|
+
nanoclaw: "nanoclaw";
|
|
2570
2569
|
codex: "codex";
|
|
2571
|
-
|
|
2572
|
-
"
|
|
2570
|
+
opencode: "opencode";
|
|
2571
|
+
"kimi-code": "kimi-code";
|
|
2573
2572
|
pi: "pi";
|
|
2574
2573
|
hermes: "hermes";
|
|
2575
|
-
forge: "forge";
|
|
2576
2574
|
openclaw: "openclaw";
|
|
2577
|
-
|
|
2575
|
+
amp: "amp";
|
|
2576
|
+
"factory-droids": "factory-droids";
|
|
2578
2577
|
acp: "acp";
|
|
2579
|
-
cursor: "cursor";
|
|
2580
2578
|
"cli-base": "cli-base";
|
|
2579
|
+
forge: "forge";
|
|
2580
|
+
cursor: "cursor";
|
|
2581
2581
|
}>;
|
|
2582
2582
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2583
2583
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2894,20 +2894,20 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
2894
2894
|
}, z.core.$strict>], "type">>;
|
|
2895
2895
|
backend: z.ZodOptional<z.ZodObject<{
|
|
2896
2896
|
type: z.ZodEnum<{
|
|
2897
|
-
opencode: "opencode";
|
|
2898
2897
|
"claude-code": "claude-code";
|
|
2899
|
-
|
|
2898
|
+
nanoclaw: "nanoclaw";
|
|
2900
2899
|
codex: "codex";
|
|
2901
|
-
|
|
2902
|
-
"
|
|
2900
|
+
opencode: "opencode";
|
|
2901
|
+
"kimi-code": "kimi-code";
|
|
2903
2902
|
pi: "pi";
|
|
2904
2903
|
hermes: "hermes";
|
|
2905
|
-
forge: "forge";
|
|
2906
2904
|
openclaw: "openclaw";
|
|
2907
|
-
|
|
2905
|
+
amp: "amp";
|
|
2906
|
+
"factory-droids": "factory-droids";
|
|
2908
2907
|
acp: "acp";
|
|
2909
|
-
cursor: "cursor";
|
|
2910
2908
|
"cli-base": "cli-base";
|
|
2909
|
+
forge: "forge";
|
|
2910
|
+
cursor: "cursor";
|
|
2911
2911
|
}>;
|
|
2912
2912
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2913
2913
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3209,20 +3209,20 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3209
3209
|
}, z.core.$strict>], "type">>;
|
|
3210
3210
|
backend: z.ZodOptional<z.ZodObject<{
|
|
3211
3211
|
type: z.ZodEnum<{
|
|
3212
|
-
opencode: "opencode";
|
|
3213
3212
|
"claude-code": "claude-code";
|
|
3214
|
-
|
|
3213
|
+
nanoclaw: "nanoclaw";
|
|
3215
3214
|
codex: "codex";
|
|
3216
|
-
|
|
3217
|
-
"
|
|
3215
|
+
opencode: "opencode";
|
|
3216
|
+
"kimi-code": "kimi-code";
|
|
3218
3217
|
pi: "pi";
|
|
3219
3218
|
hermes: "hermes";
|
|
3220
|
-
forge: "forge";
|
|
3221
3219
|
openclaw: "openclaw";
|
|
3222
|
-
|
|
3220
|
+
amp: "amp";
|
|
3221
|
+
"factory-droids": "factory-droids";
|
|
3223
3222
|
acp: "acp";
|
|
3224
|
-
cursor: "cursor";
|
|
3225
3223
|
"cli-base": "cli-base";
|
|
3224
|
+
forge: "forge";
|
|
3225
|
+
cursor: "cursor";
|
|
3226
3226
|
}>;
|
|
3227
3227
|
profile: z.ZodOptional<z.ZodObject<{
|
|
3228
3228
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3529,20 +3529,20 @@ declare const MANAGE_SANDBOXES_PARAMETERS: z.core.ZodStandardJSONSchemaPayload<z
|
|
|
3529
3529
|
}, z.core.$strict>], "type">>;
|
|
3530
3530
|
backend: z.ZodOptional<z.ZodObject<{
|
|
3531
3531
|
type: z.ZodEnum<{
|
|
3532
|
-
opencode: "opencode";
|
|
3533
3532
|
"claude-code": "claude-code";
|
|
3534
|
-
|
|
3533
|
+
nanoclaw: "nanoclaw";
|
|
3535
3534
|
codex: "codex";
|
|
3536
|
-
|
|
3537
|
-
"
|
|
3535
|
+
opencode: "opencode";
|
|
3536
|
+
"kimi-code": "kimi-code";
|
|
3538
3537
|
pi: "pi";
|
|
3539
3538
|
hermes: "hermes";
|
|
3540
|
-
forge: "forge";
|
|
3541
3539
|
openclaw: "openclaw";
|
|
3542
|
-
|
|
3540
|
+
amp: "amp";
|
|
3541
|
+
"factory-droids": "factory-droids";
|
|
3543
3542
|
acp: "acp";
|
|
3544
|
-
cursor: "cursor";
|
|
3545
3543
|
"cli-base": "cli-base";
|
|
3544
|
+
forge: "forge";
|
|
3545
|
+
cursor: "cursor";
|
|
3546
3546
|
}>;
|
|
3547
3547
|
profile: z.ZodOptional<z.ZodObject<{
|
|
3548
3548
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -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,11 +1,11 @@
|
|
|
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-
|
|
7
|
-
import { z } from "zod";
|
|
6
|
+
import { t as TangleSandboxClient } from "./tangle-Dy4tv_Sm.js";
|
|
8
7
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
|
+
import { z } from "zod";
|
|
9
9
|
//#region src/confidential.ts
|
|
10
10
|
function generateAttestationNonce(bytes = 32) {
|
|
11
11
|
const buffer = new Uint8Array(bytes);
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { a as NetworkError, c as QuotaError, f as TimeoutError, l as SandboxError, m as parseErrorResponse, n as CapabilityError, p as ValidationError, u as ServerError } from "./errors-Bf-A-4SA.js";
|
|
2
|
+
import { agentProfileSchema, harnessTypeSchema } from "@tangle-network/agent-interface";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
//#region ../../../packages/runtime-contracts/dist/backend-types.js
|
|
5
|
+
/**
|
|
6
|
+
* Canonical harnesses this repo ships no provider adapter for.
|
|
7
|
+
*
|
|
8
|
+
* `gemini` reaches a workspace only as an openclaw/acp sub-agent CLI and through
|
|
9
|
+
* `agent-profile-materialize`; there is no `packages/sdk-provider-gemini`, so naming it as a
|
|
10
|
+
* backend must keep failing closed rather than dispatching to a runner that cannot start.
|
|
11
|
+
*/
|
|
12
|
+
const NON_BACKEND_HARNESSES = ["gemini"];
|
|
13
|
+
/**
|
|
14
|
+
* Runners with a provider adapter here (`packages/sdk-provider-forge`,
|
|
15
|
+
* `packages/sdk-provider-cursor`) that the canonical enum does not carry yet. The guard below
|
|
16
|
+
* turns their adoption upstream into a compile error so this list is emptied rather than
|
|
17
|
+
* silently duplicating a canonical id.
|
|
18
|
+
*/
|
|
19
|
+
const EXTRA_BACKEND_TYPES = ["forge", "cursor"];
|
|
20
|
+
const BACKEND_TYPE = {
|
|
5
21
|
OPENCODE: "opencode",
|
|
6
22
|
CLAUDE_CODE: "claude-code",
|
|
7
23
|
KIMI_CODE: "kimi-code",
|
|
@@ -16,7 +32,28 @@ const ALL_BACKEND_TYPES = Object.values({
|
|
|
16
32
|
ACP: "acp",
|
|
17
33
|
CURSOR: "cursor",
|
|
18
34
|
CLI_BASE: "cli-base"
|
|
19
|
-
}
|
|
35
|
+
};
|
|
36
|
+
const nonBackendHarnesses = new Set(NON_BACKEND_HARNESSES);
|
|
37
|
+
/**
|
|
38
|
+
* Order mirrors `CLI_AGENT_SPECS` — a backend without a spec has no install/launch definition and
|
|
39
|
+
* cannot run, so the registry's order is the contract (`packages/cli-agent-registry`), not an
|
|
40
|
+
* arbitrary list.
|
|
41
|
+
*/
|
|
42
|
+
const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
|
|
43
|
+
/**
|
|
44
|
+
* Bind the enum to `harnessTypeSchema` in both directions at import time, so the canonical set
|
|
45
|
+
* stays the authority on membership while the spec registry keeps owning order. A harness added
|
|
46
|
+
* upstream, or a backend here that no longer exists upstream, fails loud instead of leaving request
|
|
47
|
+
* validation and the harness taxonomy quietly disagreeing.
|
|
48
|
+
*/
|
|
49
|
+
const canonicalBackendHarnesses = harnessTypeSchema.options.filter((harness) => !nonBackendHarnesses.has(harness));
|
|
50
|
+
const declaredBackendTypes = new Set(ALL_BACKEND_TYPES);
|
|
51
|
+
const extraBackendTypes = new Set(EXTRA_BACKEND_TYPES);
|
|
52
|
+
const canonicalBackendHarnessSet = new Set(canonicalBackendHarnesses);
|
|
53
|
+
const undeclaredCanonicalHarnesses = canonicalBackendHarnesses.filter((harness) => !declaredBackendTypes.has(harness));
|
|
54
|
+
if (undeclaredCanonicalHarnesses.length > 0) throw new Error(`BACKEND_TYPE is missing canonical harnesses: ${undeclaredCanonicalHarnesses.join(", ")}. Add the named constant plus its CLI_AGENT_SPECS entry, or list it in NON_BACKEND_HARNESSES with a reason.`);
|
|
55
|
+
const unrecognizedBackendTypes = ALL_BACKEND_TYPES.filter((backend) => !extraBackendTypes.has(backend) && !canonicalBackendHarnessSet.has(backend));
|
|
56
|
+
if (unrecognizedBackendTypes.length > 0) throw new Error(`BACKEND_TYPE declares runners the canonical harness enum does not define: ${unrecognizedBackendTypes.join(", ")}. Reconcile them into @tangle-network/agent-interface, or name them in EXTRA_BACKEND_TYPES.`);
|
|
20
57
|
const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
21
58
|
const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
|
|
22
59
|
function isBackendType(value) {
|
|
@@ -764,6 +801,7 @@ function normalizeSessionInfo(raw) {
|
|
|
764
801
|
"failed",
|
|
765
802
|
"cancelled"
|
|
766
803
|
].includes(status) ? status : "running",
|
|
804
|
+
activeExecutionId: typeof raw.activeExecutionId === "string" && raw.activeExecutionId.length > 0 ? raw.activeExecutionId : void 0,
|
|
767
805
|
latestExecutionId: typeof raw.latestExecutionId === "string" && raw.latestExecutionId.length > 0 ? raw.latestExecutionId : void 0,
|
|
768
806
|
backend: typeof raw.backendType === "string" ? raw.backendType : typeof raw.backend === "string" ? raw.backend : void 0,
|
|
769
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;
|