@tangle-network/sandbox 0.42.0 → 0.45.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/agent/index.js +3 -3
- package/dist/{agent-run-outcome-B7QDBlIQ.d.ts → agent-run-outcome-BpQhOdXp.d.ts} +1 -1
- package/dist/{client-H5uiGOhe.js → client-C2AGfwGT.js} +13 -2
- package/dist/{client-Cs9nH2Ct.d.ts → client-C_mFKZwS.d.ts} +5 -2
- package/dist/core.d.ts +4 -4
- package/dist/core.js +2 -2
- package/dist/{index-DPXKKBJu.d.ts → index-DT_pNtbV.d.ts} +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/{runtime-api-BpOFn4cB.js → runtime-api-C10Hg1OF.js} +1 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-0VHkiqla.js → sandbox-9IUdHeyj.js} +191 -4
- package/dist/{sandbox-Dehr5LTP.d.ts → sandbox-CQ2YTLtO.d.ts} +14 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-NaAvpHBK.js → tangle-B-w03_fQ.js} +1 -1
- package/dist/{types-BL3VHr3R.d.ts → types-B3C-MizG.d.ts} +115 -2
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
1
|
+
import { g as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-CQ2YTLtO.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, Ei as SessionListOptions, O as CodeLanguage, d as BackendConfig, k as CodeResultPart, wi as SessionInfo } from "../types-B3C-MizG.js";
|
|
3
|
+
import { i as Sandbox } from "../client-C_mFKZwS.js";
|
|
4
4
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agent/instances.d.ts
|
package/dist/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as assertCurrentBackendType } from "../runtime-api-
|
|
1
|
+
import { f as assertCurrentBackendType } from "../runtime-api-C10Hg1OF.js";
|
|
2
2
|
import { c as NotFoundError, h as ValidationError, p as StateError } from "../errors-CdDyExth.js";
|
|
3
|
-
import { n as Sandbox } from "../client-
|
|
4
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
3
|
+
import { n as Sandbox } from "../client-C2AGfwGT.js";
|
|
4
|
+
import { t as SandboxInstance } from "../sandbox-9IUdHeyj.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
//#region src/agent/instances.ts
|
|
7
7
|
const managers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentQuestionRequest,
|
|
1
|
+
import { a as AgentQuestionRequest, hr as SandboxEvent, i as AgentApprovalRequirement, nt as DurablePlanSnapshot, o as AgentRunStatus, s as AgentToolInvocation } from "./types-B3C-MizG.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, l as encodeTextForWire, m as normalizeRuntimeBackendConfig, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, u as parseSSEStream, y as backendTypeSchema } from "./runtime-api-
|
|
1
|
+
import { c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, l as encodeTextForWire, m as normalizeRuntimeBackendConfig, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, u as parseSSEStream, y as backendTypeSchema } from "./runtime-api-C10Hg1OF.js";
|
|
2
2
|
import { c as NotFoundError, d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, l as PartialFailureError, m as TimeoutError, s as NetworkError, t as AuthError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
|
-
import { E as normalizeConnection, O as exportTraceBundle, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-
|
|
4
|
+
import { E as normalizeConnection, O as exportTraceBundle, b as requestInteractiveSessionToken, i as normalizeStartupDiagnostics, n as createSandboxInstanceFromResponse, r as normalizeSandboxCreateReceipt } from "./sandbox-9IUdHeyj.js";
|
|
5
5
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/backend-registry.ts
|
|
@@ -2758,6 +2758,16 @@ var Sandbox = class {
|
|
|
2758
2758
|
* });
|
|
2759
2759
|
* ```
|
|
2760
2760
|
*/
|
|
2761
|
+
/** Fresh execution with no ambient owner context. Old hosts reject this
|
|
2762
|
+
* explicit field before provisioning; no best-effort security downgrade. */
|
|
2763
|
+
async createIsolated(options, requestOptions) {
|
|
2764
|
+
return this.create({
|
|
2765
|
+
...options,
|
|
2766
|
+
ownerContext: "isolated",
|
|
2767
|
+
secrets: [],
|
|
2768
|
+
sshEnabled: false
|
|
2769
|
+
}, requestOptions);
|
|
2770
|
+
}
|
|
2761
2771
|
async create(inputOptions, requestOptions) {
|
|
2762
2772
|
let options = inputOptions;
|
|
2763
2773
|
if (options?.backend?.runtimeAttachments !== void 0) {
|
|
@@ -2855,6 +2865,7 @@ var Sandbox = class {
|
|
|
2855
2865
|
publicTemplateId: options?.publicTemplateId,
|
|
2856
2866
|
publicTemplateVersionId: options?.publicTemplateVersionId,
|
|
2857
2867
|
secrets: options?.secrets,
|
|
2868
|
+
ownerContext: options?.ownerContext,
|
|
2858
2869
|
confidential: options?.confidential,
|
|
2859
2870
|
metadata: options?.metadata,
|
|
2860
2871
|
teamId: options?.teamId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-CQ2YTLtO.js";
|
|
2
2
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CcaBTVg3.js";
|
|
3
|
-
import { At as
|
|
3
|
+
import { At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Br as SandboxFleetWorkspaceReconcileResult, Cr as SandboxFleetInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, F as CreateIntelligenceReportOptions, Fn as PromptOptions, Ft as FleetMachineId, Gn as ReapExpiredSandboxFleetsOptions, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, I as CreateRequestOptions, In as PromptResult, It as FleetPromptDispatchOptions, Jn as ReconcileSandboxFleetsResult, Kn as ReapExpiredSandboxFleetsResult, L as CreateSandboxFleetOptions, Li as SshKeysManager, Lr as SandboxFleetTraceOptions, Lt as FleetPromptDispatchResult, Mt as FleetDriveTurnRequest, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Ot as FleetDispatchResultBuffer, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Pt as FleetExecDispatchResult, Qi as TokenRefreshHandler, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetUsage, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Vi as SubscriptionInfo, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, _r as SandboxFleetArtifactSpec, an as IntelligenceReport, b as BatchRunRequest, br as SandboxFleetDispatchResponse, fa as BatchEvent, ft as ExecOptions, gr as SandboxFleetArtifact, ia as UsageInfo, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, ln as IntelligenceReportWindow, mi as SecretsManager, mn as ListSandboxOptions, mr as SandboxEnvironment, on as IntelligenceReportBudget, pn as ListSandboxFleetOptions, pt as ExecResult, qn as ReconcileSandboxFleetsOptions, sn as IntelligenceReportCompareTo, sr as SandboxConfig, v as BatchResult, vr as SandboxFleetCostEstimate, xr as SandboxFleetDriverCapability, y as BatchRunOptions, z as CreateSandboxFleetWithCoordinatorOptions } from "./types-B3C-MizG.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -431,6 +431,9 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
431
431
|
* });
|
|
432
432
|
* ```
|
|
433
433
|
*/
|
|
434
|
+
/** Fresh execution with no ambient owner context. Old hosts reject this
|
|
435
|
+
* explicit field before provisioning; no best-effort security downgrade. */
|
|
436
|
+
createIsolated(options: Omit<CreateSandboxOptions, "ownerContext">, requestOptions?: CreateRequestOptions): Promise<SandboxInstance>;
|
|
434
437
|
create(inputOptions?: CreateSandboxOptions, requestOptions?: CreateRequestOptions): Promise<SandboxInstance>;
|
|
435
438
|
/**
|
|
436
439
|
* Poll a sandbox to `running` by id. Surfaces a real provision failure
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
2
|
-
import { Cn as
|
|
3
|
-
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-CQ2YTLtO.js";
|
|
2
|
+
import { $r as SandboxStatus, B as CreateSandboxOptions, Cn as PreviewLinkInfo, M as ConversationTurnOptions, N as ConversationTurnResult, Pn as PromptInputPart, Tn as PreviewLinkWaitOptions, Wr as SandboxInfo, ft as ExecOptions, pt as ExecResult, sr as SandboxConfig, vn as NetworkConfig, wn as PreviewLinkManager } from "./types-B3C-MizG.js";
|
|
3
|
+
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, b as backendRegistryEntrySchema, g as BackendRegistryEntry, h as BackendRegistryCapabilities, i as Sandbox, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-C_mFKZwS.js";
|
|
4
4
|
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, l as PartialFailureError, m as ServerError, n as CapabilityError, p as SandboxFailureDetail, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
5
|
-
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, 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, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
|
5
|
+
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, 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, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, p as StateError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-C2AGfwGT.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-9IUdHeyj.js";
|
|
4
4
|
export { AuthError, CapabilityError, FileWriteConflictError, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import {
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-CQ2YTLtO.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-B3C-MizG.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 SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-
|
|
1
|
+
import { $ as SandboxMcpEndpoint, A as InterruptResult, B as InteractiveAttachRequest, C as InteractiveSessionHost, D as InteractiveSessionStartOptions, E as InteractiveSessionRef, F as InteractiveTerminalMetadata, G as SandboxInteractionConflict, H as InteractiveSessionControllerOptions, I as createInteractiveTerminalCapture, J as BuildControlPlaneMcpConfigOptions, K as SandboxInteractionResolution, L as createInteractiveTerminalSession, M as agentInteractiveSessionPromptRequestDigest, N as InteractiveTerminalCapture, O as InteractiveSessionStartResult, P as InteractiveTerminalFrameLog, Q as SandboxMcpConfig, R as BrowserInteractiveSessionController, S as InteractiveSessionHandleOptions, T as InteractiveSessionInfo, U as InteractiveSessionControllerTransport, V as InteractiveSessionController, W as SandboxInteractionCommandResult, X as CONTROL_PLANE_MCP_SERVER_NAME, Y as BuildSandboxMcpConfigOptions, Z as SANDBOX_MCP_SERVER_NAME, _ as AgentInteractiveTerminalSession, a as WorkspaceImagePublishRequestOptions, b as InteractiveSessionControlClaim, c as TraceExportFormat, d as buildTraceExportPayload, et as SandboxMcpServerEntry, f as exportTraceBundle, g as SandboxSession, h as SandboxTaskSession, i as WorkspaceImagePublishInput, j as RespondToPermissionOptions, k as InteractiveStopCommand, l as TraceExportResult, m as toOtelJson, nt as buildSandboxMcpConfig, o as WorkspaceImagePublishResult, p as otelTraceIdForTangleTrace, q as SandboxInteractionResult, r as SandboxInstance, s as WorkspaceImages, t as ForkAcknowledgement, tt as buildControlPlaneMcpConfig, u as TraceExportSink, v as InteractiveControlClaimRequest, w as InteractiveSessionIncarnationId, x as InteractiveSessionHandle, y as InteractivePromptCommand, z as BrowserInteractiveSessionControllerOptions } from "./sandbox-CQ2YTLtO.js";
|
|
2
2
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CcaBTVg3.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
4
|
-
import { $ as
|
|
5
|
-
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, 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, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-
|
|
4
|
+
import { $ as DriverType, $i as TokenUsage, $n as RolloutChildResult, $r as SandboxStatus, $t as GpuLeaseManager, A as CommitTaskSessionOptions, Ai as SessionStatus, An as ProcessManager, Ar as SandboxFleetManifestMachine, At as FleetDispatchStreamOptions, B as CreateSandboxOptions, Bi as StorageConfig, Bn as ProvisionStep, Br as SandboxFleetWorkspaceReconcileResult, Bt as ForkLookupOptions, C as BranchOptions, Ci as SessionForkOptions, Cn as PreviewLinkInfo, Cr as SandboxFleetInfo, Ct as FileTreeResult, Di as SessionMessage, Dn as ProcessInfo, Dr as SandboxFleetMachineRecord, Dt as FleetDispatchCancelResult, Ei as SessionListOptions, En as Process, Er as SandboxFleetMachineMeteredUsage, Et as FileWriteResult, F as CreateIntelligenceReportOptions, Fi as SnapshotOptions, Fn as PromptOptions, Fr as SandboxFleetTraceEvent, Ft as FleetMachineId, G as DirectoryPermission, Gi as TaskSessionInfo, Gn as ReapExpiredSandboxFleetsOptions, Gr as SandboxIntelligenceEnvelope, Gt as GitConfig, H as CreateTaskSessionOptions, Hi as TaskSessionChanges, Hn as PublicTemplateVersionInfo, Hr as SandboxFleetWorkspaceSnapshotResult, Ht as GitAuth, I as CreateRequestOptions, Ii as SnapshotResult, In as PromptResult, Ir as SandboxFleetTraceExport, It as FleetPromptDispatchOptions, J as DownloadOptions, Ji as TeeAttestationReport, Jn as ReconcileSandboxFleetsResult, Jr as SandboxRemovalState, Jt as GpuLease, K as DispatchPromptOptions, Ki as TaskSessionProfile, Kn as ReapExpiredSandboxFleetsResult, Kr as SandboxPortBinding, Kt as GitDiff, L as CreateSandboxFleetOptions, Ln as ProvisionEvent, Lr as SandboxFleetTraceOptions, M as ConversationTurnOptions, Mi as SnapshotDeleteOutcome, Mn as ProcessSpawnOptions, Mr as SandboxFleetPolicy, Mt as FleetDriveTurnRequest, N as ConversationTurnResult, Ni as SnapshotIdempotency, Nn as ProcessStatus, Nr as SandboxFleetToken, Nt as FleetExecDispatchOptions, Oi as SessionMessageInputPart, On as ProcessListOptions, Or as SandboxFleetMachineSpec, Ot as FleetDispatchResultBuffer, P as CreateGpuLeaseOptions, Pi as SnapshotInfo, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Q as DriverInfo, Qi as TokenRefreshHandler, Qn as Rollout, Qr as SandboxRuntimeHealth, Qt as GpuLeaseExecResult, Ri as StartupDiagnostics, Rn as ProvisionResult, Rr as SandboxFleetUsage, Rt as ForkCounts, S as BatchTaskResult, Si as SessionFailureReason, Sn as PermissionsManager, Sr as SandboxFleetDriverTimings, St as FileTreeOptions, T as ChunkedUploadResult, Ti as SessionInterruptOptions, Tn as PreviewLinkWaitOptions, Tr as SandboxFleetMachine, Tt as FileUsageResult, U as DeleteOptions, Ui as TaskSessionCommitResult, Un as PublishPublicTemplateOptions, Ur as SandboxIdentity, Ut as GitBranch, V as CreateSessionOptions, Vi as SubscriptionInfo, Vn as PublicTemplateInfo, Vr as SandboxFleetWorkspaceRestoreResult, Vt as GPU_LEASE_PROVIDER_NAMES, W as DevServerInfo, Wi as TaskSessionFileChange, Wn as PublishPublicTemplateVersionOptions, Wr as SandboxInfo, Wt as GitCommit, X as DriveTurnOptions, Xi as TeePublicKey, Xr as SandboxResources, Xt as GpuLeaseCommandResult, Y as DownloadProgress, Yi as TeeAttestationResponse, Yn as RenameOptions, Yr as SandboxResourceUsage, Yt as GpuLeaseBilling, Z as DriverConfig, Zi as TeePublicKeyResponse, Zr as SandboxRuntimeCapabilities, Zt as GpuLeaseExecOptions, _ as BatchBackend, _a as ALL_BACKEND_TYPES, _i as SentSessionMessage, _n as MkdirOptions, _r as SandboxFleetArtifactSpec, _t as FileReadError, aa as WaitForOptions, ai as SandboxTerminals, an as IntelligenceReport, ar as SSHCommandDescriptor, at as EffectiveBackendSource, b as BatchRunRequest, bi as SessionExecutionInfo, bn as NonHostAgentDriverConfig, br as SandboxFleetDispatchResponse, bt as FileSystem, c as AttachGpuLeaseOptions, ca as WriteFileOptions, ci as SandboxTraceExport, cn as IntelligenceReportSubjectType, cr as SandboxConnection, ct as EgressPolicy, d as BackendConfig, da as BatchBackendStats, di as SearchMatch, dn as ListMessagesOptions, dr as SandboxDeleteAcknowledgement, dt as ExactProcessSpawnOptions, ea as TurnDriveResult, ei as SandboxTerminalAttachOptions, en as GpuLeaseProviderName, er as RolloutOptions, et as DurablePlan, f as BackendInfo, fa as BatchEvent, fi as SearchOptions, fn as ListOptions, fr as SandboxDeleteOptions, ft as ExecOptions, g as BackendStatus, ga as PublicBatchRunRequest, gi as SendSessionMessageRequest, gn as McpServerConfig, gr as SandboxFleetArtifact, gt as FileReadBatchResult, h as BackendRuntimeConfigUpdate, ha as BatchTaskUsage, hi as SendSessionMessageOptions, hn as MAX_EGRESS_DENIALS_LIMIT, hr as SandboxEvent, ht as FileReadBatchOptions, ia as UsageInfo, ii as SandboxTerminalRequestOptions, in as InstalledTool, ir as RolloutTurnPart, it as EffectiveBackendProfile, j as CompletedTurnResult, ji as SnapshotDeleteAcknowledgement, jn as ProcessSignal, jr as SandboxFleetOperationsSummary, jt as FleetDriveTurnOutcome, ki as SessionResultOptions, kn as ProcessLogEntry, kr as SandboxFleetManifest, kt as FleetDispatchResultBufferOptions, l as AttachSandboxFleetMachineOptions, la as WriteManyFile, li as SandboxTraceOptions, ln as IntelligenceReportWindow, lr as SandboxCreateOutcome, lt as EnsureDevServerOptions, m as BackendMcpServerStatus, ma as BatchSidecarGroup, mi as SecretsManager, mn as ListSandboxOptions, mr as SandboxEnvironment, mt as FileInfo, n as AccessPolicyRule, na as UploadOptions, ni as SandboxTerminalInfo, nn as HostAgentDriverConfig, nr as RolloutStartResult, oa as WaitForRolloutOptions, oi as SandboxTraceBundle, on as IntelligenceReportBudget, or as SSHCredentials, ot as EgressDenial, p as BackendManager, pa as BatchEventDataMap, pi as SecretInfo, pn as ListSandboxFleetOptions, pr as SandboxDeleteOutcome, pt as ExecResult, q as DispatchedSession, qi as TeeAttestationOptions, qn as ReconcileSandboxFleetsOptions, qr as SandboxPortPreviewLink, qt as GitStatus, r as AddUserOptions, ra as UploadProgress, ri as SandboxTerminalManager, rn as HostAgentRuntimeBackend, rr as RolloutStatus, rt as EffectiveBackend, sa as WorkspaceOperationLookup, si as SandboxTraceEvent, sn as IntelligenceReportCompareTo, sr as SandboxConfig, st as EgressManager, t as AcceleratorKind, ta as UpdateUserOptions, ti as SandboxTerminalCreateOptions, tn as GpuLeaseStatus, tr as RolloutScorer, tt as DurablePlanDecisionResult, u as BackendCapabilities, ua as WriteManyOptions, ui as SandboxUser, ur as SandboxCreateReceipt, ut as EventStreamOptions, v as BatchResult, va as BackendType, vi as SessionBackendCredentials, vn as NetworkConfig, vr as SandboxFleetCostEstimate, vt as FileReadResult, w as ChunkedUploadOptions, wi as SessionInfo, wn as PreviewLinkManager, wr as SandboxFleetIntelligenceEnvelope, wt as FileUsageOptions, x as BatchTask, xi as SessionExecutionStatus, xn as PermissionLevel, xr as SandboxFleetDriverCapability, xt as FileTreeFile, y as BatchRunOptions, ya as parseBackendType, yi as SessionEventStreamOptions, yn as NetworkManager, yr as SandboxFleetDispatchFailureClass, yt as FileRenameResult, z as CreateSandboxFleetWithCoordinatorOptions, zi as StartupOperation, zn as ProvisionStatus, zr as SandboxFleetWorkspace, zt as ForkIdempotency } from "./types-B3C-MizG.js";
|
|
5
|
+
import { C as isBackendRegistryInteractionKind, S as backendRegistryResponseSchema, T as parseBackendRegistryResponseBody, _ as BackendRegistryInteractionKind, a as Team, b as backendRegistryEntrySchema, c as SessionBroadcastEvent, d as SandboxFleetClient, f as ParseSSEStreamOptions, g as BackendRegistryEntry, h as BackendRegistryCapabilities, 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, v as BackendRegistryResponse, w as parseBackendRegistryResponse, x as backendRegistryInteractionKindSchema, y as backendRegistryCapabilitiesSchema } from "./client-C_mFKZwS.js";
|
|
6
6
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-CS-t6tPU.js";
|
|
7
7
|
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-BzAxTiqF.js";
|
|
8
8
|
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, i as EgressProxyRecoveryError, l as PartialFailureError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxFailureDetail, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
9
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
9
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BpQhOdXp.js";
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DT_pNtbV.js";
|
|
11
11
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
12
12
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
13
13
|
import { z } from "zod";
|
|
@@ -4438,4 +4438,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4438
4438
|
}
|
|
4439
4439
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4440
4440
|
//#endregion
|
|
4441
|
-
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, 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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, 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, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, 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 DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, 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, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, 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, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, 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 InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, 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 SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, 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 SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, 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 SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, 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 TerminalInteractiveSessionIdentity, type TerminalOutputMessage, 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 WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4441
|
+
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, 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 AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, 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, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, 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 ConversationTurnOptions, type ConversationTurnResult, 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 DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, 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, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, 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, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, 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 InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, 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 SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, 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 SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, 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 SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, 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 TerminalInteractiveSessionIdentity, type TerminalOutputMessage, 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 WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as deriveAgentRunOutcome, b as parseBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, m as normalizeRuntimeBackendConfig, u as parseSSEStream, v as ALL_BACKEND_TYPES, y as backendTypeSchema } from "./runtime-api-
|
|
1
|
+
import { _ as deriveAgentRunOutcome, b as parseBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, m as normalizeRuntimeBackendConfig, u as parseSSEStream, v as ALL_BACKEND_TYPES, y as backendTypeSchema } from "./runtime-api-C10Hg1OF.js";
|
|
2
2
|
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, i as EgressProxyRecoveryError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, o as KeyBudgetExhaustedError, p as StateError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
|
-
import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as splitInlineProfileFileMounts, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as validateDeferredProfileFileMounts, p as backendRegistryEntrySchema, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
+
import { _ as parseBackendRegistryResponse, a as splitInlineProfileSkills, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as splitInlineProfileFileMounts, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as validateDeferredProfileFileMounts, p as backendRegistryEntrySchema, r as materializeProfileFileMounts, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-C2AGfwGT.js";
|
|
4
4
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, c as createInteractiveControlHolderId, l as interactiveSessionIdentityDigest, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
5
|
-
import { A as toOtelJson, C as collectAgentResponseText, D as buildTraceExportPayload, O as exportTraceBundle, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as otelTraceIdForTangleTrace, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-
|
|
5
|
+
import { A as toOtelJson, C as collectAgentResponseText, D as buildTraceExportPayload, O as exportTraceBundle, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, k as otelTraceIdForTangleTrace, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-9IUdHeyj.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DilBgjXG.js";
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-B-w03_fQ.js";
|
|
8
8
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/confidential.ts
|
|
@@ -1305,6 +1305,7 @@ var SandboxRuntimeApi = class {
|
|
|
1305
1305
|
body: JSON.stringify({
|
|
1306
1306
|
...options.sessionId !== void 0 ? { sessionId: options.sessionId } : {},
|
|
1307
1307
|
...options.title !== void 0 ? { title: options.title } : {},
|
|
1308
|
+
...options.retention !== void 0 ? { retention: options.retention } : {},
|
|
1308
1309
|
...options.parentId !== void 0 ? { parentID: options.parentId } : {},
|
|
1309
1310
|
...backend && Object.keys(backend).length > 0 ? { backend } : {}
|
|
1310
1311
|
})
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as CommitTaskSessionOptions, Ct as FileTreeResult, Di as SessionMessage, Et as FileWriteResult, Gi as TaskSessionInfo, H as CreateTaskSessionOptions, Hi as TaskSessionChanges, Kr as SandboxPortBinding, Qr as SandboxRuntimeHealth, St as FileTreeOptions, T as ChunkedUploadResult, Tt as FileUsageResult, Ui as TaskSessionCommitResult, V as CreateSessionOptions, Yn as RenameOptions, _i as SentSessionMessage, bi as SessionExecutionInfo, ca as WriteFileOptions, dn as ListMessagesOptions, gi as SendSessionMessageRequest, gt as FileReadBatchResult, hi as SendSessionMessageOptions, hr as SandboxEvent, ht as FileReadBatchOptions, ii as SandboxTerminalRequestOptions, ni as SandboxTerminalInfo, ra as UploadProgress, ri as SandboxTerminalManager, ti as SandboxTerminalCreateOptions, w as ChunkedUploadOptions, wi as SessionInfo, wt as FileUsageOptions, xi as SessionExecutionStatus, yi as SessionEventStreamOptions, yt as FileRenameResult } from "./types-B3C-MizG.js";
|
|
2
2
|
import { _ as ValidationError, a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as SandboxErrorJson, g as TimeoutError, h as StateError, l as PartialFailureError, m as ServerError, n as CapabilityError, p as SandboxFailureDetail, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-BoD3Ifbd.js";
|
|
3
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
3
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BpQhOdXp.js";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/chunked-upload.d.ts
|
|
6
6
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as deriveAgentRunOutcome, a as uploadChunked, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, t as SandboxRuntimeApi } from "./runtime-api-
|
|
1
|
+
import { _ as deriveAgentRunOutcome, a as uploadChunked, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, t as SandboxRuntimeApi } from "./runtime-api-C10Hg1OF.js";
|
|
2
2
|
import { a as FileWriteConflictError, c as NotFoundError, d as SandboxError, f as ServerError, h as ValidationError, l as PartialFailureError, m as TimeoutError, n as CapabilityError, p as StateError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { n as combineAbortSignals } from "./abort-signal-si1WMfJb.js";
|
|
4
4
|
//#region src/runtime-client.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as uploadChunked, c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, i as sessionHeaders, m as normalizeRuntimeBackendConfig, n as normalizeSessionInfo, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as mergeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi, u as parseSSEStream } from "./runtime-api-
|
|
1
|
+
import { a as uploadChunked, c as encodePromptForWire, d as applyRequestedModel, f as assertCurrentBackendType, g as deriveAgentResultOutcome, h as createAgentRunOutcomeTracker, i as sessionHeaders, m as normalizeRuntimeBackendConfig, n as normalizeSessionInfo, o as SANDBOX_PROXY_REQUEST_MAX_BYTES, p as mergeRuntimeBackendConfig, r as appendSessionIdQuery, t as SandboxRuntimeApi, u as parseSSEStream } from "./runtime-api-C10Hg1OF.js";
|
|
2
2
|
import { c as NotFoundError, d as SandboxError, f as ServerError, g as parseErrorResponse, h as ValidationError, m as TimeoutError, n as CapabilityError, p as StateError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CdDyExth.js";
|
|
3
3
|
import { c as createInteractiveControlHolderId, d as interactiveSessionControlReleaseResponseSchema, f as interactiveSessionControlValidationResponseSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, p as interactiveSessionStatusResponseSchema, r as browserInteractiveTerminalEndpoint, s as assertInteractiveSessionRef, u as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
4
4
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-si1WMfJb.js";
|
|
@@ -3591,10 +3591,35 @@ const MAX_TIMER_MS = 2147483647;
|
|
|
3591
3591
|
*/
|
|
3592
3592
|
function usableTimeoutMs(timeoutMs) {
|
|
3593
3593
|
if (timeoutMs === void 0) return void 0;
|
|
3594
|
-
|
|
3594
|
+
const got = timerMsViolation(timeoutMs);
|
|
3595
|
+
if (got !== void 0) throw new RangeError(`timeoutMs must be an integer between 1 and ${MAX_TIMER_MS}ms; got ${got}`);
|
|
3595
3596
|
return { timeoutMs };
|
|
3596
3597
|
}
|
|
3597
3598
|
/**
|
|
3599
|
+
* The execution time limit to send, or `undefined` when the caller supplied
|
|
3600
|
+
* none and the runtime default applies. A supplied value the runtime would
|
|
3601
|
+
* refuse (non-integer, non-positive, or wider than a timer can hold) is a
|
|
3602
|
+
* caller bug and fails here, before the request is dispatched.
|
|
3603
|
+
*/
|
|
3604
|
+
function usableExecutionTtlMs(ttlMs) {
|
|
3605
|
+
if (ttlMs === void 0) return void 0;
|
|
3606
|
+
const got = timerMsViolation(ttlMs);
|
|
3607
|
+
if (got !== void 0) throw new ValidationError(`ttlMs must be an integer between 1 and ${MAX_TIMER_MS}ms; got ${got}`, { ttlMs: "Must be a positive integer of milliseconds" });
|
|
3608
|
+
return ttlMs;
|
|
3609
|
+
}
|
|
3610
|
+
/**
|
|
3611
|
+
* `undefined` when `value` is a duration a timer can hold (a positive integer
|
|
3612
|
+
* of milliseconds within the 32-bit field), else a description of what was
|
|
3613
|
+
* passed. The runtime `typeof` guard stays although the type says number: a
|
|
3614
|
+
* `Symbol` from an untyped JavaScript caller reaches here, and `${value}` on
|
|
3615
|
+
* one throws TypeError before the intended error could be built — the wrong
|
|
3616
|
+
* error for the wrong reason.
|
|
3617
|
+
*/
|
|
3618
|
+
function timerMsViolation(value) {
|
|
3619
|
+
if (typeof value === "number" && Number.isInteger(value) && value > 0 && value <= MAX_TIMER_MS) return;
|
|
3620
|
+
return typeof value === "number" ? String(value) : typeof value;
|
|
3621
|
+
}
|
|
3622
|
+
/**
|
|
3598
3623
|
* A sandbox instance with methods for interaction.
|
|
3599
3624
|
*/
|
|
3600
3625
|
var SandboxInstance = class SandboxInstance {
|
|
@@ -4249,7 +4274,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4249
4274
|
* Returns the complete response after the agent finishes.
|
|
4250
4275
|
*/
|
|
4251
4276
|
async prompt(message, options) {
|
|
4252
|
-
await this.ensureRunning();
|
|
4277
|
+
if (options?.ttlMs === void 0 || timerMsViolation(options.ttlMs) === void 0) await this.ensureRunning();
|
|
4253
4278
|
const startTime = Date.now();
|
|
4254
4279
|
let responseText;
|
|
4255
4280
|
const outcomeTracker = createAgentRunOutcomeTracker();
|
|
@@ -4459,6 +4484,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4459
4484
|
const runControlRef = options?.runControlRef ? AgentExactRunControlRefSchema.safeParse(options.runControlRef) : void 0;
|
|
4460
4485
|
if (runControlRef && !runControlRef.success) throw new ValidationError("Invalid runControlRef", { runControlRef: runControlRef.error.message });
|
|
4461
4486
|
if (runControlRef?.success && (runControlRef.data.environmentId !== this.id || runControlRef.data.sessionId !== options?.sessionId || runControlRef.data.executionId !== options?.executionId)) throw new ValidationError("runControlRef does not belong to this sandbox dispatch", { runControlRef: "environmentId, sessionId, and executionId must match the dispatch" });
|
|
4487
|
+
const ttlMs = usableExecutionTtlMs(options?.ttlMs);
|
|
4462
4488
|
await this.ensureRunning();
|
|
4463
4489
|
const timeoutMs = typeof options?.timeoutMs === "number" && options.timeoutMs > 0 ? options.timeoutMs : void 0;
|
|
4464
4490
|
const timeoutSignal = timeoutMs ? AbortSignal.timeout(timeoutMs) : void 0;
|
|
@@ -4524,6 +4550,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4524
4550
|
metadata: options?.context,
|
|
4525
4551
|
requireVisibleAssistantOutput: options?.requireVisibleAssistantOutput,
|
|
4526
4552
|
...timeoutMs ? { timeoutMs } : {},
|
|
4553
|
+
...ttlMs !== void 0 ? { ttlMs } : {},
|
|
4527
4554
|
...options?.detach ? { detach: true } : {},
|
|
4528
4555
|
backend: this.buildRunBackendBody(options?.backend, internal?.forceFullProfile ?? false, options?.model)
|
|
4529
4556
|
})
|
|
@@ -6009,7 +6036,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6009
6036
|
return {
|
|
6010
6037
|
get: () => this.egressGet(),
|
|
6011
6038
|
update: (policy) => this.egressUpdate(policy),
|
|
6012
|
-
denials: (options) => this.egressDenials(options)
|
|
6039
|
+
denials: (options) => this.egressDenials(options),
|
|
6040
|
+
activity: (options) => this.egressActivity(options)
|
|
6013
6041
|
};
|
|
6014
6042
|
}
|
|
6015
6043
|
/**
|
|
@@ -6144,6 +6172,67 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6144
6172
|
}
|
|
6145
6173
|
return denials;
|
|
6146
6174
|
}
|
|
6175
|
+
/**
|
|
6176
|
+
* What the sandbox reached, and whether that is decidable.
|
|
6177
|
+
*
|
|
6178
|
+
* Every malformed answer leaves as a typed `ServerError` rather than a
|
|
6179
|
+
* defaulted record. That matters more here than on `denials()`: a caller uses
|
|
6180
|
+
* this to establish a NEGATIVE claim, so inventing a `complete: true` record
|
|
6181
|
+
* from a broken response would manufacture the very proof it came for.
|
|
6182
|
+
*/
|
|
6183
|
+
async egressActivity(options) {
|
|
6184
|
+
const limit = options?.limit;
|
|
6185
|
+
if (limit !== void 0) {
|
|
6186
|
+
if (!Number.isInteger(limit) || limit < 1) throw new ValidationError(`egress activity limit must be a positive integer, got ${limit}`);
|
|
6187
|
+
if (limit > 500) throw new ValidationError(`egress activity limit must be at most 500, got ${limit}`);
|
|
6188
|
+
}
|
|
6189
|
+
const query = limit === void 0 ? "" : `?limit=${encodeURIComponent(limit)}`;
|
|
6190
|
+
const response = await this.client.fetch(`/v1/sandboxes/${encodeURIComponent(this.id)}/egress/activity${query}`);
|
|
6191
|
+
if (!response.ok) {
|
|
6192
|
+
const body = await response.text();
|
|
6193
|
+
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
6194
|
+
}
|
|
6195
|
+
let body;
|
|
6196
|
+
try {
|
|
6197
|
+
body = await response.json();
|
|
6198
|
+
} catch (cause) {
|
|
6199
|
+
const error = new ServerError("Egress activity response was malformed: body is not valid JSON", 502);
|
|
6200
|
+
error.cause = cause;
|
|
6201
|
+
throw error;
|
|
6202
|
+
}
|
|
6203
|
+
if (typeof body !== "object" || body === null || Array.isArray(body)) throw new ServerError("Egress activity response was malformed: body is not an object", 502);
|
|
6204
|
+
const raw = body.activity;
|
|
6205
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) throw new ServerError("Egress activity response was malformed: activity is not a record", 502);
|
|
6206
|
+
const record = raw;
|
|
6207
|
+
if (typeof record.complete !== "boolean" || typeof record.requestsObserved !== "number" || !Number.isInteger(record.requestsObserved) || record.requestsObserved < 0 || typeof record.unparsedLines !== "number" || !Number.isInteger(record.unparsedLines) || record.unparsedLines < 0 || !Array.isArray(record.destinations) || !Array.isArray(record.incompleteReasons) || !record.incompleteReasons.every((one) => typeof one === "string") || record.complete !== (record.incompleteReasons.length === 0)) throw new ServerError("Egress activity response was malformed: activity is not an activity record", 502);
|
|
6208
|
+
const destinations = [];
|
|
6209
|
+
for (const [index, entry] of record.destinations.entries()) {
|
|
6210
|
+
const row = entry;
|
|
6211
|
+
if (typeof row !== "object" || row === null || typeof row.host !== "string" || row.host.length === 0 || row.action !== "allow" && row.action !== "reject" || typeof row.count !== "number" || !Number.isInteger(row.count) || row.count < 0 || ![
|
|
6212
|
+
"firstAt",
|
|
6213
|
+
"lastAt",
|
|
6214
|
+
"rejectedBy"
|
|
6215
|
+
].every((field) => {
|
|
6216
|
+
const value = row[field];
|
|
6217
|
+
return value === void 0 || value === null || typeof value === "string";
|
|
6218
|
+
})) throw new ServerError(`Egress activity response was malformed: destination ${index} is not a destination`, 502);
|
|
6219
|
+
destinations.push({
|
|
6220
|
+
host: row.host,
|
|
6221
|
+
action: row.action,
|
|
6222
|
+
count: row.count,
|
|
6223
|
+
...typeof row.firstAt === "string" ? { firstAt: row.firstAt } : {},
|
|
6224
|
+
...typeof row.lastAt === "string" ? { lastAt: row.lastAt } : {},
|
|
6225
|
+
...typeof row.rejectedBy === "string" ? { rejectedBy: row.rejectedBy } : {}
|
|
6226
|
+
});
|
|
6227
|
+
}
|
|
6228
|
+
return {
|
|
6229
|
+
destinations,
|
|
6230
|
+
requestsObserved: record.requestsObserved,
|
|
6231
|
+
unparsedLines: record.unparsedLines,
|
|
6232
|
+
complete: record.complete,
|
|
6233
|
+
incompleteReasons: record.incompleteReasons
|
|
6234
|
+
};
|
|
6235
|
+
}
|
|
6147
6236
|
async gpuAttach(options) {
|
|
6148
6237
|
const response = await this.client.fetch(`/v1/sandboxes/${encodeURIComponent(this.id)}/gpu/leases`, {
|
|
6149
6238
|
method: "POST",
|
|
@@ -7741,6 +7830,104 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7741
7830
|
});
|
|
7742
7831
|
return { state: "running" };
|
|
7743
7832
|
}
|
|
7833
|
+
/** Advance exactly the named turn while retaining the native conversation.
|
|
7834
|
+
* Admission receipts are independent of expiring event logs. A previous
|
|
7835
|
+
* turn's terminal session status cannot settle a newly submitted message. */
|
|
7836
|
+
async driveConversationTurn(message, opts) {
|
|
7837
|
+
if (!opts.sessionId || !opts.turnId) throw new Error("Conversation sessionId and turnId are required");
|
|
7838
|
+
if (opts.wallCapMs !== void 0 && (!Number.isFinite(opts.wallCapMs) || opts.wallCapMs <= 0)) throw new Error("wallCapMs must be a positive finite duration");
|
|
7839
|
+
const cached = await this.findCompletedTurn(opts.turnId, { sessionId: opts.sessionId });
|
|
7840
|
+
let info = await this._sessionStatus(opts.sessionId);
|
|
7841
|
+
if (!info) {
|
|
7842
|
+
if (cached) throw new StateError("Retained result has no verifiable conversation admission", "unverified", "verified admission", void 0, "MESSAGE_ADMISSION_UNVERIFIED");
|
|
7843
|
+
if (opts.allowDispatch === false) return { state: "not_admitted" };
|
|
7844
|
+
await this.createSession({
|
|
7845
|
+
sessionId: opts.sessionId,
|
|
7846
|
+
retention: "workspace"
|
|
7847
|
+
});
|
|
7848
|
+
info = await this._sessionStatus(opts.sessionId);
|
|
7849
|
+
if (!info) throw new Error("Conversation session creation was not confirmed");
|
|
7850
|
+
}
|
|
7851
|
+
const response = await this.runtimeFetch(`/agents/sessions/${encodeURIComponent(opts.sessionId)}/admissions/${encodeURIComponent(opts.turnId)}/check`, {
|
|
7852
|
+
method: "POST",
|
|
7853
|
+
headers: { "Content-Type": "application/json" },
|
|
7854
|
+
body: JSON.stringify({
|
|
7855
|
+
parts: encodePromptForWire(message),
|
|
7856
|
+
turnId: opts.turnId
|
|
7857
|
+
}),
|
|
7858
|
+
signal: opts.signal
|
|
7859
|
+
});
|
|
7860
|
+
if (!response.ok) throw parseErrorResponse(response.status, await response.text(), void 0, response.headers);
|
|
7861
|
+
const body = await response.json();
|
|
7862
|
+
if (body.requestVerified !== true || !Object.hasOwn(body, "receipt")) throw new Error("Runtime did not verify the durable message admission request");
|
|
7863
|
+
let executionId;
|
|
7864
|
+
if (body.receipt === null) {
|
|
7865
|
+
if (cached) throw new StateError("Retained result has no matching request evidence", "unverified", "verified admission", void 0, "MESSAGE_ADMISSION_UNVERIFIED");
|
|
7866
|
+
if (opts.allowDispatch === false) return { state: "not_admitted" };
|
|
7867
|
+
if (isSessionInFlight(info)) return { state: "running" };
|
|
7868
|
+
const parts = typeof message === "string" ? [{
|
|
7869
|
+
type: "text",
|
|
7870
|
+
text: message
|
|
7871
|
+
}] : message;
|
|
7872
|
+
const receipt = await this.session(opts.sessionId).sendMessage({
|
|
7873
|
+
parts: [...parts],
|
|
7874
|
+
turnId: opts.turnId
|
|
7875
|
+
}, {
|
|
7876
|
+
...opts.timeoutMs !== void 0 ? { timeoutMs: opts.timeoutMs } : {},
|
|
7877
|
+
...opts.signal ? { signal: opts.signal } : {}
|
|
7878
|
+
});
|
|
7879
|
+
if (!receipt.info?.id) throw new Error("Message admission returned no execution identity");
|
|
7880
|
+
return {
|
|
7881
|
+
state: "running",
|
|
7882
|
+
executionId: receipt.info.id
|
|
7883
|
+
};
|
|
7884
|
+
}
|
|
7885
|
+
if (typeof body.receipt?.info?.id !== "string" || !body.receipt.info.id || body.receipt.processing !== true) throw new Error("Runtime returned an invalid message admission receipt");
|
|
7886
|
+
executionId = body.receipt.info.id;
|
|
7887
|
+
if (cached) return {
|
|
7888
|
+
...settleTurnDrive(cached.result),
|
|
7889
|
+
executionId
|
|
7890
|
+
};
|
|
7891
|
+
const run = (await this._sessionRuns(opts.sessionId)).find((candidate) => candidate.executionId === executionId);
|
|
7892
|
+
if (run?.status === "active") {
|
|
7893
|
+
const elapsedMs = Date.now() - run.startedAt;
|
|
7894
|
+
if (opts.wallCapMs !== void 0 && elapsedMs > opts.wallCapMs) {
|
|
7895
|
+
await this._interrupt(opts.sessionId, { executionId });
|
|
7896
|
+
return {
|
|
7897
|
+
state: "failed",
|
|
7898
|
+
executionId,
|
|
7899
|
+
error: "Conversation turn exceeded its authorized wall-clock duration"
|
|
7900
|
+
};
|
|
7901
|
+
}
|
|
7902
|
+
const requests = (await this.session(opts.sessionId).interactions()).filter((request) => request.binding.executionId === executionId);
|
|
7903
|
+
if (requests.length) return {
|
|
7904
|
+
state: "awaiting_input",
|
|
7905
|
+
executionId,
|
|
7906
|
+
requests
|
|
7907
|
+
};
|
|
7908
|
+
return {
|
|
7909
|
+
state: "running",
|
|
7910
|
+
executionId,
|
|
7911
|
+
startedAt: new Date(run.startedAt),
|
|
7912
|
+
elapsedMs
|
|
7913
|
+
};
|
|
7914
|
+
}
|
|
7915
|
+
if (!run) {
|
|
7916
|
+
const completed = await this.findCompletedTurn(opts.turnId, { sessionId: opts.sessionId });
|
|
7917
|
+
return completed ? {
|
|
7918
|
+
...settleTurnDrive(completed.result),
|
|
7919
|
+
executionId
|
|
7920
|
+
} : {
|
|
7921
|
+
state: "failed",
|
|
7922
|
+
executionId,
|
|
7923
|
+
error: "The admitted turn's result is unavailable; execution was not repeated"
|
|
7924
|
+
};
|
|
7925
|
+
}
|
|
7926
|
+
return {
|
|
7927
|
+
...settleTurnDrive({ ...await this._sessionResult(opts.sessionId, { executionId }, info) }),
|
|
7928
|
+
executionId
|
|
7929
|
+
};
|
|
7930
|
+
}
|
|
7744
7931
|
/**
|
|
7745
7932
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
7746
7933
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CcaBTVg3.js";
|
|
2
2
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $r as SandboxStatus, $t as GpuLeaseManager, A as CommitTaskSessionOptions, An as ProcessManager, Bt as ForkLookupOptions, C as BranchOptions, Ci as SessionForkOptions, D as CodeExecutionResult, Di as SessionMessage, E as CodeExecutionOptions, Ei as SessionListOptions, Et as FileWriteResult, Fi as SnapshotOptions, Fn as PromptOptions, Gi as TaskSessionInfo, H as CreateTaskSessionOptions, Hi as TaskSessionChanges, Ii as SnapshotResult, In as PromptResult, Jt as GpuLease, K as DispatchPromptOptions, Kr as SandboxPortBinding, Kt as GitDiff, Ln as ProvisionEvent, M as ConversationTurnOptions, N as ConversationTurnResult, O as CodeLanguage, Pi as SnapshotInfo, Pn as PromptInputPart, Pr as SandboxFleetTraceBundle, Q as DriverInfo, Qn as Rollout, Qr as SandboxRuntimeHealth, Ri as StartupDiagnostics, Rn as ProvisionResult, Rt as ForkCounts, Sn as PermissionsManager, Ti as SessionInterruptOptions, Ui as TaskSessionCommitResult, Ut as GitBranch, V as CreateSessionOptions, Wr as SandboxInfo, Wt as GitCommit, X as DriveTurnOptions, Xn as RestoreSnapshotOptions, Yi as TeeAttestationResponse, Yr as SandboxResourceUsage, Zi as TeePublicKeyResponse, Zn as ResumeOptions, Zr as SandboxRuntimeCapabilities, _i as SentSessionMessage, aa as WaitForOptions, ai as SandboxTerminals, an as IntelligenceReport, ar as SSHCommandDescriptor, bi as SessionExecutionInfo, bt as FileSystem, ca as WriteFileOptions, cr as SandboxConnection, d as BackendConfig, di as SearchMatch, dn as ListMessagesOptions, dr as SandboxDeleteAcknowledgement, ea as TurnDriveResult, ei as SandboxTerminalAttachOptions, er as RolloutOptions, et as DurablePlan, fi as SearchOptions, fr as SandboxDeleteOptions, ft as ExecOptions, gi as SendSessionMessageRequest, hi as SendSessionMessageOptions, hr as SandboxEvent, in as InstalledTool, j as CompletedTurnResult, ji as SnapshotDeleteAcknowledgement, ki as SessionResultOptions, la as WriteManyFile, li as SandboxTraceOptions, ln as IntelligenceReportWindow, nr as RolloutStartResult, oa as WaitForRolloutOptions, oi as SandboxTraceBundle, on as IntelligenceReportBudget, or as SSHCredentials, p as BackendManager, pt as ExecResult, q as DispatchedSession, qi as TeeAttestationOptions, qt as GitStatus, sa as WorkspaceOperationLookup, sn as IntelligenceReportCompareTo, st as EgressManager, tt as DurablePlanDecisionResult, ua as WriteManyOptions, un as JsonValue, ur as SandboxCreateReceipt, ut as EventStreamOptions, wi as SessionInfo, wn as PreviewLinkManager, yi as SessionEventStreamOptions, yn as NetworkManager, zt as ForkIdempotency } from "./types-B3C-MizG.js";
|
|
4
4
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -1467,6 +1467,15 @@ declare class SandboxInstance {
|
|
|
1467
1467
|
private egressGet;
|
|
1468
1468
|
private egressUpdate;
|
|
1469
1469
|
private egressDenials;
|
|
1470
|
+
/**
|
|
1471
|
+
* What the sandbox reached, and whether that is decidable.
|
|
1472
|
+
*
|
|
1473
|
+
* Every malformed answer leaves as a typed `ServerError` rather than a
|
|
1474
|
+
* defaulted record. That matters more here than on `denials()`: a caller uses
|
|
1475
|
+
* this to establish a NEGATIVE claim, so inventing a `complete: true` record
|
|
1476
|
+
* from a broken response would manufacture the very proof it came for.
|
|
1477
|
+
*/
|
|
1478
|
+
private egressActivity;
|
|
1470
1479
|
private gpuAttach;
|
|
1471
1480
|
private gpuList;
|
|
1472
1481
|
private gpuExec;
|
|
@@ -1980,6 +1989,10 @@ declare class SandboxInstance {
|
|
|
1980
1989
|
* callers can treat it as terminal without their own retry bookkeeping.
|
|
1981
1990
|
*/
|
|
1982
1991
|
driveTurn(message: string | PromptInputPart[], opts: DriveTurnOptions): Promise<TurnDriveResult>;
|
|
1992
|
+
/** Advance exactly the named turn while retaining the native conversation.
|
|
1993
|
+
* Admission receipts are independent of expiring event logs. A previous
|
|
1994
|
+
* turn's terminal session status cannot settle a newly submitted message. */
|
|
1995
|
+
driveConversationTurn(message: string | PromptInputPart[], opts: ConversationTurnOptions): Promise<ConversationTurnResult>;
|
|
1983
1996
|
/**
|
|
1984
1997
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
1985
1998
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-DT_pNtbV.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-B-w03_fQ.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as parseErrorResponse } from "./errors-CdDyExth.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-9IUdHeyj.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1409,6 +1409,8 @@ interface SandboxResources {
|
|
|
1409
1409
|
* ```
|
|
1410
1410
|
*/
|
|
1411
1411
|
interface CreateSandboxOptions {
|
|
1412
|
+
/** Suppress implicit owner secrets, startup scripts, and Hub authority. */
|
|
1413
|
+
ownerContext?: "inherit" | "isolated";
|
|
1412
1414
|
/**
|
|
1413
1415
|
* Environment or container image to run.
|
|
1414
1416
|
*
|
|
@@ -2553,8 +2555,29 @@ interface PromptOptions {
|
|
|
2553
2555
|
* provider, or base URL replaces the default backend configuration.
|
|
2554
2556
|
*/
|
|
2555
2557
|
backend?: Partial<BackendConfig>;
|
|
2556
|
-
/**
|
|
2558
|
+
/**
|
|
2559
|
+
* Per-run budget in milliseconds. Bounds the client-side stream and is
|
|
2560
|
+
* forwarded to the runtime, where the backend's first-output watchdog
|
|
2561
|
+
* honors it. It sets the execution's time limit only when `ttlMs` is unset,
|
|
2562
|
+
* and is then subject to the same deployment maximum as `ttlMs`.
|
|
2563
|
+
*/
|
|
2557
2564
|
timeoutMs?: number;
|
|
2565
|
+
/**
|
|
2566
|
+
* Execution time limit in milliseconds. A positive integer; the runtime
|
|
2567
|
+
* cancels the execution when it elapses and the terminal error names the
|
|
2568
|
+
* limit. A value above the deployment's maximum (six hours by default) is
|
|
2569
|
+
* refused with `EXECUTION_TTL_EXCEEDS_LIMIT` before the run starts, by the
|
|
2570
|
+
* sandbox API on proxied calls and by the runtime itself on every call. The
|
|
2571
|
+
* code is the same from both; the surrounding error body follows each
|
|
2572
|
+
* service's own envelope, so read the code rather than the shape. Unset, the
|
|
2573
|
+
* runtime falls back to `timeoutMs`, then to its one-hour default.
|
|
2574
|
+
*
|
|
2575
|
+
* This limit governs how long the run may LIVE. A blocking call that waits
|
|
2576
|
+
* for the run is separately bounded by the runtime's one-hour request
|
|
2577
|
+
* timeout; a longer limit needs a streaming or session-message call, which
|
|
2578
|
+
* answers before the run finishes.
|
|
2579
|
+
*/
|
|
2580
|
+
ttlMs?: number;
|
|
2558
2581
|
/** Additional context */
|
|
2559
2582
|
context?: Record<string, unknown>;
|
|
2560
2583
|
/**
|
|
@@ -3157,6 +3180,8 @@ interface SessionListOptions {
|
|
|
3157
3180
|
}
|
|
3158
3181
|
/** Options for creating a runtime agent session. */
|
|
3159
3182
|
interface CreateSessionOptions {
|
|
3183
|
+
/** Workspace conversations survive idle-session collection until explicitly deleted. */
|
|
3184
|
+
retention?: "idle" | "workspace";
|
|
3160
3185
|
/** Stable caller-supplied idempotency key. Repeating create with the same
|
|
3161
3186
|
* id returns the existing session without creating another workspace or
|
|
3162
3187
|
* backend session. Omit to let the runtime mint a random id. */
|
|
@@ -3451,6 +3476,25 @@ interface DispatchedSession {
|
|
|
3451
3476
|
* the turn through `SandboxSession.sendMessage()`. The session owns execution
|
|
3452
3477
|
* and gateway replay after the request returns.
|
|
3453
3478
|
*/
|
|
3479
|
+
/** Repeated messages in one native session, unlike the one-session-per-task driver. */
|
|
3480
|
+
interface ConversationTurnOptions {
|
|
3481
|
+
sessionId: string;
|
|
3482
|
+
turnId: string;
|
|
3483
|
+
/** False is a passive settlement/cancellation lookup; never admits new work. */
|
|
3484
|
+
allowDispatch?: boolean;
|
|
3485
|
+
timeoutMs?: number;
|
|
3486
|
+
signal?: AbortSignal;
|
|
3487
|
+
wallCapMs?: number;
|
|
3488
|
+
}
|
|
3489
|
+
type ConversationTurnResult = (TurnDriveResult & {
|
|
3490
|
+
executionId?: string;
|
|
3491
|
+
}) | {
|
|
3492
|
+
state: "not_admitted";
|
|
3493
|
+
} | {
|
|
3494
|
+
state: "awaiting_input";
|
|
3495
|
+
executionId: string;
|
|
3496
|
+
requests: _$_tangle_network_agent_interface0.InteractionRequest[];
|
|
3497
|
+
};
|
|
3454
3498
|
interface DriveTurnOptions {
|
|
3455
3499
|
/** Deterministic session id — required, it is the resume key. Every
|
|
3456
3500
|
* tick for the same logical turn MUST pass the same id so a re-invoke
|
|
@@ -4937,6 +4981,52 @@ interface EgressDenial {
|
|
|
4937
4981
|
}
|
|
4938
4982
|
/** Largest `limit` the denials route accepts; it rejects anything above. */
|
|
4939
4983
|
declare const MAX_EGRESS_DENIALS_LIMIT = 50;
|
|
4984
|
+
/** Whether the egress proxy allowed or refused a request. */
|
|
4985
|
+
type EgressAction = "allow" | "reject";
|
|
4986
|
+
/** One destination a sandbox reached, or was refused, in the inspected window. */
|
|
4987
|
+
interface EgressDestination {
|
|
4988
|
+
/** Destination host, port removed, e.g. "api.openai.com". */
|
|
4989
|
+
host: string;
|
|
4990
|
+
action: EgressAction;
|
|
4991
|
+
/** Requests to this host with this action, inside the inspected window. */
|
|
4992
|
+
count: number;
|
|
4993
|
+
/** ISO-8601 time of the earliest such request the window carried. */
|
|
4994
|
+
firstAt?: string;
|
|
4995
|
+
/** ISO-8601 time of the latest such request the window carried. */
|
|
4996
|
+
lastAt?: string;
|
|
4997
|
+
/** Which proxy transform refused it. Only set when `action` is "reject". */
|
|
4998
|
+
rejectedBy?: string;
|
|
4999
|
+
}
|
|
5000
|
+
/**
|
|
5001
|
+
* Why an activity record cannot support a claim that a sandbox reached nothing.
|
|
5002
|
+
*
|
|
5003
|
+
* `hop-unreachable` is the one a client is most likely to see: a layer between
|
|
5004
|
+
* this SDK and the host holding the proxy log did not answer. It is distinct
|
|
5005
|
+
* from `log-unreadable`, which means the host reached the proxy and could not
|
|
5006
|
+
* read its log.
|
|
5007
|
+
*/
|
|
5008
|
+
type EgressIncompleteReason = "window-truncated" | "unparsed-lines" | "host-limit-reached" | "log-unreadable" | "hop-unreachable";
|
|
5009
|
+
/**
|
|
5010
|
+
* What a sandbox reached in one inspected window, and whether that is decidable.
|
|
5011
|
+
*
|
|
5012
|
+
* Read `complete` before reading anything into an empty `destinations` list.
|
|
5013
|
+
* `destinations: []` with `complete: true` is evidence the sandbox reached
|
|
5014
|
+
* nothing; `destinations: []` with `complete: false` is an absence of evidence,
|
|
5015
|
+
* and `incompleteReasons` names what was missing. `provesNoEgress` below makes
|
|
5016
|
+
* that check one call.
|
|
5017
|
+
*/
|
|
5018
|
+
interface EgressActivityRecord {
|
|
5019
|
+
/** Every distinct host/action pair observed, allowed and refused alike. */
|
|
5020
|
+
destinations: EgressDestination[];
|
|
5021
|
+
/** Audit lines successfully interpreted as a request. */
|
|
5022
|
+
requestsObserved: number;
|
|
5023
|
+
/** Lines that looked like audit output but could not be interpreted. */
|
|
5024
|
+
unparsedLines: number;
|
|
5025
|
+
/** Whether this record can carry a NEGATIVE claim. */
|
|
5026
|
+
complete: boolean;
|
|
5027
|
+
/** Empty exactly when `complete` is true. */
|
|
5028
|
+
incompleteReasons: EgressIncompleteReason[];
|
|
5029
|
+
}
|
|
4940
5030
|
/**
|
|
4941
5031
|
* Egress policy manager for runtime egress configuration.
|
|
4942
5032
|
* Access via `sandbox.egress`.
|
|
@@ -5000,6 +5090,29 @@ interface EgressManager {
|
|
|
5000
5090
|
denials(options?: {
|
|
5001
5091
|
limit?: number;
|
|
5002
5092
|
}): Promise<EgressDenial[]>;
|
|
5093
|
+
/**
|
|
5094
|
+
* What this sandbox actually reached, allowed as well as refused, and whether
|
|
5095
|
+
* that observation can be trusted.
|
|
5096
|
+
*
|
|
5097
|
+
* The opposite question to {@link EgressManager.denials}, and deliberately NOT
|
|
5098
|
+
* best-effort. `denials()` may return an empty list because nothing was
|
|
5099
|
+
* refused or because the proxy could not be read, and says so. This method
|
|
5100
|
+
* exists because some callers — a benchmark proving a control arm reached
|
|
5101
|
+
* nothing, an audit establishing a sandbox stayed offline — need those two
|
|
5102
|
+
* cases to be distinguishable, so a failure is reported as
|
|
5103
|
+
* `complete: false` with a reason rather than as an empty list.
|
|
5104
|
+
*
|
|
5105
|
+
* Check `complete`, or call {@link provesNoEgress}, before reading an empty
|
|
5106
|
+
* `destinations` list as proof.
|
|
5107
|
+
*
|
|
5108
|
+
* @param options.limit - Most destinations to return, 1 to
|
|
5109
|
+
* {@link MAX_EGRESS_ACTIVITY_LIMIT}. Omit to let the server choose.
|
|
5110
|
+
* @throws ServerError when egress is not enabled for the sandbox (409) — a
|
|
5111
|
+
* configuration answer, deliberately not reported as an undecidable record.
|
|
5112
|
+
*/
|
|
5113
|
+
activity(options?: {
|
|
5114
|
+
limit?: number;
|
|
5115
|
+
}): Promise<EgressActivityRecord>;
|
|
5003
5116
|
}
|
|
5004
5117
|
/**
|
|
5005
5118
|
* Port exposure and runtime network state for a sandbox.
|
|
@@ -6361,4 +6474,4 @@ interface CodeExecutionOptions {
|
|
|
6361
6474
|
idempotencyKey?: string;
|
|
6362
6475
|
}
|
|
6363
6476
|
//#endregion
|
|
6364
|
-
export {
|
|
6477
|
+
export { DriverType as $, TokenUsage as $i, RolloutChildResult as $n, SandboxStatus as $r, GpuLeaseManager as $t, CommitTaskSessionOptions as A, SessionStatus as Ai, ProcessManager as An, SandboxFleetManifestMachine as Ar, FleetDispatchStreamOptions as At, CreateSandboxOptions as B, StorageConfig as Bi, ProvisionStep as Bn, SandboxFleetWorkspaceReconcileResult as Br, ForkLookupOptions as Bt, BranchOptions as C, SessionForkOptions as Ci, PreviewLinkInfo as Cn, SandboxFleetInfo as Cr, FileTreeResult as Ct, CodeExecutionResult as D, SessionMessage as Di, ProcessInfo as Dn, SandboxFleetMachineRecord as Dr, FleetDispatchCancelResult as Dt, CodeExecutionOptions as E, SessionListOptions as Ei, Process as En, SandboxFleetMachineMeteredUsage as Er, FileWriteResult as Et, CreateIntelligenceReportOptions as F, SnapshotOptions as Fi, PromptOptions as Fn, SandboxFleetTraceEvent as Fr, FleetMachineId as Ft, DirectoryPermission as G, TaskSessionInfo as Gi, ReapExpiredSandboxFleetsOptions as Gn, SandboxIntelligenceEnvelope as Gr, GitConfig as Gt, CreateTaskSessionOptions as H, TaskSessionChanges as Hi, PublicTemplateVersionInfo as Hn, SandboxFleetWorkspaceSnapshotResult as Hr, GitAuth as Ht, CreateRequestOptions as I, SnapshotResult as Ii, PromptResult as In, SandboxFleetTraceExport as Ir, FleetPromptDispatchOptions as It, DownloadOptions as J, TeeAttestationReport as Ji, ReconcileSandboxFleetsResult as Jn, SandboxRemovalState as Jr, GpuLease as Jt, DispatchPromptOptions as K, TaskSessionProfile as Ki, ReapExpiredSandboxFleetsResult as Kn, SandboxPortBinding as Kr, GitDiff as Kt, CreateSandboxFleetOptions as L, SshKeysManager as Li, ProvisionEvent as Ln, SandboxFleetTraceOptions as Lr, FleetPromptDispatchResult as Lt, ConversationTurnOptions as M, SnapshotDeleteOutcome as Mi, ProcessSpawnOptions as Mn, SandboxFleetPolicy as Mr, FleetDriveTurnRequest as Mt, ConversationTurnResult as N, SnapshotIdempotency as Ni, ProcessStatus as Nn, SandboxFleetToken as Nr, FleetExecDispatchOptions as Nt, CodeLanguage as O, SessionMessageInputPart as Oi, ProcessListOptions as On, SandboxFleetMachineSpec as Or, FleetDispatchResultBuffer as Ot, CreateGpuLeaseOptions as P, SnapshotInfo as Pi, PromptInputPart as Pn, SandboxFleetTraceBundle as Pr, FleetExecDispatchResult as Pt, DriverInfo as Q, TokenRefreshHandler as Qi, Rollout as Qn, SandboxRuntimeHealth as Qr, GpuLeaseExecResult as Qt, CreateSandboxFleetTokenOptions as R, StartupDiagnostics as Ri, ProvisionResult as Rn, SandboxFleetUsage as Rr, ForkCounts as Rt, BatchTaskResult as S, SessionFailureReason as Si, PermissionsManager as Sn, SandboxFleetDriverTimings as Sr, FileTreeOptions as St, ChunkedUploadResult as T, SessionInterruptOptions as Ti, PreviewLinkWaitOptions as Tn, SandboxFleetMachine as Tr, FileUsageResult as Tt, DeleteOptions as U, TaskSessionCommitResult as Ui, PublishPublicTemplateOptions as Un, SandboxIdentity as Ur, GitBranch as Ut, CreateSessionOptions as V, SubscriptionInfo as Vi, PublicTemplateInfo as Vn, SandboxFleetWorkspaceRestoreResult as Vr, GPU_LEASE_PROVIDER_NAMES as Vt, DevServerInfo as W, TaskSessionFileChange as Wi, PublishPublicTemplateVersionOptions as Wn, SandboxInfo as Wr, GitCommit as Wt, DriveTurnOptions as X, TeePublicKey as Xi, RestoreSnapshotOptions as Xn, SandboxResources as Xr, GpuLeaseCommandResult as Xt, DownloadProgress as Y, TeeAttestationResponse as Yi, RenameOptions as Yn, SandboxResourceUsage as Yr, GpuLeaseBilling as Yt, DriverConfig as Z, TeePublicKeyResponse as Zi, ResumeOptions as Zn, SandboxRuntimeCapabilities as Zr, GpuLeaseExecOptions as Zt, BatchBackend as _, ALL_BACKEND_TYPES as _a, SentSessionMessage as _i, MkdirOptions as _n, SandboxFleetArtifactSpec as _r, FileReadError as _t, AgentQuestionRequest as a, WaitForOptions as aa, SandboxTerminals as ai, IntelligenceReport as an, SSHCommandDescriptor as ar, EffectiveBackendSource as at, BatchRunRequest as b, SessionExecutionInfo as bi, NonHostAgentDriverConfig as bn, SandboxFleetDispatchResponse as br, FileSystem as bt, AttachGpuLeaseOptions as c, WriteFileOptions as ca, SandboxTraceExport as ci, IntelligenceReportSubjectType as cn, SandboxConnection as cr, EgressPolicy as ct, BackendConfig as d, BatchBackendStats as da, SearchMatch as di, ListMessagesOptions as dn, SandboxDeleteAcknowledgement as dr, ExactProcessSpawnOptions as dt, TurnDriveResult as ea, SandboxTerminalAttachOptions as ei, GpuLeaseProviderName as en, RolloutOptions as er, DurablePlan as et, BackendInfo as f, BatchEvent as fa, SearchOptions as fi, ListOptions as fn, SandboxDeleteOptions as fr, ExecOptions as ft, BackendStatus as g, PublicBatchRunRequest as ga, SendSessionMessageRequest as gi, McpServerConfig as gn, SandboxFleetArtifact as gr, FileReadBatchResult as gt, BackendRuntimeConfigUpdate as h, BatchTaskUsage as ha, SendSessionMessageOptions as hi, MAX_EGRESS_DENIALS_LIMIT as hn, SandboxEvent as hr, FileReadBatchOptions as ht, AgentApprovalRequirement as i, UsageInfo as ia, SandboxTerminalRequestOptions as ii, InstalledTool as in, RolloutTurnPart as ir, EffectiveBackendProfile as it, CompletedTurnResult as j, SnapshotDeleteAcknowledgement as ji, ProcessSignal as jn, SandboxFleetOperationsSummary as jr, FleetDriveTurnOutcome as jt, CodeResultPart as k, SessionResultOptions as ki, ProcessLogEntry as kn, SandboxFleetManifest as kr, FleetDispatchResultBufferOptions as kt, AttachSandboxFleetMachineOptions as l, WriteManyFile as la, SandboxTraceOptions as li, IntelligenceReportWindow as ln, SandboxCreateOutcome as lr, EnsureDevServerOptions as lt, BackendMcpServerStatus as m, BatchSidecarGroup as ma, SecretsManager as mi, ListSandboxOptions as mn, SandboxEnvironment as mr, FileInfo as mt, AccessPolicyRule as n, UploadOptions as na, SandboxTerminalInfo as ni, HostAgentDriverConfig as nn, RolloutStartResult as nr, DurablePlanSnapshot as nt, AgentRunStatus as o, WaitForRolloutOptions as oa, SandboxTraceBundle as oi, IntelligenceReportBudget as on, SSHCredentials as or, EgressDenial as ot, BackendManager as p, BatchEventDataMap as pa, SecretInfo as pi, ListSandboxFleetOptions as pn, SandboxDeleteOutcome as pr, ExecResult as pt, DispatchedSession as q, TeeAttestationOptions as qi, ReconcileSandboxFleetsOptions as qn, SandboxPortPreviewLink as qr, GitStatus as qt, AddUserOptions as r, UploadProgress as ra, SandboxTerminalManager as ri, HostAgentRuntimeBackend as rn, RolloutStatus as rr, EffectiveBackend as rt, AgentToolInvocation as s, WorkspaceOperationLookup as sa, SandboxTraceEvent as si, IntelligenceReportCompareTo as sn, SandboxConfig as sr, EgressManager as st, AcceleratorKind as t, UpdateUserOptions as ta, SandboxTerminalCreateOptions as ti, GpuLeaseStatus as tn, RolloutScorer as tr, DurablePlanDecisionResult as tt, BackendCapabilities as u, WriteManyOptions as ua, SandboxUser as ui, JsonValue as un, SandboxCreateReceipt as ur, EventStreamOptions as ut, BatchResult as v, BackendType as va, SessionBackendCredentials as vi, NetworkConfig as vn, SandboxFleetCostEstimate as vr, FileReadResult as vt, ChunkedUploadOptions as w, SessionInfo as wi, PreviewLinkManager as wn, SandboxFleetIntelligenceEnvelope as wr, FileUsageOptions as wt, BatchTask as x, SessionExecutionStatus as xi, PermissionLevel as xn, SandboxFleetDriverCapability as xr, FileTreeFile as xt, BatchRunOptions as y, parseBackendType as ya, SessionEventStreamOptions as yi, NetworkManager as yn, SandboxFleetDispatchFailureClass as yr, FileRenameResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, StartupOperation as zi, ProvisionStatus as zn, SandboxFleetWorkspace as zr, ForkIdempotency as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
"yjs": "13.6.30",
|
|
138
138
|
"@repo/shared": "0.0.0",
|
|
139
139
|
"@tangle-network/runtime-contracts": "0.6.10",
|
|
140
|
-
"@tangle-network/
|
|
140
|
+
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
141
141
|
"@tangle-network/sse-core": "0.0.0",
|
|
142
|
-
"@tangle-network/agent-
|
|
142
|
+
"@tangle-network/cli-agent-registry": "0.4.5"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|
|
145
145
|
"build": "node scripts/build-dist.mjs",
|