@tangle-network/sandbox 0.49.0 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/auth/index.d.ts +1 -1
- package/dist/{client-V2L7F4jq.d.ts → client-0HxOqMTg.d.ts} +131 -3
- package/dist/{client-ssVzKUfj.js → client-ypkUXWEV.js} +297 -3
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +3 -3
- package/dist/{index-7j5JIro1.d.ts → index-D3q4u0kQ.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +4 -4
- package/dist/runtime.d.ts +1 -1
- package/dist/{sandbox-BotrtJlw.js → sandbox-D9m16QdB.js} +186 -18
- package/dist/{sandbox-CUCPmTH3.d.ts → sandbox-DxBZCyMo.d.ts} +216 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BWqu6gaT.js → tangle-qQ5nzHZV.js} +1 -1
- package/package.json +5 -5
- /package/dist/{errors-CNsmhCen.d.ts → errors-Cz23YNu2.d.ts} +0 -0
- /package/dist/{index-BzAxTiqF.d.ts → index-BWiG3Vcw.d.ts} +0 -0
- /package/dist/{index-CS-t6tPU.d.ts → index-BfVsF6yU.d.ts} +0 -0
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-DxBZCyMo.js";
|
|
2
2
|
import { An as PreviewLinkWaitOptions, B as CreateSandboxOptions, Cn as NetworkConfig, Ii as SessionMessageAdmission, M as ConversationTurnOptions, N as ConversationTurnResult, On as PreviewLinkInfo, Yr as SandboxInfo, _t as ExecOptions, fr as SandboxConfig, kn as PreviewLinkManager, si as SandboxStatus, vt as ExecResult, zn as PromptInputPart } from "./types-BoW_VFjX.js";
|
|
3
|
-
import { C as
|
|
4
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-
|
|
3
|
+
import { A as parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, d as HostedInstance, f as InstanceProfile, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, m as InstanceRestartingError, p as InstanceRecord, u as EnsureInstanceOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities } from "./client-0HxOqMTg.js";
|
|
4
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-Cz23YNu2.js";
|
|
5
5
|
|
|
6
6
|
//#region src/core.d.ts
|
|
7
7
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
@@ -10,4 +10,4 @@ import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f a
|
|
|
10
10
|
* still inspect the host receipt and their own customer/workspace binding. */
|
|
11
11
|
declare const ISOLATED_CREATION_ATTESTATION_VERSION: 1;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type ExecOptions, type ExecResult, FileWriteConflictError, ISOLATED_CREATION_ATTESTATION_VERSION, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, type SessionMessageAdmission, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
|
13
|
+
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type EnsureInstanceOptions, type ExecOptions, type ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type PromptInputPart, QuotaError, Sandbox, type SandboxConfig, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxStatus, ServerError, type SessionMessageAdmission, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse,
|
|
3
|
-
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { _ as backendRegistryInteractionKindSchema, b as parseBackendRegistryResponse, c as InstanceRestartingError, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, l as InstancesClient, n as Sandbox, s as HostedInstance, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-ypkUXWEV.js";
|
|
3
|
+
import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-D9m16QdB.js";
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
6
6
|
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
@@ -8,4 +8,4 @@ import { a as WorkspaceImages, t as SandboxInstance } from "./sandbox-BotrtJlw.j
|
|
|
8
8
|
* still inspect the host receipt and their own customer/workspace binding. */
|
|
9
9
|
const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { AuthError, CapabilityError, FileWriteConflictError, ISOLATED_CREATION_ATTESTATION_VERSION, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
|
11
|
+
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, NetworkError, NotFoundError, PartialFailureError, QuotaError, Sandbox, SandboxError, SandboxInstance, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, isBackendRegistryInteractionKind, parseBackendRegistryResponse, parseBackendRegistryResponseBody };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as createInteractiveTerminalCapture, A as LineThread, B as InteractiveSessionHost, C as LineMemberPatch, D as LineRespondAgent, E as LineReplyGate, F as InteractiveControlClaimRequest, G as InteractiveSessionStartResult, H as InteractiveSessionInfo, I as InteractivePromptCommand, J as RespondToPermissionOptions, K as InteractiveStopCommand, L as InteractiveSessionControlClaim, M as LinesClient, N as SandboxLines, O as LineRespondView, P as AgentInteractiveTerminalSession, Q as InteractiveTerminalMetadata, R as InteractiveSessionHandle, S as LineMember, T as LineMessage, U as InteractiveSessionRef, V as InteractiveSessionIncarnationId, W as InteractiveSessionStartOptions, X as InteractiveTerminalCapture, Y as agentInteractiveSessionPromptRequestDigest, Z as InteractiveTerminalFrameLog, _ as Line, _t as SandboxMcpServerEntry, a as WorkspaceImagePublishRequestOptions, at as InteractiveSessionControllerOptions, b as LineFromConnectionInput, c as TraceExportFormat, ct as SandboxInteractionConflict, d as buildTraceExportPayload, dt as BuildControlPlaneMcpConfigOptions, et as createInteractiveTerminalSession, f as exportTraceBundle, ft as BuildSandboxMcpConfigOptions, g as SandboxSession, gt as SandboxMcpEndpoint, h as SandboxTaskSession, ht as SandboxMcpConfig, i as WorkspaceImagePublishInput, it as InteractiveSessionController, j as LineTransport, k as LineRole, l as TraceExportResult, lt as SandboxInteractionResolution, m as toOtelJson, mt as SANDBOX_MCP_SERVER_NAME, nt as BrowserInteractiveSessionControllerOptions, o as WorkspaceImagePublishResult, ot as InteractiveSessionControllerTransport, p as otelTraceIdForTangleTrace, pt as CONTROL_PLANE_MCP_SERVER_NAME, q as InterruptResult, r as SandboxInstance, rt as InteractiveAttachRequest, s as WorkspaceImages, st as SandboxInteractionCommandResult, t as ForkAcknowledgement, tt as BrowserInteractiveSessionController, u as TraceExportSink, ut as SandboxInteractionResult, v as LineAttachOptions, vt as buildControlPlaneMcpConfig, w as LineMemberSpec, x as LineLimits, y as LineAttachment, yt as buildSandboxMcpConfig, z as InteractiveSessionHandleOptions } from "./sandbox-DxBZCyMo.js";
|
|
2
2
|
import { c as MintScopedTokenOptions, d as TERMINAL_WS_ECHO_SUBPROTOCOL, f as TerminalExitInfo, g as TerminalStreamAuthFormat, h as TerminalReadyInfo, i as TerminalStreamOptions, l as ScopedToken, m as TerminalOutputMessage, n as TerminalStreamError, o as TerminalStreamToken, p as TerminalInteractiveSessionIdentity, r as TerminalStreamHandlers, s as MintInteractiveSessionTokenOptions, t as TerminalStream, u as ScopedTokenScope } from "./terminal-stream-CcaBTVg3.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BELrFH4f.js";
|
|
4
4
|
import { $ as DownloadOptions, $i as TaskSessionFileChange, $n as ReconcileSandboxFleetsResult, $r as SandboxRemovalState, $t as GpuLease, A as CommitTaskSessionOptions, Ai as SessionFailureReason, An as PreviewLinkWaitOptions, Ar as SandboxFleetMachine, At as FileUsageResult, B as CreateSandboxOptions, Bi as SnapshotDeleteAcknowledgement, Bn as PromptOptions, Br as SandboxFleetTraceEvent, Bt as FleetMachineId, C as BranchOptions, Ca as BatchSidecarGroup, Ci as SendSessionMessageOptions, Cn as NetworkConfig, Cr as SandboxFleetCostEstimate, Ct as FileReadResult, Da as BackendType, Di as SessionEventStreamOptions, Dn as PermissionsManager, Dr as SandboxFleetDriverTimings, Dt as FileTreeOptions, Ea as ALL_BACKEND_TYPES, Ei as SessionBackendCredentials, En as PermissionLevel, Er as SandboxFleetDriverCapability, Et as FileTreeFile, F as CreateIntelligenceReportOptions, Fi as SessionMessage, Fn as ProcessManager, Fr as SandboxFleetManifestMachine, Ft as FleetDispatchStreamOptions, G as DeleteMatchingSandboxesFilter, Gi as SnapshotResult, Gn as ProvisionStep, Gr as SandboxFleetWorkspaceReconcileResult, Gt as ForkLookupOptions, H as CreateTaskSessionOptions, Hi as SnapshotIdempotency, Hn as ProvisionEvent, Hr as SandboxFleetTraceOptions, I as CreateRequestOptions, Ii as SessionMessageAdmission, In as ProcessSignal, Ir as SandboxFleetOperationsSummary, It as FleetDriveTurnOutcome, J as DeleteOptions, Ji as StartupOperation, Jn as PublishPublicTemplateOptions, Jr as SandboxIdentity, Jt as GitBranch, K as DeleteMatchingSandboxesOptions, Kn as PublicTemplateInfo, Kr as SandboxFleetWorkspaceRestoreResult, Kt as GPU_LEASE_PROVIDER_NAMES, L as CreateSandboxFleetOptions, Li as SessionMessageInputPart, Ln as ProcessSpawnOptions, Lr as SandboxFleetPolicy, Lt as FleetDriveTurnRequest, M as ConversationTurnOptions, Mi as SessionInfo, Mn as ProcessInfo, Mr as SandboxFleetMachineRecord, Mt as FleetDispatchCancelResult, N as ConversationTurnResult, Ni as SessionInterruptOptions, Nn as ProcessListOptions, Nr as SandboxFleetMachineSpec, Nt as FleetDispatchResultBuffer, Oa as parseBackendType, Oi as SessionExecutionInfo, On as PreviewLinkInfo, Or as SandboxFleetInfo, Ot as FileTreeResult, P as CreateGpuLeaseOptions, Pi as SessionListOptions, Pn as ProcessLogEntry, Pr as SandboxFleetManifest, Pt as FleetDispatchResultBufferOptions, Q as DispatchedSession, Qi as TaskSessionCommitResult, Qn as ReconcileSandboxFleetsOptions, Qr as SandboxPortPreviewLink, Qt as GitStatus, Ri as SessionResultOptions, Rn as ProcessStatus, Rr as SandboxFleetToken, Rt as FleetExecDispatchOptions, S as BatchTaskResult, Sa as BatchEventDataMap, Si as SecretsManager, Sn as MkdirOptions, Sr as SandboxFleetArtifactSpec, St as FileReadError, T as ChunkedUploadResult, Ta as PublicBatchRunRequest, Ti as SentSessionMessage, Tn as NonHostAgentDriverConfig, Tr as SandboxFleetDispatchResponse, Tt as FileSystem, U as DeleteMatchingSandboxOutcome, Ui as SnapshotInfo, Un as ProvisionResult, Ur as SandboxFleetUsage, Ut as ForkCounts, V as CreateSessionOptions, Vi as SnapshotDeleteOutcome, Vn as PromptResult, Vr as SandboxFleetTraceExport, Vt as FleetPromptDispatchOptions, W as DeleteMatchingSandboxResult, Wi as SnapshotOptions, Wn as ProvisionStatus, Wr as SandboxFleetWorkspace, Wt as ForkIdempotency, X as DirectoryPermission, Xi as SubscriptionInfo, Xn as ReapExpiredSandboxFleetsOptions, Xr as SandboxIntelligenceEnvelope, Xt as GitConfig, Y as DevServerInfo, Yi as StorageConfig, Yn as PublishPublicTemplateVersionOptions, Yr as SandboxInfo, Yt as GitCommit, Z as DispatchPromptOptions, Zi as TaskSessionChanges, Zn as ReapExpiredSandboxFleetsResult, Zr as SandboxPortBinding, Zt as GitDiff, _ as BatchBackend, _a as WriteFileOptions, _i as SandboxTraceOptions, _n as ListOptions, _r as SandboxDeleteOptions, _t as ExecOptions, aa as TeePublicKey, ai as SandboxShapePreset, an as GpuLeaseProviderName, ar as RolloutOptions, at as DurablePlan, b as BatchRunRequest, ba as BatchBackendStats, bi as SearchOptions, bn as MAX_EGRESS_DENIALS_LIMIT, br as SandboxEvent, bt as FileReadBatchOptions, c as AttachGpuLeaseOptions, ca as TokenUsage, ci as SandboxTerminalAttachOptions, cn as HostAgentRuntimeBackend, cr as RolloutStatus, ct as EffectiveBackend, d as BackendConfig, da as UploadOptions, di as SandboxTerminalManager, dn as IntelligenceReportBudget, dr as SSHCredentials, dt as EgressDenial, ea as TaskSessionInfo, ei as SandboxResourceUsage, en as GpuLeaseBilling, er as RenameOptions, et as DownloadProgress, f as BackendInfo, fa as UploadProgress, fi as SandboxTerminalRequestOptions, fn as IntelligenceReportCompareTo, fr as SandboxConfig, ft as EgressManager, g as BackendStatus, ga as WorkspaceOperationLookup, gi as SandboxTraceExport, gn as ListMessagesOptions, gr as SandboxDeleteAcknowledgement, gt as ExactProcessSpawnOptions, h as BackendRuntimeConfigUpdate, ha as WaitForRolloutOptions, hi as SandboxTraceEvent, hr as SandboxCreateReceipt, ht as EventStreamOptions, ia as TeeAttestationResponse, ii as SandboxShape, in as GpuLeaseManager, ir as RolloutChildResult, it as DriverType, j as CompletedTurnResult, ji as SessionForkOptions, jn as Process, jr as SandboxFleetMachineMeteredUsage, jt as FileWriteResult, ki as SessionExecutionStatus, kn as PreviewLinkManager, kr as SandboxFleetIntelligenceEnvelope, kt as FileUsageOptions, l as AttachSandboxFleetMachineOptions, la as TurnDriveResult, li as SandboxTerminalCreateOptions, ln as InstalledTool, lr as RolloutTurnPart, lt as EffectiveBackendProfile, m as BackendMcpServerStatus, ma as WaitForOptions, mi as SandboxTraceBundle, mn as IntelligenceReportWindow, mr as SandboxCreateOutcome, mt as EnsureDevServerOptions, n as AccessPolicyRule, na as TeeAttestationOptions, ni as SandboxRuntimeCapabilities, nn as GpuLeaseExecOptions, nt as DriverConfig, oa as TeePublicKeyResponse, oi as SandboxShapesInfo, on as GpuLeaseStatus, or as RolloutScorer, ot as DurablePlanDecisionResult, p as BackendManager, pa as UsageInfo, pi as SandboxTerminals, pn as IntelligenceReportSubjectType, pr as SandboxConnection, pt as EgressPolicy, q as DeleteMatchingSandboxesResult, qi as StartupDiagnostics, qn as PublicTemplateVersionInfo, qr as SandboxFleetWorkspaceSnapshotResult, qt as GitAuth, r as AddUserOptions, ra as TeeAttestationReport, ri as SandboxRuntimeHealth, rn as GpuLeaseExecResult, rr as Rollout, rt as DriverInfo, sa as TokenRefreshHandler, si as SandboxStatus, sn as HostAgentDriverConfig, sr as RolloutStartResult, t as AcceleratorKind, ta as TaskSessionProfile, ti as SandboxResources, tn as GpuLeaseCommandResult, tt as DriveTurnOptions, u as BackendCapabilities, ua as UpdateUserOptions, ui as SandboxTerminalInfo, un as IntelligenceReport, ur as SSHCommandDescriptor, ut as EffectiveBackendSource, v as BatchResult, va as WriteManyFile, vi as SandboxUser, vn as ListSandboxFleetOptions, vr as SandboxDeleteOutcome, vt as ExecResult, w as ChunkedUploadOptions, wa as BatchTaskUsage, wi as SendSessionMessageRequest, wn as NetworkManager, wr as SandboxFleetDispatchFailureClass, wt as FileRenameResult, x as BatchTask, xa as BatchEvent, xi as SecretInfo, xn as McpServerConfig, xr as SandboxFleetArtifact, xt as FileReadBatchResult, y as BatchRunOptions, ya as WriteManyOptions, yi as SearchMatch, yn as ListSandboxOptions, yr as SandboxEnvironment, yt as FileInfo, z as CreateSandboxFleetWithCoordinatorOptions, zi as SessionStatus, zn as PromptInputPart, zr as SandboxFleetTraceBundle } from "./types-BoW_VFjX.js";
|
|
5
|
-
import { C as
|
|
6
|
-
import { d as
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
5
|
+
import { A as parseBackendRegistryResponse, C as BackendRegistryInteractionKind, D as backendRegistryInteractionKindSchema, E as backendRegistryEntrySchema, O as backendRegistryResponseSchema, S as BackendRegistryEntry, T as backendRegistryCapabilitiesSchema, _ as SandboxFleetClient, a as Team, b as parseSSEStream, c as SessionBroadcastEvent, d as HostedInstance, f as InstanceProfile, g as SandboxFleet, h as InstancesClient, i as Sandbox, j as parseBackendRegistryResponseBody, k as isBackendRegistryInteractionKind, l as SessionBroadcastResult, m as InstanceRestartingError, n as IntelligenceClient, o as TeamInvitation, p as InstanceRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as EnsureInstanceOptions, v as ParseSSEStreamOptions, w as BackendRegistryResponse, x as BackendRegistryCapabilities, y as ParsedSSEEvent } from "./client-0HxOqMTg.js";
|
|
6
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as StateError, h as ServerError, i as EgressProxyRecoveryError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxErrorJson, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-Cz23YNu2.js";
|
|
7
|
+
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BfVsF6yU.js";
|
|
8
|
+
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-BWiG3Vcw.js";
|
|
9
9
|
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DRsFrVVD.js";
|
|
10
|
-
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-
|
|
10
|
+
import { o as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-D3q4u0kQ.js";
|
|
11
11
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
12
12
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileFileMount as AgentProfileFileMount$1, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
13
13
|
import { z } from "zod";
|
|
@@ -4447,4 +4447,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4447
4447
|
}
|
|
4448
4448
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4449
4449
|
//#endregion
|
|
4450
|
-
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4450
|
+
export { ALL_BACKEND_TYPES, type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentInteractiveTerminalSession, type AgentProfile, type AgentProfileCapabilities, type AgentProfileConnection, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileSecurityPolicy, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunOutcome, type AgentRunOutcomeTracker, type AgentSubagentProfile, type AnyTokenPayload, type AttachGpuLeaseOptions, type AttachSandboxFleetMachineOptions, AuthError, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendMcpServerStatus, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, type BackendRuntimeConfigUpdate, type BackendStatus, type BackendType, type BatchBackend, type BatchBackendStats, type BatchEvent, type BatchEventDataMap, type BatchResult, type BatchResultAccumulator, type BatchRunOptions, type BatchRunRequest, type BatchSidecarGroup, type BatchTask, type BatchTaskResult, type BatchTaskUsage, type BranchOptions, BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, type BrowserInteractiveSessionControllerOptions, type BuildControlPlaneMcpConfigOptions, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, type Capability, CapabilityError, type ChunkedUploadOptions, type ChunkedUploadResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CommitTaskSessionOptions, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConversationTurnOptions, type ConversationTurnResult, type CreateConfidentialSandboxOptions, type CreateGpuLeaseOptions, type CreateIntelligenceReportOptions, type CreateRequestOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateSessionOptions, type CreateTaskSessionOptions, type CreateTeamOptions, DEFAULT_SANDBOX_SIZE, type DeleteMatchingSandboxOutcome, type DeleteMatchingSandboxResult, type DeleteMatchingSandboxesFilter, type DeleteMatchingSandboxesOptions, type DeleteMatchingSandboxesResult, type DeleteOptions, type DevServerInfo, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionResult, EdgeNotReadyError, type EffectiveBackend, type EffectiveBackendProfile, type EffectiveBackendSource, type EgressDenial, type EgressManager, type EgressPolicy, EgressProxyRecoveryError, type EnsureDevServerOptions, type EnsureInstanceOptions, type EventStreamOptions, type ExactProcessSpawnOptions, type ExecOptions, type ExecResult, type FileInfo, type FileReadBatchOptions, type FileReadBatchResult, type FileReadError, type FileReadResult, type FileRenameResult, type FileSystem, type FileTreeFile, type FileTreeOptions, type FileTreeResult, type FileUsageOptions, type FileUsageResult, FileWriteConflictError, type FileWriteResult, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkAcknowledgement, type ForkCounts, type ForkIdempotency, type ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuLease, type GpuLeaseBilling, type GpuLeaseCommandResult, type GpuLeaseExecOptions, type GpuLeaseExecResult, type GpuLeaseManager, type GpuLeaseProviderName, type GpuLeaseStatus, type HostAgentDriverConfig, type HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, type ImageBuildClient, type ImageBuildClientConfig, type ImageBuildFetchClient, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstalledTool, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InteractiveAttachOptions, type InteractiveAttachRequest, type InteractiveControlClaimAcknowledgement, type InteractiveControlClaimOptions, type InteractiveControlClaimRequest, type InteractivePromptCommand, type InteractiveRequestOptions, type InteractiveSessionControlClaim, InteractiveSessionControlController, type InteractiveSessionControlControllerOptions, type InteractiveSessionControlTransport, InteractiveSessionController, type InteractiveSessionControllerOptions, type InteractiveSessionControllerTransport, InteractiveSessionHandle, type InteractiveSessionHandleOptions, type InteractiveSessionHost, type InteractiveSessionIdentity, type InteractiveSessionIncarnationId, type InteractiveSessionInfo, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, type Line, type LineAttachOptions, type LineAttachment, type LineFromConnectionInput, type LineLimits, type LineMember, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineThread, type LineTransport, LinesClient, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, type NonHostAgentDriverConfig, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type Process, type ProcessInfo, type ProcessListOptions, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RenameOptions, type RespondToPermissionOptions, ResumeEnvRequiredError, type Rollout, type RolloutChildResult, type RolloutOptions, type RolloutScorer, type RolloutStartResult, type RolloutStatus, type RolloutTurnPart, type RouterEvalMatrixAgentProfile, type RouterEvalMatrixCaseResult, type RouterEvalMatrixHarness, type RouterEvalMatrixPayload, type RouterEvalMatrixSandboxBox, type RouterEvalMatrixSandboxClient, type RouterEvalMatrixScenario, type RouterEvalMatrixSuiteResponse, type RouterImportedRunResponse, type RouterSearchConfig, type RouterSearchConfigOptions, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, type SSHCommandDescriptor, type SSHCredentials, Sandbox, type SandboxConfig, type SandboxConnection, type SandboxCreateOutcome, type SandboxCreateReceipt, type SandboxDeleteAcknowledgement, type SandboxDeleteOptions, type SandboxDeleteOutcome, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxIdentity, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxInteractionCommandResult, type SandboxInteractionConflict, type SandboxInteractionResolution, type SandboxInteractionResult, SandboxLines, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRuntimeCapabilities, type SandboxRuntimeHealth, SandboxSession, type SandboxShape, type SandboxShapePreset, type SandboxShapesInfo, type SandboxSizePreset, type SandboxStatus, SandboxTaskSession, type SandboxTerminalAttachOptions, type SandboxTerminalCreateOptions, type SandboxTerminalInfo, type SandboxTerminalManager, type SandboxTerminalRequestOptions, type SandboxTerminals, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, type SendSessionMessageOptions, type SendSessionMessageRequest, type SentSessionMessage, ServerError, type SessionBackendCredentials, type SessionBroadcastEvent, type SessionBroadcastResult, type SessionEventStreamOptions, type SessionExecutionInfo, type SessionExecutionStatus, type SessionFailureReason, type SessionForkOptions, type SessionInfo, type SessionInterruptOptions, type SessionListOptions, type SessionMessage, type SessionMessageAdmission, type SessionMessageInputPart, type SessionResultOptions, type SessionStatus, type SnapshotDeleteAcknowledgement, type SnapshotDeleteOutcome, type SnapshotIdempotency, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StorageConfig, type SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, type TangleSandboxClientConfig, type TangleSearchProvider, type TaskSessionChanges, type TaskSessionCommitResult, type TaskSessionFileChange, type TaskSessionInfo, type TaskSessionProfile, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, TerminalStream, type TerminalStreamAuthFormat, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnDriveResult, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, type WaitForRolloutOptions, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, type WorkspaceOperationLookup, type WriteFileOptions, type WriteManyFile, type WriteManyOptions, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as deriveAgentResultOutcome, D as parseBackendType, E as backendTypeSchema, S as createAgentRunOutcomeTracker, T as ALL_BACKEND_TYPES, _ as parseSSEStream, w as deriveAgentRunOutcome, x as normalizeRuntimeBackendConfig } from "./runtime-api-DHHveKas.js";
|
|
2
2
|
import { a as FileWriteConflictError, c as NotFoundError, d as ResumeEnvRequiredError, f as SandboxError, g as ValidationError, h as TimeoutError, i as EgressProxyRecoveryError, l as PartialFailureError, m as StateError, n as CapabilityError, o as KeyBudgetExhaustedError, p as ServerError, r as EdgeNotReadyError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CmYPVl-k.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as backendRegistryInteractionKindSchema, a as splitInlineProfileSkills, b as parseBackendRegistryResponse, c as InstanceRestartingError, d as SandboxFleetClient, f as runtimeWorkspaceCwdSchema, g as backendRegistryEntrySchema, h as backendRegistryCapabilitiesSchema, i as splitInlineProfileFileMounts, l as InstancesClient, m as validateBatchRunRequest, n as Sandbox, o as validateDeferredProfileFileMounts, p as createBatchResultAccumulator, r as materializeProfileFileMounts, s as HostedInstance, t as IntelligenceClient, u as SandboxFleet, v as backendRegistryResponseSchema, x as parseBackendRegistryResponseBody, y as isBackendRegistryInteractionKind } from "./client-ypkUXWEV.js";
|
|
4
4
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, c as createInteractiveControlHolderId, l as interactiveSessionIdentityDigest, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-Dv0gbFMu.js";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as buildTraceExportPayload, C as collectAgentResponseText, M as otelTraceIdForTangleTrace, N as toOtelJson, O as LinesClient, S as collectAgentFinalMessageText, T as isToolBearingEvent, _ as TerminalStream, a as WorkspaceImages, c as SandboxTaskSession, d as agentInteractiveSessionPromptRequestDigest, f as InteractiveTerminalFrameLog, g as InteractiveSessionController, h as BrowserInteractiveSessionController, j as exportTraceBundle, k as SandboxLines, l as SandboxSession, m as createInteractiveTerminalSession, o as GPU_LEASE_PROVIDER_NAMES, p as createInteractiveTerminalCapture, s as MAX_EGRESS_DENIALS_LIMIT, t as SandboxInstance, u as InteractiveSessionHandle, v as TerminalStreamError, w as getSandboxEventText, x as applySandboxEventText, y as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./sandbox-D9m16QdB.js";
|
|
6
6
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DLPFc9-W.js";
|
|
7
|
-
import { t as TangleSandboxClient } from "./tangle-
|
|
7
|
+
import { t as TangleSandboxClient } from "./tangle-qQ5nzHZV.js";
|
|
8
8
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/confidential.ts
|
|
@@ -1478,4 +1478,4 @@ function stripUndefined(value) {
|
|
|
1478
1478
|
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, stripUndefined(v)]));
|
|
1479
1479
|
}
|
|
1480
1480
|
//#endregion
|
|
1481
|
-
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
1481
|
+
export { ALL_BACKEND_TYPES, AuthError, BrowserInteractiveSessionControlController, BrowserInteractiveSessionController, CONTROL_PLANE_MCP_SERVER_NAME, CapabilityError, CollaborationClient, CollaborationFileBridge, DEFAULT_SANDBOX_SIZE, EdgeNotReadyError, EgressProxyRecoveryError, FileWriteConflictError, GPU_LEASE_PROVIDER_NAMES, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, Image, ImageBuilder, InstanceRestartingError, InstancesClient, IntelligenceClient, InteractiveSessionControlController, InteractiveSessionController, InteractiveSessionHandle, InteractiveTerminalFrameLog, KeyBudgetExhaustedError, LinesClient, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, NetworkError, NotFoundError, PartialFailureError, QuotaError, ResumeEnvRequiredError, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, Sandbox, SandboxError, SandboxFleet, SandboxFleetClient, SandboxInstance, SandboxLines, SandboxSession, SandboxTaskSession, ServerError, StateError, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TerminalStream, TerminalStreamError, TimeoutError, ValidationError, WorkspaceImages, applySandboxEventText, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, deriveAgentResultOutcome, deriveAgentRunOutcome, exportTraceBundle, fetchTangleRouterSearchConfig, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseSSEStream, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as CommitTaskSessionOptions, At as FileUsageResult, Ci as SendSessionMessageOptions, Di as SessionEventStreamOptions, Dt as FileTreeOptions, Fi as SessionMessage, H as CreateTaskSessionOptions, Ii as SessionMessageAdmission, Mi as SessionInfo, Oi as SessionExecutionInfo, Ot as FileTreeResult, Qi as TaskSessionCommitResult, T as ChunkedUploadResult, Ti as SentSessionMessage, V as CreateSessionOptions, Zi as TaskSessionChanges, Zr as SandboxPortBinding, _a as WriteFileOptions, br as SandboxEvent, bt as FileReadBatchOptions, di as SandboxTerminalManager, ea as TaskSessionInfo, er as RenameOptions, fa as UploadProgress, fi as SandboxTerminalRequestOptions, gn as ListMessagesOptions, jt as FileWriteResult, ki as SessionExecutionStatus, kt as FileUsageOptions, li as SandboxTerminalCreateOptions, ri as SandboxRuntimeHealth, ui as SandboxTerminalInfo, w as ChunkedUploadOptions, wi as SendSessionMessageRequest, wt as FileRenameResult, xt as FileReadBatchResult } from "./types-BoW_VFjX.js";
|
|
2
|
-
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-
|
|
2
|
+
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-Cz23YNu2.js";
|
|
3
3
|
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DRsFrVVD.js";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/chunked-upload.d.ts
|
|
@@ -202,6 +202,138 @@ function snakeCase(value) {
|
|
|
202
202
|
return value.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
203
203
|
}
|
|
204
204
|
//#endregion
|
|
205
|
+
//#region src/lines.ts
|
|
206
|
+
/**
|
|
207
|
+
* Lines: give a sandbox a phone number or messaging address.
|
|
208
|
+
*
|
|
209
|
+
* A line is an address that Tangle Hub receives on, such as an Inkbox
|
|
210
|
+
* iMessage identity. Attaching it to a sandbox makes Hub route each inbound
|
|
211
|
+
* message to that sandbox: every member gets their own thread, each thread
|
|
212
|
+
* runs in its own agent session, and Hub sends the agent's answer back on the
|
|
213
|
+
* same line. Hub owns routing, consent (STOP/START), unknown senders and
|
|
214
|
+
* metering, so an app only chooses who may text and in which mode.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```ts
|
|
218
|
+
* const line = await client.lines.fromConnection({ connectionId, transport: "imessage" });
|
|
219
|
+
* await box.lines.attach({
|
|
220
|
+
* number: line.id,
|
|
221
|
+
* mode: "personal",
|
|
222
|
+
* members: [{ address: "+15550100001", role: "owner" }],
|
|
223
|
+
* });
|
|
224
|
+
* // Text `line.connect` to `line.routerAddress`, then write to the agent.
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
const LINE_ID = /^ln_[A-Za-z0-9_-]+$/;
|
|
228
|
+
async function hubData(response) {
|
|
229
|
+
const body = await response.text();
|
|
230
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
231
|
+
const parsed = JSON.parse(body);
|
|
232
|
+
if (parsed.success !== true || parsed.data === void 0) throw parseErrorResponse(502, body, void 0, response.headers);
|
|
233
|
+
return parsed.data;
|
|
234
|
+
}
|
|
235
|
+
function json(method, body) {
|
|
236
|
+
return {
|
|
237
|
+
method,
|
|
238
|
+
headers: { "Content-Type": "application/json" },
|
|
239
|
+
body: JSON.stringify(body)
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
/** `client.lines`: your lines, their members and their threads. */
|
|
243
|
+
var LinesClient = class {
|
|
244
|
+
constructor(http) {
|
|
245
|
+
this.http = http;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Create a line from a connected Inkbox identity, or return the line that
|
|
249
|
+
* already exists for it. Hub reuses the connection's inbound webhook and
|
|
250
|
+
* never re-keys the connection.
|
|
251
|
+
*/
|
|
252
|
+
async fromConnection(input) {
|
|
253
|
+
return (await hubData(await this.http.fetch("/v1/lines", json("POST", input)))).line;
|
|
254
|
+
}
|
|
255
|
+
/** Your lines. `sandboxId` narrows to lines attached to that sandbox. */
|
|
256
|
+
async list(options = {}) {
|
|
257
|
+
const query = options.sandboxId ? `?sandboxId=${encodeURIComponent(options.sandboxId)}` : "";
|
|
258
|
+
return (await hubData(await this.http.fetch(`/v1/lines${query}`))).lines;
|
|
259
|
+
}
|
|
260
|
+
async get(lineId) {
|
|
261
|
+
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}`))).line;
|
|
262
|
+
}
|
|
263
|
+
/** A line id for a line id or one of your lines' addresses. */
|
|
264
|
+
async resolve(number) {
|
|
265
|
+
if (LINE_ID.test(number)) return number;
|
|
266
|
+
const line = (await this.list()).find((l) => l.address === number);
|
|
267
|
+
if (!line) throw new ValidationError(`No line with address ${number}`);
|
|
268
|
+
return line.id;
|
|
269
|
+
}
|
|
270
|
+
/** Members of the line's active attachment. */
|
|
271
|
+
members(lineId) {
|
|
272
|
+
const base = `/v1/lines/${encodeURIComponent(lineId)}/members`;
|
|
273
|
+
const http = this.http;
|
|
274
|
+
return {
|
|
275
|
+
async list() {
|
|
276
|
+
return (await hubData(await http.fetch(base))).members;
|
|
277
|
+
},
|
|
278
|
+
async add(spec) {
|
|
279
|
+
return (await hubData(await http.fetch(base, json("POST", spec)))).member;
|
|
280
|
+
},
|
|
281
|
+
async update(memberId, patch) {
|
|
282
|
+
return (await hubData(await http.fetch(`${base}/${encodeURIComponent(memberId)}`, json("PATCH", patch)))).member;
|
|
283
|
+
},
|
|
284
|
+
async remove(memberId) {
|
|
285
|
+
await hubData(await http.fetch(`${base}/${encodeURIComponent(memberId)}`, { method: "DELETE" }));
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
/** Threads of a line (one per member) and their messages, newest first. */
|
|
290
|
+
threads(lineId) {
|
|
291
|
+
const base = `/v1/lines/${encodeURIComponent(lineId)}/threads`;
|
|
292
|
+
const http = this.http;
|
|
293
|
+
return {
|
|
294
|
+
async list() {
|
|
295
|
+
return (await hubData(await http.fetch(base))).threads;
|
|
296
|
+
},
|
|
297
|
+
async messages(threadId) {
|
|
298
|
+
return (await hubData(await http.fetch(`${base}/${encodeURIComponent(threadId)}/messages`))).messages;
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
/** `sandbox.lines`: attach lines to this sandbox. */
|
|
304
|
+
var SandboxLines = class {
|
|
305
|
+
lines;
|
|
306
|
+
constructor(http, sandboxId) {
|
|
307
|
+
this.http = http;
|
|
308
|
+
this.sandboxId = sandboxId;
|
|
309
|
+
this.lines = new LinesClient(http);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Attach a line to this sandbox. Hub checks that your API key can run this
|
|
313
|
+
* sandbox, and each turn runs as a short-lived child of that key. Attaching
|
|
314
|
+
* again with the same options returns the same attachment.
|
|
315
|
+
*/
|
|
316
|
+
async attach(options) {
|
|
317
|
+
const lineId = await this.lines.resolve(options.number);
|
|
318
|
+
const { number: _number, ...rest } = options;
|
|
319
|
+
return (await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}/attachment`, json("PUT", {
|
|
320
|
+
...rest,
|
|
321
|
+
sandboxId: this.sandboxId
|
|
322
|
+
})))).attachment;
|
|
323
|
+
}
|
|
324
|
+
/** Lines attached to this sandbox. */
|
|
325
|
+
async list() {
|
|
326
|
+
return this.lines.list({ sandboxId: this.sandboxId });
|
|
327
|
+
}
|
|
328
|
+
/** Detach a line (by id or address) from this sandbox. */
|
|
329
|
+
async detach(number) {
|
|
330
|
+
const lineId = await this.lines.resolve(number);
|
|
331
|
+
const line = await this.lines.get(lineId);
|
|
332
|
+
if (line.attachment && line.attachment.sandboxId !== this.sandboxId) throw new ValidationError(`Line ${lineId} is attached to another sandbox`);
|
|
333
|
+
await hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}/attachment`, { method: "DELETE" }));
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
//#endregion
|
|
205
337
|
//#region src/normalize.ts
|
|
206
338
|
/**
|
|
207
339
|
* Normalize a raw `connection` payload from the Sandbox API into the SDK's
|
|
@@ -4756,7 +4888,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4756
4888
|
if (runControlRef && !runControlRef.success) throw new ValidationError("Invalid runControlRef", { runControlRef: runControlRef.error.message });
|
|
4757
4889
|
if (runControlRef?.success && (runControlRef.data.environmentId !== this.id || runControlRef.data.sessionId !== options?.sessionId || runControlRef.data.executionId !== options?.executionId)) throw new ValidationError("runControlRef does not belong to this sandbox dispatch", { runControlRef: "environmentId, sessionId, and executionId must match the dispatch" });
|
|
4758
4890
|
const ttlMs = usableExecutionTtlMs(options?.ttlMs);
|
|
4759
|
-
await this.
|
|
4891
|
+
await this.ensureRunningForPrompt();
|
|
4760
4892
|
const timeoutMs = typeof options?.timeoutMs === "number" && options.timeoutMs > 0 ? options.timeoutMs : void 0;
|
|
4761
4893
|
const timeoutSignal = timeoutMs ? AbortSignal.timeout(timeoutMs) : void 0;
|
|
4762
4894
|
const streamSignal = timeoutSignal ? options?.signal ? combineAbortSignals([options.signal, timeoutSignal]) : timeoutSignal : options?.signal;
|
|
@@ -4767,6 +4899,20 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4767
4899
|
origin: "runtime"
|
|
4768
4900
|
});
|
|
4769
4901
|
};
|
|
4902
|
+
const reconcileRuntimeRefusal = async (status) => {
|
|
4903
|
+
if (status !== 404 && status !== 409 && status !== 503) return;
|
|
4904
|
+
sandboxStatusObservedAt.delete(this);
|
|
4905
|
+
try {
|
|
4906
|
+
await this.refresh(streamSignal);
|
|
4907
|
+
} catch (refreshError) {
|
|
4908
|
+
if (streamSignal?.aborted) {
|
|
4909
|
+
throwIfTimedOut();
|
|
4910
|
+
throw refreshError;
|
|
4911
|
+
}
|
|
4912
|
+
}
|
|
4913
|
+
if (this.status !== "running") throw new StateError(`Sandbox is not running (status: ${this.status})`, this.status, "running");
|
|
4914
|
+
this.assertFilesystemIncarnationReady();
|
|
4915
|
+
};
|
|
4770
4916
|
const streamStartedAt = Date.now();
|
|
4771
4917
|
const logStreamCheckpoint = (checkpoint, data = {}) => {
|
|
4772
4918
|
this.logStreamCheckpoint(checkpoint, {
|
|
@@ -4839,13 +4985,12 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4839
4985
|
throwIfTimedOut();
|
|
4840
4986
|
throw err;
|
|
4841
4987
|
}
|
|
4842
|
-
if (!response.ok && !explicitReplay) {
|
|
4843
|
-
const body = await response.text();
|
|
4844
|
-
throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
4845
|
-
}
|
|
4846
4988
|
if (!response.ok) {
|
|
4989
|
+
const body = await response.text();
|
|
4990
|
+
const responseError = parseErrorResponse(response.status, body, void 0, response.headers);
|
|
4991
|
+
if (!isProfileNotCachedError(responseError)) await reconcileRuntimeRefusal(response.status);
|
|
4992
|
+
if (!explicitReplay) throw responseError;
|
|
4847
4993
|
lastReplayStatus = response.status;
|
|
4848
|
-
await response.text();
|
|
4849
4994
|
logStreamCheckpoint("replay_response_status", {
|
|
4850
4995
|
attempt: 0,
|
|
4851
4996
|
status: response.status,
|
|
@@ -4917,6 +5062,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4917
5062
|
});
|
|
4918
5063
|
if (!replayResponse.ok) {
|
|
4919
5064
|
lastReplayStatus = replayResponse.status;
|
|
5065
|
+
await reconcileRuntimeRefusal(replayResponse.status);
|
|
4920
5066
|
console.warn(`[sandbox-sdk] Replay endpoint returned ${replayResponse.status}, attempt ${attempt}`);
|
|
4921
5067
|
if (replayResponse.status === 404 && sessionId) try {
|
|
4922
5068
|
const info = await this._sessionStatus(sessionId);
|
|
@@ -4985,6 +5131,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4985
5131
|
if (options?.signal?.aborted || streamSignal?.aborted) return;
|
|
4986
5132
|
} catch (err) {
|
|
4987
5133
|
throwIfTimedOut();
|
|
5134
|
+
if (err instanceof StateError) throw err;
|
|
4988
5135
|
logStreamCheckpoint("reconnect_attempt_end", {
|
|
4989
5136
|
attempt,
|
|
4990
5137
|
status: "failed",
|
|
@@ -7617,6 +7764,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7617
7764
|
if (this.status !== "running") throw new StateError(`Sandbox is not running (status: ${this.status})`, this.status, "running");
|
|
7618
7765
|
this.assertFilesystemIncarnationReady();
|
|
7619
7766
|
}
|
|
7767
|
+
async ensureRunningForPrompt() {
|
|
7768
|
+
if (!directRuntimeInstances.has(this) && sandboxStatusObservedAt.has(this) && this.status === "running" && this.filesystemIncarnationReadiness === "ready") return;
|
|
7769
|
+
await this.ensureRunning();
|
|
7770
|
+
}
|
|
7620
7771
|
assertFilesystemIncarnationReady() {
|
|
7621
7772
|
if (this.filesystemIncarnationReadiness !== "ready") throw new StateError("Sandbox filesystem incarnation is not ready", this.status, "running with a ready filesystem incarnation");
|
|
7622
7773
|
}
|
|
@@ -7769,6 +7920,13 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7769
7920
|
session(id) {
|
|
7770
7921
|
return new SandboxSession(this, id);
|
|
7771
7922
|
}
|
|
7923
|
+
/**
|
|
7924
|
+
* Lines attached to this sandbox. `attach()` binds a line so Hub runs each
|
|
7925
|
+
* member's messages here, one session per member.
|
|
7926
|
+
*/
|
|
7927
|
+
get lines() {
|
|
7928
|
+
return new SandboxLines(this.client, this.id);
|
|
7929
|
+
}
|
|
7772
7930
|
/** Create an agent session and return both its handle and initial metadata. */
|
|
7773
7931
|
async createSession(options) {
|
|
7774
7932
|
const info = await this.runtime.createSession(options);
|
|
@@ -8136,9 +8294,25 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8136
8294
|
};
|
|
8137
8295
|
const wireRequest = sessionMessageRequestBody(request);
|
|
8138
8296
|
if (opts.runControlRef && (opts.runControlRef.sessionId !== opts.sessionId || opts.runControlRef.environmentId !== this.id)) throw new ValidationError("runControlRef does not belong to this sandbox conversation");
|
|
8139
|
-
const
|
|
8140
|
-
|
|
8297
|
+
const checkAdmission = () => Promise.allSettled([this.runtimeFetch(`/agents/sessions/${encodeURIComponent(opts.sessionId)}/admissions/${encodeURIComponent(opts.turnId)}/check`, {
|
|
8298
|
+
method: "POST",
|
|
8299
|
+
headers: {
|
|
8300
|
+
"Content-Type": "application/json",
|
|
8301
|
+
[TRACE_ID_HEADER]: traceId
|
|
8302
|
+
},
|
|
8303
|
+
body: JSON.stringify(wireRequest),
|
|
8304
|
+
signal: opts.signal
|
|
8305
|
+
})]).then(([settled]) => settled);
|
|
8306
|
+
await this.ensureRunning(opts.signal);
|
|
8307
|
+
const [cached, observed, firstCheck] = await Promise.all([
|
|
8308
|
+
this.findCompletedTurn(opts.turnId, { sessionId: opts.sessionId }),
|
|
8309
|
+
this._sessionStatus(opts.sessionId),
|
|
8310
|
+
checkAdmission()
|
|
8311
|
+
]);
|
|
8312
|
+
let info = observed;
|
|
8313
|
+
let checked = firstCheck;
|
|
8141
8314
|
if (!info) {
|
|
8315
|
+
if (firstCheck.status === "fulfilled") await firstCheck.value.body?.cancel().catch(() => void 0);
|
|
8142
8316
|
if (cached) throw new StateError("Retained result has no verifiable conversation admission", "unverified", "verified admission", void 0, "MESSAGE_ADMISSION_UNVERIFIED");
|
|
8143
8317
|
if (opts.allowDispatch === false) return { state: "not_admitted" };
|
|
8144
8318
|
await this.createSession({
|
|
@@ -8148,16 +8322,10 @@ var SandboxInstance = class SandboxInstance {
|
|
|
8148
8322
|
});
|
|
8149
8323
|
info = await this._sessionStatus(opts.sessionId);
|
|
8150
8324
|
if (!info) throw new Error("Conversation session creation was not confirmed");
|
|
8325
|
+
checked = await checkAdmission();
|
|
8151
8326
|
}
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
headers: {
|
|
8155
|
-
"Content-Type": "application/json",
|
|
8156
|
-
[TRACE_ID_HEADER]: traceId
|
|
8157
|
-
},
|
|
8158
|
-
body: JSON.stringify(wireRequest),
|
|
8159
|
-
signal: opts.signal
|
|
8160
|
-
});
|
|
8327
|
+
if (checked.status === "rejected") throw checked.reason;
|
|
8328
|
+
const response = checked.value;
|
|
8161
8329
|
if (!response.ok) throw parseErrorResponse(response.status, await response.text(), void 0, response.headers);
|
|
8162
8330
|
const body = await response.json();
|
|
8163
8331
|
if (body.requestVerified !== true || !Object.hasOwn(body, "receipt")) throw new Error("Runtime did not verify the durable message admission request");
|
|
@@ -8643,4 +8811,4 @@ function quoteForShell(value) {
|
|
|
8643
8811
|
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
8644
8812
|
}
|
|
8645
8813
|
//#endregion
|
|
8646
|
-
export {
|
|
8814
|
+
export { buildTraceExportPayload as A, collectAgentResponseText as C, normalizeSandboxShape as D, normalizeConnection as E, otelTraceIdForTangleTrace as M, toOtelJson as N, LinesClient as O, collectAgentFinalMessageText as S, isToolBearingEvent as T, TerminalStream as _, WorkspaceImages as a, requestInteractiveSessionToken as b, SandboxTaskSession as c, agentInteractiveSessionPromptRequestDigest as d, InteractiveTerminalFrameLog as f, InteractiveSessionController as g, BrowserInteractiveSessionController as h, normalizeStartupDiagnostics as i, exportTraceBundle as j, SandboxLines as k, SandboxSession as l, createInteractiveTerminalSession as m, createSandboxInstanceFromResponse as n, GPU_LEASE_PROVIDER_NAMES as o, createInteractiveTerminalCapture as p, normalizeSandboxCreateReceipt as r, MAX_EGRESS_DENIALS_LIMIT as s, SandboxInstance as t, InteractiveSessionHandle as u, TerminalStreamError as v, getSandboxEventText as w, applySandboxEventText as x, TERMINAL_WS_ECHO_SUBPROTOCOL as y };
|