@tangle-network/sandbox 0.60.78-develop.20261025020358.352d012 → 0.60.78-develop.20261025030930.8dc5a0e
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 +4 -4
- package/dist/agent/index.js +2 -2
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-BWY-vwU8.d.ts → agent-run-outcome-DdsouF9L.d.ts} +1 -1
- package/dist/{client-C0rEjjtU.d.ts → client-CuRp6nJP.d.ts} +4 -4
- package/dist/{client-CUYXXFJB.js → client-D7emKV41.js} +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +2 -2
- package/dist/{index-C1MBHl8J.d.ts → index-0eZStBT2.d.ts} +9 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -3
- package/dist/{interactive-controller-BhGELtiP.d.ts → interactive-controller-CIHMF8C4.d.ts} +1 -1
- package/dist/{lines-B5PUWzfB.d.ts → lines-DuELZcNj.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{preview-DURO4PiP.d.ts → preview-BRJcdA7Y.d.ts} +3 -3
- package/dist/{public-templates-Dpv5n9be.d.ts → public-templates-DsozsQ0T.d.ts} +1 -1
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-D-AOea4t.js → sandbox-C_DMDlO5.js} +310 -92
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-D-h2SpVO.js → tangle-CedA3iP4.js} +1 -1
- package/dist/{types-mC2pva3m.d.ts → types-0pIxzm2k.d.ts} +10 -6
- package/package.json +4 -4
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-0eZStBT2.js";
|
|
2
|
+
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ha as CodeLanguage, Ti as CodeExecutionOptions, bn as SandboxFleetParent, xa as BackendConfig, xt as SessionListOptions, yt as SessionInfo } from "../types-0pIxzm2k.js";
|
|
3
|
+
import { t as Sandbox } from "../client-CuRp6nJP.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BRJcdA7Y.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CjcoVT7f.js";
|
|
2
2
|
import { D as assertCurrentBackendType } from "../interactive-controller-DoYo8Kq5.js";
|
|
3
3
|
import { S as StateError, T as ValidationError, h as NotFoundError } from "../errors-CfQHPcLX.js";
|
|
4
|
-
import { t as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { t as Sandbox } from "../client-D7emKV41.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-C_DMDlO5.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BRJcdA7Y.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-
|
|
1
|
+
import { Ji as AgentQuestionRequest, Xi as AgentToolInvocation, Yi as AgentRunStatus, fa as SandboxEvent, na as DurablePlanSnapshot, qi as AgentApprovalRequirement } from "./types-0pIxzm2k.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-0eZStBT2.js";
|
|
2
2
|
import { F as SandboxError, c as MintInteractiveSessionTokenOptions, u as ScopedToken } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, Ia as GpuLeaseProviderName, Ii as SdkTimingHook, It as FleetAgentId, Jt as FleetPromptDispatchResult, Ki as BatchRunOptions, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zi as CreateIntelligenceReportOptions, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, bn as SandboxFleetParent, ca as IntelligenceReportWindow, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as PromptResult, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fa as SandboxEvent, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptInputPart, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptOptions, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, xa as BackendConfig, ya as TurnBackendConfig, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-0pIxzm2k.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-DuELZcNj.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-DsozsQ0T.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities as AgentProfileCapabilities$1, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSeat, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult as AgentProfileValidationResult$1, AgentRunCancellationAcknowledgement as AgentRunCancellationAcknowledgement$1, AgentRunCancellationRequest as AgentRunCancellationRequest$1, AgentRuntimeAttachments, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset as SandboxSizePreset$1 } from "@tangle-network/agent-interface";
|
|
@@ -3,7 +3,7 @@ import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as asse
|
|
|
3
3
|
import { T as ValidationError, a as AuthError, b as SandboxError, d as GpuProviderNotConfiguredError, g as PartialFailureError, h as NotFoundError, i as readResponseJson, m as NetworkError, n as parseErrorResponse, p as NON_RETRYABLE_CREATE_QUOTA_REASONS, r as parseResponseError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-CfQHPcLX.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
5
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-_KZcsAS_.js";
|
|
6
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, I as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-
|
|
6
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, I as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-C_DMDlO5.js";
|
|
7
7
|
import { t as LinesClient } from "./lines-BdF6b46c.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { z } from "zod";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-0eZStBT2.js";
|
|
2
2
|
import { A as NotFoundError, F as SandboxError, H as TimeoutError, I as SandboxErrorJson, L as SandboxFailureDetail, M as ProfileFileMountPathError, N as QuotaError, R as ServerError, S as CapabilityError, T as FileWriteConflictError, U as ValidationError, b as AuthError, j as PartialFailureError, k as NetworkError, z as StateError } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as isBackendRegistryInteractionKind, Dt as SandboxSeatCredentials, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryResponseSchema, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, _n as BackendRegistryInteractionKind, bn as backendRegistryEntrySchema, gn as BackendRegistryEntry, hn as BackendRegistryCapabilities, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryResponse, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryInteractionKindSchema, yn as backendRegistryCapabilitiesSchema, zt as InstanceProfile } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-0pIxzm2k.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-DuELZcNj.js";
|
|
5
|
+
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as isBackendRegistryInteractionKind, Dt as SandboxSeatCredentials, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryResponseSchema, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, _n as BackendRegistryInteractionKind, bn as backendRegistryEntrySchema, gn as BackendRegistryEntry, hn as BackendRegistryCapabilities, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryResponse, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryInteractionKindSchema, yn as backendRegistryCapabilitiesSchema, zt as InstanceProfile } from "./client-CuRp6nJP.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DsozsQ0T.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, g as PartialFailureError, h as NotFoundError, m as NetworkError, s as CapabilityError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-CfQHPcLX.js";
|
|
2
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-D7emKV41.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-C_DMDlO5.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-BdF6b46c.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DnrLA0im.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { F as SandboxError, G as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
2
|
-
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-
|
|
2
|
+
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-0pIxzm2k.js";
|
|
3
3
|
import { t as CliAuthReference } from "./cli-auth-bundle-DKp1d5dJ.js";
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
4
|
+
import { n as SandboxLines } from "./lines-DuELZcNj.js";
|
|
5
5
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-DmuOTpD1.js";
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-CIHMF8C4.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as Agent from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|
|
@@ -2426,8 +2426,12 @@ declare class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
2426
2426
|
*
|
|
2427
2427
|
* Runtime methods on the returned instance talk to the sandbox runtime
|
|
2428
2428
|
* directly using `connection.execHost` when supplied, otherwise
|
|
2429
|
-
* `connection.runtimeUrl`, and the scoped `connection.authToken
|
|
2430
|
-
*
|
|
2429
|
+
* `connection.runtimeUrl`, and the scoped `connection.authToken`, with no
|
|
2430
|
+
* API fallback. The agent calls the default handle keeps on the API (a
|
|
2431
|
+
* prompt, a session message) go to the runtime too, so they skip what the
|
|
2432
|
+
* API prepares for them: the managed model credential refresh, durable plan
|
|
2433
|
+
* grants and secret-isolation checks. Lifecycle methods still go through
|
|
2434
|
+
* the parent SDK client.
|
|
2431
2435
|
*/
|
|
2432
2436
|
direct(): SandboxInstance;
|
|
2433
2437
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as SandboxInteractionResult, A as TraceExportResult, At as buildControlPlaneMcpConfig, B as WorkspaceImages, Ct as BuildControlPlaneMcpConfigOptions, D as ForkAcknowledgement, Dt as SandboxMcpConfig, Et as SANDBOX_MCP_SERVER_NAME, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as SandboxMcpEndpoint, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as SandboxOperationFailedError, Tt as CONTROL_PLANE_MCP_SERVER_NAME, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as InteractiveTerminalFrameLog, at as InteractiveSessionHandleOptions, bt as createInteractiveTerminalSession, ct as InteractiveSessionInfo, dt as InteractiveSessionStartResult, et as AgentInteractiveTerminalSession, ft as InteractiveStopCommand, gt as InteractiveTerminalCapture, h as TangleSandboxClient, ht as agentInteractiveSessionPromptRequestDigest, it as InteractiveSessionHandle, j as TraceExportSink, jt as buildSandboxMcpConfig, k as TraceExportFormat, kt as SandboxMcpServerEntry, lt as InteractiveSessionRef, mt as RespondToPermissionOptions, nt as InteractivePromptCommand, ot as InteractiveSessionHost, pt as InterruptResult, q as splitInlineProfileFileMounts, rt as InteractiveSessionControlClaim, st as InteractiveSessionIncarnationId, tt as InteractiveControlClaimRequest, ut as InteractiveSessionStartOptions, v as TangleSandboxClientConfig, vt as InteractiveTerminalMetadata, wt as BuildSandboxMcpConfigOptions, xt as SandboxOperation, yt as createInteractiveTerminalCapture, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { $ as SandboxInteractionResult, A as TraceExportResult, At as buildControlPlaneMcpConfig, B as WorkspaceImages, Ct as BuildControlPlaneMcpConfigOptions, D as ForkAcknowledgement, Dt as SandboxMcpConfig, Et as SANDBOX_MCP_SERVER_NAME, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as SandboxMcpEndpoint, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as SandboxOperationFailedError, Tt as CONTROL_PLANE_MCP_SERVER_NAME, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as InteractiveTerminalFrameLog, at as InteractiveSessionHandleOptions, bt as createInteractiveTerminalSession, ct as InteractiveSessionInfo, dt as InteractiveSessionStartResult, et as AgentInteractiveTerminalSession, ft as InteractiveStopCommand, gt as InteractiveTerminalCapture, h as TangleSandboxClient, ht as agentInteractiveSessionPromptRequestDigest, it as InteractiveSessionHandle, j as TraceExportSink, jt as buildSandboxMcpConfig, k as TraceExportFormat, kt as SandboxMcpServerEntry, lt as InteractiveSessionRef, mt as RespondToPermissionOptions, nt as InteractivePromptCommand, ot as InteractiveSessionHost, pt as InterruptResult, q as splitInlineProfileFileMounts, rt as InteractiveSessionControlClaim, st as InteractiveSessionIncarnationId, tt as InteractiveControlClaimRequest, ut as InteractiveSessionStartOptions, v as TangleSandboxClientConfig, vt as InteractiveTerminalMetadata, wt as BuildSandboxMcpConfigOptions, xt as SandboxOperation, yt as createInteractiveTerminalCapture, z as WorkspaceImagePublishRequestOptions } from "./index-0eZStBT2.js";
|
|
2
2
|
import { A as NotFoundError, B as StreamInterruptedError, C as EdgeNotReadyError, D as GpuProviderRequirement, E as GpuProviderNotConfiguredError, F as SandboxError, G as SandboxCreateReceipt, H as TimeoutError, I as SandboxErrorJson, L as SandboxFailureDetail, M as ProfileFileMountPathError, N as QuotaError, O as KeyBudgetExhaustedError, P as ResumeEnvRequiredError, R as ServerError, S as CapabilityError, T as FileWriteConflictError, U as ValidationError, V as StreamInterruptionReason, W as SandboxCreateOutcome, _ as TerminalReadyTimings, a as TerminalStreamOptions, b as AuthError, c as MintInteractiveSessionTokenOptions, d as ScopedTokenScope, f as TERMINAL_WS_ECHO_SUBPROTOCOL, g as TerminalReadyInfo, h as TerminalOutputMessage, i as TerminalStreamHandlers, j as PartialFailureError, k as NetworkError, l as MintScopedTokenOptions, m as TerminalInteractiveSessionIdentity, n as TerminalStreamApiKey, p as TerminalExitInfo, r as TerminalStreamBearerToken, s as TerminalStreamToken, t as TerminalAttachTimings, u as ScopedToken, v as TerminalStreamAuthFormat, w as EgressProxyRecoveryError, x as BranchFanoutExceedsHostError, y as TerminalStreamError, z as StateError } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
3
|
-
import { $ as CompletedTurnPayload, $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $n as TeeAttestationReport, $r as SearchOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Aa as RolloutChildResult, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, At as TaskSessionProfile, B as ProcessSignal, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, Br as FileTreeResult, Bt as FleetDispatchCancelResult, C as WorkspaceOperationLookup, Ca as BackendManager, Ci as HostAgentRuntimeBackend, Cn as SandboxFleetProfileRef, Co as BackendType, Cr as GitAuth, Ct as SessionMessageAdmission, D as ProvisionResult, Da as McpServerConfig, Dn as SandboxFleetTraceEvent, Do as parseBackendType, Dr as DeleteOptions, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ea as BackendStatus, En as SandboxFleetTraceBundle, Eo as EffectiveBackendSource, Er as ChunkedUploadResult, Et as TaskSessionChanges, F as EnsureDevServerOptions, Fa as GPU_LEASE_PROVIDER_NAMES, Fn as ListSandboxOptions, Fr as FileReadResult, Ft as CreateSandboxFleetWithCoordinatorOptions, G as GitBranch, Ga as ProcessStatus, Gi as BatchBackend, Gn as SandboxTerminalCreateOptions, Gr as MkdirOptions, H as PreviewLinkInfo, Hi as RolloutOptions, Hn as SandboxRunGeneration, Hr as FileUsageResult, Ht as FleetDispatchResultBufferOptions, I as ExactProcessSpawnOptions, Ia as GpuLeaseProviderName, In as SSHCommandDescriptor, Ir as FileRenameResult, It as FleetAgentId, J as GitStatus, Ja as SandboxEnvRecoveryView, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Jt as FleetPromptDispatchResult, K as GitCommit, Ka as SessionStatus, Ki as BatchRunOptions, Kn as SandboxTerminalInfo, Kr as RenameOptions, Kt as FleetMachineId, L as Process, La as GpuLeaseProviderState, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, Lt as FleetAgentPlacement, M as UsageInfo, Ma as RolloutStatus, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mr as FileReadBatchOptions, Mt as AttachSandboxFleetMachineOptions, N as WaitForOptions, Na as RolloutTurnPart, Ni as ManagedProcessState, Nn as SandboxFleetWorkspaceRestoreResult, Nr as FileReadBatchResult, Nt as CreateSandboxFleetOptions, O as ProvisionStep, Oa as RouterRoutingOptions, Oi as ManagedProcessJobs, On as SandboxFleetTraceExport, Or as DownloadOptions, Ot as TaskSessionFileChange, P as DevServerInfo, Pa as ProvisionStatus, Pn as SandboxFleetWorkspaceSnapshotResult, Pr as FileReadError, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxArchiveManifest, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Qt as ReapExpiredSandboxFleetsOptions, R as ProcessLogEntry, Ra as GpuLeaseProviderStatus, Ri as ForkCounts, Rn as SandboxConnection, Rr as FileTreeFile, Rt as FleetAgentResult, S as StopOptions, Sa as BackendInfo, Si as HostAgentDriverConfig, Sn as SandboxFleetPolicy, So as ALL_BACKEND_TYPES, Sr as MAX_EGRESS_DENIALS_LIMIT, St as SessionMessage, Ta as BackendRuntimeConfigUpdate, Tn as SandboxFleetToken, To as EffectiveBackendProfile, Tr as ChunkedUploadOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as ProcessInfo, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Ut as FleetDispatchStreamOptions, V as ProcessSpawnOptions, Va as WorkspaceImagePublishResult, Vi as Rollout, Vn as SandboxPortPreviewLink, Vr as FileUsageOptions, Vt as FleetDispatchResultBuffer, W as PreviewLinkWaitOptions, Wa as ProcessListOptions, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Wr as ListOptions, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xa as RawEvidenceArchiveManifest, Xn as StartupDiagnostics, Xr as WriteManyFile, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Ya as NativeStoreHomeCopy, Yn as SandboxTerminals, Yr as WriteFileOptions, Yt as FleetRunEvent, Z as TokenRefreshHandler, Za as RawEvidenceArchiveManifestNative, Zi as CreateIntelligenceReportOptions, Zn as StartupOperation, Zr as WriteManyOptions, Zt as ListSandboxFleetOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, _i as GpuLeaseExecOptions, _n as SandboxFleetManifest, _o as BatchBackendStats, _r as NetworkConfig, _t as SessionFailureReason, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, ai as PublishPublicTemplateVersionOptions, an as SandboxFleetArtifactSpec, ao as RawEvidenceRecordsFile, ar as CreateSandboxOptions, at as DispatchPromptOptions, b as SnapshotRemoteSync, ba as BackendCapabilities, bi as GpuLeaseProviders, bn as SandboxFleetParent, bo as BatchSidecarGroup, br as EgressPolicy, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ci as AttachGpuLeaseOptions, cn as SandboxFleetDispatchResponse, co as DECLARED_SECRET_HOSTS_ENV_VAR, cr as SandboxShapesInfo, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, di as DriverConfig, dn as SandboxFleetInfo, do as parseDeclaredSecretsEnv, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, fn as SandboxFleetIntelligenceEnvelope, fo as BatchResult, fr as SandboxShapePreset, ft as SentSessionMessage, g as SnapshotIdempotency, ga as SandboxTraceExport, gi as GpuLeaseCommandResult, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, gr as EgressManager, gt as SessionExecutionStatus, h as SnapshotDeleteOutcome, ha as SandboxTraceEvent, hi as GpuLeaseBilling, hn as SandboxFleetMachineRecord, hr as StorageConfig, ht as SessionExecutionInfo, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, ii as PublishPublicTemplateOptions, in as SandboxFleetArtifact, io as RawEvidencePayloadFile, ir as CreateRequestOptions, it as CreateTaskSessionOptions, j as SubscriptionInfo, ja as RolloutScorer, ji as ManagedProcessResumeOptions, jn as SandboxFleetWorkspace, jr as FileInfo, jt as TurnDriveResult, ka as SecretInfo, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, kr as DownloadProgress, kt as TaskSessionInfo, l as SandboxDeleteOutcome, la as PromptInputPart, li as CreateGpuLeaseOptions, ln as SandboxFleetDriverCapability, lo as assertDeclaredSecretsHeld, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mn as SandboxFleetMachineMeteredUsage, mo as BatchTaskInput, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, n as DeleteMatchingSandboxResult, ni as PublicTemplateInfo, nn as SandboxFleetAgent, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, oo as baseProxyToken, or as SandboxConfig, ot as DispatchedSession, p as SandboxRemovalState, pa as SandboxIntelligenceEnvelope, pi as DriverType, pn as SandboxFleetMachine, po as BatchTaskResult, pr as SandboxResourceUsage, pt as SessionBackendCredentials, q as GitDiff, qa as SandboxEnvRecovery, qn as SandboxTerminalManager, qr as UploadOptions, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as EventStreamOptions, ri as PublicTemplateVersionInfo, rn as SandboxFleetAgentSpec, ro as RawEvidenceNativeFile, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportSubjectType, si as AcceleratorKind, sn as SandboxFleetDispatchFailureClass, sr as SandboxResources, st as DriveTurnOptions, t as DeleteMatchingSandboxOutcome, ta as DurablePlanFollowUpResume, ti as ExecResult, tn as ReconcileSandboxFleetsResult, to as RawEvidenceDirectoryExport, tr as TeePublicKey, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ui as DockerDriverConfig, un as SandboxFleetDriverTimings, uo as declaredSecretBaseToken, ur as SecretBinding, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TokenUsage, vi as GpuLeaseExecResult, vn as SandboxFleetManifestMachine, vo as BatchEvent, vr as NetworkManager, vt as SessionForkOptions, w as SecretsManager, wa as BackendMcpServerStatus, wi as NonHostAgentDriverConfig, wn as SandboxFleetSpend, wo as EffectiveBackend, wr as GitConfig, wt as SessionMessageInputPart, x as SnapshotResult, xa as BackendConfig, xi as GpuLeaseProvidersOptions, xn as SandboxFleetPlacement, xo as BatchTaskUsage, xr as EgressDenial, xt as SessionListOptions, ya as TurnBackendConfig, yi as GpuLeaseManager, yn as SandboxFleetOperationsSummary, yo as BatchEventDataMap, yr as SandboxEgressUsage, yt as SessionInfo, z as ProcessManager, za as GpuLeaseStatus, zi as ForkIdempotency, zn as SandboxInfo, zr as FileTreeOptions, zt as FleetAgentRunStatus } from "./types-
|
|
4
|
-
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-
|
|
3
|
+
import { $ as CompletedTurnPayload, $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $n as TeeAttestationReport, $r as SearchOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Aa as RolloutChildResult, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, At as TaskSessionProfile, B as ProcessSignal, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, Br as FileTreeResult, Bt as FleetDispatchCancelResult, C as WorkspaceOperationLookup, Ca as BackendManager, Ci as HostAgentRuntimeBackend, Cn as SandboxFleetProfileRef, Co as BackendType, Cr as GitAuth, Ct as SessionMessageAdmission, D as ProvisionResult, Da as McpServerConfig, Dn as SandboxFleetTraceEvent, Do as parseBackendType, Dr as DeleteOptions, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ea as BackendStatus, En as SandboxFleetTraceBundle, Eo as EffectiveBackendSource, Er as ChunkedUploadResult, Et as TaskSessionChanges, F as EnsureDevServerOptions, Fa as GPU_LEASE_PROVIDER_NAMES, Fn as ListSandboxOptions, Fr as FileReadResult, Ft as CreateSandboxFleetWithCoordinatorOptions, G as GitBranch, Ga as ProcessStatus, Gi as BatchBackend, Gn as SandboxTerminalCreateOptions, Gr as MkdirOptions, H as PreviewLinkInfo, Hi as RolloutOptions, Hn as SandboxRunGeneration, Hr as FileUsageResult, Ht as FleetDispatchResultBufferOptions, I as ExactProcessSpawnOptions, Ia as GpuLeaseProviderName, In as SSHCommandDescriptor, Ir as FileRenameResult, It as FleetAgentId, J as GitStatus, Ja as SandboxEnvRecoveryView, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Jt as FleetPromptDispatchResult, K as GitCommit, Ka as SessionStatus, Ki as BatchRunOptions, Kn as SandboxTerminalInfo, Kr as RenameOptions, Kt as FleetMachineId, L as Process, La as GpuLeaseProviderState, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, Lt as FleetAgentPlacement, M as UsageInfo, Ma as RolloutStatus, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mr as FileReadBatchOptions, Mt as AttachSandboxFleetMachineOptions, N as WaitForOptions, Na as RolloutTurnPart, Ni as ManagedProcessState, Nn as SandboxFleetWorkspaceRestoreResult, Nr as FileReadBatchResult, Nt as CreateSandboxFleetOptions, O as ProvisionStep, Oa as RouterRoutingOptions, Oi as ManagedProcessJobs, On as SandboxFleetTraceExport, Or as DownloadOptions, Ot as TaskSessionFileChange, P as DevServerInfo, Pa as ProvisionStatus, Pn as SandboxFleetWorkspaceSnapshotResult, Pr as FileReadError, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxArchiveManifest, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Qt as ReapExpiredSandboxFleetsOptions, R as ProcessLogEntry, Ra as GpuLeaseProviderStatus, Ri as ForkCounts, Rn as SandboxConnection, Rr as FileTreeFile, Rt as FleetAgentResult, S as StopOptions, Sa as BackendInfo, Si as HostAgentDriverConfig, Sn as SandboxFleetPolicy, So as ALL_BACKEND_TYPES, Sr as MAX_EGRESS_DENIALS_LIMIT, St as SessionMessage, Ta as BackendRuntimeConfigUpdate, Tn as SandboxFleetToken, To as EffectiveBackendProfile, Tr as ChunkedUploadOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as ProcessInfo, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Ut as FleetDispatchStreamOptions, V as ProcessSpawnOptions, Va as WorkspaceImagePublishResult, Vi as Rollout, Vn as SandboxPortPreviewLink, Vr as FileUsageOptions, Vt as FleetDispatchResultBuffer, W as PreviewLinkWaitOptions, Wa as ProcessListOptions, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Wr as ListOptions, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xa as RawEvidenceArchiveManifest, Xn as StartupDiagnostics, Xr as WriteManyFile, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Ya as NativeStoreHomeCopy, Yn as SandboxTerminals, Yr as WriteFileOptions, Yt as FleetRunEvent, Z as TokenRefreshHandler, Za as RawEvidenceArchiveManifestNative, Zi as CreateIntelligenceReportOptions, Zn as StartupOperation, Zr as WriteManyOptions, Zt as ListSandboxFleetOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, _i as GpuLeaseExecOptions, _n as SandboxFleetManifest, _o as BatchBackendStats, _r as NetworkConfig, _t as SessionFailureReason, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportBudget, ai as PublishPublicTemplateVersionOptions, an as SandboxFleetArtifactSpec, ao as RawEvidenceRecordsFile, ar as CreateSandboxOptions, at as DispatchPromptOptions, b as SnapshotRemoteSync, ba as BackendCapabilities, bi as GpuLeaseProviders, bn as SandboxFleetParent, bo as BatchSidecarGroup, br as EgressPolicy, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ci as AttachGpuLeaseOptions, cn as SandboxFleetDispatchResponse, co as DECLARED_SECRET_HOSTS_ENV_VAR, cr as SandboxShapesInfo, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, di as DriverConfig, dn as SandboxFleetInfo, do as parseDeclaredSecretsEnv, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, fn as SandboxFleetIntelligenceEnvelope, fo as BatchResult, fr as SandboxShapePreset, ft as SentSessionMessage, g as SnapshotIdempotency, ga as SandboxTraceExport, gi as GpuLeaseCommandResult, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, gr as EgressManager, gt as SessionExecutionStatus, h as SnapshotDeleteOutcome, ha as SandboxTraceEvent, hi as GpuLeaseBilling, hn as SandboxFleetMachineRecord, hr as StorageConfig, ht as SessionExecutionInfo, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReport, ii as PublishPublicTemplateOptions, in as SandboxFleetArtifact, io as RawEvidencePayloadFile, ir as CreateRequestOptions, it as CreateTaskSessionOptions, j as SubscriptionInfo, ja as RolloutScorer, ji as ManagedProcessResumeOptions, jn as SandboxFleetWorkspace, jr as FileInfo, jt as TurnDriveResult, ka as SecretInfo, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, kr as DownloadProgress, kt as TaskSessionInfo, l as SandboxDeleteOutcome, la as PromptInputPart, li as CreateGpuLeaseOptions, ln as SandboxFleetDriverCapability, lo as assertDeclaredSecretsHeld, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mn as SandboxFleetMachineMeteredUsage, mo as BatchTaskInput, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, n as DeleteMatchingSandboxResult, ni as PublicTemplateInfo, nn as SandboxFleetAgent, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, oa as IntelligenceReportCompareTo, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, oo as baseProxyToken, or as SandboxConfig, ot as DispatchedSession, p as SandboxRemovalState, pa as SandboxIntelligenceEnvelope, pi as DriverType, pn as SandboxFleetMachine, po as BatchTaskResult, pr as SandboxResourceUsage, pt as SessionBackendCredentials, q as GitDiff, qa as SandboxEnvRecovery, qn as SandboxTerminalManager, qr as UploadOptions, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as EventStreamOptions, ri as PublicTemplateVersionInfo, rn as SandboxFleetAgentSpec, ro as RawEvidenceNativeFile, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportSubjectType, si as AcceleratorKind, sn as SandboxFleetDispatchFailureClass, sr as SandboxResources, st as DriveTurnOptions, t as DeleteMatchingSandboxOutcome, ta as DurablePlanFollowUpResume, ti as ExecResult, tn as ReconcileSandboxFleetsResult, to as RawEvidenceDirectoryExport, tr as TeePublicKey, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ui as DockerDriverConfig, un as SandboxFleetDriverTimings, uo as declaredSecretBaseToken, ur as SecretBinding, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TokenUsage, vi as GpuLeaseExecResult, vn as SandboxFleetManifestMachine, vo as BatchEvent, vr as NetworkManager, vt as SessionForkOptions, w as SecretsManager, wa as BackendMcpServerStatus, wi as NonHostAgentDriverConfig, wn as SandboxFleetSpend, wo as EffectiveBackend, wr as GitConfig, wt as SessionMessageInputPart, x as SnapshotResult, xa as BackendConfig, xi as GpuLeaseProvidersOptions, xn as SandboxFleetPlacement, xo as BatchTaskUsage, xr as EgressDenial, xt as SessionListOptions, ya as TurnBackendConfig, yi as GpuLeaseManager, yn as SandboxFleetOperationsSummary, yo as BatchEventDataMap, yr as SandboxEgressUsage, yt as SessionInfo, z as ProcessManager, za as GpuLeaseStatus, zi as ForkIdempotency, zn as SandboxInfo, zr as FileTreeOptions, zt as FleetAgentRunStatus } from "./types-0pIxzm2k.js";
|
|
4
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-DuELZcNj.js";
|
|
5
5
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-DmuOTpD1.js";
|
|
6
|
-
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
7
|
-
import { $ as SANDBOX_SIZE_PRESET_NAMES, $t as requestedPublicProfileDigest, A as RunsHttpClient, At as SeatOwnerTransport, B as RunTangleRouterEvalMatrixInSandboxOptions, Bt as InstanceRecord, C as SessionBroadcastResult, Cn as isBackendRegistryInteractionKind, Ct as generateDockerfile, D as RunRecord, Dt as SandboxSeatCredentials, E as RunPlacementRecord, Et as SandboxResolvedSeat, F as RouterEvalMatrixSandboxBox, Ft as gatewaySeatTransport, G as TangleSearchProvider, Gt as ConfidentialTeeType, H as runTangleRouterEvalMatrixInSandbox, Ht as InstanceStart, I as RouterEvalMatrixSandboxClient, It as ManagedProcessClient, J as buildTangleRouterSearchBackend, Jt as generateAttestationNonce, K as buildTangleRouterEvalMatrixRequest, Kt as CreateConfidentialSandboxOptions, L as RouterEvalMatrixScenario, Lt as EnsureInstanceOptions, M as RouterEvalMatrixCaseResult, Mt as SeatSelectionError, N as RouterEvalMatrixHarness, Nt as SeatSelectionRequest, O as RunWaitOptions, Ot as SandboxSeatSelectionInput, P as RouterEvalMatrixPayload, Pt as createSelectSeat, Q as SANDBOX_SIZE_PRESETS, Qt as normalizeRuntimeBackendConfig, R as RouterEvalMatrixSuiteResponse, Rt as HostedInstance, S as SessionBroadcastEvent, Sn as backendRegistryResponseSchema, St as ImageBuilder, T as RunPlacement, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, U as RouterSearchConfig, Ut as InstancesClient, V as RunTangleRouterEvalMatrixInSandboxResult, Vt as InstanceRestartingError, W as RouterSearchConfigOptions, Wt as ConfidentialSandboxResult, X as fetchTangleRouterSearchConfig, Xt as createBatchResultAccumulator, Y as buildTangleRouterSearchProfile, Yt as BatchResultAccumulator, Z as DEFAULT_SANDBOX_SIZE, Zt as validateBatchRunRequest, _ as AgentRunCancellationAcknowledgement, _n as BackendRegistryInteractionKind, _t as ImageBuildClient, a as AgentProfileCapabilities, an as ImageSpec, at as MANAGE_SANDBOXES_TOOL_NAME, b as Capability, bn as backendRegistryEntrySchema, bt as ImageBuildOptions, c as AgentProfileMcpServer, cn as parseSSEStream, ct as ManageSandboxesToolOptions, d as AgentProfilePrompt, dn as Team, dt as applySandboxEventText, en as TeeAttestationHeartbeat, et as SandboxSizePreset, f as AgentProfileResourceRef, fn as TeamInvitation, ft as collectAgentFinalMessageText, g as AgentProfileValidationResult, gn as BackendRegistryEntry, gt as Image, h as AgentProfileValidationIssue, hn as BackendRegistryCapabilities, ht as isToolBearingEvent, i as AgentProfile, in as BuildProgressEvent, it as MANAGE_SANDBOXES_PARAMETERS, j as RouterEvalMatrixAgentProfile, jt as SeatResolutionObservation, k as RunsClient, kt as SeatOwnerReply, l as AgentProfileModelHints, ln as CreateTeamOptions, lt as createManageSandboxesTool, m as AgentProfileSecurityPolicy, mn as IntelligenceClient, mt as getSandboxEventText, n as SandboxFleetClient, nn as TeeAttestationHeartbeatSample, nt as sandboxResourcesForSize, o as AgentProfileConnection, on as ParseSSEStreamOptions, ot as ManageSandboxesInput, p as AgentProfileResources, pn as TeamMember, pt as collectAgentResponseText, q as buildTangleRouterResponsesWebSearchRequest, qt as createConfidentialSandbox, r as SandboxFleet, rn as startTeeAttestationHeartbeat, rt as materializeProfileFileMounts, s as AgentProfileFileMount, sn as ParsedSSEEvent, st as ManageSandboxesTool, t as Sandbox, tn as TeeAttestationHeartbeatOptions, tt as resolveSandboxResources, u as AgentProfilePermissionValue, un as InviteTeamMemberOptions, ut as manageSandboxesInputSchema, v as AgentRunCancellationRequest, vn as BackendRegistryResponse, vt as ImageBuildClientConfig, w as RunOptions, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, x as terminalUpgradeHeadersSupported, xn as backendRegistryInteractionKindSchema, xt as ImageBuildResult, y as AgentSubagentProfile, yn as backendRegistryCapabilitiesSchema, yt as ImageBuildFetchClient, z as RouterImportedRunResponse, zt as InstanceProfile } from "./client-
|
|
8
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
6
|
+
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-CIHMF8C4.js";
|
|
7
|
+
import { $ as SANDBOX_SIZE_PRESET_NAMES, $t as requestedPublicProfileDigest, A as RunsHttpClient, At as SeatOwnerTransport, B as RunTangleRouterEvalMatrixInSandboxOptions, Bt as InstanceRecord, C as SessionBroadcastResult, Cn as isBackendRegistryInteractionKind, Ct as generateDockerfile, D as RunRecord, Dt as SandboxSeatCredentials, E as RunPlacementRecord, Et as SandboxResolvedSeat, F as RouterEvalMatrixSandboxBox, Ft as gatewaySeatTransport, G as TangleSearchProvider, Gt as ConfidentialTeeType, H as runTangleRouterEvalMatrixInSandbox, Ht as InstanceStart, I as RouterEvalMatrixSandboxClient, It as ManagedProcessClient, J as buildTangleRouterSearchBackend, Jt as generateAttestationNonce, K as buildTangleRouterEvalMatrixRequest, Kt as CreateConfidentialSandboxOptions, L as RouterEvalMatrixScenario, Lt as EnsureInstanceOptions, M as RouterEvalMatrixCaseResult, Mt as SeatSelectionError, N as RouterEvalMatrixHarness, Nt as SeatSelectionRequest, O as RunWaitOptions, Ot as SandboxSeatSelectionInput, P as RouterEvalMatrixPayload, Pt as createSelectSeat, Q as SANDBOX_SIZE_PRESETS, Qt as normalizeRuntimeBackendConfig, R as RouterEvalMatrixSuiteResponse, Rt as HostedInstance, S as SessionBroadcastEvent, Sn as backendRegistryResponseSchema, St as ImageBuilder, T as RunPlacement, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, U as RouterSearchConfig, Ut as InstancesClient, V as RunTangleRouterEvalMatrixInSandboxResult, Vt as InstanceRestartingError, W as RouterSearchConfigOptions, Wt as ConfidentialSandboxResult, X as fetchTangleRouterSearchConfig, Xt as createBatchResultAccumulator, Y as buildTangleRouterSearchProfile, Yt as BatchResultAccumulator, Z as DEFAULT_SANDBOX_SIZE, Zt as validateBatchRunRequest, _ as AgentRunCancellationAcknowledgement, _n as BackendRegistryInteractionKind, _t as ImageBuildClient, a as AgentProfileCapabilities, an as ImageSpec, at as MANAGE_SANDBOXES_TOOL_NAME, b as Capability, bn as backendRegistryEntrySchema, bt as ImageBuildOptions, c as AgentProfileMcpServer, cn as parseSSEStream, ct as ManageSandboxesToolOptions, d as AgentProfilePrompt, dn as Team, dt as applySandboxEventText, en as TeeAttestationHeartbeat, et as SandboxSizePreset, f as AgentProfileResourceRef, fn as TeamInvitation, ft as collectAgentFinalMessageText, g as AgentProfileValidationResult, gn as BackendRegistryEntry, gt as Image, h as AgentProfileValidationIssue, hn as BackendRegistryCapabilities, ht as isToolBearingEvent, i as AgentProfile, in as BuildProgressEvent, it as MANAGE_SANDBOXES_PARAMETERS, j as RouterEvalMatrixAgentProfile, jt as SeatResolutionObservation, k as RunsClient, kt as SeatOwnerReply, l as AgentProfileModelHints, ln as CreateTeamOptions, lt as createManageSandboxesTool, m as AgentProfileSecurityPolicy, mn as IntelligenceClient, mt as getSandboxEventText, n as SandboxFleetClient, nn as TeeAttestationHeartbeatSample, nt as sandboxResourcesForSize, o as AgentProfileConnection, on as ParseSSEStreamOptions, ot as ManageSandboxesInput, p as AgentProfileResources, pn as TeamMember, pt as collectAgentResponseText, q as buildTangleRouterResponsesWebSearchRequest, qt as createConfidentialSandbox, r as SandboxFleet, rn as startTeeAttestationHeartbeat, rt as materializeProfileFileMounts, s as AgentProfileFileMount, sn as ParsedSSEEvent, st as ManageSandboxesTool, t as Sandbox, tn as TeeAttestationHeartbeatOptions, tt as resolveSandboxResources, u as AgentProfilePermissionValue, un as InviteTeamMemberOptions, ut as manageSandboxesInputSchema, v as AgentRunCancellationRequest, vn as BackendRegistryResponse, vt as ImageBuildClientConfig, w as RunOptions, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, x as terminalUpgradeHeadersSupported, xn as backendRegistryInteractionKindSchema, xt as ImageBuildResult, y as AgentSubagentProfile, yn as backendRegistryCapabilitiesSchema, yt as ImageBuildFetchClient, z as RouterImportedRunResponse, zt as InstanceProfile } from "./client-CuRp6nJP.js";
|
|
8
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DdsouF9L.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DcEJnM4x.js";
|
|
10
10
|
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-BMbJOPfn.js";
|
|
11
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
11
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DsozsQ0T.js";
|
|
12
12
|
export { ALL_BACKEND_TYPES, AcceleratorKind, AgentInteractiveTerminalSession, AgentProfile, AgentProfileCapabilities, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentRunOutcome, AgentRunOutcomeTracker, AgentSubagentProfile, AnyTokenPayload, AttachGpuLeaseOptions, AttachSandboxFleetMachineOptions, AuthError, BackendCapabilities, BackendConfig, BackendInfo, BackendManager, BackendMcpServerStatus, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, BackendRuntimeConfigUpdate, BackendStatus, BackendType, BatchBackend, BatchBackendStats, BatchEvent, BatchEventDataMap, BatchResult, BatchResultAccumulator, BatchRunOptions, PublicBatchRunRequestInput as BatchRunRequest, BatchSidecarGroup, BatchTaskInput as BatchTask, BatchTaskResult, BatchTaskUsage, BranchFanoutExceedsHostError, BranchOptions, BrowserInteractiveSessionControlController, BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, BrowserInteractiveSessionControllerOptions, BuildControlPlaneMcpConfigOptions, BuildProgressEvent, BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, Capability, CapabilityError, ChunkedUploadOptions, ChunkedUploadResult, CollaborationAccess, CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenPayload, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, CommitTaskSessionOptions, CompletedTurnPayload, CompletedTurnResult, ConfidentialSandboxResult, ConfidentialTeeType, ConversationTurnOptions, ConversationTurnResult, CreateConfidentialSandboxOptions, CreateGpuLeaseOptions, CreateIntelligenceReportOptions, CreateRequestOptions, CreateSandboxFleetOptions, CreateSandboxFleetWithCoordinatorOptions, CreateSandboxOptions, CreateSelectSeatOptions, CreateSessionOptions, CreateTaskSessionOptions, CreateTeamOptions, DECLARED_SECRET_HOSTS_ENV_VAR, DEFAULT_SANDBOX_SIZE, DeleteMatchingSandboxOutcome, DeleteMatchingSandboxResult, DeleteMatchingSandboxesFilter, DeleteMatchingSandboxesOptions, DeleteMatchingSandboxesResult, DeleteOptions, DevServerInfo, DispatchPromptOptions, DispatchedSession, DockerDriverConfig, DownloadOptions, DownloadProgress, DownloadResult, DriveTurnOptions, DriverConfig, DriverInfo, DriverType, DurablePlan, DurablePlanDecisionOptions, DurablePlanDecisionResult, DurablePlanFollowUpResume, EdgeNotReadyError, EffectiveBackend, EffectiveBackendProfile, EffectiveBackendSource, EgressDenial, EgressManager, EgressPolicy, EgressProxyRecoveryError, EnsureDevServerOptions, EnsureInstanceOptions, EventStreamOptions, ExactProcessSpawnOptions, ExecOptions, ExecResult, FileInfo, FileReadBatchOptions, FileReadBatchResult, FileReadError, FileReadResult, FileRenameResult, FileSystem, FileTreeFile, FileTreeOptions, FileTreeResult, FileUsageOptions, FileUsageResult, FileWriteConflictError, FileWriteResult, FleetAgentId, FleetAgentPlacement, FleetAgentResult, FleetAgentRunStatus, FleetDispatchCancelResult, FleetDispatchResultBuffer, FleetDispatchResultBufferOptions, FleetDispatchStreamOptions, FleetDriveTurnOutcome, FleetDriveTurnRequest, FleetExecDispatchOptions, FleetMachineId, FleetPromptDispatchOptions, FleetPromptDispatchResult, FleetRunEvent, FleetRunOptions, ForkAcknowledgement, ForkCounts, ForkIdempotency, ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, GitAuth, GitBranch, GitCommit, GitConfig, GitDiff, GitStatus, GpuLease, GpuLeaseBilling, GpuLeaseCommandResult, GpuLeaseExecOptions, GpuLeaseExecResult, GpuLeaseManager, GpuLeaseProviderName, GpuLeaseProviderState, GpuLeaseProviderStatus, GpuLeaseProviders, GpuLeaseProvidersOptions, GpuLeaseStatus, GpuProviderNotConfiguredError, GpuProviderRequirement, HostAgentDriverConfig, HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, ISOLATED_CREATION_ATTESTATION_VERSION, Image, ImageBuildClient, ImageBuildClientConfig, ImageBuildFetchClient, ImageBuildOptions, ImageBuildResult, ImageBuilder, ImageSpec, InstanceProfile, InstanceRecord, InstanceRestartingError, InstanceStart, InstancesClient, IntelligenceClient, IntelligenceReport, IntelligenceReportBudget, IntelligenceReportCompareTo, IntelligenceReportSubjectType, IntelligenceReportWindow, InteractiveAttachOptions, InteractiveAttachRequest, InteractiveControlClaimAcknowledgement, InteractiveControlClaimOptions, InteractiveControlClaimRequest, InteractivePromptCommand, InteractiveRequestOptions, InteractiveSessionControlClaim, InteractiveSessionControlController, InteractiveSessionControlControllerOptions, InteractiveSessionControlTransport, InteractiveSessionController, InteractiveSessionControllerOptions, InteractiveSessionControllerTransport, InteractiveSessionHandle, InteractiveSessionHandleOptions, InteractiveSessionHost, InteractiveSessionIdentity, InteractiveSessionIncarnationId, InteractiveSessionInfo, InteractiveSessionNotRunningError, InteractiveSessionRef, InteractiveSessionStartOptions, InteractiveSessionStartResult, InteractiveSessionStatus, InteractiveStopCommand, InteractiveTerminalCapture, InteractiveTerminalFrameLog, InteractiveTerminalMetadata, InterruptResult, InviteTeamMemberOptions, IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, ListMessagesOptions, ListOptions, ListSandboxFleetOptions, ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManageSandboxesInput, ManageSandboxesTool, ManageSandboxesToolOptions, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, MaterializeProfileFileMountsOptions, MaterializeProfileFileMountsResult, McpServerConfig, MintInteractiveSessionTokenOptions, MintScopedTokenOptions, MkdirOptions, NativeStoreHomeCopy, NetworkConfig, NetworkError, NetworkManager, NonHostAgentDriverConfig, NotFoundError, ParseSSEStreamOptions, ParsedSSEEvent, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, Process, ProcessInfo, ProcessListOptions, ProcessLogEntry, ProcessManager, ProcessSignal, ProcessSpawnOptions, ProcessStatus, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PromptOptions, PromptResult, ProvisionEvent, ProvisionResult, ProvisionStatus, ProvisionStep, PublicProfileConflict, PublicTemplateInfo, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplateVersionInfo, PublicTemplatesClient, PublishPublicTemplateOptions, PublishPublicTemplateVersionOptions, QuotaError, RawEvidenceArchiveManifest, RawEvidenceArchiveManifestNative, RawEvidenceBoxArchiveManifest, RawEvidenceBoxDirectoryExport, RawEvidenceBoxExportOptions, RawEvidenceDirectoryExport, RawEvidenceExport, RawEvidenceExportOptions, RawEvidenceNativeFile, RawEvidencePayloadFile, RawEvidenceRecordsFile, ReapExpiredSandboxFleetsOptions, ReapExpiredSandboxFleetsResult, ReconcileSandboxFleetsOptions, ReconcileSandboxFleetsResult, RenameOptions, RespondToPermissionOptions, ResumeEnvRequiredError, Rollout, RolloutChildResult, RolloutOptions, RolloutScorer, RolloutStartResult, RolloutStatus, RolloutTurnPart, RouterEvalMatrixAgentProfile, RouterEvalMatrixCaseResult, RouterEvalMatrixHarness, RouterEvalMatrixPayload, RouterEvalMatrixSandboxBox, RouterEvalMatrixSandboxClient, RouterEvalMatrixScenario, RouterEvalMatrixSuiteResponse, RouterImportedRunResponse, RouterRoutingOptions, RouterSearchConfig, RouterSearchConfigOptions, RunOptions, RunPlacement, RunPlacementRecord, RunRecord, RunTangleRouterEvalMatrixInSandboxOptions, RunTangleRouterEvalMatrixInSandboxResult, RunWaitOptions, RunsClient, RunsHttpClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, SSHCommandDescriptor, SSHCredentials, Sandbox, SandboxConfig, SandboxConnection, SandboxCreateOutcome, SandboxCreateReceipt, SandboxDeleteAcknowledgement, SandboxDeleteOptions, SandboxDeleteOutcome, SandboxEgressUsage, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxEnvironment, SandboxError, SandboxErrorJson, SandboxEvent, SandboxFailureDetail, SandboxFleet, SandboxFleetAgent, SandboxFleetAgentSpec, SandboxFleetArtifact, SandboxFleetArtifactSpec, SandboxFleetClient, SandboxFleetCostEstimate, SandboxFleetDispatchFailureClass, SandboxFleetDispatchResponse, SandboxFleetDriverCapability, SandboxFleetDriverTimings, SandboxFleetInfo, SandboxFleetIntelligenceEnvelope, SandboxFleetMachine, SandboxFleetMachineMeteredUsage, SandboxFleetMachineRecord, SandboxFleetMachineSpec, SandboxFleetManifest, SandboxFleetManifestMachine, SandboxFleetOperationsSummary, SandboxFleetParent, SandboxFleetPlacement, SandboxFleetPolicy, SandboxFleetProfileRef, SandboxFleetSpend, SandboxFleetToken, SandboxFleetTraceBundle, SandboxFleetTraceEvent, SandboxFleetTraceExport, SandboxFleetTraceOptions, SandboxFleetUsage, SandboxFleetWorkspace, SandboxFleetWorkspaceReconcileResult, SandboxFleetWorkspaceRestoreResult, SandboxFleetWorkspaceSnapshotResult, SandboxIdentity, SandboxInfo, SandboxInstance, SandboxIntelligenceEnvelope, SandboxInteractionCommandResult, SandboxInteractionConflict, SandboxInteractionResolution, SandboxInteractionResult, SandboxLines, SandboxMcpConfig, SandboxMcpEndpoint, SandboxMcpServerEntry, SandboxOperation, SandboxOperationFailedError, SandboxOperationInfo, SandboxOperationKind, SandboxOperationState, SandboxPortBinding, SandboxPortPreviewLink, SandboxRemovalState, SandboxResolvedSeat, SandboxResourceUsage, SandboxResources, SandboxRunGeneration, SandboxRuntimeCapabilities, SandboxRuntimeHealth, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxSession, SandboxShape, SandboxShapePreset, SandboxShapesInfo, SandboxSizePreset, SandboxStatus, SandboxTaskSession, SandboxTerminalAttachOptions, SandboxTerminalCreateOptions, SandboxTerminalInfo, SandboxTerminalManager, SandboxTerminalRequestOptions, SandboxTerminals, SandboxTraceBundle, SandboxTraceEvent, SandboxTraceExport, SandboxTraceOptions, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, ScopedToken, ScopedTokenScope, SearchMatch, SearchOptions, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, SecretBinding, SecretInfo, SecretsManager, SendSessionMessageOptions, SendSessionMessageRequest, SentSessionMessage, ServerError, SessionBackendCredentials, SessionBroadcastEvent, SessionBroadcastResult, SessionEventStreamOptions, SessionExecutionInfo, SessionExecutionStatus, SessionFailureReason, SessionForkOptions, SessionInfo, SessionInterruptOptions, SessionListOptions, SessionMessage, SessionMessageAdmission, SessionMessageInputPart, SessionResultOptions, SessionStatus, SnapshotDeleteAcknowledgement, SnapshotDeleteOutcome, SnapshotIdempotency, SnapshotInfo, SnapshotOptions, SnapshotRemoteSync, SnapshotResult, SplitInlineProfileFileMountsResult, SplitInlineProfileSkillsResult, StartupDiagnostics, StartupOperation, StateError, StopOptions, StorageConfig, StreamInterruptedError, StreamInterruptionReason, SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TangleSandboxClientConfig, TangleSearchProvider, TaskSessionChanges, TaskSessionCommitResult, TaskSessionFileChange, TaskSessionInfo, TaskSessionProfile, Team, TeamInvitation, TeamMember, TeeAttestationHeartbeat, TeeAttestationHeartbeatOptions, TeeAttestationHeartbeatSample, TeeAttestationOptions, TeeAttestationReport, TeeAttestationResponse, TeePublicKey, TeePublicKeyResponse, TerminalAttachTimings, TerminalExitInfo, TerminalInteractiveSessionIdentity, TerminalOutputMessage, TerminalReadyInfo, TerminalReadyTimings, TerminalStream, TerminalStreamApiKey, TerminalStreamAuthFormat, TerminalStreamBearerToken, TerminalStreamError, TerminalStreamHandlers, TerminalStreamOptions, TerminalStreamToken, TimeoutError, TokenRefreshHandler, TokenUsage, TraceExportFormat, TraceExportResult, TraceExportSink, TurnBackendConfig, TurnDriveResult, UploadOptions, UploadProgress, UsageInfo, ValidationError, WaitForOptions, WaitForRolloutOptions, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, WorkspaceOperationLookup, WriteFileOptions, WriteManyFile, WriteManyOptions, applySandboxEventText, assertDeclaredSecretsHeld, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, baseProxyToken, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, createSelectSeat, declaredSecretBaseToken, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, gatewaySeatTransport, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseDeclaredSecretsEnv, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as isolationPrincipalSchema, o as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-CLvdSX8V.js";
|
|
2
2
|
import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, b as parseSSEStream, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-DoYo8Kq5.js";
|
|
3
3
|
import { C as StreamInterruptedError, S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, c as EdgeNotReadyError, d as GpuProviderNotConfiguredError, f as KeyBudgetExhaustedError, g as PartialFailureError, h as NotFoundError, l as EgressProxyRecoveryError, m as NetworkError, o as BranchFanoutExceedsHostError, s as CapabilityError, t as TerminalStreamError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError, y as ResumeEnvRequiredError } from "./errors-CfQHPcLX.js";
|
|
4
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
4
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-D7emKV41.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-Tn2ygatK.js";
|
|
7
|
-
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
7
|
+
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-C_DMDlO5.js";
|
|
8
8
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-BdF6b46c.js";
|
|
9
9
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
10
10
|
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DnrLA0im.js";
|
|
11
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { s as TangleSandboxClient } from "./tangle-CedA3iP4.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
2
|
-
import { rr as TerminalStream } from "./types-
|
|
2
|
+
import { rr as TerminalStream } from "./types-0pIxzm2k.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-DmuOTpD1.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as CreateSandboxOptions, xa as BackendConfig } from "./types-
|
|
1
|
+
import { ar as CreateSandboxOptions, xa as BackendConfig } from "./types-0pIxzm2k.js";
|
|
2
2
|
|
|
3
3
|
//#region src/line-application.d.ts
|
|
4
4
|
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
package/dist/lines.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-
|
|
1
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-DuELZcNj.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as SandboxInstance } from "./index-
|
|
2
|
-
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
1
|
+
import { O as SandboxInstance } from "./index-0eZStBT2.js";
|
|
2
|
+
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-0pIxzm2k.js";
|
|
3
|
+
import { t as Sandbox } from "./client-CuRp6nJP.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as SandboxError } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
2
|
-
import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-
|
|
2
|
+
import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-0pIxzm2k.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DsozsQ0T.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as NotFoundError, F as SandboxError, H as TimeoutError, I as SandboxErrorJson, L as SandboxFailureDetail, M as ProfileFileMountPathError, N as QuotaError, R as ServerError, S as CapabilityError, T as FileWriteConflictError, U as ValidationError, b as AuthError, j as PartialFailureError, k as NetworkError, u as ScopedToken, z as StateError } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
2
|
-
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, fa as SandboxEvent, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-
|
|
2
|
+
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, fa as SandboxEvent, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-0pIxzm2k.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DmuOTpD1.js";
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
4
|
+
import { t as BrowserInteractiveSessionController } from "./interactive-controller-CIHMF8C4.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DdsouF9L.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -1065,29 +1065,6 @@ function sendsRefreshReason() {
|
|
|
1065
1065
|
return !("document" in globalThis);
|
|
1066
1066
|
}
|
|
1067
1067
|
//#endregion
|
|
1068
|
-
//#region ../../../packages/runtime-contracts/dist/sidecar-proxy-error.js
|
|
1069
|
-
/**
|
|
1070
|
-
* Response header that the host-agent sidecar proxy puts on each error it
|
|
1071
|
-
* writes itself. The value is the host-agent error code, for example
|
|
1072
|
-
* `NOT_MANAGED` or `ROUTE_LOOKUP_FAILED`.
|
|
1073
|
-
*
|
|
1074
|
-
* The orchestrator reaches a sidecar only through the host-agent sidecar
|
|
1075
|
-
* proxy. Thus two services write errors on that path. They use the same
|
|
1076
|
-
* statuses (404, 502, 503, 504) and the same `{error, code}` JSON body. This
|
|
1077
|
-
* header names the author of the response. If the header is present, the
|
|
1078
|
-
* host-agent wrote the response. If the header is absent, the sidecar wrote
|
|
1079
|
-
* the response.
|
|
1080
|
-
*
|
|
1081
|
-
* The orchestrator invalidates the endpoint and sends the request again only
|
|
1082
|
-
* for a host-agent error. A sidecar error is an ordinary answer, and a new
|
|
1083
|
-
* endpoint cannot change it.
|
|
1084
|
-
*
|
|
1085
|
-
* The host-agent deletes this header from an upstream response before it
|
|
1086
|
-
* returns that response. A sidecar must not be able to set the header. A
|
|
1087
|
-
* tenant preview app on an in-container port must not be able to set it.
|
|
1088
|
-
*/
|
|
1089
|
-
const SIDECAR_PROXY_ERROR_HEADER = "X-Tangle-Sidecar-Proxy-Error";
|
|
1090
|
-
//#endregion
|
|
1091
1068
|
//#region ../../../packages/runtime-contracts/dist/sidecar-request.js
|
|
1092
1069
|
/**
|
|
1093
1070
|
* One normalizer for every edge route and host proxy, including preview ports.
|
|
@@ -1161,46 +1138,191 @@ function classifySidecarRequest(input, method, upgrade = false) {
|
|
|
1161
1138
|
};
|
|
1162
1139
|
}
|
|
1163
1140
|
//#endregion
|
|
1164
|
-
//#region
|
|
1141
|
+
//#region ../../../packages/runtime-contracts/dist/sidecar-proxy-error.js
|
|
1142
|
+
/**
|
|
1143
|
+
* Response header that the host-agent sidecar proxy puts on each error it
|
|
1144
|
+
* writes itself. The value is the host-agent error code, for example
|
|
1145
|
+
* `NOT_MANAGED` or `ROUTE_LOOKUP_FAILED`.
|
|
1146
|
+
*
|
|
1147
|
+
* The orchestrator reaches a sidecar only through the host-agent sidecar
|
|
1148
|
+
* proxy. Thus two services write errors on that path. They use the same
|
|
1149
|
+
* statuses (404, 502, 503, 504) and the same `{error, code}` JSON body. This
|
|
1150
|
+
* header names the author of the response. If the header is present, the
|
|
1151
|
+
* host-agent wrote the response. If the header is absent, the sidecar wrote
|
|
1152
|
+
* the response.
|
|
1153
|
+
*
|
|
1154
|
+
* The orchestrator invalidates the endpoint and sends the request again only
|
|
1155
|
+
* for a host-agent error. A sidecar error is an ordinary answer, and a new
|
|
1156
|
+
* endpoint cannot change it.
|
|
1157
|
+
*
|
|
1158
|
+
* The host-agent deletes this header from an upstream response before it
|
|
1159
|
+
* returns that response. A sidecar must not be able to set the header. A
|
|
1160
|
+
* tenant preview app on an in-container port must not be able to set it.
|
|
1161
|
+
*/
|
|
1162
|
+
const SIDECAR_PROXY_ERROR_HEADER = "X-Tangle-Sidecar-Proxy-Error";
|
|
1163
|
+
//#endregion
|
|
1164
|
+
//#region src/runtime-route-policy.ts
|
|
1165
1165
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
*
|
|
1166
|
+
* Where the default sandbox handle sends a runtime call, and whether a call
|
|
1167
|
+
* the cell edge did not serve may be sent again through the Sandbox API.
|
|
1168
|
+
*
|
|
1169
|
+
* A call goes to one of three places:
|
|
1170
|
+
* - the cell's exec host, for the exec family on its short grant
|
|
1171
|
+
* (`classifySidecarRequest(...).shortTokenRequired`);
|
|
1172
|
+
* - the Sandbox API, for the platform operations it answers itself and for
|
|
1173
|
+
* the agent calls it prepares before the sidecar sees them;
|
|
1174
|
+
* - the cell edge at `connection.runtimeUrl`, for everything else: files,
|
|
1175
|
+
* processes, agent reads and event streams, git, backend, terminals.
|
|
1176
|
+
*
|
|
1177
|
+
* A call the edge did not serve goes to the API once. When the answer proves
|
|
1178
|
+
* the sandbox never received the call, any call goes; when it does not, only
|
|
1179
|
+
* a call that is safe to apply twice goes.
|
|
1170
1180
|
*/
|
|
1171
|
-
/**
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1181
|
+
/** Platform operations under `/runtime` that the API answers itself. */
|
|
1182
|
+
function isControlPlaneRuntimePath(runtimePath) {
|
|
1183
|
+
const path = runtimePath.split("?")[0] ?? "";
|
|
1184
|
+
return path === "/network" || path.startsWith("/network/") || path === "/preview-links" || path.startsWith("/preview-links/");
|
|
1185
|
+
}
|
|
1186
|
+
const READ_METHODS = new Set([
|
|
1187
|
+
"GET",
|
|
1188
|
+
"HEAD",
|
|
1189
|
+
"OPTIONS"
|
|
1190
|
+
]);
|
|
1191
|
+
/**
|
|
1192
|
+
* Agent calls that write stay on the API. Before the sidecar sees one, the
|
|
1193
|
+
* API's runtime proxy attaches the sandbox's managed model credential, mints
|
|
1194
|
+
* a durable-plan grant, refuses an unsealed secret-isolation turn, caps the
|
|
1195
|
+
* execution lifetime and serves a blocking run from the stream route
|
|
1196
|
+
* (products/sandbox/api/src/routes/sandbox-gpu-and-proxy.ts). The edge only
|
|
1197
|
+
* forwards bytes. `path` is normalized, without a leading slash; `session/`
|
|
1198
|
+
* is the sidecar's alias for `agents/`.
|
|
1199
|
+
*/
|
|
1200
|
+
function apiOwnedRuntimeRoute(method, path) {
|
|
1201
|
+
return !READ_METHODS.has(method) && /^(?:agents|session)(?:\/|$)/.test(path);
|
|
1202
|
+
}
|
|
1203
|
+
/** RFC 9110 idempotent methods: applying one twice leaves what once did. */
|
|
1204
|
+
const IDEMPOTENT_METHODS = new Set([
|
|
1205
|
+
"GET",
|
|
1206
|
+
"HEAD",
|
|
1207
|
+
"OPTIONS",
|
|
1208
|
+
"PUT",
|
|
1209
|
+
"DELETE"
|
|
1210
|
+
]);
|
|
1211
|
+
/** POST routes that only read: the body carries the query, not a change. */
|
|
1212
|
+
const READ_ONLY_POSTS = new Set([
|
|
1213
|
+
"files/read",
|
|
1214
|
+
"files/read-batch",
|
|
1215
|
+
"search"
|
|
1216
|
+
]);
|
|
1217
|
+
/** Whether a call may be sent again after an answer that may follow delivery. */
|
|
1218
|
+
function isReplaySafe(method, path) {
|
|
1219
|
+
return IDEMPOTENT_METHODS.has(method) || method === "POST" && READ_ONLY_POSTS.has(path);
|
|
1220
|
+
}
|
|
1221
|
+
/** Whether fetch can send this body twice. A stream is read once. */
|
|
1222
|
+
function isReplayableBody(body) {
|
|
1223
|
+
if (body === void 0 || body === null || typeof body === "string") return true;
|
|
1224
|
+
if (typeof ReadableStream !== "undefined" && body instanceof ReadableStream) return false;
|
|
1225
|
+
return !(Symbol.asyncIterator in body);
|
|
1177
1226
|
}
|
|
1178
1227
|
/**
|
|
1179
|
-
* Host-agent refusals
|
|
1180
|
-
* (apps/host-agent/src/routes/runtime-sidecar-proxy.ts): the box is
|
|
1181
|
-
* this host
|
|
1182
|
-
*
|
|
1228
|
+
* Host-agent refusals written before it forwards anything to the sidecar
|
|
1229
|
+
* (apps/host-agent/src/routes/runtime-sidecar-proxy-request.ts): the box is
|
|
1230
|
+
* not on this host or has no address, its route could not be read, the
|
|
1231
|
+
* edge's ingress token does not match it, its sidecar is restarting, the
|
|
1232
|
+
* access record could not be written, or the host has no sidecar secret.
|
|
1183
1233
|
*/
|
|
1184
1234
|
const UNDELIVERED_HOST_REFUSALS = new Set([
|
|
1185
1235
|
"NOT_MANAGED",
|
|
1186
1236
|
"NO_IP",
|
|
1187
1237
|
"ROUTE_LOOKUP_FAILED",
|
|
1188
|
-
"
|
|
1238
|
+
"INGRESS_TOKEN_REJECTED",
|
|
1239
|
+
"SIDECAR_RESTARTING",
|
|
1240
|
+
"DIRECT_ACCESS_AUDIT_UNAVAILABLE",
|
|
1241
|
+
"MISSING_SIDECAR_AUTH_TOKEN"
|
|
1189
1242
|
]);
|
|
1190
|
-
/**
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
if (response.status !== 404) return false;
|
|
1243
|
+
/** Edge route misses (apps/edge-router/src/server.ts): nothing is forwarded. */
|
|
1244
|
+
const EDGE_ROUTE_MISSES = new Set([
|
|
1245
|
+
"unknown_host",
|
|
1246
|
+
"outside_zone",
|
|
1247
|
+
"invalid_host",
|
|
1248
|
+
"no_host_header"
|
|
1249
|
+
]);
|
|
1250
|
+
async function routeMissReason(response) {
|
|
1199
1251
|
try {
|
|
1200
|
-
return (await response.clone().json()).reason
|
|
1252
|
+
return (await response.clone().json()).reason;
|
|
1201
1253
|
} catch {
|
|
1202
|
-
return
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
/** Classify an edge answer. Reads a clone, so the caller keeps the body. */
|
|
1258
|
+
async function edgeVerdict(response) {
|
|
1259
|
+
const hostCode = response.headers.get(SIDECAR_PROXY_ERROR_HEADER);
|
|
1260
|
+
if (hostCode) {
|
|
1261
|
+
if (UNDELIVERED_HOST_REFUSALS.has(hostCode)) return "undelivered";
|
|
1262
|
+
return hostCode === "SIDECAR_UPSTREAM_UNAVAILABLE" ? "unknown" : "served";
|
|
1263
|
+
}
|
|
1264
|
+
if ((response.status === 400 || response.status === 404 || response.status === 421) && EDGE_ROUTE_MISSES.has(await routeMissReason(response))) return "undelivered";
|
|
1265
|
+
if (response.status === 502 || response.status === 503 || response.status === 504) return "unknown";
|
|
1266
|
+
return "served";
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Errors raised before a connection to the edge existed: the name did not
|
|
1270
|
+
* resolve, nothing accepted the connection, the connect timed out, or the
|
|
1271
|
+
* edge's certificate failed. Nothing was sent.
|
|
1272
|
+
*/
|
|
1273
|
+
const CONNECT_PHASE_CODES = new Set([
|
|
1274
|
+
"ECONNREFUSED",
|
|
1275
|
+
"ENOTFOUND",
|
|
1276
|
+
"EAI_AGAIN",
|
|
1277
|
+
"EHOSTUNREACH",
|
|
1278
|
+
"ENETUNREACH",
|
|
1279
|
+
"UND_ERR_CONNECT_TIMEOUT",
|
|
1280
|
+
"ERR_TLS_CERT_ALTNAME_INVALID",
|
|
1281
|
+
"CERT_HAS_EXPIRED",
|
|
1282
|
+
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
1283
|
+
"DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
1284
|
+
"SELF_SIGNED_CERT_IN_CHAIN"
|
|
1285
|
+
]);
|
|
1286
|
+
/**
|
|
1287
|
+
* Classify a failed edge request. Node wraps the socket error: fetch in
|
|
1288
|
+
* `cause`, a dual-stack connect in `cause.errors`, an HTTP/2 stream cancel in
|
|
1289
|
+
* `cause`. A runtime without error codes (a Worker) is `unknown`.
|
|
1290
|
+
*/
|
|
1291
|
+
function networkErrorVerdict(error) {
|
|
1292
|
+
const pending = [error];
|
|
1293
|
+
for (let seen = 0; pending.length > 0 && seen < 16; seen++) {
|
|
1294
|
+
const current = pending.shift();
|
|
1295
|
+
if (!current || typeof current !== "object") continue;
|
|
1296
|
+
if (typeof current.code === "string" && CONNECT_PHASE_CODES.has(current.code)) return "undelivered";
|
|
1297
|
+
if (current.cause !== void 0) pending.push(current.cause);
|
|
1298
|
+
if (Array.isArray(current.errors)) pending.push(...current.errors);
|
|
1203
1299
|
}
|
|
1300
|
+
return "unknown";
|
|
1301
|
+
}
|
|
1302
|
+
//#endregion
|
|
1303
|
+
//#region src/direct-runtime-client.ts
|
|
1304
|
+
/**
|
|
1305
|
+
* The SDK's direct runtime transport. Every default handle uses it edge
|
|
1306
|
+
* first (`SandboxConfig.directExec`): exec-family calls go to the sandbox's
|
|
1307
|
+
* cell exec host on the short exec grant, the other runtime calls the edge can
|
|
1308
|
+
* serve go to the cell edge at `connection.runtimeUrl` on the runtime bearer,
|
|
1309
|
+
* and a call the edge does not serve is sent through the API
|
|
1310
|
+
* (runtime-route-policy.ts). `SandboxInstance.direct()` uses it for every
|
|
1311
|
+
* runtime call, with no API fallback.
|
|
1312
|
+
*/
|
|
1313
|
+
/** Renew a bearer this close to its expiry before sending it. */
|
|
1314
|
+
const BEARER_RENEW_BEFORE_MS = 5e3;
|
|
1315
|
+
/**
|
|
1316
|
+
* How long a handle sends its runtime calls through the API after the edge
|
|
1317
|
+
* failed one. A dead edge costs a connect timeout per call and an unpublished
|
|
1318
|
+
* route a bounded wait at the edge, so later calls skip it for a while; a
|
|
1319
|
+
* route published since (after a resume) is used again once this passes.
|
|
1320
|
+
*/
|
|
1321
|
+
const EDGE_COOLDOWN_MS = 3e4;
|
|
1322
|
+
function expiresSoon(expiresAt) {
|
|
1323
|
+
if (!expiresAt) return false;
|
|
1324
|
+
const at = Date.parse(expiresAt);
|
|
1325
|
+
return Number.isFinite(at) && at - Date.now() < BEARER_RENEW_BEFORE_MS;
|
|
1204
1326
|
}
|
|
1205
1327
|
/**
|
|
1206
1328
|
* A runtime refusal that says the sandbox is not there to answer: the edge
|
|
@@ -1223,18 +1345,19 @@ var DirectRuntimeHttpClient = class {
|
|
|
1223
1345
|
onUnauthorized;
|
|
1224
1346
|
onUnreachable;
|
|
1225
1347
|
/**
|
|
1226
|
-
* The default mode:
|
|
1227
|
-
*
|
|
1348
|
+
* The default mode: calls the API prepares stay on it, the rest go to the
|
|
1349
|
+
* cell, and a call the cell does not serve is sent through the API.
|
|
1228
1350
|
* Without it (`SandboxInstance.direct()`) every runtime call goes direct.
|
|
1229
1351
|
*/
|
|
1230
|
-
|
|
1352
|
+
edgeFirst;
|
|
1353
|
+
edgeCooldownUntil = 0;
|
|
1231
1354
|
constructor(baseClient, sandboxId, getConnection, onUnauthorized, onUnreachable, options = {}) {
|
|
1232
1355
|
this.baseClient = baseClient;
|
|
1233
1356
|
this.sandboxId = sandboxId;
|
|
1234
1357
|
this.getConnection = getConnection;
|
|
1235
1358
|
this.onUnauthorized = onUnauthorized;
|
|
1236
1359
|
this.onUnreachable = onUnreachable;
|
|
1237
|
-
this.
|
|
1360
|
+
this.edgeFirst = options.edgeFirst === true;
|
|
1238
1361
|
}
|
|
1239
1362
|
get onTiming() {
|
|
1240
1363
|
return this.baseClient.onTiming;
|
|
@@ -1242,8 +1365,8 @@ var DirectRuntimeHttpClient = class {
|
|
|
1242
1365
|
get directExec() {
|
|
1243
1366
|
return this.baseClient.directExec;
|
|
1244
1367
|
}
|
|
1245
|
-
get
|
|
1246
|
-
return this.
|
|
1368
|
+
get isEdgeFirst() {
|
|
1369
|
+
return this.edgeFirst;
|
|
1247
1370
|
}
|
|
1248
1371
|
/** The API client this wrapper falls back to. */
|
|
1249
1372
|
get apiClient() {
|
|
@@ -1262,41 +1385,54 @@ var DirectRuntimeHttpClient = class {
|
|
|
1262
1385
|
_emitTokenRefresh(sandboxId, newToken) {
|
|
1263
1386
|
this.baseClient._emitTokenRefresh?.(sandboxId, newToken);
|
|
1264
1387
|
}
|
|
1388
|
+
/**
|
|
1389
|
+
* The edge origin a terminal dials first, or undefined to use the API: no
|
|
1390
|
+
* edge address, or the edge failed one of this handle's calls recently.
|
|
1391
|
+
*/
|
|
1392
|
+
edgeRuntimeUrl() {
|
|
1393
|
+
if (Date.now() < this.edgeCooldownUntil) return void 0;
|
|
1394
|
+
return this.getConnection()?.runtimeUrl || void 0;
|
|
1395
|
+
}
|
|
1265
1396
|
async fetch(path, options, fetchOptions) {
|
|
1397
|
+
const throughApi = () => this.baseClient.fetch(path, options, fetchOptions);
|
|
1266
1398
|
const runtimePrefix = `/v1/sandboxes/${encodeURIComponent(this.sandboxId)}/runtime`;
|
|
1267
|
-
if (!path.startsWith(runtimePrefix)) return
|
|
1399
|
+
if (!path.startsWith(runtimePrefix)) return throughApi();
|
|
1268
1400
|
const runtimePath = path.slice(runtimePrefix.length);
|
|
1269
|
-
if (
|
|
1270
|
-
const
|
|
1401
|
+
if (isControlPlaneRuntimePath(runtimePath)) return throughApi();
|
|
1402
|
+
const method = (options?.method ?? "GET").toUpperCase();
|
|
1403
|
+
const command = classifySidecarRequest(runtimePath.split("?")[0], method);
|
|
1271
1404
|
if (!command) {
|
|
1272
|
-
if (this.
|
|
1405
|
+
if (this.edgeFirst) return throughApi();
|
|
1273
1406
|
throw new NetworkError("Invalid direct runtime path");
|
|
1274
1407
|
}
|
|
1408
|
+
if (this.edgeFirst && (apiOwnedRuntimeRoute(method, command.path) || Date.now() < this.edgeCooldownUntil)) return throughApi();
|
|
1275
1409
|
const selectRoute = () => {
|
|
1276
1410
|
const connection = this.getConnection();
|
|
1277
1411
|
const useExec = command.shortTokenRequired && !!connection?.execHost && !!connection.execToken;
|
|
1278
1412
|
if (command.shortTokenRequired && !useExec) return void 0;
|
|
1279
|
-
if (this.execOnly && !useExec) return void 0;
|
|
1280
1413
|
const origin = useExec ? connection?.execHost : connection?.runtimeUrl;
|
|
1281
|
-
|
|
1414
|
+
const bearer = useExec ? connection?.execToken : connection?.authToken;
|
|
1415
|
+
if (!origin || this.edgeFirst && !bearer) return void 0;
|
|
1282
1416
|
return {
|
|
1283
1417
|
useExec,
|
|
1284
1418
|
url: `${origin.replace(/\/$/, "")}${runtimePath}`,
|
|
1285
|
-
bearer
|
|
1419
|
+
bearer,
|
|
1420
|
+
expiresAt: useExec ? connection?.execTokenExpiresAt : connection?.authTokenExpiresAt
|
|
1286
1421
|
};
|
|
1287
1422
|
};
|
|
1288
1423
|
let route = selectRoute();
|
|
1289
|
-
if (!route) return
|
|
1290
|
-
if (this.
|
|
1424
|
+
if (!route) return throughApi();
|
|
1425
|
+
if (this.edgeFirst && this.onUnauthorized && expiresSoon(route.expiresAt)) {
|
|
1291
1426
|
try {
|
|
1292
1427
|
await this.onUnauthorized();
|
|
1293
1428
|
} catch {
|
|
1294
|
-
return
|
|
1429
|
+
return throughApi();
|
|
1295
1430
|
}
|
|
1296
1431
|
route = selectRoute();
|
|
1297
|
-
if (!route) return
|
|
1432
|
+
if (!route) return throughApi();
|
|
1298
1433
|
}
|
|
1299
|
-
const canResendThroughApi = this.
|
|
1434
|
+
const canResendThroughApi = this.edgeFirst && isReplayableBody(options?.body);
|
|
1435
|
+
const replaySafe = isReplaySafe(method, command.path);
|
|
1300
1436
|
const headers = new Headers(options?.headers);
|
|
1301
1437
|
const authenticate = () => {
|
|
1302
1438
|
headers.delete("Authorization");
|
|
@@ -1305,6 +1441,11 @@ var DirectRuntimeHttpClient = class {
|
|
|
1305
1441
|
if (route?.bearer) headers.set("Authorization", `Bearer ${route.bearer}`);
|
|
1306
1442
|
};
|
|
1307
1443
|
authenticate();
|
|
1444
|
+
const resendThroughApi = async (refused) => {
|
|
1445
|
+
await refused?.body?.cancel().catch(() => {});
|
|
1446
|
+
this.edgeCooldownUntil = Date.now() + EDGE_COOLDOWN_MS;
|
|
1447
|
+
return throughApi();
|
|
1448
|
+
};
|
|
1308
1449
|
const isFormDataBody = typeof FormData !== "undefined" && options?.body instanceof FormData;
|
|
1309
1450
|
if (!headers.has("Content-Type") && !isFormDataBody) headers.set("Content-Type", "application/json");
|
|
1310
1451
|
const init = {
|
|
@@ -1330,7 +1471,17 @@ var DirectRuntimeHttpClient = class {
|
|
|
1330
1471
|
}
|
|
1331
1472
|
return fetchWithKeepAlive(route.url, request, timing);
|
|
1332
1473
|
};
|
|
1333
|
-
|
|
1474
|
+
const sendOrResend = async (request) => {
|
|
1475
|
+
try {
|
|
1476
|
+
return { sent: await send(request) };
|
|
1477
|
+
} catch (error) {
|
|
1478
|
+
if (canResendThroughApi && !init.signal?.aborted && !headers.has("x-no-retry") && (replaySafe || networkErrorVerdict(error) === "undelivered")) return { resent: await resendThroughApi() };
|
|
1479
|
+
throw error;
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
const first = await sendOrResend(init);
|
|
1483
|
+
if ("resent" in first) return first.resent;
|
|
1484
|
+
let response = first.sent;
|
|
1334
1485
|
if ((response.status === 401 || response.status === 403 && await isRefusedBearer(response)) && this.onUnauthorized && !headers.has("x-no-retry")) {
|
|
1335
1486
|
const refusal = {
|
|
1336
1487
|
status: response.status,
|
|
@@ -1341,20 +1492,22 @@ var DirectRuntimeHttpClient = class {
|
|
|
1341
1492
|
try {
|
|
1342
1493
|
await this.onUnauthorized();
|
|
1343
1494
|
} catch {
|
|
1344
|
-
if (canResendThroughApi) return
|
|
1495
|
+
if (canResendThroughApi) return throughApi();
|
|
1345
1496
|
return new Response(refusedBody, refusal);
|
|
1346
1497
|
}
|
|
1347
1498
|
route = selectRoute();
|
|
1348
|
-
if (!route) return
|
|
1499
|
+
if (!route) return throughApi();
|
|
1349
1500
|
authenticate();
|
|
1350
|
-
|
|
1501
|
+
const retried = await sendOrResend({
|
|
1351
1502
|
...init,
|
|
1352
1503
|
headers
|
|
1353
1504
|
});
|
|
1505
|
+
if ("resent" in retried) return retried.resent;
|
|
1506
|
+
response = retried.sent;
|
|
1354
1507
|
}
|
|
1355
|
-
if (canResendThroughApi &&
|
|
1356
|
-
await response
|
|
1357
|
-
|
|
1508
|
+
if (canResendThroughApi && !headers.has("x-no-retry")) {
|
|
1509
|
+
const verdict = await edgeVerdict(response);
|
|
1510
|
+
if (verdict === "undelivered" || verdict === "unknown" && replaySafe) return resendThroughApi(response);
|
|
1358
1511
|
}
|
|
1359
1512
|
if (this.onUnreachable && await isRuntimeUnreachable(response)) await this.onUnreachable();
|
|
1360
1513
|
const responseHeaders = new Headers(response.headers);
|
|
@@ -9814,12 +9967,13 @@ var SandboxFilesystemOperations = class {
|
|
|
9814
9967
|
//#endregion
|
|
9815
9968
|
//#region src/sandbox-interactive-terminal.ts
|
|
9816
9969
|
/**
|
|
9817
|
-
* How long a refused
|
|
9818
|
-
*
|
|
9819
|
-
*
|
|
9820
|
-
*
|
|
9970
|
+
* How long a refused dial keeps this sandbox handle off that dial: an API-key
|
|
9971
|
+
* upgrade the gateway refused, or an edge dial that failed before ready. One
|
|
9972
|
+
* refusal is evidence about the deployment (a gateway that does not yet take
|
|
9973
|
+
* the key on an upgrade, an edge that does not yet forward the bearer), so the
|
|
9974
|
+
* next attaches skip the failed dial instead of paying it each time.
|
|
9821
9975
|
*/
|
|
9822
|
-
const
|
|
9976
|
+
const REFUSED_DIAL_TTL_MS = 5 * 6e4;
|
|
9823
9977
|
/**
|
|
9824
9978
|
* A refused upgrade: the socket never opened. A WebSocket client cannot read
|
|
9825
9979
|
* the HTTP status, so this stands for 401 and 403 and also for a network drop;
|
|
@@ -9828,6 +9982,21 @@ const API_KEY_UPGRADE_REFUSAL_TTL_MS = 5 * 6e4;
|
|
|
9828
9982
|
function isUpgradeRefusal(error) {
|
|
9829
9983
|
return error instanceof TerminalStreamError && error.beforeOpen;
|
|
9830
9984
|
}
|
|
9985
|
+
/** Transport failures before `ready`; a protocol error frame is the terminal's own answer. */
|
|
9986
|
+
const EDGE_DIAL_FAILURES = new Set([
|
|
9987
|
+
"TRANSPORT",
|
|
9988
|
+
"CLOSED_BEFORE_READY",
|
|
9989
|
+
"CONNECT_TIMEOUT"
|
|
9990
|
+
]);
|
|
9991
|
+
/**
|
|
9992
|
+
* An edge dial that never reached `ready` for a transport reason: refused,
|
|
9993
|
+
* dropped or timed out. An edge that predates its bearer forward accepts the
|
|
9994
|
+
* upgrade and closes it once the host refuses, so a close before `ready`
|
|
9995
|
+
* counts as well.
|
|
9996
|
+
*/
|
|
9997
|
+
function isEdgeDialFailure(error) {
|
|
9998
|
+
return error instanceof TerminalStreamError && (error.beforeOpen || EDGE_DIAL_FAILURES.has(error.code));
|
|
9999
|
+
}
|
|
9831
10000
|
/**
|
|
9832
10001
|
* Hold the caller's `onClose` until the stream is ready. A dial that is
|
|
9833
10002
|
* abandoned for a scoped-token dial must not report a close the caller never
|
|
@@ -9859,6 +10028,7 @@ function holdCloseUntilReady(handlers) {
|
|
|
9859
10028
|
}
|
|
9860
10029
|
var SandboxInteractiveTerminalOperations = class {
|
|
9861
10030
|
apiKeyRefusedUntil = 0;
|
|
10031
|
+
edgeRefusedUntil = 0;
|
|
9862
10032
|
constructor(host) {
|
|
9863
10033
|
this.host = host;
|
|
9864
10034
|
}
|
|
@@ -9868,15 +10038,18 @@ var SandboxInteractiveTerminalOperations = class {
|
|
|
9868
10038
|
return this.host.terminalApiKeyDial?.();
|
|
9869
10039
|
}
|
|
9870
10040
|
/**
|
|
9871
|
-
* Open the stream for `streamPath`. A
|
|
9872
|
-
*
|
|
9873
|
-
*
|
|
9874
|
-
*
|
|
9875
|
-
*
|
|
9876
|
-
*
|
|
9877
|
-
*
|
|
10041
|
+
* Open the stream for `streamPath`. A handle with a cell edge dials it
|
|
10042
|
+
* first ({@link connectThroughEdge}). Otherwise a Node caller sends the API
|
|
10043
|
+
* key as the upgrade's `Authorization` header: the gateway takes its owner
|
|
10044
|
+
* path for it, so the scoped-token mint (a serial round trip before the
|
|
10045
|
+
* upgrade) is skipped. A browser, or a gateway that refuses the key on an
|
|
10046
|
+
* upgrade, mints a scoped token for `sessionId` and dials with that — the
|
|
10047
|
+
* refusal costs one failed upgrade, and the mint then reports its own typed
|
|
10048
|
+
* error if the credential is the problem.
|
|
9878
10049
|
*/
|
|
9879
10050
|
async connectStream(sessionId, streamPath, stream) {
|
|
10051
|
+
const edgeUrl = Date.now() < this.edgeRefusedUntil ? void 0 : this.host.edgeRuntimeUrl?.();
|
|
10052
|
+
if (edgeUrl !== void 0) return this.connectThroughEdge(edgeUrl, sessionId, streamPath, stream);
|
|
9880
10053
|
const signal = stream.signal;
|
|
9881
10054
|
const dial = this.apiKeyDial();
|
|
9882
10055
|
let refused = false;
|
|
@@ -9911,10 +10084,50 @@ var SandboxInteractiveTerminalOperations = class {
|
|
|
9911
10084
|
token: this.terminalTokenProvider(scoped, sessionId),
|
|
9912
10085
|
mintMs
|
|
9913
10086
|
});
|
|
9914
|
-
if (refused) this.apiKeyRefusedUntil = Date.now() +
|
|
10087
|
+
if (refused) this.apiKeyRefusedUntil = Date.now() + REFUSED_DIAL_TTL_MS;
|
|
9915
10088
|
return connected;
|
|
9916
10089
|
}
|
|
9917
10090
|
/**
|
|
10091
|
+
* Open the stream on the sandbox's cell edge, so the open socket never
|
|
10092
|
+
* passes the orchestrator: the edge lifts the scoped token from the
|
|
10093
|
+
* subprotocol offer into the upgrade's bearer. A dial that fails before the
|
|
10094
|
+
* terminal is ready is sent through the API's proxy with the same token.
|
|
10095
|
+
* Both dials name the same connection id, which reattaches one PTY, so the
|
|
10096
|
+
* second dial cannot start a second terminal.
|
|
10097
|
+
*/
|
|
10098
|
+
async connectThroughEdge(edgeUrl, sessionId, streamPath, stream) {
|
|
10099
|
+
const signal = stream.signal;
|
|
10100
|
+
const mintStartedAt = performance.now();
|
|
10101
|
+
const scoped = await this.host.mintScopedToken({
|
|
10102
|
+
scope: "session-runtime",
|
|
10103
|
+
sessionId,
|
|
10104
|
+
...signal === void 0 ? {} : { signal }
|
|
10105
|
+
});
|
|
10106
|
+
const mintMs = performance.now() - mintStartedAt;
|
|
10107
|
+
const held = holdCloseUntilReady(stream.handlers);
|
|
10108
|
+
try {
|
|
10109
|
+
return await this.host.terminalStreamConnect({
|
|
10110
|
+
...stream,
|
|
10111
|
+
handlers: held.handlers,
|
|
10112
|
+
url: this.resolveTerminalStreamUrl(edgeUrl, streamPath),
|
|
10113
|
+
token: this.terminalTokenProvider(scoped, sessionId),
|
|
10114
|
+
mintMs
|
|
10115
|
+
});
|
|
10116
|
+
} catch (error) {
|
|
10117
|
+
if (!isEdgeDialFailure(error) || signal?.aborted) {
|
|
10118
|
+
held.releaseHeldClose();
|
|
10119
|
+
throw error;
|
|
10120
|
+
}
|
|
10121
|
+
this.edgeRefusedUntil = Date.now() + REFUSED_DIAL_TTL_MS;
|
|
10122
|
+
}
|
|
10123
|
+
return this.host.terminalStreamConnect({
|
|
10124
|
+
...stream,
|
|
10125
|
+
url: this.resolveTerminalStreamUrl(scoped.sidecarProxyUrl, streamPath),
|
|
10126
|
+
token: this.terminalTokenProvider(scoped, sessionId),
|
|
10127
|
+
mintMs
|
|
10128
|
+
});
|
|
10129
|
+
}
|
|
10130
|
+
/**
|
|
9918
10131
|
* Resolve a sandbox-relative terminal stream path against the browser-safe
|
|
9919
10132
|
* sidecar proxy base returned by the scoped-token mint. Concatenation, not
|
|
9920
10133
|
* URL resolution: the proxy base carries a path prefix
|
|
@@ -10229,10 +10442,10 @@ var WorkspaceImages = class {
|
|
|
10229
10442
|
//#region src/sandbox.ts
|
|
10230
10443
|
function createSandboxInstanceFromResponse(client, info, defaultRuntimeBackend, raw) {
|
|
10231
10444
|
let instance;
|
|
10232
|
-
const apiClient = client instanceof DirectRuntimeHttpClient && client.
|
|
10445
|
+
const apiClient = client instanceof DirectRuntimeHttpClient && client.isEdgeFirst ? client.apiClient : client;
|
|
10233
10446
|
instance = new SandboxInstance(apiClient.directExec === false || apiClient instanceof DirectRuntimeHttpClient ? apiClient : new DirectRuntimeHttpClient(apiClient, info.id, () => instance.connection, async () => {
|
|
10234
10447
|
await instance.refresh();
|
|
10235
|
-
}, void 0, {
|
|
10448
|
+
}, void 0, { edgeFirst: true }), info, defaultRuntimeBackend);
|
|
10236
10449
|
if (raw) instance.adoptDirectRead(raw);
|
|
10237
10450
|
sandboxStatusObservedAt.set(instance, Date.now());
|
|
10238
10451
|
return instance;
|
|
@@ -10293,6 +10506,7 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10293
10506
|
baseUrl
|
|
10294
10507
|
} : void 0;
|
|
10295
10508
|
},
|
|
10509
|
+
edgeRuntimeUrl: () => data.client instanceof DirectRuntimeHttpClient ? data.client.edgeRuntimeUrl() : void 0,
|
|
10296
10510
|
mintScopedToken: (options) => this.mintScopedToken(options),
|
|
10297
10511
|
terminalStreamConnect: (options) => data._terminalStreamConnect(options),
|
|
10298
10512
|
interactiveStatus: (id, incarnationId, options) => this._interactiveStatus(id, incarnationId, options)
|
|
@@ -10372,8 +10586,12 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
|
|
|
10372
10586
|
*
|
|
10373
10587
|
* Runtime methods on the returned instance talk to the sandbox runtime
|
|
10374
10588
|
* directly using `connection.execHost` when supplied, otherwise
|
|
10375
|
-
* `connection.runtimeUrl`, and the scoped `connection.authToken
|
|
10376
|
-
*
|
|
10589
|
+
* `connection.runtimeUrl`, and the scoped `connection.authToken`, with no
|
|
10590
|
+
* API fallback. The agent calls the default handle keeps on the API (a
|
|
10591
|
+
* prompt, a session message) go to the runtime too, so they skip what the
|
|
10592
|
+
* API prepares for them: the managed model credential refresh, durable plan
|
|
10593
|
+
* grants and secret-isolation checks. Lifecycle methods still go through
|
|
10594
|
+
* the parent SDK client.
|
|
10377
10595
|
*/
|
|
10378
10596
|
direct() {
|
|
10379
10597
|
const data = state(this);
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-0eZStBT2.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-CedA3iP4.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as readResponseJson } from "./errors-CfQHPcLX.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-C_DMDlO5.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-Bl-H3KsQ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
5
5
|
/**
|
|
@@ -4860,12 +4860,16 @@ interface SandboxConfig {
|
|
|
4860
4860
|
*/
|
|
4861
4861
|
onTiming?: SdkTimingHook;
|
|
4862
4862
|
/**
|
|
4863
|
-
* Send
|
|
4864
|
-
*
|
|
4865
|
-
*
|
|
4866
|
-
*
|
|
4867
|
-
*
|
|
4868
|
-
*
|
|
4863
|
+
* Send runtime calls straight to the sandbox's cell edge instead of through
|
|
4864
|
+
* the API and the orchestrator. Default `true`. Exec-family calls (spawn,
|
|
4865
|
+
* exec, terminal commands) go to `connection.execHost` on its exec grant;
|
|
4866
|
+
* files, processes, agent reads and event streams, and terminal sockets go
|
|
4867
|
+
* to `connection.runtimeUrl` on `connection.authToken`. Agent calls that
|
|
4868
|
+
* write (a prompt, a session message, a session create) stay on the API,
|
|
4869
|
+
* which prepares them. A call the cell provably never received goes to the
|
|
4870
|
+
* API, which resumes a stopped sandbox; after a failure that may follow
|
|
4871
|
+
* delivery, only a call safe to apply twice (a read, a `PUT`, a `DELETE`)
|
|
4872
|
+
* goes again. `false` sends every runtime call through the API.
|
|
4869
4873
|
*/
|
|
4870
4874
|
directExec?: boolean;
|
|
4871
4875
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.60.78-develop.
|
|
3
|
+
"version": "0.60.78-develop.20261025030930.8dc5a0e",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -164,12 +164,12 @@
|
|
|
164
164
|
"vitest": "^4.1.11",
|
|
165
165
|
"ws": "^8.20.0",
|
|
166
166
|
"yjs": "13.6.30",
|
|
167
|
+
"@repo/shared": "0.0.0",
|
|
167
168
|
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
168
169
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
169
|
-
"@repo/shared": "0.0.0",
|
|
170
|
-
"@tangle-network/runtime-contracts": "0.19.0",
|
|
171
|
-
"@products/sandbox-test-utils": "0.0.0",
|
|
172
170
|
"@tangle-network/sdk": "4.0.16",
|
|
171
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
172
|
+
"@tangle-network/runtime-contracts": "0.19.0",
|
|
173
173
|
"@tangle-network/sse-core": "0.0.0"
|
|
174
174
|
},
|
|
175
175
|
"scripts": {
|