@tangle-network/sandbox 0.60.92 → 0.61.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 +19 -0
- 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-KxjDXZW-.d.ts → agent-run-outcome-Ca9C7TLj.d.ts} +1 -1
- package/dist/{client-BZnfyj0K.d.ts → client-DZqsK3Uj.d.ts} +4 -4
- package/dist/{client-BJ-xYm0s.js → client-DtPQUCkL.js} +3 -2
- package/dist/core.d.ts +6 -6
- package/dist/core.js +2 -2
- package/dist/{errors-Fv8leP33.d.ts → errors-Dtli_Mqi.d.ts} +1 -1
- package/dist/{index-LO5315tT.d.ts → index-Ct0ZdE6t.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +3 -3
- package/dist/{lines-BgVaTJBw.d.ts → lines-BsSRnRLK.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{managed-process-BoQAK9cz.d.ts → managed-process-DKdV5ZT_.d.ts} +1 -1
- package/dist/{preview-Zqt4hIgH.d.ts → preview-CQFv-vEP.d.ts} +3 -3
- package/dist/{raw-evidence-archive-BjDIFiOM.js → raw-evidence-archive-tCj9wHJ4.js} +131 -68
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-00TWLhei.d.ts → sandbox-BHu0-xk7.d.ts} +16 -3
- package/dist/{sandbox-CCVZWs8k.js → sandbox-C3xo64vD.js} +25 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DugVLl53.js → tangle-BIjKQRLj.js} +1 -1
- package/dist/{types-DWG-ZlvL.d.ts → types-C8wd65mR.d.ts} +93 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1011,6 +1011,25 @@ than the bound still fails. The manifest names what was left out (`parts: "nativ
|
|
|
1011
1011
|
`status: "partial"`, `events_not_requested`, `process_io_not_requested`). A sidecar
|
|
1012
1012
|
older than the option serves the full archive within the same bounds.
|
|
1013
1013
|
|
|
1014
|
+
To keep every native session store on the box before deleting it, export the box:
|
|
1015
|
+
|
|
1016
|
+
```ts
|
|
1017
|
+
const stores = await box.exportRawEvidence(destination, {
|
|
1018
|
+
maxBytes: 3 * 1024 ** 3,
|
|
1019
|
+
maxFiles: 100_000,
|
|
1020
|
+
});
|
|
1021
|
+
// Each runtime HOME's store files: stores.manifest.homes[].files
|
|
1022
|
+
// Each settled copy, with the HOME it came from: stores.manifest.nativeSessions[]
|
|
1023
|
+
```
|
|
1024
|
+
|
|
1025
|
+
The box archive (`tangle.raw-evidence-archive.box.v1`) finds stores by walking the
|
|
1026
|
+
runtime HOMEs, not the session listing, so it also serves a box restored from a
|
|
1027
|
+
snapshot whose session listing is empty. It reads only files a harness contract
|
|
1028
|
+
declares as its session store (Claude Code projects, Codex rollouts, OpenCode's
|
|
1029
|
+
SQLite database, and the rest), never credentials or config. A HOME a running
|
|
1030
|
+
harness holds is copied without stopping it and marked `live`. It needs a token
|
|
1031
|
+
that is not bound to one session; a sidecar older than the route answers 404.
|
|
1032
|
+
|
|
1014
1033
|
|
|
1015
1034
|
### Prepared durable-plan follow-ups
|
|
1016
1035
|
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-
|
|
2
|
-
import { D as CodeExecutionResult, E as CodeExecutionOptions,
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-BHu0-xk7.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, Eo as BackendType, O as CodeLanguage, d as BackendConfig, da as SessionListOptions, k as CodeResultPart, la as SessionInfo, oi as SandboxFleetParent } from "../types-C8wd65mR.js";
|
|
3
|
+
import { i as Sandbox } from "../client-DZqsK3Uj.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-CQFv-vEP.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-BYHcA72Z.js";
|
|
2
2
|
import { D as assertCurrentBackendType } from "../interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { _ as StateError, b as ValidationError, d as NotFoundError } from "../errors-DSJBKmGZ.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-DtPQUCkL.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-C3xo64vD.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-CQFv-vEP.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 { Vr as SandboxEvent, a as AgentQuestionRequest, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation, ut as DurablePlanSnapshot } from "./types-
|
|
1
|
+
import { Vr as SandboxEvent, a as AgentQuestionRequest, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation, ut as DurablePlanSnapshot } from "./types-C8wd65mR.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { $i as SecretsManager, Aa as SubscriptionInfo, B as CreateSandboxOptions, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, En as IntelligenceReportCompareTo, F as CreateIntelligenceReportOptions, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ja as UsageInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetCostEstimate, Kt as FleetExecDispatchResult, L as CreateSandboxFleetOptions, Li as SandboxShapesInfo, Lt as FleetAgentResult, M as ConversationTurnOptions, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, N as ConversationTurnResult, Nn as ListSandboxOptions, On as IntelligenceReportWindow, Pr as SandboxConfig, R as CreateSandboxFleetTokenOptions, Si as SandboxInfo, Sn as HttpClient, Ta as SshKeysManager, Tn as IntelligenceReportBudget, Ut as FleetDriveTurnOutcome, Va as TokenRefreshHandler, Vt as FleetDispatchResultBufferOptions, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, Xt as FleetRunEvent, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Zr as SandboxFleetInfo, Zt as FleetRunOptions,
|
|
1
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-BHu0-xk7.js";
|
|
2
|
+
import { $i as SecretsManager, Aa as SubscriptionInfo, B as CreateSandboxOptions, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, En as IntelligenceReportCompareTo, F as CreateIntelligenceReportOptions, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ja as UsageInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetCostEstimate, Kt as FleetExecDispatchResult, L as CreateSandboxFleetOptions, Li as SandboxShapesInfo, Lt as FleetAgentResult, M as ConversationTurnOptions, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, N as ConversationTurnResult, Nn as ListSandboxOptions, On as IntelligenceReportWindow, Pr as SandboxConfig, R as CreateSandboxFleetTokenOptions, Si as SandboxInfo, Sn as HttpClient, Ta as SshKeysManager, Tn as IntelligenceReportBudget, Ut as FleetDriveTurnOutcome, Va as TokenRefreshHandler, Vt as FleetDispatchResultBufferOptions, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, Xt as FleetRunEvent, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _r as ReapExpiredSandboxFleetsOptions, ai as SandboxFleetOperationsSummary, ar as PromptInputPart, b as BatchRunRequest, bi as SandboxFleetWorkspaceSnapshotResult, br as ReconcileSandboxFleetsResult, bt as ExecOptions, ci as SandboxFleetPolicy, d as BackendConfig, di as SandboxFleetToken, fi as SandboxFleetTraceBundle, gi as SandboxFleetUsage, gr as PublishPublicTemplateVersionOptions, hi as SandboxFleetTraceOptions, hr as PublishPublicTemplateOptions, l as AttachSandboxFleetMachineOptions, mr as PublicTemplateVersionInfo, ni as SandboxFleetMachineSpec, oi as SandboxFleetParent, or as PromptOptions, pr as PublicTemplateInfo, q as DeleteMatchingSandboxesResult, qt as FleetMachineId, ri as SandboxFleetManifest, sr as PromptResult, ti as SandboxFleetMachineRecord, to as SdkTimingHook, ui as SandboxFleetSpend, v as BatchResult, vi as SandboxFleetWorkspaceReconcileResult, vr as ReapExpiredSandboxFleetsResult, wn as IntelligenceReport, xi as SandboxIdentity, xo as BatchEvent, xt as ExecResult, y as BatchRunOptions, yi as SandboxFleetWorkspaceRestoreResult, yr as ReconcileSandboxFleetsOptions, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchCancelResult } from "./types-C8wd65mR.js";
|
|
3
3
|
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
|
-
import { h as SandboxError } from "./errors-
|
|
5
|
-
import { L as LinesClient } from "./lines-
|
|
4
|
+
import { h as SandboxError } from "./errors-Dtli_Mqi.js";
|
|
5
|
+
import { L as LinesClient } from "./lines-BsSRnRLK.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
|
2
2
|
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, T as parseSSEStream, c as requestInteractiveSessionToken } from "./interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { C as readResponseJson, S as parseResponseError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, p as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-
|
|
5
|
+
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-C3xo64vD.js";
|
|
6
6
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
7
7
|
import { LinesClient } from "./lines.js";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -3728,7 +3728,8 @@ var Sandbox = class Sandbox {
|
|
|
3728
3728
|
privacy: options?.privacy,
|
|
3729
3729
|
egressPolicy: options?.egressPolicy,
|
|
3730
3730
|
idempotencyKey,
|
|
3731
|
-
billingOwnerId: options?.billingOwnerId
|
|
3731
|
+
billingOwnerId: options?.billingOwnerId,
|
|
3732
|
+
capacityClass: options?.capacityClass
|
|
3732
3733
|
});
|
|
3733
3734
|
let lastServerError;
|
|
3734
3735
|
let allPreviousCreateAttemptsRefused = true;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Bn as ManagedProcessState, Fn as ManagedProcessJobs, In as ManagedProcessOptions, Jn as PreviewLinkInfo, Ln as ManagedProcessRecord, M as ConversationTurnOptions, N as ConversationTurnResult, Pr as SandboxConfig, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Si as SandboxInfo, Un as NetworkConfig, Xn as PreviewLinkWaitOptions, Yn as PreviewLinkManager, ao as SandboxEnvRecoveryView, ar as PromptInputPart, bt as ExecOptions, io as SandboxEnvRecovery, pa as SessionMessageAdmission, xt as ExecResult, zn as ManagedProcessSpec } from "./types-
|
|
3
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-
|
|
4
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-
|
|
5
|
-
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-
|
|
6
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
1
|
+
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-BHu0-xk7.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Bn as ManagedProcessState, Fn as ManagedProcessJobs, In as ManagedProcessOptions, Jn as PreviewLinkInfo, Ln as ManagedProcessRecord, M as ConversationTurnOptions, N as ConversationTurnResult, Pr as SandboxConfig, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Si as SandboxInfo, Un as NetworkConfig, Xn as PreviewLinkWaitOptions, Yn as PreviewLinkManager, ao as SandboxEnvRecoveryView, ar as PromptInputPart, bt as ExecOptions, io as SandboxEnvRecovery, pa as SessionMessageAdmission, xt as ExecResult, zn as ManagedProcessSpec } from "./types-C8wd65mR.js";
|
|
3
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-Dtli_Mqi.js";
|
|
4
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-BsSRnRLK.js";
|
|
5
|
+
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-DZqsK3Uj.js";
|
|
6
|
+
import { t as ManagedProcessClient } from "./managed-process-DKdV5ZT_.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 StateError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, y as TimeoutError } from "./errors-DSJBKmGZ.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 { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } 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-DtPQUCkL.js";
|
|
3
|
+
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-C3xo64vD.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-UtPFP0o4.js";
|
|
6
6
|
//#region src/core.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ro as SandboxCreateReceipt } from "./types-
|
|
1
|
+
import { ro as SandboxCreateReceipt } from "./types-C8wd65mR.js";
|
|
2
2
|
import { c as TerminalStreamReconnectAuthority, n as TerminalStream, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
3
3
|
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Sn as HttpClient } from "./types-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-BHu0-xk7.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Sn as HttpClient } from "./types-C8wd65mR.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $a as WriteManyFile, $i as SecretsManager, $n as ProcessListOptions, $r as SandboxFleetMachine, $t as ForkIdempotency, A as CommitTaskSessionOptions, Aa as SubscriptionInfo, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ar as RolloutTurnPart, At as FileTreeOptions, B as CreateSandboxOptions, Ba as TeePublicKeyResponse, Bi as SandboxTerminalCreateOptions, Bn as ManagedProcessState, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, C as BranchOptions, Ca as SnapshotRemoteSync, Ci as SandboxIntelligenceEnvelope, Cn as InstalledTool, Co as
|
|
1
|
+
import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-BHu0-xk7.js";
|
|
2
|
+
import { $ as DownloadOptions, $a as WriteManyFile, $i as SecretsManager, $n as ProcessListOptions, $r as SandboxFleetMachine, $t as ForkIdempotency, A as CommitTaskSessionOptions, Aa as SubscriptionInfo, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ar as RolloutTurnPart, At as FileTreeOptions, B as CreateSandboxOptions, Ba as TeePublicKeyResponse, Bi as SandboxTerminalCreateOptions, Bn as ManagedProcessState, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, C as BranchOptions, Ca as SnapshotRemoteSync, Ci as SandboxIntelligenceEnvelope, Cn as InstalledTool, Co as BatchSidecarGroup, Ct as FileReadBatchOptions, Da as StartupOperation, Di as SandboxPortBinding, Dn as IntelligenceReportSubjectType, Do as parseBackendType, Dr as RolloutScorer, Dt as FileRenameResult, Ea as StartupDiagnostics, Ei as SandboxOperationState, En as IntelligenceReportCompareTo, Eo as BackendType, Er as RolloutOptions, Et as FileReadResult, F as CreateIntelligenceReportOptions, Fa as TaskSessionProfile, Fi as SandboxShape, Fn as ManagedProcessJobs, Fr as SandboxConnection, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Ga as UpdateUserOptions, Gi as SandboxTraceBundle, Gn as NonHostAgentDriverConfig, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, H as CreateTaskSessionOptions, Ha as TokenUsage, Hi as SandboxTerminalManager, Hn as MkdirOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ia as TeeAttestationOptions, Ii as SandboxShapePreset, In as ManagedProcessOptions, Ir as SandboxDeleteAcknowledgement, It as FleetAgentPlacement, J as DeleteOptions, Ja as UsageInfo, Ji as SandboxTraceOptions, Jn as PreviewLinkInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Ka as UploadOptions, Ki as SandboxTraceEvent, Kn as PermissionLevel, Kr as SandboxFleetCostEstimate, L as CreateSandboxFleetOptions, La as TeeAttestationReport, Li as SandboxShapesInfo, Ln as ManagedProcessRecord, Lr as SandboxDeleteOptions, Lt as FleetAgentResult, M as ConversationTurnOptions, Ma as TaskSessionCommitResult, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, Mr as SSHCommandDescriptor, Mt as FileUsageOptions, N as ConversationTurnResult, Na as TaskSessionFileChange, Ni as SandboxRuntimeCapabilities, Nn as ListSandboxOptions, Nr as SSHCredentials, Nt as FileUsageResult, Oa as StopOptions, Oi as SandboxPortPreviewLink, On as IntelligenceReportWindow, Or as RolloutStartResult, Ot as FileSystem, P as CreateGpuLeaseOptions, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pn as MAX_EGRESS_DENIALS_LIMIT, Pr as SandboxConfig, Pt as FileWriteResult, Q as DispatchedSession, Qa as WriteFileOptions, Qi as SecretInfo, Qn as ProcessInfo, Qr as SandboxFleetIntelligenceEnvelope, Qt as ForkCounts, Ra as TeeAttestationResponse, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Rr as SandboxDeleteOutcome, Rt as FleetAgentRunStatus, S as BatchTaskResult, Si as SandboxInfo, So as BatchEventDataMap, St as FileInfo, T as ChunkedUploadResult, Ti as SandboxOperationKind, Tn as IntelligenceReportBudget, To as ALL_BACKEND_TYPES, Tr as RolloutChildResult, Tt as FileReadError, U as DeleteMatchingSandboxOutcome, Ua as TurnBackendConfig, Ui as SandboxTerminalRequestOptions, Un as NetworkConfig, Ur as SandboxFleetAgentSpec, Ut as FleetDriveTurnOutcome, V as CreateSessionOptions, Va as TokenRefreshHandler, Vi as SandboxTerminalInfo, Vn as McpServerConfig, Vr as SandboxEvent, Vt as FleetDispatchResultBufferOptions, W as DeleteMatchingSandboxResult, Wa as TurnDriveResult, Wi as SandboxTerminals, Wn as NetworkManager, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, X as DirectoryPermission, Xa as WaitForRolloutOptions, Xi as SearchMatch, Xn as PreviewLinkWaitOptions, Xr as SandboxFleetDriverTimings, Xt as FleetRunEvent, Y as DevServerInfo, Ya as WaitForOptions, Yi as SandboxUser, Yn as PreviewLinkManager, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Z as DispatchPromptOptions, Za as WorkspaceOperationLookup, Zi as SearchOptions, Zn as Process, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _ as BatchBackend, _a as SnapshotDeleteAcknowledgement, _i as SandboxFleetWorkspace, _n as GpuLeaseProviders, _r as ReapExpiredSandboxFleetsOptions, _t as EnsureDevServerOptions, aa as SessionExecutionInfo, ai as SandboxFleetOperationsSummary, an as GitConfig, ao as SandboxEnvRecoveryView, ar as PromptInputPart, at as DriverType, b as BatchRunRequest, ba as SnapshotInfo, bi as SandboxFleetWorkspaceSnapshotResult, bn as HostAgentDriverConfig, bo as BatchBackendStats, br as ReconcileSandboxFleetsResult, bt as ExecOptions, c as AttachGpuLeaseOptions, ca as SessionForkOptions, ci as SandboxFleetPolicy, cn as GpuLease, co as RawEvidenceArchiveManifestNative, cr as ProvisionEvent, ct as DurablePlanDecisionResult, d as BackendConfig, da as SessionListOptions, di as SandboxFleetToken, dn as GpuLeaseExecOptions, do as RawEvidenceBoxExportOptions, dr as ProvisionStep, dt as EffectiveBackend, ea as SendSessionMessageOptions, ei as SandboxFleetMachineMeteredUsage, en as ForkLookupOptions, eo as WriteManyOptions, er as ProcessLogEntry, et as DownloadProgress, f as BackendInfo, fa as SessionMessage, fi as SandboxFleetTraceBundle, fn as GpuLeaseExecResult, fo as RawEvidenceDirectoryExport, fr as PublicProfileConflict, ft as EffectiveBackendProfile, g as BackendStatus, ga as SessionStatus, gi as SandboxFleetUsage, gn as GpuLeaseProviderStatus, go as RawEvidenceRecordsFile, gr as PublishPublicTemplateVersionOptions, gt as EgressPolicy, h as BackendRuntimeConfigUpdate, ha as SessionResultOptions, hi as SandboxFleetTraceOptions, hn as GpuLeaseProviderState, ho as RawEvidencePayloadFile, hr as PublishPublicTemplateOptions, ht as EgressManager, ia as SessionEventStreamOptions, ii as SandboxFleetManifestMachine, in as GitCommit, io as SandboxEnvRecovery, ir as ProcessStatus, it as DriverInfo, j as CompletedTurnResult, ja as TaskSessionChanges, ji as SandboxResources, jn as ListOptions, jr as RouterRoutingOptions, jt as FileTreeResult, ka as StorageConfig, ki as SandboxRemovalState, kr as RolloutStatus, kt as FileTreeFile, l as AttachSandboxFleetMachineOptions, la as SessionInfo, li as SandboxFleetProfileRef, ln as GpuLeaseBilling, lo as RawEvidenceBoxArchiveManifest, lr as ProvisionResult, lt as DurablePlanFollowUpResume, m as BackendMcpServerStatus, ma as SessionMessageInputPart, mi as SandboxFleetTraceExport, mn as GpuLeaseProviderName, mo as RawEvidenceNativeFile, mr as PublicTemplateVersionInfo, mt as EgressDenial, n as AccessPolicyRule, na as SentSessionMessage, ni as SandboxFleetMachineSpec, nn as GitAuth, no as SandboxCreateOutcome, nr as ProcessSignal, nt as DriveTurnOptions, oa as SessionExecutionStatus, oi as SandboxFleetParent, on as GitDiff, oo as NativeStoreHomeCopy, or as PromptOptions, ot as DurablePlan, p as BackendManager, pa as SessionMessageAdmission, pi as SandboxFleetTraceEvent, pn as GpuLeaseManager, po as RawEvidenceExportOptions, pr as PublicTemplateInfo, pt as EffectiveBackendSource, q as DeleteMatchingSandboxesResult, qa as UploadProgress, qi as SandboxTraceExport, qn as PermissionsManager, qr as SandboxFleetDispatchFailureClass, qt as FleetMachineId, r as AddUserOptions, ra as SessionBackendCredentials, ri as SandboxFleetManifest, rn as GitBranch, ro as SandboxCreateReceipt, rr as ProcessSpawnOptions, rt as DriverConfig, sa as SessionFailureReason, si as SandboxFleetPlacement, sn as GitStatus, so as RawEvidenceArchiveManifest, sr as PromptResult, st as DurablePlanDecisionOptions, t as AcceleratorKind, ta as SendSessionMessageRequest, ti as SandboxFleetMachineRecord, tn as GPU_LEASE_PROVIDER_NAMES, tr as ProcessManager, tt as DownloadResult, u as BackendCapabilities, ua as SessionInterruptOptions, ui as SandboxFleetSpend, un as GpuLeaseCommandResult, uo as RawEvidenceBoxDirectoryExport, ur as ProvisionStatus, v as BatchResult, va as SnapshotDeleteOutcome, vi as SandboxFleetWorkspaceReconcileResult, vn as GpuLeaseProvidersOptions, vr as ReapExpiredSandboxFleetsResult, vt as EventStreamOptions, w as ChunkedUploadOptions, wa as SnapshotResult, wi as SandboxOperationInfo, wn as IntelligenceReport, wo as BatchTaskUsage, wr as Rollout, wt as FileReadBatchResult, x as BatchTask, xa as SnapshotOptions, xi as SandboxIdentity, xn as HostAgentRuntimeBackend, xo as BatchEvent, xr as RenameOptions, xt as ExecResult, y as BatchRunOptions, ya as SnapshotIdempotency, yi as SandboxFleetWorkspaceRestoreResult, yn as GpuLeaseStatus, yo as PublicBatchRunRequest, yr as ReconcileSandboxFleetsOptions, yt as ExactProcessSpawnOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeePublicKey, zi as SandboxTerminalAttachOptions, zn as ManagedProcessSpec, zr as SandboxEgressUsage, zt as FleetDispatchCancelResult } from "./types-C8wd65mR.js";
|
|
3
3
|
import { _ as TerminalInteractiveSessionIdentity, a as TerminalStreamError, b as TerminalReadyTimings, d as MintInteractiveSessionTokenOptions, f as MintScopedTokenOptions, g as TerminalExitInfo, h as TERMINAL_WS_ECHO_SUBPROTOCOL, i as TerminalStreamBearerToken, l as TerminalStreamToken, m as ScopedTokenScope, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, r as TerminalStreamApiKey, s as TerminalStreamOptions, t as TerminalAttachTimings, u as terminalUpgradeHeadersSupported, v as TerminalOutputMessage, x as TerminalStreamAuthFormat, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.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-B6sySQFu.js";
|
|
5
|
-
import { C as ValidationError, D as InteractiveSessionController, E as InteractiveAttachRequest, O as InteractiveSessionControllerOptions, S as TimeoutError, T as BrowserInteractiveSessionControllerOptions, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, k as InteractiveSessionControllerTransport, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, x as StreamInterruptionReason, y as StateError } from "./errors-
|
|
6
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } 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-
|
|
5
|
+
import { C as ValidationError, D as InteractiveSessionController, E as InteractiveAttachRequest, O as InteractiveSessionControllerOptions, S as TimeoutError, T as BrowserInteractiveSessionControllerOptions, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, k as InteractiveSessionControllerTransport, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, x as StreamInterruptionReason, y as StateError } from "./errors-Dtli_Mqi.js";
|
|
6
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-BsSRnRLK.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-DZqsK3Uj.js";
|
|
8
8
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-ONMNeJwr.js";
|
|
9
9
|
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-BxyTdtyB.js";
|
|
10
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
11
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
12
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
10
|
+
import { t as ManagedProcessClient } from "./managed-process-DKdV5ZT_.js";
|
|
11
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Ca9C7TLj.js";
|
|
12
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-Ct0ZdE6t.js";
|
|
13
13
|
import { z } from "zod";
|
|
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";
|
|
@@ -4702,4 +4702,4 @@ interface RouterEvalMatrixCaseResult {
|
|
|
4702
4702
|
}
|
|
4703
4703
|
declare function runTangleRouterEvalMatrixInSandbox(options: RunTangleRouterEvalMatrixInSandboxOptions): Promise<RunTangleRouterEvalMatrixInSandboxResult>;
|
|
4704
4704
|
//#endregion
|
|
4705
|
-
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, BranchFanoutExceedsHostError, 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 DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionOptions, type DurablePlanDecisionResult, type DurablePlanFollowUpResume, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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 GpuLeaseProviderState, type GpuLeaseProviderStatus, type GpuLeaseProviders, type GpuLeaseProvidersOptions, type GpuLeaseStatus, GpuProviderNotConfiguredError, type GpuProviderRequirement, 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, type InstanceStart, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, 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 ProfileFileDeliveryReport, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicProfileConflict, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceArchiveManifestNative, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, 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 RouterRoutingOptions, type RouterSearchConfig, type RouterSearchConfigOptions, type RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, type RunsHttpClient, 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 SandboxEgressUsage, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxOperation, SandboxOperationFailedError, type SandboxOperationInfo, type SandboxOperationKind, type SandboxOperationState, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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 SnapshotRemoteSync, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StopOptions, type StorageConfig, StreamInterruptedError, type StreamInterruptionReason, 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 TerminalAttachTimings, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, type TerminalReadyTimings, TerminalStream, type TerminalStreamApiKey, type TerminalStreamAuthFormat, type TerminalStreamBearerToken, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnBackendConfig, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
|
4705
|
+
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, BranchFanoutExceedsHostError, 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 DownloadResult, type DriveTurnOptions, type DriverConfig, type DriverInfo, type DriverType, type DurablePlan, type DurablePlanDecisionOptions, type DurablePlanDecisionResult, type DurablePlanFollowUpResume, 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 FleetAgentId, type FleetAgentPlacement, type FleetAgentResult, type FleetAgentRunStatus, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetDriveTurnOutcome, type FleetDriveTurnRequest, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type FleetPromptDispatchResult, type FleetRunEvent, type FleetRunOptions, 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 GpuLeaseProviderState, type GpuLeaseProviderStatus, type GpuLeaseProviders, type GpuLeaseProvidersOptions, type GpuLeaseStatus, GpuProviderNotConfiguredError, type GpuProviderRequirement, 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, type InstanceStart, 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, InteractiveSessionNotRunningError, type InteractiveSessionRef, type InteractiveSessionStartOptions, type InteractiveSessionStartResult, type InteractiveSessionStatus, type InteractiveStopCommand, type InteractiveTerminalCapture, InteractiveTerminalFrameLog, type InteractiveTerminalMetadata, type InterruptResult, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineAllowance, type LineAllowanceSubject, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachOptions, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineFromConnectionInput, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineLimits, type LineMember, type LineMemberInstance, type LineMemberPatch, type LineMemberSpec, type LineMessage, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineReplyGate, type LineRespondAgent, type LineRespondView, type LineRole, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, type LineThread, type LineTransport, type LineVoice, type LineVoiceOptions, 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, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type MaterializeProfileFileMountsOptions, type MaterializeProfileFileMountsResult, type McpServerConfig, type MintInteractiveSessionTokenOptions, type MintScopedTokenOptions, type MkdirOptions, type NativeStoreHomeCopy, 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 ProfileFileDeliveryReport, type PromptInputPart, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicProfileConflict, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type RawEvidenceArchiveManifest, type RawEvidenceArchiveManifestNative, type RawEvidenceBoxArchiveManifest, type RawEvidenceBoxDirectoryExport, type RawEvidenceBoxExportOptions, type RawEvidenceDirectoryExport, type RawEvidenceExport, type RawEvidenceExportOptions, type RawEvidenceNativeFile, type RawEvidencePayloadFile, type RawEvidenceRecordsFile, 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 RouterRoutingOptions, type RouterSearchConfig, type RouterSearchConfigOptions, type RunOptions, type RunPlacement, type RunPlacementRecord, type RunRecord, type RunTangleRouterEvalMatrixInSandboxOptions, type RunTangleRouterEvalMatrixInSandboxResult, type RunWaitOptions, RunsClient, type RunsHttpClient, 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 SandboxEgressUsage, type SandboxEnvRecovery, type SandboxEnvRecoveryView, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetAgent, type SandboxFleetAgentSpec, 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 SandboxFleetParent, type SandboxFleetPlacement, type SandboxFleetPolicy, type SandboxFleetProfileRef, type SandboxFleetSpend, 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, SandboxOperation, SandboxOperationFailedError, type SandboxOperationInfo, type SandboxOperationKind, type SandboxOperationState, type SandboxPortBinding, type SandboxPortPreviewLink, type SandboxRemovalState, type SandboxResourceUsage, type SandboxResources, type SandboxRunGeneration, 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 SnapshotRemoteSync, type SnapshotResult, type SplitInlineProfileFileMountsResult, type SplitInlineProfileSkillsResult, type StartupDiagnostics, type StartupOperation, StateError, type StopOptions, type StorageConfig, StreamInterruptedError, type StreamInterruptionReason, 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 TerminalAttachTimings, type TerminalExitInfo, type TerminalInteractiveSessionIdentity, type TerminalOutputMessage, type TerminalReadyInfo, type TerminalReadyTimings, TerminalStream, type TerminalStreamApiKey, type TerminalStreamAuthFormat, type TerminalStreamBearerToken, TerminalStreamError, type TerminalStreamHandlers, type TerminalStreamOptions, type TerminalStreamToken, TimeoutError, type TokenRefreshHandler, type TokenUsage, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TurnBackendConfig, 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, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
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-D6bYbvMB.js";
|
|
2
2
|
import { A as normalizeRuntimeBackendConfig, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, T as parseSSEStream, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, j as requestedPublicProfileDigest, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { _ as StateError, a as EgressProxyRecoveryError, b as ValidationError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StreamInterruptedError, y as TimeoutError } from "./errors-DSJBKmGZ.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-DtPQUCkL.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 { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j 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 applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-
|
|
6
|
+
import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j 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 applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-C3xo64vD.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-DZCyTGdn.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-UtPFP0o4.js";
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-BIjKQRLj.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
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-C8wd65mR.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 LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, I as LineVoiceOptions, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, R as LinesHttpClient, S as LineReminderPreferences, T as LineReplyGate, V as profileChannelReference, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-
|
|
1
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, I as LineVoiceOptions, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, R as LinesHttpClient, S as LineReminderPreferences, T as LineReplyGate, V as profileChannelReference, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-BsSRnRLK.js";
|
|
2
2
|
export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fn as ManagedProcessJobs, In as ManagedProcessOptions, Ln as ManagedProcessRecord, Rn as ManagedProcessResumeOptions, zn as ManagedProcessSpec } from "./types-
|
|
1
|
+
import { Fn as ManagedProcessJobs, In as ManagedProcessOptions, Ln as ManagedProcessRecord, Rn as ManagedProcessResumeOptions, zn as ManagedProcessSpec } from "./types-C8wd65mR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/managed-process.d.ts
|
|
4
4
|
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { Jn as PreviewLinkInfo, _t as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-BHu0-xk7.js";
|
|
2
|
+
import { Jn as PreviewLinkInfo, _t as EnsureDevServerOptions } from "./types-C8wd65mR.js";
|
|
3
|
+
import { i as Sandbox } from "./client-DZqsK3Uj.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -30,6 +30,18 @@ const metadata = z.object({
|
|
|
30
30
|
ctimeMs: z.number().finite(),
|
|
31
31
|
sizeBytes: count
|
|
32
32
|
});
|
|
33
|
+
const nativeCopyFile = payload.extend({
|
|
34
|
+
store: safePath,
|
|
35
|
+
storePath: safePath,
|
|
36
|
+
format: text,
|
|
37
|
+
method: z.enum([
|
|
38
|
+
"byte-prefix",
|
|
39
|
+
"atomic-file",
|
|
40
|
+
"sqlite-backup"
|
|
41
|
+
]),
|
|
42
|
+
truncated: z.boolean(),
|
|
43
|
+
sourceBytes: count
|
|
44
|
+
});
|
|
33
45
|
const nativeSessionCopy = z.object({
|
|
34
46
|
harness: text,
|
|
35
47
|
format: text.nullable(),
|
|
@@ -50,31 +62,62 @@ const nativeSessionCopy = z.object({
|
|
|
50
62
|
"unknown"
|
|
51
63
|
])
|
|
52
64
|
}),
|
|
53
|
-
files: z.array(
|
|
54
|
-
|
|
65
|
+
files: z.array(nativeCopyFile),
|
|
66
|
+
superseded: z.array(z.object({
|
|
55
67
|
storePath: safePath,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
sourceBytes: count
|
|
64
|
-
})),
|
|
68
|
+
sha256: text,
|
|
69
|
+
sizeBytes: count,
|
|
70
|
+
supersededBy: z.object({
|
|
71
|
+
executionId: text,
|
|
72
|
+
attempt: count.min(1)
|
|
73
|
+
})
|
|
74
|
+
})).optional(),
|
|
65
75
|
complete: z.boolean(),
|
|
66
76
|
missingReasons: z.array(text)
|
|
67
77
|
});
|
|
78
|
+
const captureIdentity = {
|
|
79
|
+
proofStatus: z.enum(["verified", "unverified"]),
|
|
80
|
+
containerId: z.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
81
|
+
sidecarImageDigest: digest,
|
|
82
|
+
sidecarBundleRevision: z.string().regex(/^[a-f0-9]{40}$/),
|
|
83
|
+
sidecarBundleChecksum: digest.optional()
|
|
84
|
+
};
|
|
85
|
+
/** Every native store on the box: each runtime HOME's declared stores and every settled copy. */
|
|
86
|
+
const boxManifestSchema = z.object({
|
|
87
|
+
schema: z.literal("tangle.raw-evidence-archive.box.v1"),
|
|
88
|
+
scope: z.literal("box"),
|
|
89
|
+
status: z.enum(["captured", "partial"]),
|
|
90
|
+
...captureIdentity,
|
|
91
|
+
roots: z.array(z.object({
|
|
92
|
+
harness: text,
|
|
93
|
+
path: text,
|
|
94
|
+
kind: z.enum(["shared", "isolated"]),
|
|
95
|
+
homes: count
|
|
96
|
+
})),
|
|
97
|
+
homes: z.array(z.object({
|
|
98
|
+
harness: text,
|
|
99
|
+
runtimeHome: text,
|
|
100
|
+
copy: z.literal("snapshot"),
|
|
101
|
+
capturedAt: text,
|
|
102
|
+
live: z.boolean(),
|
|
103
|
+
files: z.array(nativeCopyFile),
|
|
104
|
+
excluded: z.array(z.object({
|
|
105
|
+
storePath: safePath,
|
|
106
|
+
reason: z.literal("credential")
|
|
107
|
+
})),
|
|
108
|
+
complete: z.boolean(),
|
|
109
|
+
missingReasons: z.array(text)
|
|
110
|
+
})),
|
|
111
|
+
nativeSessions: z.array(nativeSessionCopy.extend({ runtimeHome: text.nullable() })),
|
|
112
|
+
coverageComplete: z.boolean(),
|
|
113
|
+
missingReasons: z.array(text)
|
|
114
|
+
});
|
|
68
115
|
const manifestBase = z.object({
|
|
69
116
|
status: z.enum(["captured", "partial"]),
|
|
70
117
|
sessionId: text,
|
|
71
118
|
backendType: z.string().regex(/^[a-z][a-z0-9_-]{0,127}$/),
|
|
72
119
|
nativeSessionId: text.nullable(),
|
|
73
|
-
|
|
74
|
-
containerId: z.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
75
|
-
sidecarImageDigest: digest,
|
|
76
|
-
sidecarBundleRevision: z.string().regex(/^[a-f0-9]{40}$/),
|
|
77
|
-
sidecarBundleChecksum: digest.optional(),
|
|
120
|
+
...captureIdentity,
|
|
78
121
|
nativeRoots: z.array(z.object({
|
|
79
122
|
sourceId: text.optional(),
|
|
80
123
|
rootScope: scope,
|
|
@@ -170,15 +213,15 @@ const manifestSchema = z.union([
|
|
|
170
213
|
]);
|
|
171
214
|
const MAX_METADATA = 64 * 1024 * 1024;
|
|
172
215
|
const MAX_RECORD = 16 * 1024 * 1024;
|
|
173
|
-
|
|
174
|
-
|
|
216
|
+
async function exportRawEvidenceDirectory(request, subject, targetDirectory, options, expected) {
|
|
217
|
+
const sessionId = typeof subject === "string" ? subject : void 0;
|
|
175
218
|
for (const [name, value] of Object.entries({
|
|
176
219
|
maxBytes: options.maxBytes,
|
|
177
220
|
maxFiles: options.maxFiles,
|
|
178
221
|
maxArchiveBytes: options.maxArchiveBytes ?? options.maxBytes
|
|
179
222
|
})) if (!Number.isSafeInteger(value) || value <= 0) throw new Error(`${name} must be a positive safe integer`);
|
|
180
223
|
if (options.maxFiles > 1e6) throw new Error("maxFiles exceeds 1000000");
|
|
181
|
-
if (options.parts !== void 0 && (options.parts !== "native" || !options.copy)) throw new Error("parts must be native, together with copy");
|
|
224
|
+
if ("parts" in options && options.parts !== void 0 && (options.parts !== "native" || !options.copy)) throw new Error("parts must be native, together with copy");
|
|
182
225
|
options.signal?.throwIfAborted();
|
|
183
226
|
const fs = await import("node:fs/promises");
|
|
184
227
|
const { dirname, join, resolve } = await import("node:path");
|
|
@@ -201,13 +244,18 @@ async function exportRawEvidenceDirectory(request, sessionId, targetDirectory, o
|
|
|
201
244
|
throw new Error(`Raw evidence archive request failed (HTTP ${response.status}); no legacy fallback`);
|
|
202
245
|
}
|
|
203
246
|
if (response.headers.get("content-type")?.includes("application/json")) {
|
|
204
|
-
const body = await readBoundedResponse(response, 64 * 1024, options.signal);
|
|
247
|
+
const body = JSON.parse(await readBoundedResponse(response, 64 * 1024, options.signal));
|
|
248
|
+
if (sessionId === void 0) return z.object({
|
|
249
|
+
status: z.literal("unavailable"),
|
|
250
|
+
scope: z.literal("box"),
|
|
251
|
+
reason: text
|
|
252
|
+
}).parse(body);
|
|
205
253
|
return z.object({
|
|
206
254
|
status: z.literal("unavailable"),
|
|
207
255
|
sessionId: z.literal(sessionId),
|
|
208
256
|
backendType: text,
|
|
209
257
|
reason: text
|
|
210
|
-
}).parse(
|
|
258
|
+
}).parse(body);
|
|
211
259
|
}
|
|
212
260
|
const expectedManifest = response.headers.get("x-evidence-manifest-sha256");
|
|
213
261
|
if (!expectedManifest || !/^sha256:[a-f0-9]{64}$/.test(expectedManifest)) {
|
|
@@ -337,59 +385,74 @@ async function exportRawEvidenceDirectory(request, sessionId, targetDirectory, o
|
|
|
337
385
|
for (const outcome of settled) if (outcome.status === "rejected") throw outcome.reason;
|
|
338
386
|
const manifestRef = members.get("manifest.json");
|
|
339
387
|
if (!manifestRef || manifestRef.sha256 !== expectedManifest) throw new Error("Evidence manifest digest mismatch");
|
|
340
|
-
const
|
|
341
|
-
if (manifest.sessionId !== sessionId || manifest.backendType === "unknown") throw new Error("Evidence identity mismatch");
|
|
342
|
-
if (manifest.proofStatus === "verified" && (!manifest.containerId || !manifest.sidecarBundleChecksum)) throw new Error("Evidence capture proof is incomplete");
|
|
343
|
-
if (expected && (manifest.proofStatus !== "verified" || manifest.containerId !== expected.containerId || manifest.sidecarImageDigest !== expected.imageId || manifest.sidecarBundleRevision !== expected.bundleRevision || manifest.sidecarBundleChecksum !== expected.bundleChecksum)) throw new Error("Evidence does not match current container capture proof");
|
|
344
|
-
const captured = manifest.status === "captured";
|
|
345
|
-
if (captured ? !manifest.coverageComplete || manifest.missingReasons.length || !Object.values(manifest.completeness).every(Boolean) || !manifest.attempts.length : manifest.coverageComplete || !manifest.missingReasons.length) throw new Error("Evidence coverage status is inconsistent");
|
|
346
|
-
if (manifest.inventory.skippedEntries !== manifest.skipped.length) throw new Error("Evidence inventory mismatch");
|
|
347
|
-
const ids = new Set(manifest.attempts.flatMap((attempt) => attempt.nativeSessionIds));
|
|
348
|
-
const aggregateId = ids.size === 1 && manifest.attempts.every((attempt) => attempt.nativeSessionIds.length === 1) ? [...ids][0] : null;
|
|
349
|
-
if (manifest.nativeSessionId !== aggregateId) throw new Error("Evidence native session ID mismatch");
|
|
388
|
+
const parsed = JSON.parse(await fs.readFile(join(directory, "manifest.json"), "utf8"));
|
|
350
389
|
const verify = (ref) => {
|
|
351
390
|
const member = members.get(ref.path);
|
|
352
391
|
if (!member || member.sha256 !== ref.sha256 || member.sizeBytes !== ref.sizeBytes) throw new Error("Evidence payload hash or size mismatch");
|
|
353
392
|
};
|
|
354
|
-
|
|
355
|
-
if (
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
393
|
+
const checkProof = (identity) => {
|
|
394
|
+
if (identity.proofStatus === "verified" && (!identity.containerId || !identity.sidecarBundleChecksum)) throw new Error("Evidence capture proof is incomplete");
|
|
395
|
+
if (expected && (identity.proofStatus !== "verified" || identity.containerId !== expected.containerId || identity.sidecarImageDigest !== expected.imageId || identity.sidecarBundleRevision !== expected.bundleRevision || identity.sidecarBundleChecksum !== expected.bundleChecksum)) throw new Error("Evidence does not match current container capture proof");
|
|
396
|
+
};
|
|
397
|
+
let manifest;
|
|
398
|
+
if (sessionId === void 0) {
|
|
399
|
+
const box = boxManifestSchema.parse(parsed);
|
|
400
|
+
checkProof(box);
|
|
401
|
+
if (box.status === "captured" ? !box.coverageComplete || box.missingReasons.length > 0 || box.homes.some((home) => home.live || !home.complete) : box.coverageComplete || box.missingReasons.length === 0) throw new Error("Evidence coverage status is inconsistent");
|
|
402
|
+
for (const home of box.homes) for (const file of home.files) verify(file);
|
|
403
|
+
for (const copy of box.nativeSessions) for (const file of copy.files) verify(file);
|
|
404
|
+
manifest = box;
|
|
405
|
+
} else {
|
|
406
|
+
const session = manifestSchema.parse(parsed);
|
|
407
|
+
if (session.sessionId !== sessionId || session.backendType === "unknown") throw new Error("Evidence identity mismatch");
|
|
408
|
+
checkProof(session);
|
|
409
|
+
const captured = session.status === "captured";
|
|
410
|
+
if (captured ? !session.coverageComplete || session.missingReasons.length || !Object.values(session.completeness).every(Boolean) || !session.attempts.length : session.coverageComplete || !session.missingReasons.length) throw new Error("Evidence coverage status is inconsistent");
|
|
411
|
+
if (session.inventory.skippedEntries !== session.skipped.length) throw new Error("Evidence inventory mismatch");
|
|
412
|
+
const ids = new Set(session.attempts.flatMap((attempt) => attempt.nativeSessionIds));
|
|
413
|
+
const aggregateId = ids.size === 1 && session.attempts.every((attempt) => attempt.nativeSessionIds.length === 1) ? [...ids][0] : null;
|
|
414
|
+
if (session.nativeSessionId !== aggregateId) throw new Error("Evidence native session ID mismatch");
|
|
415
|
+
for (const item of session.files) if (item.kind === "file") {
|
|
416
|
+
if (!item.content || item.sha256 !== item.content.sha256 || item.sizeBytes !== item.content.sizeBytes) throw new Error("Evidence native payload mismatch");
|
|
417
|
+
verify(item.content);
|
|
418
|
+
} else if (item.content || item.sha256 || item.kind === "symlink" && item.linkTarget === void 0) throw new Error("Evidence native metadata mismatch");
|
|
419
|
+
const nativeSessions = session.schema === "tangle.raw-evidence-archive.v2" ? session.nativeSessions : [];
|
|
420
|
+
for (const copy of nativeSessions) {
|
|
421
|
+
if (!session.attempts.some((attempt) => attempt.executionId === copy.executionId && attempt.ordinal === copy.attempt)) throw new Error("Evidence native session copy is unattributed");
|
|
422
|
+
for (const file of copy.files) verify(file);
|
|
423
|
+
}
|
|
424
|
+
for (const item of session.processSources) {
|
|
425
|
+
if (item.sha256 !== item.content.sha256 || item.sizeBytes !== item.content.sizeBytes) throw new Error("Evidence process source mismatch");
|
|
426
|
+
verify(item.content);
|
|
427
|
+
}
|
|
428
|
+
const processIo = "parts" in session ? void 0 : session.processIo;
|
|
429
|
+
const processRecords = "parts" in session ? [] : [session.processIo, session.processTerminals];
|
|
430
|
+
for (const ref of processRecords) {
|
|
431
|
+
verify(ref);
|
|
432
|
+
let count = 0;
|
|
433
|
+
for await (const row of readRecords(join(directory, ref.path), options.signal)) {
|
|
434
|
+
count++;
|
|
435
|
+
if (ref === processIo) {
|
|
436
|
+
const content = payload.parse(row.content);
|
|
437
|
+
verify(content);
|
|
438
|
+
if (content.sizeBytes !== row.sizeBytes || content.sha256 !== row.sha256 || row.contentBase64 !== void 0) throw new Error("Evidence process frame mismatch");
|
|
439
|
+
}
|
|
440
|
+
if (captured && !session.attempts.some((attempt) => attempt.executionId === row.executionId && attempt.ordinal === row.ordinal && attempt.providerSessionId === row.providerSessionId && attempt.processIds.includes(String(row.processId)))) throw new Error("Evidence process attribution mismatch");
|
|
378
441
|
}
|
|
379
|
-
if (
|
|
442
|
+
if (count !== ref.records) throw new Error("Evidence record count mismatch");
|
|
380
443
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
last
|
|
444
|
+
for (const event of session.events) {
|
|
445
|
+
verify(event.frames);
|
|
446
|
+
let count = 0;
|
|
447
|
+
let last = "";
|
|
448
|
+
for await (const row of readRecords(join(directory, event.frames.path), options.signal)) {
|
|
449
|
+
count++;
|
|
450
|
+
if (typeof row.eventId !== "string") throw new Error("Evidence event identity missing");
|
|
451
|
+
last = row.eventId;
|
|
452
|
+
}
|
|
453
|
+
if (count !== event.frames.records || event.metadata.sessionId !== sessionId || captured && (count !== event.metadata.eventCount || last !== event.metadata.lastEventId)) throw new Error("Evidence event sequence mismatch");
|
|
391
454
|
}
|
|
392
|
-
|
|
455
|
+
manifest = session;
|
|
393
456
|
}
|
|
394
457
|
options.signal?.throwIfAborted();
|
|
395
458
|
try {
|
|
@@ -416,7 +479,7 @@ async function exportRawEvidenceDirectory(request, sessionId, targetDirectory, o
|
|
|
416
479
|
} catch (error) {
|
|
417
480
|
await fs.writeFile(join(staging, "failure.json"), JSON.stringify({
|
|
418
481
|
status: "incomplete",
|
|
419
|
-
sessionId,
|
|
482
|
+
...sessionId === void 0 ? { scope: "box" } : { sessionId },
|
|
420
483
|
reason: error instanceof Error ? error.message : String(error)
|
|
421
484
|
}), { mode: 384 });
|
|
422
485
|
throw new Error(`Evidence export failed; partial bytes retained at ${staging}`, { cause: error });
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions, An as ListMessagesOptions, At as FileTreeOptions, Bi as SandboxTerminalCreateOptions, Ct as FileReadBatchOptions, Di as SandboxPortBinding, Dt as FileRenameResult, H as CreateTaskSessionOptions, Hi as SandboxTerminalManager, Ma as TaskSessionCommitResult, Mt as FileUsageOptions, Nt as FileUsageResult, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pt as FileWriteResult, Qa as WriteFileOptions, T as ChunkedUploadResult, Ui as SandboxTerminalRequestOptions, V as CreateSessionOptions, Vi as SandboxTerminalInfo, Vr as SandboxEvent, aa as SessionExecutionInfo, ea as SendSessionMessageOptions, fa as SessionMessage, ia as SessionEventStreamOptions, ja as TaskSessionChanges, jt as FileTreeResult, la as SessionInfo, na as SentSessionMessage, oa as SessionExecutionStatus, pa as SessionMessageAdmission, qa as UploadProgress, ta as SendSessionMessageRequest, w as ChunkedUploadOptions, wt as FileReadBatchResult, xr as RenameOptions } from "./types-
|
|
1
|
+
import { A as CommitTaskSessionOptions, An as ListMessagesOptions, At as FileTreeOptions, Bi as SandboxTerminalCreateOptions, Ct as FileReadBatchOptions, Di as SandboxPortBinding, Dt as FileRenameResult, H as CreateTaskSessionOptions, Hi as SandboxTerminalManager, Ma as TaskSessionCommitResult, Mt as FileUsageOptions, Nt as FileUsageResult, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pt as FileWriteResult, Qa as WriteFileOptions, T as ChunkedUploadResult, Ui as SandboxTerminalRequestOptions, V as CreateSessionOptions, Vi as SandboxTerminalInfo, Vr as SandboxEvent, aa as SessionExecutionInfo, ea as SendSessionMessageOptions, fa as SessionMessage, ia as SessionEventStreamOptions, ja as TaskSessionChanges, jt as FileTreeResult, la as SessionInfo, na as SentSessionMessage, oa as SessionExecutionStatus, pa as SessionMessageAdmission, qa as UploadProgress, ta as SendSessionMessageRequest, w as ChunkedUploadOptions, wt as FileReadBatchResult, xr as RenameOptions } from "./types-C8wd65mR.js";
|
|
2
2
|
import { n as TerminalStream, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
3
3
|
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
4
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, y as StateError } from "./errors-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
4
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, y as StateError } from "./errors-Dtli_Mqi.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-Ca9C7TLj.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
-
import { $a as WriteManyFile, $t as ForkIdempotency, A as CommitTaskSessionOptions, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ba as TeePublicKeyResponse, C as BranchOptions, Cn as InstalledTool, Cr as ResumeOptions, D as CodeExecutionResult, Di as SandboxPortBinding, E as CodeExecutionOptions, Ea as StartupDiagnostics, Ei as SandboxOperationState, En as IntelligenceReportCompareTo, Er as RolloutOptions, Fi as SandboxShape, Fr as SandboxConnection, Gi as SandboxTraceBundle, H as CreateTaskSessionOptions, Ia as TeeAttestationOptions, Ir as SandboxDeleteAcknowledgement, Ji as SandboxTraceOptions, Lr as SandboxDeleteOptions, M as ConversationTurnOptions, Ma as TaskSessionCommitResult, Mr as SSHCommandDescriptor, N as ConversationTurnResult, Ni as SandboxRuntimeCapabilities, Nr as SSHCredentials, O as CodeLanguage, Oa as StopOptions, On as IntelligenceReportWindow, Or as RolloutStartResult, Ot as FileSystem, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pt as FileWriteResult, Q as DispatchedSession, Qa as WriteFileOptions, Qt as ForkCounts, Ra as TeeAttestationResponse, Ri as SandboxStatus, Sa as SnapshotProvenance, Si as SandboxInfo, Sn as HttpClient, Sr as RestoreSnapshotOptions, Ti as SandboxOperationKind, Tn as IntelligenceReportBudget, Ua as TurnBackendConfig, V as CreateSessionOptions, Vr as SandboxEvent, Wa as TurnDriveResult, Wi as SandboxTerminals, Wn as NetworkManager, Xa as WaitForRolloutOptions, Xi as SearchMatch, Ya as WaitForOptions, Yn as PreviewLinkManager, Z as DispatchPromptOptions, Za as WorkspaceOperationLookup, Zi as SearchOptions, _a as SnapshotDeleteAcknowledgement, aa as SessionExecutionInfo, ao as SandboxEnvRecoveryView, ar as PromptInputPart, ba as SnapshotInfo, bt as ExecOptions, ca as SessionForkOptions, cn as GpuLease,
|
|
2
|
+
import { $a as WriteManyFile, $t as ForkIdempotency, A as CommitTaskSessionOptions, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ba as TeePublicKeyResponse, C as BranchOptions, Cn as InstalledTool, Cr as ResumeOptions, D as CodeExecutionResult, Di as SandboxPortBinding, E as CodeExecutionOptions, Ea as StartupDiagnostics, Ei as SandboxOperationState, En as IntelligenceReportCompareTo, Er as RolloutOptions, Fi as SandboxShape, Fr as SandboxConnection, Gi as SandboxTraceBundle, H as CreateTaskSessionOptions, Ia as TeeAttestationOptions, Ir as SandboxDeleteAcknowledgement, Ji as SandboxTraceOptions, Lr as SandboxDeleteOptions, M as ConversationTurnOptions, Ma as TaskSessionCommitResult, Mr as SSHCommandDescriptor, N as ConversationTurnResult, Ni as SandboxRuntimeCapabilities, Nr as SSHCredentials, O as CodeLanguage, Oa as StopOptions, On as IntelligenceReportWindow, Or as RolloutStartResult, Ot as FileSystem, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pt as FileWriteResult, Q as DispatchedSession, Qa as WriteFileOptions, Qt as ForkCounts, Ra as TeeAttestationResponse, Ri as SandboxStatus, Sa as SnapshotProvenance, Si as SandboxInfo, Sn as HttpClient, Sr as RestoreSnapshotOptions, Ti as SandboxOperationKind, Tn as IntelligenceReportBudget, Ua as TurnBackendConfig, V as CreateSessionOptions, Vr as SandboxEvent, Wa as TurnDriveResult, Wi as SandboxTerminals, Wn as NetworkManager, Xa as WaitForRolloutOptions, Xi as SearchMatch, Ya as WaitForOptions, Yn as PreviewLinkManager, Z as DispatchPromptOptions, Za as WorkspaceOperationLookup, Zi as SearchOptions, _a as SnapshotDeleteAcknowledgement, _o as WorkspaceImagePublishResult$1, aa as SessionExecutionInfo, ao as SandboxEnvRecoveryView, ar as PromptInputPart, ba as SnapshotInfo, bt as ExecOptions, ca as SessionForkOptions, cn as GpuLease, cr as ProvisionEvent, ct as DurablePlanDecisionResult, d as BackendConfig, da as SessionListOptions, do as RawEvidenceBoxExportOptions, ea as SendSessionMessageOptions, en as ForkLookupOptions, eo as WriteManyOptions, fa as SessionMessage, fi as SandboxFleetTraceBundle, fo as RawEvidenceDirectoryExport, fr as PublicProfileConflict, ha as SessionResultOptions, ht as EgressManager, ia as SessionEventStreamOptions, in as GitCommit, io as SandboxEnvRecovery, it as DriverInfo, j as CompletedTurnResult, ja as TaskSessionChanges, kn as JsonValue, la as SessionInfo, lr as ProvisionResult, na as SentSessionMessage, nt as DriveTurnOptions, on as GitDiff, or as PromptOptions, ot as DurablePlan, p as BackendManager, pa as SessionMessageAdmission, pn as GpuLeaseManager, po as RawEvidenceExportOptions, qn as PermissionsManager, rn as GitBranch, ro as SandboxCreateReceipt, sn as GitStatus, sr as PromptResult, st as DurablePlanDecisionOptions, ta as SendSessionMessageRequest, tr as ProcessManager, ua as SessionInterruptOptions, uo as RawEvidenceBoxDirectoryExport, vo as InteractionResolutionAcknowledgement, vt as EventStreamOptions, wa as SnapshotResult, wi as SandboxOperationInfo, wn as IntelligenceReport, wr as Rollout, xa as SnapshotOptions, xt as ExecResult, zi as SandboxTerminalAttachOptions } from "./types-C8wd65mR.js";
|
|
3
3
|
import { c as TerminalStreamReconnectAuthority, f as MintScopedTokenOptions, n as TerminalStream, o as TerminalStreamHandlers, p as ScopedToken, y as TerminalReadyInfo } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
|
-
import { E as InteractiveAttachRequest, h as SandboxError } from "./errors-
|
|
6
|
-
import { z as SandboxLines } from "./lines-
|
|
5
|
+
import { E as InteractiveAttachRequest, h as SandboxError } from "./errors-Dtli_Mqi.js";
|
|
6
|
+
import { z as SandboxLines } from "./lines-BsSRnRLK.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
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";
|
|
9
9
|
|
|
@@ -2332,6 +2332,19 @@ declare class SandboxInstance {
|
|
|
2332
2332
|
_sessionStatus(id: string): Promise<SessionInfo | null>;
|
|
2333
2333
|
/** @internal — invoked before the sandbox is deleted. */
|
|
2334
2334
|
_sessionExportRawEvidence(id: string, destination: string, options: RawEvidenceExportOptions): Promise<RawEvidenceDirectoryExport>;
|
|
2335
|
+
/**
|
|
2336
|
+
* Export every native session store on this box into a new local
|
|
2337
|
+
* directory: each runtime HOME's Claude Code, Codex, OpenCode and other
|
|
2338
|
+
* harness stores (transcripts and SQLite databases), and every settled
|
|
2339
|
+
* copy. The box-level twin of `box.session(id).exportRawEvidence`, for a
|
|
2340
|
+
* box about to be deleted, including one restored from a snapshot whose
|
|
2341
|
+
* session listing is empty. Only files a harness contract declares as its
|
|
2342
|
+
* session store are read; credentials and config never leave the box.
|
|
2343
|
+
*
|
|
2344
|
+
* The destination must not exist. Payload digests, the manifest digest
|
|
2345
|
+
* and the byte and file bounds are verified before the directory appears.
|
|
2346
|
+
*/
|
|
2347
|
+
exportRawEvidence(destination: string, options: RawEvidenceBoxExportOptions): Promise<RawEvidenceBoxDirectoryExport>;
|
|
2335
2348
|
_sessionRawEvidence(id: string): Promise<RawEvidenceExport>;
|
|
2336
2349
|
/** @internal — invoked by SandboxSession.runs(). */
|
|
2337
2350
|
_sessionRuns(id: string): Promise<SessionExecutionInfo[]>;
|
|
@@ -9375,7 +9375,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9375
9375
|
}
|
|
9376
9376
|
/** @internal — invoked before the sandbox is deleted. */
|
|
9377
9377
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
9378
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
9378
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-tCj9wHJ4.js");
|
|
9379
9379
|
await this.ensureRunning();
|
|
9380
9380
|
await this.refresh();
|
|
9381
9381
|
return exportRawEvidenceDirectory((signal) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -9389,6 +9389,30 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9389
9389
|
signal
|
|
9390
9390
|
}), id, destination, options, this.#info.captureProof);
|
|
9391
9391
|
}
|
|
9392
|
+
/**
|
|
9393
|
+
* Export every native session store on this box into a new local
|
|
9394
|
+
* directory: each runtime HOME's Claude Code, Codex, OpenCode and other
|
|
9395
|
+
* harness stores (transcripts and SQLite databases), and every settled
|
|
9396
|
+
* copy. The box-level twin of `box.session(id).exportRawEvidence`, for a
|
|
9397
|
+
* box about to be deleted, including one restored from a snapshot whose
|
|
9398
|
+
* session listing is empty. Only files a harness contract declares as its
|
|
9399
|
+
* session store are read; credentials and config never leave the box.
|
|
9400
|
+
*
|
|
9401
|
+
* The destination must not exist. Payload digests, the manifest digest
|
|
9402
|
+
* and the byte and file bounds are verified before the directory appears.
|
|
9403
|
+
*/
|
|
9404
|
+
async exportRawEvidence(destination, options) {
|
|
9405
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-tCj9wHJ4.js");
|
|
9406
|
+
await this.ensureRunning();
|
|
9407
|
+
await this.refresh();
|
|
9408
|
+
return exportRawEvidenceDirectory((signal) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
9409
|
+
maxBytes: String(options.maxBytes),
|
|
9410
|
+
maxFiles: String(options.maxFiles)
|
|
9411
|
+
})}`, {
|
|
9412
|
+
method: "GET",
|
|
9413
|
+
signal
|
|
9414
|
+
}), { scope: "box" }, destination, options, this.#info.captureProof);
|
|
9415
|
+
}
|
|
9392
9416
|
async _sessionRawEvidence(id) {
|
|
9393
9417
|
await this.ensureRunning();
|
|
9394
9418
|
await this.refresh();
|
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-Ct0ZdE6t.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-BIjKQRLj.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 { C as readResponseJson } from "./errors-DSJBKmGZ.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-C3xo64vD.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-B6gap92T.js";
|
|
4
4
|
//#region src/tangle/abi.ts
|
|
5
5
|
/**
|
|
@@ -1214,7 +1214,7 @@ interface WorkspaceImagePublishResult {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
//#endregion
|
|
1216
1216
|
//#region ../../../packages/runtime-contracts/dist/raw-evidence-export.d.ts
|
|
1217
|
-
/** Wire contract for bounded
|
|
1217
|
+
/** Wire contract for bounded native evidence archives, per session and box-wide. */
|
|
1218
1218
|
interface RawEvidencePayloadFile {
|
|
1219
1219
|
/** Safe relative path below the exported directory; never an absolute native path. */
|
|
1220
1220
|
path: string;
|
|
@@ -1438,6 +1438,85 @@ interface RawEvidenceExportOptions {
|
|
|
1438
1438
|
maxArchiveBytes?: number;
|
|
1439
1439
|
signal?: AbortSignal;
|
|
1440
1440
|
}
|
|
1441
|
+
/**
|
|
1442
|
+
* The declared native stores of one runtime HOME, copied box-wide. Only the
|
|
1443
|
+
* files its harness contract's store globs match are read; nothing else in
|
|
1444
|
+
* the HOME is opened, listed or named.
|
|
1445
|
+
*/
|
|
1446
|
+
interface NativeStoreHomeCopy {
|
|
1447
|
+
harness: string;
|
|
1448
|
+
/** The HOME's absolute path inside the box. */
|
|
1449
|
+
runtimeHome: string;
|
|
1450
|
+
copy: "snapshot";
|
|
1451
|
+
capturedAt: string;
|
|
1452
|
+
/** An active execution or an interactive owner held the HOME when it was copied. */
|
|
1453
|
+
live: boolean;
|
|
1454
|
+
files: NativeSessionCopyFile[];
|
|
1455
|
+
/** Store files the globs matched that the credential predicate names; never copied. */
|
|
1456
|
+
excluded: Array<{
|
|
1457
|
+
storePath: string;
|
|
1458
|
+
reason: "credential";
|
|
1459
|
+
}>;
|
|
1460
|
+
complete: boolean;
|
|
1461
|
+
/** home_live | over_bound:<path> | store_entries_capped:<root> | store_file_unreadable:<path> | ... */
|
|
1462
|
+
missingReasons: string[];
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Every native session store on one box, found by walking the runtime HOME
|
|
1466
|
+
* roots rather than the session store, so it also serves a box whose session
|
|
1467
|
+
* listing is empty (a snapshot-restored box whose records expired).
|
|
1468
|
+
*/
|
|
1469
|
+
interface RawEvidenceBoxArchiveManifest {
|
|
1470
|
+
schema: "tangle.raw-evidence-archive.box.v1";
|
|
1471
|
+
scope: "box";
|
|
1472
|
+
status: "captured" | "partial";
|
|
1473
|
+
proofStatus: "verified" | "unverified";
|
|
1474
|
+
containerId?: string;
|
|
1475
|
+
sidecarBundleChecksum?: string;
|
|
1476
|
+
sidecarImageDigest: string;
|
|
1477
|
+
sidecarBundleRevision: string;
|
|
1478
|
+
/** Every HOME root walked, with the number of HOMEs it held. */
|
|
1479
|
+
roots: Array<{
|
|
1480
|
+
harness: string;
|
|
1481
|
+
path: string;
|
|
1482
|
+
kind: "shared" | "isolated";
|
|
1483
|
+
homes: number;
|
|
1484
|
+
}>;
|
|
1485
|
+
homes: NativeStoreHomeCopy[];
|
|
1486
|
+
/** Settled copies, each with the HOME it was taken from; they outlive a reaped HOME. */
|
|
1487
|
+
nativeSessions: Array<NativeSessionCopy & {
|
|
1488
|
+
runtimeHome: string | null;
|
|
1489
|
+
}>;
|
|
1490
|
+
coverageComplete: boolean;
|
|
1491
|
+
missingReasons: string[];
|
|
1492
|
+
}
|
|
1493
|
+
interface RawEvidenceBoxUnavailable {
|
|
1494
|
+
status: "unavailable";
|
|
1495
|
+
scope: "box";
|
|
1496
|
+
reason: string;
|
|
1497
|
+
}
|
|
1498
|
+
interface RawEvidenceBoxExportOptions {
|
|
1499
|
+
/** Bound all uncompressed archive member bytes, including the manifest. */
|
|
1500
|
+
maxBytes: number;
|
|
1501
|
+
/** Bound all archive file entries, including empty files. */
|
|
1502
|
+
maxFiles: number;
|
|
1503
|
+
/** Compressed transport bound; defaults to maxBytes plus bounded tar overhead. */
|
|
1504
|
+
maxArchiveBytes?: number;
|
|
1505
|
+
signal?: AbortSignal;
|
|
1506
|
+
}
|
|
1507
|
+
type RawEvidenceBoxDirectoryExport = RawEvidenceBoxUnavailable | {
|
|
1508
|
+
status: "captured" | "partial";
|
|
1509
|
+
directory: string;
|
|
1510
|
+
manifestPath: string;
|
|
1511
|
+
manifestSha256: `sha256:${string}`;
|
|
1512
|
+
transfer: {
|
|
1513
|
+
sizeBytes: number;
|
|
1514
|
+
sha256: string;
|
|
1515
|
+
};
|
|
1516
|
+
manifest: RawEvidenceBoxArchiveManifest;
|
|
1517
|
+
coverageComplete: boolean;
|
|
1518
|
+
missingReasons: string[];
|
|
1519
|
+
};
|
|
1441
1520
|
type RawEvidenceDirectoryExport = RawEvidenceUnavailable | {
|
|
1442
1521
|
status: "captured" | "partial";
|
|
1443
1522
|
directory: string;
|
|
@@ -2324,6 +2403,18 @@ interface CreateSandboxOptions {
|
|
|
2324
2403
|
* creation does not support delegated billing.
|
|
2325
2404
|
*/
|
|
2326
2405
|
billingOwnerId?: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Place this sandbox only on spare capacity.
|
|
2408
|
+
*
|
|
2409
|
+
* For first-party delegated creates only: the Sandbox API accepts it only
|
|
2410
|
+
* together with `billingOwnerId` from an allow-listed first-party service
|
|
2411
|
+
* key, and refuses every other create with 403 `CAPACITY_CLASS_FORBIDDEN`.
|
|
2412
|
+
* It restricts placement and is not a priority: no host outside the spare
|
|
2413
|
+
* pool takes the sandbox, and the create is refused with 503
|
|
2414
|
+
* `SPARE_CAPACITY_UNAVAILABLE` when no spare pool admits it. It also skips
|
|
2415
|
+
* the warm pool. The class is fixed at create; resume keeps it.
|
|
2416
|
+
*/
|
|
2417
|
+
capacityClass?: "spare_only";
|
|
2327
2418
|
/**
|
|
2328
2419
|
* Auto-split inline file mounts out of an inline `backend.profile` object
|
|
2329
2420
|
* at create time, send the lean profile (mount refs stripped) in the
|
|
@@ -7922,4 +8013,4 @@ interface ManagedProcessJobs {
|
|
|
7922
8013
|
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
7923
8014
|
}
|
|
7924
8015
|
//#endregion
|
|
7925
|
-
export { DownloadOptions as $, WriteManyFile as $a, SecretsManager as $i, ProcessListOptions as $n, SandboxFleetMachine as $r, ForkIdempotency as $t, CommitTaskSessionOptions as A, SubscriptionInfo as Aa, SandboxResourceUsage as Ai, ListMessagesOptions as An, RolloutTurnPart as Ar, FileTreeOptions as At, CreateSandboxOptions as B, TeePublicKeyResponse as Ba, SandboxTerminalCreateOptions as Bi, ManagedProcessState as Bn, SandboxEnvironment as Br, FleetDispatchResultBuffer as Bt, BranchOptions as C, SnapshotRemoteSync as Ca, SandboxIntelligenceEnvelope as Ci, InstalledTool as Cn,
|
|
8016
|
+
export { DownloadOptions as $, WriteManyFile as $a, SecretsManager as $i, ProcessListOptions as $n, SandboxFleetMachine as $r, ForkIdempotency as $t, CommitTaskSessionOptions as A, SubscriptionInfo as Aa, SandboxResourceUsage as Ai, ListMessagesOptions as An, RolloutTurnPart as Ar, FileTreeOptions as At, CreateSandboxOptions as B, TeePublicKeyResponse as Ba, SandboxTerminalCreateOptions as Bi, ManagedProcessState as Bn, SandboxEnvironment as Br, FleetDispatchResultBuffer as Bt, BranchOptions as C, SnapshotRemoteSync as Ca, SandboxIntelligenceEnvelope as Ci, InstalledTool as Cn, BatchSidecarGroup as Co, ResumeOptions as Cr, FileReadBatchOptions as Ct, CodeExecutionResult as D, StartupOperation as Da, SandboxPortBinding as Di, IntelligenceReportSubjectType as Dn, parseBackendType as Do, RolloutScorer as Dr, FileRenameResult as Dt, CodeExecutionOptions as E, StartupDiagnostics as Ea, SandboxOperationState as Ei, IntelligenceReportCompareTo as En, BackendType as Eo, RolloutOptions as Er, FileReadResult as Et, CreateIntelligenceReportOptions as F, TaskSessionProfile as Fa, SandboxShape as Fi, ManagedProcessJobs as Fn, SandboxConnection as Fr, FleetAgentId as Ft, DeleteMatchingSandboxesFilter as G, UpdateUserOptions as Ga, SandboxTraceBundle as Gi, NonHostAgentDriverConfig as Gn, SandboxFleetArtifactSpec as Gr, FleetExecDispatchOptions as Gt, CreateTaskSessionOptions as H, TokenUsage as Ha, SandboxTerminalManager as Hi, MkdirOptions as Hn, SandboxFleetAgent as Hr, FleetDispatchStreamOptions as Ht, CreateRequestOptions as I, TeeAttestationOptions as Ia, SandboxShapePreset as Ii, ManagedProcessOptions as In, SandboxDeleteAcknowledgement as Ir, FleetAgentPlacement as It, DeleteOptions as J, UsageInfo as Ja, SandboxTraceOptions as Ji, PreviewLinkInfo as Jn, SandboxFleetDispatchResponse as Jr, FleetPromptDispatchOptions as Jt, DeleteMatchingSandboxesOptions as K, UploadOptions as Ka, SandboxTraceEvent as Ki, PermissionLevel as Kn, SandboxFleetCostEstimate as Kr, FleetExecDispatchResult as Kt, CreateSandboxFleetOptions as L, TeeAttestationReport as La, SandboxShapesInfo as Li, ManagedProcessRecord as Ln, SandboxDeleteOptions as Lr, FleetAgentResult as Lt, ConversationTurnOptions as M, TaskSessionCommitResult as Ma, SandboxRunGeneration as Mi, ListSandboxFleetOptions as Mn, SSHCommandDescriptor as Mr, FileUsageOptions as Mt, ConversationTurnResult as N, TaskSessionFileChange as Na, SandboxRuntimeCapabilities as Ni, ListSandboxOptions as Nn, SSHCredentials as Nr, FileUsageResult as Nt, CodeLanguage as O, StopOptions as Oa, SandboxPortPreviewLink as Oi, IntelligenceReportWindow as On, RolloutStartResult as Or, FileSystem as Ot, CreateGpuLeaseOptions as P, TaskSessionInfo as Pa, SandboxRuntimeHealth as Pi, MAX_EGRESS_DENIALS_LIMIT as Pn, SandboxConfig as Pr, FileWriteResult as Pt, DispatchedSession as Q, WriteFileOptions as Qa, SecretInfo as Qi, ProcessInfo as Qn, SandboxFleetIntelligenceEnvelope as Qr, ForkCounts as Qt, CreateSandboxFleetTokenOptions as R, TeeAttestationResponse as Ra, SandboxStatus as Ri, ManagedProcessResumeOptions as Rn, SandboxDeleteOutcome as Rr, FleetAgentRunStatus as Rt, BatchTaskResult as S, SnapshotProvenance as Sa, SandboxInfo as Si, HttpClient as Sn, BatchEventDataMap as So, RestoreSnapshotOptions as Sr, FileInfo as St, ChunkedUploadResult as T, SshKeysManager as Ta, SandboxOperationKind as Ti, IntelligenceReportBudget as Tn, ALL_BACKEND_TYPES as To, RolloutChildResult as Tr, FileReadError as Tt, DeleteMatchingSandboxOutcome as U, TurnBackendConfig as Ua, SandboxTerminalRequestOptions as Ui, NetworkConfig as Un, SandboxFleetAgentSpec as Ur, FleetDriveTurnOutcome as Ut, CreateSessionOptions as V, TokenRefreshHandler as Va, SandboxTerminalInfo as Vi, McpServerConfig as Vn, SandboxEvent as Vr, FleetDispatchResultBufferOptions as Vt, DeleteMatchingSandboxResult as W, TurnDriveResult as Wa, SandboxTerminals as Wi, NetworkManager as Wn, SandboxFleetArtifact as Wr, FleetDriveTurnRequest as Wt, DirectoryPermission as X, WaitForRolloutOptions as Xa, SearchMatch as Xi, PreviewLinkWaitOptions as Xn, SandboxFleetDriverTimings as Xr, FleetRunEvent as Xt, DevServerInfo as Y, WaitForOptions as Ya, SandboxUser as Yi, PreviewLinkManager as Yn, SandboxFleetDriverCapability as Yr, FleetPromptDispatchResult as Yt, DispatchPromptOptions as Z, WorkspaceOperationLookup as Za, SearchOptions as Zi, Process as Zn, SandboxFleetInfo as Zr, FleetRunOptions as Zt, BatchBackend as _, SnapshotDeleteAcknowledgement as _a, SandboxFleetWorkspace as _i, GpuLeaseProviders as _n, WorkspaceImagePublishResult as _o, ReapExpiredSandboxFleetsOptions as _r, EnsureDevServerOptions as _t, AgentQuestionRequest as a, SessionExecutionInfo as aa, SandboxFleetOperationsSummary as ai, GitConfig as an, SandboxEnvRecoveryView as ao, PromptInputPart as ar, DriverType as at, BatchRunRequest as b, SnapshotInfo as ba, SandboxFleetWorkspaceSnapshotResult as bi, HostAgentDriverConfig as bn, BatchBackendStats as bo, ReconcileSandboxFleetsResult as br, ExecOptions as bt, AttachGpuLeaseOptions as c, SessionForkOptions as ca, SandboxFleetPolicy as ci, GpuLease as cn, RawEvidenceArchiveManifestNative as co, ProvisionEvent as cr, DurablePlanDecisionResult as ct, BackendConfig as d, SessionListOptions as da, SandboxFleetToken as di, GpuLeaseExecOptions as dn, RawEvidenceBoxExportOptions as do, ProvisionStep as dr, EffectiveBackend as dt, SendSessionMessageOptions as ea, SandboxFleetMachineMeteredUsage as ei, ForkLookupOptions as en, WriteManyOptions as eo, ProcessLogEntry as er, DownloadProgress as et, BackendInfo as f, SessionMessage as fa, SandboxFleetTraceBundle as fi, GpuLeaseExecResult as fn, RawEvidenceDirectoryExport as fo, PublicProfileConflict as fr, EffectiveBackendProfile as ft, BackendStatus as g, SessionStatus as ga, SandboxFleetUsage as gi, GpuLeaseProviderStatus as gn, RawEvidenceRecordsFile as go, PublishPublicTemplateVersionOptions as gr, EgressPolicy as gt, BackendRuntimeConfigUpdate as h, SessionResultOptions as ha, SandboxFleetTraceOptions as hi, GpuLeaseProviderState as hn, RawEvidencePayloadFile as ho, PublishPublicTemplateOptions as hr, EgressManager as ht, AgentApprovalRequirement as i, SessionEventStreamOptions as ia, SandboxFleetManifestMachine as ii, GitCommit as in, SandboxEnvRecovery as io, ProcessStatus as ir, DriverInfo as it, CompletedTurnResult as j, TaskSessionChanges as ja, SandboxResources as ji, ListOptions as jn, RouterRoutingOptions as jr, FileTreeResult as jt, CodeResultPart as k, StorageConfig as ka, SandboxRemovalState as ki, JsonValue as kn, RolloutStatus as kr, FileTreeFile as kt, AttachSandboxFleetMachineOptions as l, SessionInfo as la, SandboxFleetProfileRef as li, GpuLeaseBilling as ln, RawEvidenceBoxArchiveManifest as lo, ProvisionResult as lr, DurablePlanFollowUpResume as lt, BackendMcpServerStatus as m, SessionMessageInputPart as ma, SandboxFleetTraceExport as mi, GpuLeaseProviderName as mn, RawEvidenceNativeFile as mo, PublicTemplateVersionInfo as mr, EgressDenial as mt, AccessPolicyRule as n, SentSessionMessage as na, SandboxFleetMachineSpec as ni, GitAuth as nn, SandboxCreateOutcome as no, ProcessSignal as nr, DriveTurnOptions as nt, AgentRunStatus as o, SessionExecutionStatus as oa, SandboxFleetParent as oi, GitDiff as on, NativeStoreHomeCopy as oo, PromptOptions as or, DurablePlan as ot, BackendManager as p, SessionMessageAdmission as pa, SandboxFleetTraceEvent as pi, GpuLeaseManager as pn, RawEvidenceExportOptions as po, PublicTemplateInfo as pr, EffectiveBackendSource as pt, DeleteMatchingSandboxesResult as q, UploadProgress as qa, SandboxTraceExport as qi, PermissionsManager as qn, SandboxFleetDispatchFailureClass as qr, FleetMachineId as qt, AddUserOptions as r, SessionBackendCredentials as ra, SandboxFleetManifest as ri, GitBranch as rn, SandboxCreateReceipt as ro, ProcessSpawnOptions as rr, DriverConfig as rt, AgentToolInvocation as s, SessionFailureReason as sa, SandboxFleetPlacement as si, GitStatus as sn, RawEvidenceArchiveManifest as so, PromptResult as sr, DurablePlanDecisionOptions as st, AcceleratorKind as t, SendSessionMessageRequest as ta, SandboxFleetMachineRecord as ti, GPU_LEASE_PROVIDER_NAMES as tn, SdkTimingHook as to, ProcessManager as tr, DownloadResult as tt, BackendCapabilities as u, SessionInterruptOptions as ua, SandboxFleetSpend as ui, GpuLeaseCommandResult as un, RawEvidenceBoxDirectoryExport as uo, ProvisionStatus as ur, DurablePlanSnapshot as ut, BatchResult as v, SnapshotDeleteOutcome as va, SandboxFleetWorkspaceReconcileResult as vi, GpuLeaseProvidersOptions as vn, InteractionResolutionAcknowledgement as vo, ReapExpiredSandboxFleetsResult as vr, EventStreamOptions as vt, ChunkedUploadOptions as w, SnapshotResult as wa, SandboxOperationInfo as wi, IntelligenceReport as wn, BatchTaskUsage as wo, Rollout as wr, FileReadBatchResult as wt, BatchTask as x, SnapshotOptions as xa, SandboxIdentity as xi, HostAgentRuntimeBackend as xn, BatchEvent as xo, RenameOptions as xr, ExecResult as xt, BatchRunOptions as y, SnapshotIdempotency as ya, SandboxFleetWorkspaceRestoreResult as yi, GpuLeaseStatus as yn, PublicBatchRunRequest as yo, ReconcileSandboxFleetsOptions as yr, ExactProcessSpawnOptions as yt, CreateSandboxFleetWithCoordinatorOptions as z, TeePublicKey as za, SandboxTerminalAttachOptions as zi, ManagedProcessSpec as zn, SandboxEgressUsage as zr, FleetDispatchCancelResult as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -157,14 +157,14 @@
|
|
|
157
157
|
"@products/sandbox-test-utils": "0.0.0",
|
|
158
158
|
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
159
159
|
"@repo/shared": "0.0.0",
|
|
160
|
-
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
161
160
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
162
|
-
"@tangle-network/
|
|
163
|
-
"@tangle-network/
|
|
161
|
+
"@tangle-network/sdk": "4.0.16",
|
|
162
|
+
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
163
|
+
"@tangle-network/sse-core": "0.0.0"
|
|
164
164
|
},
|
|
165
165
|
"tangleRelease": {
|
|
166
|
-
"sourceSha": "
|
|
167
|
-
"mergedAt": "2026-10-
|
|
166
|
+
"sourceSha": "f8a462c53ff715fba363f9f0c4ae6fd16f5788fe",
|
|
167
|
+
"mergedAt": "2026-10-18T19:23:07-06:00"
|
|
168
168
|
},
|
|
169
169
|
"scripts": {
|
|
170
170
|
"build": "node scripts/build-dist.mjs",
|