@tangle-network/sandbox 0.60.59-develop.20261015094907.0f1d4c1 → 0.60.60-develop.20261015114316.84646b4
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-CKEytWhV.d.ts → agent-run-outcome-jQ4-mu3U.d.ts} +1 -1
- package/dist/{client-B6wth6t4.js → client-D60LRpNC.js} +1 -1
- package/dist/{client-DGw9BOo_.d.ts → client-RvKZIMIM.d.ts} +4 -4
- package/dist/core.d.ts +6 -6
- package/dist/core.js +2 -2
- package/dist/{errors-C27xbSjr.d.ts → errors-CasBS7sA.d.ts} +1 -1
- package/dist/{index-B1KvVixM.d.ts → index-ClGFr_62.d.ts} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/{lines-Dsawkh4t.d.ts → lines-QIlTBPei.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{managed-process-BHNX9vPj.d.ts → managed-process-J9nLXHIH.d.ts} +1 -1
- package/dist/{preview-B10RO4z3.d.ts → preview-B8q9L4p4.d.ts} +3 -3
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-Cien4hLW.js → sandbox-B0F0B-cx.js} +40 -5
- package/dist/{sandbox-BKVGqMey.d.ts → sandbox-DwK0kJcB.d.ts} +17 -3
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DZuv0Hc6.js → tangle-DnMSV9yr.js} +1 -1
- package/dist/{types-95_cAwaI.d.ts → types-C1SaeO0Z.d.ts} +22 -1
- package/package.json +3 -3
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Qi as SessionInfo, Qr as SandboxFleetParent, d as BackendConfig, ea as SessionListOptions, k as CodeResultPart,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-DwK0kJcB.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, Qi as SessionInfo, Qr as SandboxFleetParent, d as BackendConfig, ea as SessionListOptions, k as CodeResultPart, so as BackendType } from "../types-C1SaeO0Z.js";
|
|
3
|
+
import { i as Sandbox } from "../client-RvKZIMIM.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-B8q9L4p4.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-DjryqUiY.js";
|
|
2
2
|
import { E as assertCurrentBackendType } from "../interactive-controller-DaYmUCO_.js";
|
|
3
3
|
import { h as StateError, l as NotFoundError, v as ValidationError } from "../errors-iWIsey1D.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-D60LRpNC.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-B0F0B-cx.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-B8q9L4p4.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 { Nr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-
|
|
1
|
+
import { Nr as SandboxEvent, a as AgentQuestionRequest, ct as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-C1SaeO0Z.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -2,7 +2,7 @@ import { r as backendTypeSchema } from "./backend-types-C7b_Gpa0.js";
|
|
|
2
2
|
import { D as foldModelRoutingFields, E as assertCurrentBackendType, M as withProfileHarness, S as encodePromptForWire, T as applyRequestedModel, k as normalizeRuntimeBackendConfig, s as requestInteractiveSessionToken, w as parseSSEStream } from "./interactive-controller-DaYmUCO_.js";
|
|
3
3
|
import { _ as TimeoutError, b as parseResponseError, c as NetworkError, d as QuotaError, l as NotFoundError, m as ServerError, p as SandboxError, s as NON_RETRYABLE_CREATE_QUOTA_REASONS, t as AuthError, u as PartialFailureError, v as ValidationError, x as readResponseJson, y as parseErrorResponse } from "./errors-iWIsey1D.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-
|
|
5
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, D as normalizeSandboxShape, E as normalizeConnection, O as rewrapResponse, T as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as splitInlineProfileSkills } from "./sandbox-B0F0B-cx.js";
|
|
6
6
|
import { LinesClient } from "./lines.js";
|
|
7
7
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-
|
|
2
|
-
import { $n as PromptOptions, B as CreateSandboxOptions, Br as SandboxFleetDispatchResponse, Bt as FleetDispatchStreamOptions, Ei as SandboxShapesInfo, En as ListSandboxOptions, Er as SandboxConfig, F as CreateIntelligenceReportOptions, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gt as FleetMachineId, Hi as SecretsManager, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetArtifact, Jr as SandboxFleetMachineSpec, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetArtifactSpec, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxEnvironment, N as ConversationTurnResult, Nt as FleetAgentId,
|
|
1
|
+
import { l as TraceExportResult, n as HttpClient, r as SandboxInstance, u as TraceExportSink } from "./sandbox-DwK0kJcB.js";
|
|
2
|
+
import { $n as PromptOptions, B as CreateSandboxOptions, Br as SandboxFleetDispatchResponse, Bt as FleetDispatchStreamOptions, Ei as SandboxShapesInfo, En as ListSandboxOptions, Er as SandboxConfig, F as CreateIntelligenceReportOptions, Fa as UsageInfo, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Gt as FleetMachineId, Hi as SecretsManager, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ir as SandboxFleetArtifact, Jr as SandboxFleetMachineSpec, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, Lr as SandboxFleetArtifactSpec, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Mr as SandboxEnvironment, N as ConversationTurnResult, Nt as FleetAgentId, Pr as SandboxFleetAgent, Qn as PromptInputPart, Qr as SandboxFleetParent, R as CreateSandboxFleetTokenOptions, Rr as SandboxFleetCostEstimate, Rt as FleetDispatchResultBuffer, Tn as ListSandboxFleetOptions, Ur as SandboxFleetInfo, Ut as FleetExecDispatchOptions, Vr as SandboxFleetDriverCapability, Vt as FleetDriveTurnOutcome, Wt as FleetExecDispatchResult, Yr as SandboxFleetManifest, Yt as FleetRunOptions, Zr as SandboxFleetOperationsSummary, _n as IntelligenceReport, b as BatchRunRequest, ci as SandboxFleetUsage, cr as PublishPublicTemplateOptions, d as BackendConfig, di as SandboxFleetWorkspaceRestoreResult, dr as ReapExpiredSandboxFleetsResult, ei as SandboxFleetPolicy, er as PromptResult, fi as SandboxFleetWorkspaceSnapshotResult, fr as ReconcileSandboxFleetsOptions, ii as SandboxFleetTraceBundle, ka as TokenRefreshHandler, l as AttachSandboxFleetMachineOptions, lr as PublishPublicTemplateVersionOptions, ma as SshKeysManager, mi as SandboxInfo, ni as SandboxFleetSpend, no as BatchEvent, or as PublicTemplateInfo, pi as SandboxIdentity, pr as ReconcileSandboxFleetsResult, q as DeleteMatchingSandboxesResult, qr as SandboxFleetMachineRecord, qt as FleetPromptDispatchResult, ri as SandboxFleetToken, si as SandboxFleetTraceOptions, sr as PublicTemplateVersionInfo, ui as SandboxFleetWorkspaceReconcileResult, ur as ReapExpiredSandboxFleetsOptions, v as BatchResult, va as SubscriptionInfo, vn as IntelligenceReportBudget, vt as ExecOptions, xi as SandboxRunGeneration, xn as IntelligenceReportWindow, y as BatchRunOptions, yn as IntelligenceReportCompareTo, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchResultBufferOptions } from "./types-C1SaeO0Z.js";
|
|
3
3
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-CV1pMSKC.js";
|
|
4
|
-
import { I as LinesClient } from "./lines-
|
|
5
|
-
import { f as SandboxError } from "./errors-
|
|
4
|
+
import { I as LinesClient } from "./lines-QIlTBPei.js";
|
|
5
|
+
import { f as SandboxError } from "./errors-CasBS7sA.js";
|
|
6
6
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages, v as ProfileFileDeliveryReport } from "./sandbox-
|
|
2
|
-
import { An as ManagedProcessRecord, B as CreateSandboxOptions, Di as SandboxStatus, Er as SandboxConfig, Hn as PreviewLinkManager, In as NetworkConfig, M as ConversationTurnOptions, Mn as ManagedProcessSpec, N as ConversationTurnResult, Nn as ManagedProcessState, On as ManagedProcessJobs, Qn as PromptInputPart,
|
|
3
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
4
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
5
|
-
import { a as FileWriteConflictError, b as ValidationError, 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, y as TimeoutError } from "./errors-
|
|
6
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
1
|
+
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages, v as ProfileFileDeliveryReport } from "./sandbox-DwK0kJcB.js";
|
|
2
|
+
import { An as ManagedProcessRecord, B as CreateSandboxOptions, Di as SandboxStatus, Er as SandboxConfig, Ga as SandboxEnvRecoveryView, Hn as PreviewLinkManager, In as NetworkConfig, M as ConversationTurnOptions, Mn as ManagedProcessSpec, N as ConversationTurnResult, Nn as ManagedProcessState, On as ManagedProcessJobs, Qn as PromptInputPart, Un as PreviewLinkWaitOptions, Vn as PreviewLinkInfo, Wa as SandboxEnvRecovery, jn as ManagedProcessResumeOptions, kn as ManagedProcessOptions, mi as SandboxInfo, na as SessionMessageAdmission, vt as ExecOptions, yt as ExecResult } from "./types-C1SaeO0Z.js";
|
|
3
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-QIlTBPei.js";
|
|
4
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-RvKZIMIM.js";
|
|
5
|
+
import { a as FileWriteConflictError, b as ValidationError, 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, y as TimeoutError } from "./errors-CasBS7sA.js";
|
|
6
|
+
import { t as ManagedProcessClient } from "./managed-process-J9nLXHIH.js";
|
|
7
7
|
|
|
8
8
|
//#region src/core.d.ts
|
|
9
9
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, h as StateError, l as NotFoundError, m as ServerError, n as CapabilityError, p as SandboxError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-D60LRpNC.js";
|
|
3
|
+
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-B0F0B-cx.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
6
6
|
//#region src/core.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HttpClient, r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions } from "./types-
|
|
1
|
+
import { n as HttpClient, r as SandboxInstance } from "./sandbox-DwK0kJcB.js";
|
|
2
|
+
import { B as CreateSandboxOptions } from "./types-C1SaeO0Z.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $ as BuildSandboxMcpConfigOptions, A as InteractiveSessionControlClaim, B as InterruptResult, C as materializeProfileFileMounts, D as AgentInteractiveTerminalSession, E as validateDeferredProfileFileMounts, F as InteractiveSessionInfo, G as InteractiveTerminalMetadata, H as agentInteractiveSessionPromptRequestDigest, I as InteractiveSessionRef, J as SandboxInteractionCommandResult, K as createInteractiveTerminalCapture, L as InteractiveSessionStartOptions, M as InteractiveSessionHandleOptions, N as InteractiveSessionHost, O as InteractiveControlClaimRequest, P as InteractiveSessionIncarnationId, Q as BuildControlPlaneMcpConfigOptions, R as InteractiveSessionStartResult, S as SplitInlineProfileSkillsResult, T as splitInlineProfileSkills, U as InteractiveTerminalCapture, V as RespondToPermissionOptions, W as InteractiveTerminalFrameLog, X as SandboxInteractionResolution, Y as SandboxInteractionConflict, Z as SandboxInteractionResult, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, at as buildControlPlaneMcpConfig, b as MaterializeProfileFileMountsResult, c as TraceExportFormat, d as buildTraceExportPayload, et as CONTROL_PLANE_MCP_SERVER_NAME, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, it as SandboxMcpServerEntry, j as InteractiveSessionHandle, k as InteractivePromptCommand, l as TraceExportResult, m as toOtelJson, nt as SandboxMcpConfig, o as WorkspaceImagePublishResult, ot as buildSandboxMcpConfig, p as otelTraceIdForTangleTrace, q as createInteractiveTerminalSession, r as SandboxInstance, rt as SandboxMcpEndpoint, s as WorkspaceImages, t as ForkAcknowledgement, tt as SANDBOX_MCP_SERVER_NAME, u as TraceExportSink, v as ProfileFileDeliveryReport, w as splitInlineProfileFileMounts, x as SplitInlineProfileFileMountsResult, y as MaterializeProfileFileMountsOptions, z as InteractiveStopCommand } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $
|
|
1
|
+
import { $ as BuildSandboxMcpConfigOptions, A as InteractiveSessionControlClaim, B as InterruptResult, C as materializeProfileFileMounts, D as AgentInteractiveTerminalSession, E as validateDeferredProfileFileMounts, F as InteractiveSessionInfo, G as InteractiveTerminalMetadata, H as agentInteractiveSessionPromptRequestDigest, I as InteractiveSessionRef, J as SandboxInteractionCommandResult, K as createInteractiveTerminalCapture, L as InteractiveSessionStartOptions, M as InteractiveSessionHandleOptions, N as InteractiveSessionHost, O as InteractiveControlClaimRequest, P as InteractiveSessionIncarnationId, Q as BuildControlPlaneMcpConfigOptions, R as InteractiveSessionStartResult, S as SplitInlineProfileSkillsResult, T as splitInlineProfileSkills, U as InteractiveTerminalCapture, V as RespondToPermissionOptions, W as InteractiveTerminalFrameLog, X as SandboxInteractionResolution, Y as SandboxInteractionConflict, Z as SandboxInteractionResult, _ as SandboxSession, a as WorkspaceImagePublishRequestOptions, at as buildControlPlaneMcpConfig, b as MaterializeProfileFileMountsResult, c as TraceExportFormat, d as buildTraceExportPayload, et as CONTROL_PLANE_MCP_SERVER_NAME, f as exportTraceBundle, g as RawEvidenceExport, h as SandboxTaskSession, i as WorkspaceImagePublishInput, it as SandboxMcpServerEntry, j as InteractiveSessionHandle, k as InteractivePromptCommand, l as TraceExportResult, m as toOtelJson, nt as SandboxMcpConfig, o as WorkspaceImagePublishResult, ot as buildSandboxMcpConfig, p as otelTraceIdForTangleTrace, q as createInteractiveTerminalSession, r as SandboxInstance, rt as SandboxMcpEndpoint, s as WorkspaceImages, t as ForkAcknowledgement, tt as SANDBOX_MCP_SERVER_NAME, u as TraceExportSink, v as ProfileFileDeliveryReport, w as splitInlineProfileFileMounts, x as SplitInlineProfileFileMountsResult, y as MaterializeProfileFileMountsOptions, z as InteractiveStopCommand } from "./sandbox-DwK0kJcB.js";
|
|
2
|
+
import { $ as DownloadOptions, $i as SessionInterruptOptions, $n as PromptOptions, $r as SandboxFleetPlacement, $t as GPU_LEASE_PROVIDER_NAMES, A as CommitTaskSessionOptions, Aa as TokenUsage, Ai as SandboxTerminalInfo, An as ManagedProcessRecord, Ar as SandboxDeleteOutcome, At as FileUsageOptions, B as CreateSandboxOptions, Ba as WriteManyFile, Bi as SearchOptions, Bn as PermissionsManager, Br as SandboxFleetDispatchResponse, Bt as FleetDispatchStreamOptions, C as BranchOptions, Ca as TaskSessionProfile, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, Cr as RolloutTurnPart, Ct as FileReadError, Da as TeePublicKey, Di as SandboxStatus, Dn as MAX_EGRESS_DENIALS_LIMIT, Dr as SandboxConnection, Dt as FileTreeFile, Ea as TeeAttestationResponse, Ei as SandboxShapesInfo, En as ListSandboxOptions, Er as SandboxConfig, Et as FileSystem, F as CreateIntelligenceReportOptions, Fa as UsageInfo, Fi as SandboxTraceEvent, Fn as MkdirOptions, Fr as SandboxFleetAgentSpec, Ft as FleetAgentResult, G as DeleteMatchingSandboxesFilter, Ga as SandboxEnvRecoveryView, Gi as SentSessionMessage, Gn as ProcessInfo, Gr as SandboxFleetMachine, Gt as FleetMachineId, H as CreateTaskSessionOptions, Ha as SandboxCreateOutcome, Hi as SecretsManager, Hn as PreviewLinkManager, Hr as SandboxFleetDriverTimings, Ht as FleetDriveTurnRequest, I as CreateRequestOptions, Ia as WaitForOptions, Ii as SandboxTraceExport, In as NetworkConfig, Ir as SandboxFleetArtifact, It as FleetAgentRunStatus, J as DeleteOptions, Ja as RawEvidenceExportOptions, Ji as SessionExecutionInfo, Jn as ProcessManager, Jr as SandboxFleetMachineSpec, Jt as FleetRunEvent, K as DeleteMatchingSandboxesOptions, Ka as RawEvidenceArchiveManifest, Ki as SessionBackendCredentials, Kn as ProcessListOptions, Kr as SandboxFleetMachineMeteredUsage, Kt as FleetPromptDispatchOptions, L as CreateSandboxFleetOptions, La as WaitForRolloutOptions, Li as SandboxTraceOptions, Ln as NetworkManager, Lr as SandboxFleetArtifactSpec, Lt as FleetDispatchCancelResult, M as ConversationTurnOptions, Ma as UpdateUserOptions, Mi as SandboxTerminalRequestOptions, Mn as ManagedProcessSpec, Mr as SandboxEnvironment, Mt as FileWriteResult, N as ConversationTurnResult, Na as UploadOptions, Ni as SandboxTerminals, Nn as ManagedProcessState, Nr as SandboxEvent, Nt as FleetAgentId, Oa as TeePublicKeyResponse, Oi as SandboxTerminalAttachOptions, On as ManagedProcessJobs, Or as SandboxDeleteAcknowledgement, Ot as FileTreeOptions, P as CreateGpuLeaseOptions, Pa as UploadProgress, Pi as SandboxTraceBundle, Pn as McpServerConfig, Pr as SandboxFleetAgent, Pt as FleetAgentPlacement, Q as DispatchedSession, Qi as SessionInfo, Qn as PromptInputPart, Qr as SandboxFleetParent, Qt as ForkLookupOptions, Ra as WorkspaceOperationLookup, Ri as SandboxUser, Rn as NonHostAgentDriverConfig, Rr as SandboxFleetCostEstimate, Rt as FleetDispatchResultBuffer, S as BatchTaskResult, Sa as TaskSessionInfo, Si as SandboxRuntimeCapabilities, Sr as RolloutStatus, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as TeeAttestationReport, Ti as SandboxShapePreset, Tn as ListSandboxFleetOptions, Tr as SSHCredentials, Tt as FileRenameResult, U as DeleteMatchingSandboxOutcome, Ua as SandboxCreateReceipt, Ui as SendSessionMessageOptions, Un as PreviewLinkWaitOptions, Ur as SandboxFleetInfo, Ut as FleetExecDispatchOptions, V as CreateSessionOptions, Va as WriteManyOptions, Vi as SecretInfo, Vn as PreviewLinkInfo, Vr as SandboxFleetDriverCapability, Vt as FleetDriveTurnOutcome, W as DeleteMatchingSandboxResult, Wa as SandboxEnvRecovery, Wi as SendSessionMessageRequest, Wn as Process, Wr as SandboxFleetIntelligenceEnvelope, X as DirectoryPermission, Xa as RawEvidencePayloadFile, Xi as SessionFailureReason, Xn as ProcessSpawnOptions, Xr as SandboxFleetManifestMachine, Xt as ForkCounts, Y as DevServerInfo, Ya as RawEvidenceNativeFile, Yi as SessionExecutionStatus, Yn as ProcessSignal, Yr as SandboxFleetManifest, Yt as FleetRunOptions, Z as DispatchPromptOptions, Za as RawEvidenceRecordsFile, Zi as SessionForkOptions, Zn as ProcessStatus, Zr as SandboxFleetOperationsSummary, Zt as ForkIdempotency, _ as BatchBackend, _a as StorageConfig, _i as SandboxPortPreviewLink, _n as IntelligenceReport, _r as Rollout, _t as ExactProcessSpawnOptions, aa as SessionStatus, ai as SandboxFleetTraceEvent, an as GitStatus, ao as BatchTaskUsage, ar as PublicProfileConflict, at as DriverType, b as BatchRunRequest, ba as TaskSessionCommitResult, bi as SandboxResources, bn as IntelligenceReportSubjectType, br as RolloutScorer, bt as FileInfo, c as AttachGpuLeaseOptions, ca as SnapshotIdempotency, ci as SandboxFleetUsage, cn as GpuLeaseCommandResult, co as parseBackendType, cr as PublishPublicTemplateOptions, d as BackendConfig, di as SandboxFleetWorkspaceRestoreResult, dn as GpuLeaseManager, dr as ReapExpiredSandboxFleetsResult, dt as EffectiveBackendSource, ea as SessionListOptions, ei as SandboxFleetPolicy, en as GitAuth, eo as PublicBatchRunRequest, er as PromptResult, et as DownloadProgress, f as BackendInfo, fa as SnapshotRemoteSync, fi as SandboxFleetWorkspaceSnapshotResult, fn as GpuLeaseProviderName, fr as ReconcileSandboxFleetsOptions, ft as EgressDenial, g as BackendStatus, ga as StartupOperation, gi as SandboxPortBinding, gn as InstalledTool, gt as EventStreamOptions, h as BackendRuntimeConfigUpdate, ha as StartupDiagnostics, hi as SandboxIntelligenceEnvelope, hn as HostAgentRuntimeBackend, ht as EnsureDevServerOptions, ia as SessionResultOptions, ii as SandboxFleetTraceBundle, in as GitDiff, io as BatchSidecarGroup, ir as ProvisionStep, it as DriverInfo, j as CompletedTurnResult, ja as TurnDriveResult, ji as SandboxTerminalManager, jn as ManagedProcessResumeOptions, jr as SandboxEgressUsage, jt as FileUsageResult, ka as TokenRefreshHandler, ki as SandboxTerminalCreateOptions, kn as ManagedProcessOptions, kr as SandboxDeleteOptions, kt as FileTreeResult, l as AttachSandboxFleetMachineOptions, la as SnapshotInfo, li as SandboxFleetWorkspace, ln as GpuLeaseExecOptions, lr as PublishPublicTemplateVersionOptions, lt as EffectiveBackend, m as BackendMcpServerStatus, mi as SandboxInfo, mn as HostAgentDriverConfig, mr as RenameOptions, mt as EgressPolicy, n as AccessPolicyRule, na as SessionMessageAdmission, ni as SandboxFleetSpend, nn as GitCommit, no as BatchEvent, nr as ProvisionResult, nt as DriveTurnOptions, oa as SnapshotDeleteAcknowledgement, oi as SandboxFleetTraceExport, on as GpuLease, oo as ALL_BACKEND_TYPES, or as PublicTemplateInfo, ot as DurablePlan, p as BackendManager, pa as SnapshotResult, pi as SandboxIdentity, pn as GpuLeaseStatus, pr as ReconcileSandboxFleetsResult, pt as EgressManager, q as DeleteMatchingSandboxesResult, qa as RawEvidenceDirectoryExport, qi as SessionEventStreamOptions, qn as ProcessLogEntry, qr as SandboxFleetMachineRecord, qt as FleetPromptDispatchResult, r as AddUserOptions, ra as SessionMessageInputPart, ri as SandboxFleetToken, rn as GitConfig, ro as BatchEventDataMap, rr as ProvisionStatus, rt as DriverConfig, sa as SnapshotDeleteOutcome, si as SandboxFleetTraceOptions, sn as GpuLeaseBilling, so as BackendType, sr as PublicTemplateVersionInfo, st as DurablePlanDecisionResult, t as AcceleratorKind, ta as SessionMessage, ti as SandboxFleetProfileRef, tn as GitBranch, to as BatchBackendStats, tr as ProvisionEvent, tt as DownloadResult, u as BackendCapabilities, ua as SnapshotOptions, ui as SandboxFleetWorkspaceReconcileResult, un as GpuLeaseExecResult, ur as ReapExpiredSandboxFleetsOptions, ut as EffectiveBackendProfile, v as BatchResult, va as SubscriptionInfo, vi as SandboxRemovalState, vn as IntelligenceReportBudget, vr as RolloutChildResult, vt as ExecOptions, w as ChunkedUploadOptions, wa as TeeAttestationOptions, wi as SandboxShape, wn as ListOptions, wr as SSHCommandDescriptor, wt as FileReadResult, x as BatchTask, xa as TaskSessionFileChange, xi as SandboxRunGeneration, xn as IntelligenceReportWindow, xr as RolloutStartResult, xt as FileReadBatchOptions, y as BatchRunOptions, ya as TaskSessionChanges, yi as SandboxResourceUsage, yn as IntelligenceReportCompareTo, yr as RolloutOptions, yt as ExecResult, z as CreateSandboxFleetWithCoordinatorOptions, za as WriteFileOptions, zi as SearchMatch, zn as PermissionLevel, zr as SandboxFleetDispatchFailureClass, zt as FleetDispatchResultBufferOptions } from "./types-C1SaeO0Z.js";
|
|
3
3
|
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-CV1pMSKC.js";
|
|
4
4
|
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-JUW3gOGH.js";
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-DNbLzamS.js";
|
|
6
|
-
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
7
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
8
|
-
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, 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 StreamInterruptionReason, y as TimeoutError } from "./errors-
|
|
6
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, q as LineApplicationView, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-QIlTBPei.js";
|
|
7
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-RvKZIMIM.js";
|
|
8
|
+
import { _ as StreamInterruptedError, a as FileWriteConflictError, b as ValidationError, 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 StreamInterruptionReason, y as TimeoutError } from "./errors-CasBS7sA.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-BgmgfYZZ.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-DHuHjNie.js";
|
|
11
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
12
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
13
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
11
|
+
import { t as ManagedProcessClient } from "./managed-process-J9nLXHIH.js";
|
|
12
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-jQ4-mu3U.js";
|
|
13
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-ClGFr_62.js";
|
|
14
14
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
15
15
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
16
16
|
import { z } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-C7b_Gpa0.js";
|
|
2
2
|
import { A as requestedPublicProfileDigest, F as deriveAgentResultOutcome, I as deriveAgentRunOutcome, L as projectAgentTerminalRecord, P as createAgentRunOutcomeTracker, a as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamError, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, w as parseSSEStream } from "./interactive-controller-DaYmUCO_.js";
|
|
3
3
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NetworkError, d as QuotaError, f as ResumeEnvRequiredError, g as StreamInterruptedError, h as StateError, i as EgressProxyRecoveryError, l as NotFoundError, m as ServerError, n as CapabilityError, o as KeyBudgetExhaustedError, p as SandboxError, r as EdgeNotReadyError, t as AuthError, u as PartialFailureError, v as ValidationError } from "./errors-iWIsey1D.js";
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-D60LRpNC.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-BJf0P_J4.js";
|
|
6
|
-
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
6
|
+
import { A as exportTraceBundle, C as splitInlineProfileFileMounts, M as toOtelJson, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, _ as collectAgentFinalMessageText, b as isToolBearingEvent, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as applySandboxEventText, h as createInteractiveTerminalSession, j as otelTraceIdForTangleTrace, k as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileSkills, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-B0F0B-cx.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
8
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-B2g1j2ey.js";
|
|
9
9
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-Cq6dJLBD.js";
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-DnMSV9yr.js";
|
|
11
11
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-C1SaeO0Z.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 LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-
|
|
1
|
+
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, D as LineRole, E as LineRespondView, F as LineVoiceOptions, I as LinesClient, L as LinesHttpClient, M as LineThread, N as LineTransport, O as LineSendInput, P as LineVoice, R as SandboxLines, S as LineReplyCode, T as LineRespondAgent, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineReplyGate, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-QIlTBPei.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, 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,4 +1,4 @@
|
|
|
1
|
-
import { An as ManagedProcessRecord, Mn as ManagedProcessSpec, On as ManagedProcessJobs, jn as ManagedProcessResumeOptions, kn as ManagedProcessOptions } from "./types-
|
|
1
|
+
import { An as ManagedProcessRecord, Mn as ManagedProcessSpec, On as ManagedProcessJobs, jn as ManagedProcessResumeOptions, kn as ManagedProcessOptions } from "./types-C1SaeO0Z.js";
|
|
2
2
|
|
|
3
3
|
//#region src/managed-process.d.ts
|
|
4
4
|
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { Vn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { r as SandboxInstance } from "./sandbox-DwK0kJcB.js";
|
|
2
|
+
import { Vn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-C1SaeO0Z.js";
|
|
3
|
+
import { i as Sandbox } from "./client-RvKZIMIM.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions, Ai as SandboxTerminalInfo, At as FileUsageOptions, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, Gi as SentSessionMessage, H as CreateTaskSessionOptions, Ji as SessionExecutionInfo, Mi as SandboxTerminalRequestOptions, Mt as FileWriteResult,
|
|
1
|
+
import { A as CommitTaskSessionOptions, Ai as SandboxTerminalInfo, At as FileUsageOptions, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, Gi as SentSessionMessage, H as CreateTaskSessionOptions, Ji as SessionExecutionInfo, Mi as SandboxTerminalRequestOptions, Mt as FileWriteResult, Nr as SandboxEvent, Ot as FileTreeOptions, Pa as UploadProgress, Qi as SessionInfo, Sa as TaskSessionInfo, St as FileReadBatchResult, T as ChunkedUploadResult, Tt as FileRenameResult, Ui as SendSessionMessageOptions, V as CreateSessionOptions, Wi as SendSessionMessageRequest, Yi as SessionExecutionStatus, ba as TaskSessionCommitResult, gi as SandboxPortBinding, ji as SandboxTerminalManager, jt as FileUsageResult, ki as SandboxTerminalCreateOptions, kt as FileTreeResult, mr as RenameOptions, na as SessionMessageAdmission, qi as SessionEventStreamOptions, ta as SessionMessage, w as ChunkedUploadOptions, xt as FileReadBatchOptions, ya as TaskSessionChanges, za as WriteFileOptions } from "./types-C1SaeO0Z.js";
|
|
2
2
|
import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
4
4
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-DNbLzamS.js";
|
|
5
|
-
import { a as FileWriteConflictError, b as ValidationError, 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, y as TimeoutError } from "./errors-
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
5
|
+
import { a as FileWriteConflictError, b as ValidationError, 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, y as TimeoutError } from "./errors-CasBS7sA.js";
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-jQ4-mu3U.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -4061,12 +4061,13 @@ function sandboxShellCommandArgs(command) {
|
|
|
4061
4061
|
return ["-c", command];
|
|
4062
4062
|
}
|
|
4063
4063
|
const SNAPSHOT_CREATE_REQUEST_TIMEOUT_MS = 600 * 1e3;
|
|
4064
|
-
function toSnapshotResult(data) {
|
|
4064
|
+
function toSnapshotResult(data, provenance) {
|
|
4065
4065
|
return {
|
|
4066
4066
|
snapshotId: data.snapshotId ?? data.id,
|
|
4067
4067
|
createdAt: new Date(data.createdAt),
|
|
4068
4068
|
sizeBytes: data.sizeBytes,
|
|
4069
|
-
tags: data.tags ?? []
|
|
4069
|
+
tags: data.tags ?? [],
|
|
4070
|
+
...provenance ? { provenance } : {}
|
|
4070
4071
|
};
|
|
4071
4072
|
}
|
|
4072
4073
|
function toSnapshotRemoteSync(value) {
|
|
@@ -4410,6 +4411,13 @@ var SandboxInstance = class SandboxInstance {
|
|
|
4410
4411
|
deferredProfileReference;
|
|
4411
4412
|
profileFiles = new ProfileFileDelivery();
|
|
4412
4413
|
/**
|
|
4414
|
+
* The profile provenance receipt carried from create-time. Set when the
|
|
4415
|
+
* sandbox was created with a profile (inline or catalog); carried forward
|
|
4416
|
+
* to every snapshot so the snapshot answers "what configuration produced
|
|
4417
|
+
* this state?" without requiring a live profile read.
|
|
4418
|
+
*/
|
|
4419
|
+
profileProvenance;
|
|
4420
|
+
/**
|
|
4413
4421
|
* Direct regional status reads for THIS sandbox. Inert until the API
|
|
4414
4422
|
* relays a grant, and it retreats to the API path on any failure — see
|
|
4415
4423
|
* direct-read-route.ts.
|
|
@@ -5131,11 +5139,29 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5131
5139
|
* Captures a content snapshot, so mutating the object afterwards is
|
|
5132
5140
|
* detected and that turn falls back to sending the profile inline.
|
|
5133
5141
|
*/
|
|
5134
|
-
attachProfileReference(profile, sha256) {
|
|
5142
|
+
attachProfileReference(profile, sha256, name) {
|
|
5135
5143
|
this.deferredProfileReference = {
|
|
5136
5144
|
snapshot: serializeProfileSnapshot(profile),
|
|
5137
5145
|
sha256
|
|
5138
5146
|
};
|
|
5147
|
+
if (!this.profileProvenance) this.profileProvenance = {
|
|
5148
|
+
base: {
|
|
5149
|
+
name: name ?? null,
|
|
5150
|
+
sha256
|
|
5151
|
+
},
|
|
5152
|
+
effective: {
|
|
5153
|
+
name: name ?? null,
|
|
5154
|
+
sha256
|
|
5155
|
+
},
|
|
5156
|
+
materializedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
5157
|
+
};
|
|
5158
|
+
else this.profileProvenance = {
|
|
5159
|
+
...this.profileProvenance,
|
|
5160
|
+
effective: {
|
|
5161
|
+
name: name ?? null,
|
|
5162
|
+
sha256
|
|
5163
|
+
}
|
|
5164
|
+
};
|
|
5139
5165
|
}
|
|
5140
5166
|
/**
|
|
5141
5167
|
* Deliver inline file mounts separately, then upload the remaining profile
|
|
@@ -7280,6 +7306,15 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7280
7306
|
* });
|
|
7281
7307
|
* ```
|
|
7282
7308
|
*/
|
|
7309
|
+
/**
|
|
7310
|
+
* The profile provenance receipt for this sandbox: which profile was
|
|
7311
|
+
* materialized, its content hash, and when. Absent for a bare sandbox
|
|
7312
|
+
* created without a profile. This is what `snapshot()` carries into the
|
|
7313
|
+
* snapshot metadata, and what `tangle sandbox show --profile` displays.
|
|
7314
|
+
*/
|
|
7315
|
+
getProfileProvenance() {
|
|
7316
|
+
return this.profileProvenance;
|
|
7317
|
+
}
|
|
7283
7318
|
async snapshot(options) {
|
|
7284
7319
|
if (options && "paths" in options) throw new Error("Path-scoped snapshot capture is not supported; create a whole-workspace snapshot and use restorePaths()");
|
|
7285
7320
|
if (options?.idempotencyKey && options.storage) throw new Error("idempotencyKey is not supported with customer-provided storage; the BYOS3 snapshot path keeps no operation ledger");
|
|
@@ -7386,7 +7421,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7386
7421
|
const response = await this.client.fetch(`/v1/sandboxes/${this.id}/snapshots/${encodeURIComponent(snapshotId)}/restore`, { method: "POST" }, { timeoutMs: SNAPSHOT_RESTORE_TIMEOUT_MS });
|
|
7387
7422
|
const data = await readResponseJson(response);
|
|
7388
7423
|
if (response.status === 202) return this.waitForSnapshotRestore(snapshotId, data);
|
|
7389
|
-
return toSnapshotResult(data);
|
|
7424
|
+
return toSnapshotResult(data, this.profileProvenance);
|
|
7390
7425
|
}
|
|
7391
7426
|
/**
|
|
7392
7427
|
* Replace selected workspace-relative paths from a whole-workspace snapshot.
|
|
@@ -7399,7 +7434,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
7399
7434
|
}, { timeoutMs: SNAPSHOT_RESTORE_TIMEOUT_MS });
|
|
7400
7435
|
const data = await readResponseJson(response);
|
|
7401
7436
|
if (response.status === 202) return this.waitForSnapshotRestore(snapshotId, data);
|
|
7402
|
-
return toSnapshotResult(data);
|
|
7437
|
+
return toSnapshotResult(data, this.profileProvenance);
|
|
7403
7438
|
}
|
|
7404
7439
|
async waitForSnapshotRestore(snapshotId, accepted) {
|
|
7405
7440
|
const deadline = Date.now() + SNAPSHOT_RESTORE_TIMEOUT_MS;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-ODe06Ts7.js";
|
|
2
|
-
import { $i as SessionInterruptOptions, $n as PromptOptions, A as CommitTaskSessionOptions,
|
|
2
|
+
import { $a as InteractionResolutionAcknowledgement, $i as SessionInterruptOptions, $n as PromptOptions, A as CommitTaskSessionOptions, Ba as WriteManyFile, Bi as SearchOptions, Bn as PermissionsManager, C as BranchOptions, Ci as SandboxRuntimeHealth, Cn as ListMessagesOptions, D as CodeExecutionResult, Di as SandboxStatus, Dr as SandboxConnection, E as CodeExecutionOptions, Ea as TeeAttestationResponse, Et as FileSystem, Ga as SandboxEnvRecoveryView, Gi as SentSessionMessage, H as CreateTaskSessionOptions, Hn as PreviewLinkManager, Ia as WaitForOptions, Ja as RawEvidenceExportOptions, Ji as SessionExecutionInfo, Jn as ProcessManager, La as WaitForRolloutOptions, Li as SandboxTraceOptions, Ln as NetworkManager, M as ConversationTurnOptions, Mt as FileWriteResult, N as ConversationTurnResult, Ni as SandboxTerminals, Nr as SandboxEvent, O as CodeLanguage, Oa as TeePublicKeyResponse, Oi as SandboxTerminalAttachOptions, Or as SandboxDeleteAcknowledgement, Pi as SandboxTraceBundle, Q as DispatchedSession, Qa as WorkspaceImagePublishResult$1, Qi as SessionInfo, Qn as PromptInputPart, Qt as ForkLookupOptions, Ra as WorkspaceOperationLookup, Sa as TaskSessionInfo, Si as SandboxRuntimeCapabilities, Sn as JsonValue, Tr as SSHCredentials, Ua as SandboxCreateReceipt, Ui as SendSessionMessageOptions, V as CreateSessionOptions, Va as WriteManyOptions, Wa as SandboxEnvRecovery, Wi as SendSessionMessageRequest, Xt as ForkCounts, Z as DispatchPromptOptions, Zi as SessionForkOptions, Zt as ForkIdempotency, _n as IntelligenceReport, _r as Rollout, an as GitStatus, ar as PublicProfileConflict, ba as TaskSessionCommitResult, d as BackendConfig, da as SnapshotProvenance, dn as GpuLeaseManager, ea as SessionListOptions, er as PromptResult, gi as SandboxPortBinding, gn as InstalledTool, gr as ResumeOptions, gt as EventStreamOptions, ha as StartupDiagnostics, hr as RestoreSnapshotOptions, ia as SessionResultOptions, ii as SandboxFleetTraceBundle, in as GitDiff, it as DriverInfo, j as CompletedTurnResult, ja as TurnDriveResult, kr as SandboxDeleteOptions, la as SnapshotInfo, mi as SandboxInfo, na as SessionMessageAdmission, nn as GitCommit, nr as ProvisionResult, nt as DriveTurnOptions, oa as SnapshotDeleteAcknowledgement, on as GpuLease, ot as DurablePlan, p as BackendManager, pa as SnapshotResult, pt as EgressManager, qa as RawEvidenceDirectoryExport, qi as SessionEventStreamOptions, st as DurablePlanDecisionResult, ta as SessionMessage, tn as GitBranch, tr as ProvisionEvent, ua as SnapshotOptions, vn as IntelligenceReportBudget, vt as ExecOptions, wa as TeeAttestationOptions, wi as SandboxShape, wr as SSHCommandDescriptor, xn as IntelligenceReportWindow, xr as RolloutStartResult, ya as TaskSessionChanges, yi as SandboxResourceUsage, yn as IntelligenceReportCompareTo, yr as RolloutOptions, yt as ExecResult, za as WriteFileOptions, zi as SearchMatch } from "./types-C1SaeO0Z.js";
|
|
3
3
|
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-JUW3gOGH.js";
|
|
5
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-DNbLzamS.js";
|
|
6
|
-
import { R as SandboxLines } from "./lines-
|
|
6
|
+
import { R as SandboxLines } from "./lines-QIlTBPei.js";
|
|
7
7
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimAcknowledgement, 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";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -870,6 +870,13 @@ declare class SandboxInstance {
|
|
|
870
870
|
*/
|
|
871
871
|
private deferredProfileReference?;
|
|
872
872
|
private readonly profileFiles;
|
|
873
|
+
/**
|
|
874
|
+
* The profile provenance receipt carried from create-time. Set when the
|
|
875
|
+
* sandbox was created with a profile (inline or catalog); carried forward
|
|
876
|
+
* to every snapshot so the snapshot answers "what configuration produced
|
|
877
|
+
* this state?" without requiring a live profile read.
|
|
878
|
+
*/
|
|
879
|
+
private profileProvenance?;
|
|
873
880
|
/**
|
|
874
881
|
* Direct regional status reads for THIS sandbox. Inert until the API
|
|
875
882
|
* relays a grant, and it retreats to the API path on any failure — see
|
|
@@ -1192,7 +1199,7 @@ declare class SandboxInstance {
|
|
|
1192
1199
|
* Captures a content snapshot, so mutating the object afterwards is
|
|
1193
1200
|
* detected and that turn falls back to sending the profile inline.
|
|
1194
1201
|
*/
|
|
1195
|
-
attachProfileReference(profile: object, sha256: string): void;
|
|
1202
|
+
attachProfileReference(profile: object, sha256: string, name?: string): void;
|
|
1196
1203
|
/**
|
|
1197
1204
|
* Deliver inline file mounts separately, then upload the remaining profile
|
|
1198
1205
|
* to the runtime (`POST /agents/profiles`) and record
|
|
@@ -1713,6 +1720,13 @@ declare class SandboxInstance {
|
|
|
1713
1720
|
* });
|
|
1714
1721
|
* ```
|
|
1715
1722
|
*/
|
|
1723
|
+
/**
|
|
1724
|
+
* The profile provenance receipt for this sandbox: which profile was
|
|
1725
|
+
* materialized, its content hash, and when. Absent for a bare sandbox
|
|
1726
|
+
* created without a profile. This is what `snapshot()` carries into the
|
|
1727
|
+
* snapshot metadata, and what `tangle sandbox show --profile` displays.
|
|
1728
|
+
*/
|
|
1729
|
+
getProfileProvenance(): SnapshotProvenance | undefined;
|
|
1716
1730
|
snapshot(options?: SnapshotOptions): Promise<SnapshotResult>;
|
|
1717
1731
|
/**
|
|
1718
1732
|
* List all snapshots for this sandbox.
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as ITangleJobsAbi, T as SandboxCreateResponseParamTypes, _ as JOB_SANDBOX_DELETE, a as fetchQuote, b as TangleSandboxClientConfig, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as JOB_SANDBOX_CREATE, 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 TANGLE_CHAIN_ID, w as SandboxCreateParamTypes, x as AgentSandboxBlueprintAbi, y as TANGLE_JOBS_CONTRACT } from "../index-ClGFr_62.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 JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as JOB_SANDBOX_DELETE, f as TANGLE_CHAIN_ID, g as JsonResponseParamTypes, h as ITangleJobsAbi, i as jobQuoteDigest, l as OperatorSessionError, m as AgentSandboxBlueprintAbi, n as fetchQuote, o as validateQuote, p as TANGLE_JOBS_CONTRACT, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as JOB_SANDBOX_CREATE, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-DnMSV9yr.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 { x as readResponseJson } from "./errors-iWIsey1D.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-B0F0B-cx.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-B7_9Hl_z.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -4257,6 +4257,27 @@ interface SnapshotResult {
|
|
|
4257
4257
|
remoteSync?: SnapshotRemoteSync;
|
|
4258
4258
|
/** Present only for a keyed snapshot against an API that reports it. */
|
|
4259
4259
|
idempotency?: SnapshotIdempotency;
|
|
4260
|
+
/**
|
|
4261
|
+
* Provenance receipt: which agent profile was materialized into the sandbox
|
|
4262
|
+
* when this snapshot was taken. Answers "what configuration produced this
|
|
4263
|
+
* state?" - the reproducibility, auditing, and self-improvement primitive.
|
|
4264
|
+
* Absent when the sandbox ran without a profile (bare sandbox).
|
|
4265
|
+
*/
|
|
4266
|
+
provenance?: SnapshotProvenance;
|
|
4267
|
+
}
|
|
4268
|
+
interface SnapshotProvenance {
|
|
4269
|
+
/** The profile the sandbox was created with. */
|
|
4270
|
+
base: {
|
|
4271
|
+
/** Profile name (e.g. "gtm", "code-reviewer") or null if inline. */name: string | null; /** Content hash of the profile the SDK materialized. */
|
|
4272
|
+
sha256: string;
|
|
4273
|
+
};
|
|
4274
|
+
/** The profile active at snapshot time (same as base unless updated). */
|
|
4275
|
+
effective: {
|
|
4276
|
+
name: string | null;
|
|
4277
|
+
sha256: string;
|
|
4278
|
+
};
|
|
4279
|
+
/** When the profile was materialized into the sandbox. */
|
|
4280
|
+
materializedAt: string;
|
|
4260
4281
|
}
|
|
4261
4282
|
/**
|
|
4262
4283
|
* Outcome of deleting a snapshot.
|
|
@@ -7584,4 +7605,4 @@ interface ManagedProcessJobs {
|
|
|
7584
7605
|
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
7585
7606
|
}
|
|
7586
7607
|
//#endregion
|
|
7587
|
-
export { DownloadOptions as $,
|
|
7608
|
+
export { DownloadOptions as $, InteractionResolutionAcknowledgement as $a, SessionInterruptOptions as $i, PromptOptions as $n, SandboxFleetPlacement as $r, GPU_LEASE_PROVIDER_NAMES as $t, CommitTaskSessionOptions as A, TokenUsage as Aa, SandboxTerminalInfo as Ai, ManagedProcessRecord as An, SandboxDeleteOutcome as Ar, FileUsageOptions as At, CreateSandboxOptions as B, WriteManyFile as Ba, SearchOptions as Bi, PermissionsManager as Bn, SandboxFleetDispatchResponse as Br, FleetDispatchStreamOptions as Bt, BranchOptions as C, TaskSessionProfile as Ca, SandboxRuntimeHealth as Ci, ListMessagesOptions as Cn, RolloutTurnPart as Cr, FileReadError as Ct, CodeExecutionResult as D, TeePublicKey as Da, SandboxStatus as Di, MAX_EGRESS_DENIALS_LIMIT as Dn, SandboxConnection as Dr, FileTreeFile as Dt, CodeExecutionOptions as E, TeeAttestationResponse as Ea, SandboxShapesInfo as Ei, ListSandboxOptions as En, SandboxConfig as Er, FileSystem as Et, CreateIntelligenceReportOptions as F, UsageInfo as Fa, SandboxTraceEvent as Fi, MkdirOptions as Fn, SandboxFleetAgentSpec as Fr, FleetAgentResult as Ft, DeleteMatchingSandboxesFilter as G, SandboxEnvRecoveryView as Ga, SentSessionMessage as Gi, ProcessInfo as Gn, SandboxFleetMachine as Gr, FleetMachineId as Gt, CreateTaskSessionOptions as H, SandboxCreateOutcome as Ha, SecretsManager as Hi, PreviewLinkManager as Hn, SandboxFleetDriverTimings as Hr, FleetDriveTurnRequest as Ht, CreateRequestOptions as I, WaitForOptions as Ia, SandboxTraceExport as Ii, NetworkConfig as In, SandboxFleetArtifact as Ir, FleetAgentRunStatus as It, DeleteOptions as J, RawEvidenceExportOptions as Ja, SessionExecutionInfo as Ji, ProcessManager as Jn, SandboxFleetMachineSpec as Jr, FleetRunEvent as Jt, DeleteMatchingSandboxesOptions as K, RawEvidenceArchiveManifest as Ka, SessionBackendCredentials as Ki, ProcessListOptions as Kn, SandboxFleetMachineMeteredUsage as Kr, FleetPromptDispatchOptions as Kt, CreateSandboxFleetOptions as L, WaitForRolloutOptions as La, SandboxTraceOptions as Li, NetworkManager as Ln, SandboxFleetArtifactSpec as Lr, FleetDispatchCancelResult as Lt, ConversationTurnOptions as M, UpdateUserOptions as Ma, SandboxTerminalRequestOptions as Mi, ManagedProcessSpec as Mn, SandboxEnvironment as Mr, FileWriteResult as Mt, ConversationTurnResult as N, UploadOptions as Na, SandboxTerminals as Ni, ManagedProcessState as Nn, SandboxEvent as Nr, FleetAgentId as Nt, CodeLanguage as O, TeePublicKeyResponse as Oa, SandboxTerminalAttachOptions as Oi, ManagedProcessJobs as On, SandboxDeleteAcknowledgement as Or, FileTreeOptions as Ot, CreateGpuLeaseOptions as P, UploadProgress as Pa, SandboxTraceBundle as Pi, McpServerConfig as Pn, SandboxFleetAgent as Pr, FleetAgentPlacement as Pt, DispatchedSession as Q, WorkspaceImagePublishResult as Qa, SessionInfo as Qi, PromptInputPart as Qn, SandboxFleetParent as Qr, ForkLookupOptions as Qt, CreateSandboxFleetTokenOptions as R, WorkspaceOperationLookup as Ra, SandboxUser as Ri, NonHostAgentDriverConfig as Rn, SandboxFleetCostEstimate as Rr, FleetDispatchResultBuffer as Rt, BatchTaskResult as S, TaskSessionInfo as Sa, SandboxRuntimeCapabilities as Si, JsonValue as Sn, RolloutStatus as Sr, FileReadBatchResult as St, ChunkedUploadResult as T, TeeAttestationReport as Ta, SandboxShapePreset as Ti, ListSandboxFleetOptions as Tn, SSHCredentials as Tr, FileRenameResult as Tt, DeleteMatchingSandboxOutcome as U, SandboxCreateReceipt as Ua, SendSessionMessageOptions as Ui, PreviewLinkWaitOptions as Un, SandboxFleetInfo as Ur, FleetExecDispatchOptions as Ut, CreateSessionOptions as V, WriteManyOptions as Va, SecretInfo as Vi, PreviewLinkInfo as Vn, SandboxFleetDriverCapability as Vr, FleetDriveTurnOutcome as Vt, DeleteMatchingSandboxResult as W, SandboxEnvRecovery as Wa, SendSessionMessageRequest as Wi, Process as Wn, SandboxFleetIntelligenceEnvelope as Wr, FleetExecDispatchResult as Wt, DirectoryPermission as X, RawEvidencePayloadFile as Xa, SessionFailureReason as Xi, ProcessSpawnOptions as Xn, SandboxFleetManifestMachine as Xr, ForkCounts as Xt, DevServerInfo as Y, RawEvidenceNativeFile as Ya, SessionExecutionStatus as Yi, ProcessSignal as Yn, SandboxFleetManifest as Yr, FleetRunOptions as Yt, DispatchPromptOptions as Z, RawEvidenceRecordsFile as Za, SessionForkOptions as Zi, ProcessStatus as Zn, SandboxFleetOperationsSummary as Zr, ForkIdempotency as Zt, BatchBackend as _, StorageConfig as _a, SandboxPortPreviewLink as _i, IntelligenceReport as _n, Rollout as _r, ExactProcessSpawnOptions as _t, AgentQuestionRequest as a, SessionStatus as aa, SandboxFleetTraceEvent as ai, GitStatus as an, BatchTaskUsage as ao, PublicProfileConflict as ar, DriverType as at, BatchRunRequest as b, TaskSessionCommitResult as ba, SandboxResources as bi, IntelligenceReportSubjectType as bn, RolloutScorer as br, FileInfo as bt, AttachGpuLeaseOptions as c, SnapshotIdempotency as ca, SandboxFleetUsage as ci, GpuLeaseCommandResult as cn, parseBackendType as co, PublishPublicTemplateOptions as cr, DurablePlanSnapshot as ct, BackendConfig as d, SnapshotProvenance as da, SandboxFleetWorkspaceRestoreResult as di, GpuLeaseManager as dn, ReapExpiredSandboxFleetsResult as dr, EffectiveBackendSource as dt, SessionListOptions as ea, SandboxFleetPolicy as ei, GitAuth as en, PublicBatchRunRequest as eo, PromptResult as er, DownloadProgress as et, BackendInfo as f, SnapshotRemoteSync as fa, SandboxFleetWorkspaceSnapshotResult as fi, GpuLeaseProviderName as fn, ReconcileSandboxFleetsOptions as fr, EgressDenial as ft, BackendStatus as g, StartupOperation as ga, SandboxPortBinding as gi, InstalledTool as gn, ResumeOptions as gr, EventStreamOptions as gt, BackendRuntimeConfigUpdate as h, StartupDiagnostics as ha, SandboxIntelligenceEnvelope as hi, HostAgentRuntimeBackend as hn, RestoreSnapshotOptions as hr, EnsureDevServerOptions as ht, AgentApprovalRequirement as i, SessionResultOptions as ia, SandboxFleetTraceBundle as ii, GitDiff as in, BatchSidecarGroup as io, ProvisionStep as ir, DriverInfo as it, CompletedTurnResult as j, TurnDriveResult as ja, SandboxTerminalManager as ji, ManagedProcessResumeOptions as jn, SandboxEgressUsage as jr, FileUsageResult as jt, CodeResultPart as k, TokenRefreshHandler as ka, SandboxTerminalCreateOptions as ki, ManagedProcessOptions as kn, SandboxDeleteOptions as kr, FileTreeResult as kt, AttachSandboxFleetMachineOptions as l, SnapshotInfo as la, SandboxFleetWorkspace as li, GpuLeaseExecOptions as ln, PublishPublicTemplateVersionOptions as lr, EffectiveBackend as lt, BackendMcpServerStatus as m, SshKeysManager as ma, SandboxInfo as mi, HostAgentDriverConfig as mn, RenameOptions as mr, EgressPolicy as mt, AccessPolicyRule as n, SessionMessageAdmission as na, SandboxFleetSpend as ni, GitCommit as nn, BatchEvent as no, ProvisionResult as nr, DriveTurnOptions as nt, AgentRunStatus as o, SnapshotDeleteAcknowledgement as oa, SandboxFleetTraceExport as oi, GpuLease as on, ALL_BACKEND_TYPES as oo, PublicTemplateInfo as or, DurablePlan as ot, BackendManager as p, SnapshotResult as pa, SandboxIdentity as pi, GpuLeaseStatus as pn, ReconcileSandboxFleetsResult as pr, EgressManager as pt, DeleteMatchingSandboxesResult as q, RawEvidenceDirectoryExport as qa, SessionEventStreamOptions as qi, ProcessLogEntry as qn, SandboxFleetMachineRecord as qr, FleetPromptDispatchResult as qt, AddUserOptions as r, SessionMessageInputPart as ra, SandboxFleetToken as ri, GitConfig as rn, BatchEventDataMap as ro, ProvisionStatus as rr, DriverConfig as rt, AgentToolInvocation as s, SnapshotDeleteOutcome as sa, SandboxFleetTraceOptions as si, GpuLeaseBilling as sn, BackendType as so, PublicTemplateVersionInfo as sr, DurablePlanDecisionResult as st, AcceleratorKind as t, SessionMessage as ta, SandboxFleetProfileRef as ti, GitBranch as tn, BatchBackendStats as to, ProvisionEvent as tr, DownloadResult as tt, BackendCapabilities as u, SnapshotOptions as ua, SandboxFleetWorkspaceReconcileResult as ui, GpuLeaseExecResult as un, ReapExpiredSandboxFleetsOptions as ur, EffectiveBackendProfile as ut, BatchResult as v, SubscriptionInfo as va, SandboxRemovalState as vi, IntelligenceReportBudget as vn, RolloutChildResult as vr, ExecOptions as vt, ChunkedUploadOptions as w, TeeAttestationOptions as wa, SandboxShape as wi, ListOptions as wn, SSHCommandDescriptor as wr, FileReadResult as wt, BatchTask as x, TaskSessionFileChange as xa, SandboxRunGeneration as xi, IntelligenceReportWindow as xn, RolloutStartResult as xr, FileReadBatchOptions as xt, BatchRunOptions as y, TaskSessionChanges as ya, SandboxResourceUsage as yi, IntelligenceReportCompareTo as yn, RolloutOptions as yr, ExecResult as yt, CreateSandboxFleetWithCoordinatorOptions as z, WriteFileOptions as za, SearchMatch as zi, PermissionLevel as zn, SandboxFleetDispatchFailureClass as zr, FleetDispatchResultBufferOptions as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.60-develop.20261015114316.84646b4",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
"ws": "^8.20.0",
|
|
156
156
|
"yjs": "13.6.30",
|
|
157
157
|
"@products/sandbox-test-utils": "0.0.0",
|
|
158
|
-
"@tangle-network/agent-profile-materialize": "0.25.4",
|
|
159
158
|
"@repo/shared": "0.0.0",
|
|
159
|
+
"@tangle-network/agent-profile-materialize": "0.25.4",
|
|
160
160
|
"@tangle-network/cli-agent-registry": "0.7.1",
|
|
161
|
-
"@tangle-network/sdk": "4.0.10",
|
|
162
161
|
"@tangle-network/runtime-contracts": "0.16.4",
|
|
162
|
+
"@tangle-network/sdk": "4.0.10",
|
|
163
163
|
"@tangle-network/sse-core": "0.0.0"
|
|
164
164
|
},
|
|
165
165
|
"scripts": {
|