@tangle-network/sandbox 0.15.3-develop.20260731000024.8def6ab → 0.16.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/dist/agent/index.d.ts +3 -3
- package/dist/{client-C5rri6ua.d.ts → client-BIr5NPKo.d.ts} +2 -2
- package/dist/{client-B900SHtj.js → client-DS6fz6PF.js} +10 -4
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-Om3UH1DJ.d.ts → index-C89k_hW1.d.ts} +2 -2
- package/dist/index.d.ts +75 -75
- package/dist/index.js +5 -5
- package/dist/{runtime-api-BWC3U-qO.js → runtime-api-Bd9NAChb.js} +40 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-s91ZluKA.d.ts → sandbox-CiVbnsQp.d.ts} +11 -12
- package/dist/{sandbox-CfScdY7m.js → sandbox-CkaqBz54.js} +11 -12
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DiReWa8T.js → tangle-Cxe2HYQb.js} +1 -1
- package/dist/{types-DDZCJUWe.d.ts → types-DTHan0Lc.d.ts} +272 -260
- package/package.json +2 -2
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-DTHan0Lc.js";
|
|
2
|
+
import { n as SandboxInstance } from "../sandbox-CiVbnsQp.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BIr5NPKo.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/tools/_specs.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as SandboxFleetCostEstimate, $t as ListSandboxFleetOptions, A as CreateSandboxFleetTokenOptions, An as PublishPublicTemplateVersionOptions, Cr as SandboxFleetWorkspaceSnapshotResult, Ct as FleetExecDispatchResult, D as CreateIntelligenceReportOptions, Dn as PublicTemplateInfo, Et as FleetPromptDispatchResult, Gt as IntelligenceReport, Kt as IntelligenceReportBudget, M as CreateSandboxOptions, Mn as ReapExpiredSandboxFleetsResult, Nn as ReconcileSandboxFleetsOptions, O as CreateRequestOptions, On as PublicTemplateVersionInfo, Pn as ReconcileSandboxFleetsResult, Qn as SandboxFleetArtifactSpec, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, Ti as TokenRefreshHandler, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, 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, fr as SandboxFleetOperationsSummary, gt as FleetDispatchCancelResult, hr as SandboxFleetTraceBundle, ir as SandboxFleetInfo, j as CreateSandboxFleetWithCoordinatorOptions, ji as UsageInfo, jn as ReapExpiredSandboxFleetsOptions, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateOptions, m as BatchRunRequest, mi as SubscriptionInfo, mr as SandboxFleetToken, nr as SandboxFleetDriverCapability, nt as ExecResult, p as BatchRunOptions, qi as BatchEvent, qn as SandboxConfig, qt as IntelligenceReportCompareTo, tr as SandboxFleetDispatchResponse, tt as ExecOptions, ui as SshKeysManager, 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-
|
|
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, On as PublicTemplateVersionInfo, Pn as ReconcileSandboxFleetsResult, Qn as SandboxFleetArtifactSpec, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, Ti as TokenRefreshHandler, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, 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, fr as SandboxFleetOperationsSummary, gt as FleetDispatchCancelResult, hr as SandboxFleetTraceBundle, ir as SandboxFleetInfo, j as CreateSandboxFleetWithCoordinatorOptions, ji as UsageInfo, jn as ReapExpiredSandboxFleetsOptions, k as CreateSandboxFleetOptions, kn as PublishPublicTemplateOptions, m as BatchRunRequest, mi as SubscriptionInfo, mr as SandboxFleetToken, nr as SandboxFleetDriverCapability, nt as ExecResult, p as BatchRunOptions, qi as BatchEvent, qn as SandboxConfig, qt as IntelligenceReportCompareTo, tr as SandboxFleetDispatchResponse, tt as ExecOptions, ui as SshKeysManager, 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-DTHan0Lc.js";
|
|
2
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance, t as HttpClient } from "./sandbox-CiVbnsQp.js";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/sse-parser.d.ts
|
|
5
5
|
/**
|
|
@@ -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-Bd9NAChb.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-CkaqBz54.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
|
}));
|
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-DTHan0Lc.js";
|
|
2
|
+
import { a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-CiVbnsQp.js";
|
|
3
|
+
import { i as Sandbox } from "./client-BIr5NPKo.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-DS6fz6PF.js";
|
|
3
|
+
import { i as WorkspaceImages, t as SandboxInstance } from "./sandbox-CkaqBz54.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-DTHan0Lc.js";
|
|
2
|
+
import { n as SandboxInstance, t as HttpClient } from "./sandbox-CiVbnsQp.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 parseBackendType, $n as SandboxFleetCostEstimate, $r as SessionBackendCredentials, $t as ListSandboxFleetOptions, Ai as UploadProgress, An as PublishPublicTemplateVersionOptions, Ar as SandboxResources, At as GitCommit, B as DownloadOptions, Bi as TerminalStream, Bn as RolloutOptions, Br as SandboxTraceEvent, Bt as GpuLeaseProviderName, Ci as TeePublicKey, Cn as ProvisionEvent, Cr as SandboxFleetWorkspaceSnapshotResult, D as CreateIntelligenceReportOptions, Di as TurnDriveResult, Dn as PublicTemplateInfo, Dr as SandboxPortBinding, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TokenUsage, En as ProvisionStep, Er as SandboxIntelligenceEnvelope, F as DeleteOptions, Fi as WriteManyFile, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamToken, Gn as SSHCommandDescriptor, Gr as ScopedTokenScope, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStreamError, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteManyOptions, Ir as SandboxTerminalManager, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchEventDataMap, Jn as SandboxConnection, Jr as SecretInfo, Jt as IntelligenceReportSubjectType, Ki as BatchBackendStats, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as TERMINAL_WS_ECHO_SUBPROTOCOL, Lr as SandboxTerminalRequestOptions, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as WaitForOptions, Mn as ReapExpiredSandboxFleetsResult, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForRolloutOptions, Nn as ReconcileSandboxFleetsOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as UpdateUserOptions, On as PublicTemplateVersionInfo, Or as SandboxPortPreviewLink, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WriteFileOptions, Pn as ReconcileSandboxFleetsResult, Pr as SandboxTerminalCreateOptions, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as BackendType, Qn as SandboxFleetArtifactSpec, Qr as SentSessionMessage, Qt as ListOptions, R as DispatchPromptOptions, Ri as TerminalExitInfo, Rn as Rollout, Rr as SandboxTerminals, Rt as GpuLeaseExecResult, Si as TeeAttestationResponse, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TokenRefreshHandler, Tn as ProvisionStatus, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamHandlers, Un as RolloutStatus, Ur as SandboxUser, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalStreamAuthFormat, Vn as RolloutScorer, Vr as SandboxTraceExport, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamOptions, Wn as RolloutTurnPart, Wr as ScopedToken, Wt as InstalledTool, X as EgressManager, Xi as BatchTaskUsage, Xn as SandboxEvent, Xr as SendSessionMessageOptions, Y as EffectiveBackendSource, Yi as BatchSidecarGroup, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as PublicBatchRunRequest, Zn as SandboxFleetArtifact, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionFileChange, _n as ProcessSignal, _r as SandboxFleetTraceExport, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionMessageInputPart, an as NetworkManager, ar as SandboxFleetIntelligenceEnvelope, at as FileReadBatchResult, bi as TeeAttestationOptions, bn as PromptInputPart, br as SandboxFleetWorkspace, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SnapshotOptions, cn as PermissionsManager, cr as SandboxFleetMachineRecord, ct as FileRenameResult, d as BatchBackend, di as StartupDiagnostics, dn as PreviewLinkWaitOptions, dr as SandboxFleetManifestMachine, dt as FileTreeOptions, ei as SessionEventStreamOptions, en as ListSandboxOptions, er as SandboxFleetDispatchFailureClass, et as ExactProcessSpawnOptions, f as BatchResult, fi as StartupOperation, fn as Process, fr as SandboxFleetOperationsSummary, ft as FileTreeResult, g as BatchTaskResult, gi as TaskSessionCommitResult, gn as ProcessManager, gr as SandboxFleetTraceEvent, gt as FleetDispatchCancelResult, h as BatchTask, hi as TaskSessionChanges, hn as ProcessLogEntry, hr as SandboxFleetTraceBundle, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionMessage, in as NetworkConfig, ir as SandboxFleetInfo, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UsageInfo, jn as ReapExpiredSandboxFleetsOptions, jr as SandboxRuntimeHealth, jt as GitConfig, k as CreateSandboxFleetOptions, ki as UploadOptions, kn as PublishPublicTemplateOptions, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotResult, ln as PreviewLinkInfo, lr as SandboxFleetMachineSpec, lt as FileSystem, m as BatchRunRequest, mi as SubscriptionInfo, 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 SessionStatus, on as NonHostAgentDriverConfig, or as SandboxFleetMachine, ot as FileReadError, p as BatchRunOptions, pi as StorageConfig, pn as ProcessInfo, pr as SandboxFleetPolicy, pt as FileUsageOptions, q as EffectiveBackend, qi as BatchEvent, qn as SandboxConfig, qr as SearchOptions, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionListOptions, rn as MkdirOptions, rr as SandboxFleetDriverTimings, rt as FileInfo, s as BackendConfig, si as SnapshotInfo, sn as PermissionLevel, sr as SandboxFleetMachineMeteredUsage, st as FileReadResult, t as AcceleratorKind, ti as SessionForkOptions, tn as McpServerConfig, tr as SandboxFleetDispatchResponse, tt as ExecOptions, u as BackendStatus, un as PreviewLinkManager, ur as SandboxFleetManifest, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionInfo, vn as ProcessSpawnOptions, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeePublicKeyResponse, wn as ProvisionResult, wr as SandboxIdentity, wt as FleetMachineId, xi as TeeAttestationReport, xn as PromptOptions, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionProfile, yn as ProcessStatus, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TerminalReadyInfo, zn as RolloutChildResult, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-
|
|
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 parseBackendType, $n as SandboxFleetCostEstimate, $r as SessionBackendCredentials, $t as ListSandboxFleetOptions, Ai as UploadProgress, An as PublishPublicTemplateVersionOptions, Ar as SandboxResources, At as GitCommit, B as DownloadOptions, Bi as TerminalStream, Bn as RolloutOptions, Br as SandboxTraceEvent, Bt as GpuLeaseProviderName, Ci as TeePublicKey, Cn as ProvisionEvent, Cr as SandboxFleetWorkspaceSnapshotResult, D as CreateIntelligenceReportOptions, Di as TurnDriveResult, Dn as PublicTemplateInfo, Dr as SandboxPortBinding, Dt as GPU_LEASE_PROVIDER_NAMES, E as CreateGpuLeaseOptions, Ei as TokenUsage, En as ProvisionStep, Er as SandboxIntelligenceEnvelope, F as DeleteOptions, Fi as WriteManyFile, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ft as GpuLeaseBilling, G as DriverType, Gi as TerminalStreamToken, Gn as SSHCommandDescriptor, Gr as ScopedTokenScope, Gt as IntelligenceReport, H as DriveTurnOptions, Hi as TerminalStreamError, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ht as HostAgentDriverConfig, I as DevServerInfo, Ii as WriteManyOptions, Ir as SandboxTerminalManager, It as GpuLeaseCommandResult, J as EffectiveBackendProfile, Ji as BatchEventDataMap, Jn as SandboxConnection, Jr as SecretInfo, Jt as IntelligenceReportSubjectType, Ki as BatchBackendStats, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, L as DirectoryPermission, Li as TERMINAL_WS_ECHO_SUBPROTOCOL, Lr as SandboxTerminalRequestOptions, Lt as GpuLeaseExecOptions, M as CreateSandboxOptions, Mi as WaitForOptions, Mn as ReapExpiredSandboxFleetsResult, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForRolloutOptions, Nn as ReconcileSandboxFleetsOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, O as CreateRequestOptions, Oi as UpdateUserOptions, On as PublicTemplateVersionInfo, Or as SandboxPortPreviewLink, Ot as GitAuth, P as CreateTaskSessionOptions, Pi as WriteFileOptions, Pn as ReconcileSandboxFleetsResult, Pr as SandboxTerminalCreateOptions, Pt as GpuLease, Q as EnsureDevServerOptions, Qi as BackendType, Qn as SandboxFleetArtifactSpec, Qr as SentSessionMessage, Qt as ListOptions, R as DispatchPromptOptions, Ri as TerminalExitInfo, Rn as Rollout, Rr as SandboxTerminals, Rt as GpuLeaseExecResult, Si as TeeAttestationResponse, Sn as PromptResult, Sr as SandboxFleetWorkspaceRestoreResult, St as FleetExecDispatchOptions, T as CompletedTurnResult, Ti as TokenRefreshHandler, Tn as ProvisionStatus, Tr as SandboxInfo, Tt as FleetPromptDispatchOptions, U as DriverConfig, Ui as TerminalStreamHandlers, Un as RolloutStatus, Ur as SandboxUser, Ut as HostAgentRuntimeBackend, V as DownloadProgress, Vi as TerminalStreamAuthFormat, Vn as RolloutScorer, Vr as SandboxTraceExport, Vt as GpuLeaseStatus, W as DriverInfo, Wi as TerminalStreamOptions, Wn as RolloutTurnPart, Wr as ScopedToken, Wt as InstalledTool, X as EgressManager, Xi as BatchTaskUsage, Xn as SandboxEvent, Xr as SendSessionMessageOptions, Y as EffectiveBackendSource, Yi as BatchSidecarGroup, Yn as SandboxEnvironment, Yr as SecretsManager, Yt as IntelligenceReportWindow, Z as EgressPolicy, Zi as PublicBatchRunRequest, Zn as SandboxFleetArtifact, Zr as SendSessionMessageRequest, Zt as ListMessagesOptions, _ as BranchOptions, _i as TaskSessionFileChange, _n as ProcessSignal, _r as SandboxFleetTraceExport, _t as FleetDispatchResultBuffer, a as AttachSandboxFleetMachineOptions, ai as SessionMessageInputPart, an as NetworkManager, ar as SandboxFleetIntelligenceEnvelope, at as FileReadBatchResult, bi as TeeAttestationOptions, bn as PromptInputPart, br as SandboxFleetWorkspace, bt as FleetDriveTurnOutcome, c as BackendInfo, ci as SnapshotOptions, cn as PermissionsManager, cr as SandboxFleetMachineRecord, ct as FileRenameResult, d as BatchBackend, di as StartupDiagnostics, dn as PreviewLinkWaitOptions, dr as SandboxFleetManifestMachine, dt as FileTreeOptions, ei as SessionEventStreamOptions, en as ListSandboxOptions, er as SandboxFleetDispatchFailureClass, et as ExactProcessSpawnOptions, f as BatchResult, fi as StartupOperation, fn as Process, fr as SandboxFleetOperationsSummary, ft as FileTreeResult, g as BatchTaskResult, gi as TaskSessionCommitResult, gn as ProcessManager, gr as SandboxFleetTraceEvent, gt as FleetDispatchCancelResult, h as BatchTask, hi as TaskSessionChanges, hn as ProcessLogEntry, hr as SandboxFleetTraceBundle, ht as FileWriteResult, i as AttachGpuLeaseOptions, ii as SessionMessage, in as NetworkConfig, ir as SandboxFleetInfo, it as FileReadBatchOptions, j as CreateSandboxFleetWithCoordinatorOptions, ji as UsageInfo, jn as ReapExpiredSandboxFleetsOptions, jr as SandboxRuntimeHealth, jt as GitConfig, k as CreateSandboxFleetOptions, ki as UploadOptions, kn as PublishPublicTemplateOptions, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotResult, ln as PreviewLinkInfo, lr as SandboxFleetMachineSpec, lt as FileSystem, m as BatchRunRequest, mi as SubscriptionInfo, 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 SessionStatus, on as NonHostAgentDriverConfig, or as SandboxFleetMachine, ot as FileReadError, p as BatchRunOptions, pi as StorageConfig, pn as ProcessInfo, pr as SandboxFleetPolicy, pt as FileUsageOptions, q as EffectiveBackend, qi as BatchEvent, qn as SandboxConfig, qr as SearchOptions, qt as IntelligenceReportCompareTo, r as AddUserOptions, ri as SessionListOptions, rn as MkdirOptions, rr as SandboxFleetDriverTimings, rt as FileInfo, s as BackendConfig, si as SnapshotInfo, sn as PermissionLevel, sr as SandboxFleetMachineMeteredUsage, st as FileReadResult, t as AcceleratorKind, ti as SessionForkOptions, tn as McpServerConfig, tr as SandboxFleetDispatchResponse, tt as ExecOptions, u as BackendStatus, un as PreviewLinkManager, ur as SandboxFleetManifest, ut as FileTreeFile, v as ChunkedUploadOptions, vi as TaskSessionInfo, vn as ProcessSpawnOptions, vr as SandboxFleetTraceOptions, vt as FleetDispatchResultBufferOptions, w as CommitTaskSessionOptions, wi as TeePublicKeyResponse, wn as ProvisionResult, wr as SandboxIdentity, wt as FleetMachineId, xi as TeeAttestationReport, xn as PromptOptions, xr as SandboxFleetWorkspaceReconcileResult, xt as FleetDriveTurnRequest, y as ChunkedUploadResult, yi as TaskSessionProfile, yn as ProcessStatus, yr as SandboxFleetUsage, yt as FleetDispatchStreamOptions, z as DispatchedSession, zi as TerminalReadyInfo, zn as RolloutChildResult, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-DTHan0Lc.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-CiVbnsQp.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-BIr5NPKo.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-C89k_hW1.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>;
|
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-Bd9NAChb.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-DS6fz6PF.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-CkaqBz54.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-Cxe2HYQb.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) {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ai as UploadProgress, Dr as SandboxPortBinding, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ir as SandboxTerminalManager, Lr as SandboxTerminalRequestOptions, N as CreateSessionOptions, P as CreateTaskSessionOptions, Pi as WriteFileOptions, 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, gi as TaskSessionCommitResult, hi as TaskSessionChanges, ht as FileWriteResult, ii as SessionMessage, it as FileReadBatchOptions, jr as SandboxRuntimeHealth, mt as FileUsageResult, ni as SessionInfo, pt as FileUsageOptions, v as ChunkedUploadOptions, vi as TaskSessionInfo, w as CommitTaskSessionOptions, y as ChunkedUploadResult } from "./types-
|
|
1
|
+
import { Ai as UploadProgress, Dr as SandboxPortBinding, Fn as RenameOptions, Fr as SandboxTerminalInfo, Ir as SandboxTerminalManager, Lr as SandboxTerminalRequestOptions, N as CreateSessionOptions, P as CreateTaskSessionOptions, Pi as WriteFileOptions, 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, gi as TaskSessionCommitResult, hi as TaskSessionChanges, ht as FileWriteResult, ii as SessionMessage, it as FileReadBatchOptions, jr as SandboxRuntimeHealth, mt as FileUsageResult, ni as SessionInfo, pt as FileUsageOptions, v as ChunkedUploadOptions, vi as TaskSessionInfo, w as CommitTaskSessionOptions, y as ChunkedUploadResult } from "./types-DTHan0Lc.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-Bd9NAChb.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, Bi as TerminalStream, Bn as RolloutOptions, Cn as ProvisionEvent, Di as TurnDriveResult, Dr as SandboxPortBinding, Fi as WriteManyFile, Gn as SSHCommandDescriptor, Gt as IntelligenceReport, H as DriveTurnOptions, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ii as WriteManyOptions, In as RestoreSnapshotOptions, Jn as SandboxConnection, K as DurablePlan, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, Ln as ResumeOptions, Mi as WaitForOptions, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForRolloutOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, P as CreateTaskSessionOptions, Pi as WriteFileOptions, Pt as GpuLease, Qi as BackendType, Qr as SentSessionMessage, R as DispatchPromptOptions, Rn as Rollout, Rr as SandboxTerminals, S as CodeLanguage, Si as TeeAttestationResponse, Sn as PromptResult, T as CompletedTurnResult, Tr as SandboxInfo, Ui as TerminalStreamHandlers, 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, an as NetworkManager, b as CodeExecutionOptions, bi as TeeAttestationOptions, bn as PromptInputPart, ci as SnapshotOptions, cn as PermissionsManager, di as StartupDiagnostics, ei as SessionEventStreamOptions, gi as TaskSessionCommitResult, gn as ProcessManager, hi as TaskSessionChanges, hr as SandboxFleetTraceBundle, ht as FileWriteResult, ii as SessionMessage, jr as SandboxRuntimeHealth, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotResult, lt as FileSystem, ni as SessionInfo, nn as MintScopedTokenOptions, nt as ExecResult, qr as SearchOptions, qt as IntelligenceReportCompareTo, ri as SessionListOptions, s as BackendConfig, si as SnapshotInfo, ti as SessionForkOptions, tt as ExecOptions, un as PreviewLinkManager, vi as TaskSessionInfo, w as CommitTaskSessionOptions, wi as TeePublicKeyResponse, wn as ProvisionResult, x as CodeExecutionResult, xn as PromptOptions, z as DispatchedSession, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-
|
|
1
|
+
import { $ as EventStreamOptions, At as GitCommit, Bi as TerminalStream, Bn as RolloutOptions, Cn as ProvisionEvent, Di as TurnDriveResult, Dr as SandboxPortBinding, Fi as WriteManyFile, Gn as SSHCommandDescriptor, Gt as IntelligenceReport, H as DriveTurnOptions, Hn as RolloutStartResult, Hr as SandboxTraceOptions, Ii as WriteManyOptions, In as RestoreSnapshotOptions, Jn as SandboxConnection, K as DurablePlan, Kn as SSHCredentials, Kr as SearchMatch, Kt as IntelligenceReportBudget, Ln as ResumeOptions, Mi as WaitForOptions, Mr as SandboxStatus, Mt as GitDiff, N as CreateSessionOptions, Ni as WaitForRolloutOptions, Nr as SandboxTerminalAttachOptions, Nt as GitStatus, P as CreateTaskSessionOptions, Pi as WriteFileOptions, Pt as GpuLease, Qi as BackendType, Qr as SentSessionMessage, R as DispatchPromptOptions, Rn as Rollout, Rr as SandboxTerminals, S as CodeLanguage, Si as TeeAttestationResponse, Sn as PromptResult, T as CompletedTurnResult, Tr as SandboxInfo, Ui as TerminalStreamHandlers, 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, an as NetworkManager, b as CodeExecutionOptions, bi as TeeAttestationOptions, bn as PromptInputPart, ci as SnapshotOptions, cn as PermissionsManager, di as StartupDiagnostics, ei as SessionEventStreamOptions, gi as TaskSessionCommitResult, gn as ProcessManager, hi as TaskSessionChanges, hr as SandboxFleetTraceBundle, ht as FileWriteResult, ii as SessionMessage, jr as SandboxRuntimeHealth, kr as SandboxResourceUsage, kt as GitBranch, l as BackendManager, li as SnapshotResult, lt as FileSystem, ni as SessionInfo, nn as MintScopedTokenOptions, nt as ExecResult, qr as SearchOptions, qt as IntelligenceReportCompareTo, ri as SessionListOptions, s as BackendConfig, si as SnapshotInfo, ti as SessionForkOptions, tt as ExecOptions, un as PreviewLinkManager, vi as TaskSessionInfo, w as CommitTaskSessionOptions, wi as TeePublicKeyResponse, wn as ProvisionResult, x as CodeExecutionResult, xn as PromptOptions, z as DispatchedSession, zr as SandboxTraceBundle, zt as GpuLeaseManager } from "./types-DTHan0Lc.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/mcp.d.ts
|
|
@@ -1206,24 +1206,22 @@ declare class SandboxInstance {
|
|
|
1206
1206
|
private createProcessHandle;
|
|
1207
1207
|
private parseProcessLogStream;
|
|
1208
1208
|
/**
|
|
1209
|
-
*
|
|
1209
|
+
* Port exposure and runtime network state.
|
|
1210
1210
|
*
|
|
1211
|
-
* @
|
|
1212
|
-
*
|
|
1213
|
-
*
|
|
1214
|
-
* await box.network.update({ blockOutbound: true });
|
|
1215
|
-
*
|
|
1216
|
-
* // Or switch to allowlist mode
|
|
1217
|
-
* await box.network.update({
|
|
1218
|
-
* allowList: ["192.168.1.0/24", "8.8.8.8/32"]
|
|
1219
|
-
* });
|
|
1220
|
-
* ```
|
|
1211
|
+
* Outbound restrictions are on {@link SandboxInstance.egress}: `update()`
|
|
1212
|
+
* here rejects every policy field rather than recording one nothing
|
|
1213
|
+
* enforces.
|
|
1221
1214
|
*
|
|
1222
1215
|
* @example Expose ports dynamically
|
|
1223
1216
|
* ```typescript
|
|
1224
1217
|
* const url = await box.network.exposePort(8000);
|
|
1225
1218
|
* console.log(`Service available at: ${url}`);
|
|
1226
1219
|
* ```
|
|
1220
|
+
*
|
|
1221
|
+
* @example Restrict outbound traffic
|
|
1222
|
+
* ```typescript
|
|
1223
|
+
* await box.egress.update({ mode: "blocked" });
|
|
1224
|
+
* ```
|
|
1227
1225
|
*/
|
|
1228
1226
|
get network(): NetworkManager;
|
|
1229
1227
|
/**
|
|
@@ -1237,6 +1235,7 @@ declare class SandboxInstance {
|
|
|
1237
1235
|
*
|
|
1238
1236
|
* @example Update egress policy at runtime
|
|
1239
1237
|
* ```typescript
|
|
1238
|
+
* // strict reaches these plus the sandbox's own model endpoint, nothing else.
|
|
1240
1239
|
* await box.egress.update({ mode: "strict", allowDomains: ["api.github.com"] });
|
|
1241
1240
|
* ```
|
|
1242
1241
|
*/
|
|
@@ -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-Bd9NAChb.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
|
|
@@ -3887,24 +3887,22 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
3889
|
/**
|
|
3890
|
-
*
|
|
3890
|
+
* Port exposure and runtime network state.
|
|
3891
3891
|
*
|
|
3892
|
-
* @
|
|
3893
|
-
*
|
|
3894
|
-
*
|
|
3895
|
-
* await box.network.update({ blockOutbound: true });
|
|
3896
|
-
*
|
|
3897
|
-
* // Or switch to allowlist mode
|
|
3898
|
-
* await box.network.update({
|
|
3899
|
-
* allowList: ["192.168.1.0/24", "8.8.8.8/32"]
|
|
3900
|
-
* });
|
|
3901
|
-
* ```
|
|
3892
|
+
* Outbound restrictions are on {@link SandboxInstance.egress}: `update()`
|
|
3893
|
+
* here rejects every policy field rather than recording one nothing
|
|
3894
|
+
* enforces.
|
|
3902
3895
|
*
|
|
3903
3896
|
* @example Expose ports dynamically
|
|
3904
3897
|
* ```typescript
|
|
3905
3898
|
* const url = await box.network.exposePort(8000);
|
|
3906
3899
|
* console.log(`Service available at: ${url}`);
|
|
3907
3900
|
* ```
|
|
3901
|
+
*
|
|
3902
|
+
* @example Restrict outbound traffic
|
|
3903
|
+
* ```typescript
|
|
3904
|
+
* await box.egress.update({ mode: "blocked" });
|
|
3905
|
+
* ```
|
|
3908
3906
|
*/
|
|
3909
3907
|
get network() {
|
|
3910
3908
|
return {
|
|
@@ -3925,6 +3923,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
3925
3923
|
*
|
|
3926
3924
|
* @example Update egress policy at runtime
|
|
3927
3925
|
* ```typescript
|
|
3926
|
+
* // strict reaches these plus the sandbox's own model endpoint, nothing else.
|
|
3928
3927
|
* await box.egress.update({ mode: "strict", allowDomains: ["api.github.com"] });
|
|
3929
3928
|
* ```
|
|
3930
3929
|
*/
|
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-C89k_hW1.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 };
|