@tangle-network/sandbox 0.61.3 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-CeLkJvZi.d.ts → agent-run-outcome-D-N1ksND.d.ts} +1 -1
- package/dist/{client-BV-mz_BF.d.ts → client-BVR0FsHf.d.ts} +5 -5
- package/dist/{client-BHPnb3B8.js → client-mFgWw3cn.js} +2 -2
- package/dist/core.d.ts +7 -7
- package/dist/core.js +2 -2
- package/dist/{errors-gxmvF7f3.d.ts → errors-qb-KQedL.d.ts} +1 -1
- package/dist/{index-Ce5iKhZA.d.ts → index-BTtb7z_Z.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +4 -4
- package/dist/{interactive-controller-fX2Jcd-i.js → interactive-controller-ZDjGUews.js} +30 -4
- package/dist/{lines-D7JSxj4C.d.ts → lines-hGikgOYt.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{managed-process-Doreyng1.d.ts → managed-process-BTtnOAVB.d.ts} +1 -1
- package/dist/{preview-Dm1fetSw.d.ts → preview-BVrDOWCU.d.ts} +3 -3
- package/dist/{public-templates-2xo4Olua.d.ts → public-templates-CnINQYS2.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-cRwtd-Y1.d.ts → sandbox-DgWGK-36.d.ts} +4 -3
- package/dist/{sandbox-BQhR6t3-.js → sandbox-_4VbWrU1.js} +18 -4
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Dcy6dgwL.js → tangle-CpuSiEji.js} +1 -1
- package/dist/{types-D-KfVFtn.d.ts → types-Cc1HvwGo.d.ts} +8 -0
- package/package.json +3 -3
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, Eo as BackendType, O as CodeLanguage, d as BackendConfig, da as SessionListOptions, k as CodeResultPart, la as SessionInfo, oi as SandboxFleetParent } from "../types-
|
|
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-DgWGK-36.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-Cc1HvwGo.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BVR0FsHf.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BVrDOWCU.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
|
-
import {
|
|
2
|
+
import { k as assertCurrentBackendType } from "../interactive-controller-ZDjGUews.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-mFgWw3cn.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-_4VbWrU1.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-BVrDOWCU.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-Cc1HvwGo.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
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, _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, hi as SandboxFleetTraceOptions, l as AttachSandboxFleetMachineOptions, ni as SandboxFleetMachineSpec, oi as SandboxFleetParent, or as PromptOptions, 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-
|
|
1
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-DgWGK-36.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, hi as SandboxFleetTraceOptions, l as AttachSandboxFleetMachineOptions, ni as SandboxFleetMachineSpec, oi as SandboxFleetParent, or as PromptOptions, 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-Cc1HvwGo.js";
|
|
3
3
|
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
|
-
import { L as LinesClient } from "./lines-
|
|
5
|
-
import { h as SandboxError } from "./errors-
|
|
6
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
4
|
+
import { L as LinesClient } from "./lines-hGikgOYt.js";
|
|
5
|
+
import { h as SandboxError } from "./errors-qb-KQedL.js";
|
|
6
|
+
import { a as PublicTemplatesClient } from "./public-templates-CnINQYS2.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as foldModelRoutingFields, D as parseSSEStream, F as withProfileHarness, I as withoutCreateOnlyModelFields, M as normalizeRuntimeBackendConfig, O as applyRequestedModel, T as encodePromptForWire, c as requestInteractiveSessionToken, k as assertCurrentBackendType } from "./interactive-controller-ZDjGUews.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-_4VbWrU1.js";
|
|
6
6
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
7
7
|
import { LinesClient } from "./lines.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { 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-
|
|
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, y as StateError } from "./errors-
|
|
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 { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
7
|
-
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-DgWGK-36.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-Cc1HvwGo.js";
|
|
3
|
+
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-hGikgOYt.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, y as StateError } from "./errors-qb-KQedL.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-BVR0FsHf.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CnINQYS2.js";
|
|
7
|
+
import { t as ManagedProcessClient } from "./managed-process-BTtnOAVB.js";
|
|
8
8
|
|
|
9
9
|
//#region src/core.d.ts
|
|
10
10
|
/** 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-mFgWw3cn.js";
|
|
3
|
+
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-_4VbWrU1.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
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";
|
|
@@ -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-DgWGK-36.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Sn as HttpClient } from "./types-Cc1HvwGo.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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 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-
|
|
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-DgWGK-36.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-Cc1HvwGo.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
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.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-
|
|
7
|
-
import { C as ValidationError, S as TimeoutError, _ 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, 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, x as StreamInterruptionReason, y as StateError } from "./errors-
|
|
8
|
-
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-
|
|
9
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
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-hGikgOYt.js";
|
|
7
|
+
import { C as ValidationError, S as TimeoutError, _ 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, 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, x as StreamInterruptionReason, y as StateError } from "./errors-qb-KQedL.js";
|
|
8
|
+
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-BVR0FsHf.js";
|
|
9
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CnINQYS2.js";
|
|
10
10
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DfA_usrZ.js";
|
|
11
11
|
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-CWUW8pqr.js";
|
|
12
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
13
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
14
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
12
|
+
import { t as ManagedProcessClient } from "./managed-process-BTtnOAVB.js";
|
|
13
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-D-N1ksND.js";
|
|
14
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-BTtb7z_Z.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
17
17
|
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";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as deriveAgentRunOutcome, D as parseSSEStream, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as deriveAgentResultOutcome } from "./interactive-controller-ZDjGUews.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-mFgWw3cn.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-_4VbWrU1.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
8
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DZCyTGdn.js";
|
|
10
10
|
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";
|
|
11
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { s as TangleSandboxClient } from "./tangle-CpuSiEji.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
//#region src/confidential.ts
|
|
@@ -1049,6 +1049,21 @@ function validateAcceptedDispatchRunRef(raw, expected, sandboxId, sessionId, exe
|
|
|
1049
1049
|
return accepted;
|
|
1050
1050
|
}
|
|
1051
1051
|
//#endregion
|
|
1052
|
+
//#region src/lib/runtime-env.ts
|
|
1053
|
+
/**
|
|
1054
|
+
* True inside a Cloudflare Worker. Under `nodejs_compat` workerd sets
|
|
1055
|
+
* `process.versions.node`, but it ships `node:http2` as a stub whose `connect()`
|
|
1056
|
+
* throws "The http2.connect method is not implemented", so `process.versions`
|
|
1057
|
+
* cannot tell a Worker from Node. The user agent can.
|
|
1058
|
+
*/
|
|
1059
|
+
function isCloudflareWorker() {
|
|
1060
|
+
return globalThis.navigator?.userAgent?.startsWith("Cloudflare-Workers") === true;
|
|
1061
|
+
}
|
|
1062
|
+
/** True where `node:http2` can open a session: Node, but not a Worker. */
|
|
1063
|
+
function canUseNodeHttp2() {
|
|
1064
|
+
return typeof process !== "undefined" && typeof process.versions?.node === "string" && !isCloudflareWorker();
|
|
1065
|
+
}
|
|
1066
|
+
//#endregion
|
|
1052
1067
|
//#region src/lib/session-id.ts
|
|
1053
1068
|
const SESSION_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
1054
1069
|
function assertValidSessionId(value) {
|
|
@@ -1100,6 +1115,17 @@ function resolveTraceId(requested) {
|
|
|
1100
1115
|
if (!isTraceId(requested)) throw new ValidationError("traceId must be 8-200 characters of letters, digits, '_' or '-'", { traceId: "Invalid trace id" });
|
|
1101
1116
|
return requested;
|
|
1102
1117
|
}
|
|
1118
|
+
/**
|
|
1119
|
+
* The request headers that join one runtime call (exec, read, write, search)
|
|
1120
|
+
* to its turn: the caller's trace id as `x-tangle-trace-id`, validated like a
|
|
1121
|
+
* prompt's. A call without one sends none, so the Sandbox API mints its own as
|
|
1122
|
+
* before. On the API path the Sandbox API adopts it and the orchestrator logs
|
|
1123
|
+
* it; on the direct path the sidecar logs it, so both lanes join the turn.
|
|
1124
|
+
*/
|
|
1125
|
+
function traceHeaders(traceId) {
|
|
1126
|
+
if (traceId === void 0) return void 0;
|
|
1127
|
+
return { [TRACE_ID_HEADER]: resolveTraceId(traceId) };
|
|
1128
|
+
}
|
|
1103
1129
|
//#endregion
|
|
1104
1130
|
//#region src/runtime-api.ts
|
|
1105
1131
|
/** A 503 the runtime answers before any work starts; the request may be resent. */
|
|
@@ -1320,6 +1346,7 @@ var SandboxRuntimeApi = class {
|
|
|
1320
1346
|
await this.transport.ensureRunning();
|
|
1321
1347
|
const payload = await this.json(`/files/write${query ? `?${query}` : ""}`, {
|
|
1322
1348
|
method: "POST",
|
|
1349
|
+
headers: traceHeaders(options.traceId),
|
|
1323
1350
|
body: JSON.stringify({
|
|
1324
1351
|
path,
|
|
1325
1352
|
content,
|
|
@@ -2060,9 +2087,8 @@ async function resolveDialCredential(token, authFormat, signal) {
|
|
|
2060
2087
|
* still safe: the upgrade is refused, and the caller dials with a scoped token.
|
|
2061
2088
|
*/
|
|
2062
2089
|
function terminalUpgradeHeadersSupported() {
|
|
2063
|
-
|
|
2064
|
-
if (
|
|
2065
|
-
if (runtime.navigator?.userAgent?.startsWith("Cloudflare-Workers")) return false;
|
|
2090
|
+
if (typeof globalThis.process?.versions?.node !== "string") return false;
|
|
2091
|
+
if (isCloudflareWorker()) return false;
|
|
2066
2092
|
return typeof globalThis.WebSocket === "function";
|
|
2067
2093
|
}
|
|
2068
2094
|
function buildUpgradeRequest(options, credential, identity, traceId) {
|
|
@@ -2714,4 +2740,4 @@ var BrowserInteractiveSessionController = class extends InteractiveSessionContro
|
|
|
2714
2740
|
}
|
|
2715
2741
|
};
|
|
2716
2742
|
//#endregion
|
|
2717
|
-
export {
|
|
2743
|
+
export { foldModelRoutingFields as A, deriveAgentRunOutcome as B, resolveDispatchRunIdentity as C, parseSSEStream as D, encodeTextForWire as E, withProfileHarness as F, withoutCreateOnlyModelFields as I, withoutRuntimeSecrets as L, normalizeRuntimeBackendConfig as M, requestedPublicProfileDigest as N, applyRequestedModel as O, requestedSecretProfilePublicDigest as P, createAgentRunOutcomeTracker as R, canUseNodeHttp2 as S, encodePromptForWire as T, projectAgentTerminalRecord as V, mintTraceId as _, terminalUpgradeHeadersSupported as a, appendSessionIdQuery as b, requestInteractiveSessionToken as c, isRetryableCredentialRefusal as d, normalizeSessionInfo as f, isTraceId as g, TRACE_ID_HEADER as h, TerminalStreamError as i, mergeRuntimeBackendConfig as j, assertCurrentBackendType as k, requestScopedToken as l, waitForRetryAfter as m, InteractiveSessionController as n, TERMINAL_WS_ECHO_SUBPROTOCOL as o, sessionMessageRequestBody as p, TerminalStream as r, assertScopedTokenActive as s, BrowserInteractiveSessionController as t, SandboxRuntimeApi as u, resolveTraceId as v, validateAcceptedDispatchRunRef as w, sessionHeaders as x, traceHeaders as y, deriveAgentResultOutcome as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { B as CreateSandboxOptions, d as BackendConfig } from "./types-Cc1HvwGo.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-hGikgOYt.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-Cc1HvwGo.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-DgWGK-36.js";
|
|
2
|
+
import { Jn as PreviewLinkInfo, _t as EnsureDevServerOptions } from "./types-Cc1HvwGo.js";
|
|
3
|
+
import { i as Sandbox } from "./client-BVR0FsHf.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sn as HttpClient, gr as PublishPublicTemplateVersionOptions, hr as PublishPublicTemplateOptions, mr as PublicTemplateVersionInfo, pr as PublicTemplateInfo } from "./types-
|
|
2
|
-
import { h as SandboxError } from "./errors-
|
|
1
|
+
import { Sn as HttpClient, gr as PublishPublicTemplateVersionOptions, hr as PublishPublicTemplateOptions, mr as PublicTemplateVersionInfo, pr as PublicTemplateInfo } from "./types-Cc1HvwGo.js";
|
|
2
|
+
import { h as SandboxError } from "./errors-qb-KQedL.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CnINQYS2.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-Cc1HvwGo.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
4
|
import { t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
|
|
5
|
-
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-
|
|
6
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
5
|
+
import { 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-qb-KQedL.js";
|
|
6
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-D-N1ksND.js";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/chunked-upload.d.ts
|
|
9
9
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as deriveAgentRunOutcome, R as createAgentRunOutcomeTracker, V as projectAgentTerminalRecord, t as BrowserInteractiveSessionController, u as SandboxRuntimeApi, z as deriveAgentResultOutcome } from "./interactive-controller-ZDjGUews.js";
|
|
2
2
|
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";
|
|
3
3
|
import { f as combineAbortSignals, n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
4
4
|
import { s as uploadChunked } from "./chunked-upload-ClCKGr59.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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, _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-
|
|
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-Cc1HvwGo.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
5
|
import { r as InteractiveAttachRequest } from "./interactive-controller-BSWoA0YE.js";
|
|
6
|
-
import { z as SandboxLines } from "./lines-
|
|
7
|
-
import { h as SandboxError } from "./errors-
|
|
6
|
+
import { z as SandboxLines } from "./lines-hGikgOYt.js";
|
|
7
|
+
import { h as SandboxError } from "./errors-qb-KQedL.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
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";
|
|
10
10
|
|
|
@@ -1171,6 +1171,7 @@ declare class SandboxInstance {
|
|
|
1171
1171
|
*/
|
|
1172
1172
|
read(path: string, options?: {
|
|
1173
1173
|
sessionId?: string;
|
|
1174
|
+
traceId?: string;
|
|
1174
1175
|
}): Promise<string>;
|
|
1175
1176
|
/**
|
|
1176
1177
|
* Write content to a file in the sandbox.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as resolveDispatchRunIdentity, D as parseSSEStream, E as encodeTextForWire, L as withoutRuntimeSecrets, M as normalizeRuntimeBackendConfig, N as requestedPublicProfileDigest, O as applyRequestedModel, P as requestedSecretProfilePublicDigest, R as createAgentRunOutcomeTracker, S as canUseNodeHttp2, T as encodePromptForWire, _ as mintTraceId, a as terminalUpgradeHeadersSupported, b as appendSessionIdQuery, d as isRetryableCredentialRefusal, f as normalizeSessionInfo, g as isTraceId, h as TRACE_ID_HEADER, i as TerminalStreamError, j as mergeRuntimeBackendConfig, k as assertCurrentBackendType, l as requestScopedToken, m as waitForRetryAfter, n as InteractiveSessionController, p as sessionMessageRequestBody, r as TerminalStream, s as assertScopedTokenActive, u as SandboxRuntimeApi, v as resolveTraceId, w as validateAcceptedDispatchRunRef, x as sessionHeaders, y as traceHeaders, z as deriveAgentResultOutcome } from "./interactive-controller-ZDjGUews.js";
|
|
3
3
|
import { C as readResponseJson, S as parseResponseError, _ as StateError, b as ValidationError, d as NotFoundError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as StreamInterruptedError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
4
|
import { d as awaitWithAbort, f as combineAbortSignals, g as interactiveSessionStatusResponseSchema, h as interactiveSessionControlValidationResponseSchema, l as createInteractiveControlHolderId, m as interactiveSessionControlReleaseResponseSchema, p as interactiveSessionControlClaimResponseSchema } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
5
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
@@ -5206,7 +5206,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5206
5206
|
* The command inherits the sandbox runtime environment.
|
|
5207
5207
|
*/
|
|
5208
5208
|
async exec(command, options) {
|
|
5209
|
-
const headers =
|
|
5209
|
+
const headers = callHeaders(options);
|
|
5210
5210
|
await this.ensureRunning(options?.signal);
|
|
5211
5211
|
const timeoutMs = options?.timeoutMs ?? EXEC_DEFAULT_TIMEOUT_MS;
|
|
5212
5212
|
if (!Number.isInteger(timeoutMs) || timeoutMs < EXEC_MIN_TIMEOUT_MS || timeoutMs > EXEC_MAX_TIMEOUT_MS) throw new ValidationError(`exec timeoutMs must be an integer between ${EXEC_MIN_TIMEOUT_MS} and ${EXEC_MAX_TIMEOUT_MS}`);
|
|
@@ -5289,7 +5289,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5289
5289
|
* ```
|
|
5290
5290
|
*/
|
|
5291
5291
|
async read(path, options) {
|
|
5292
|
-
const headers =
|
|
5292
|
+
const headers = callHeaders(options);
|
|
5293
5293
|
await this.ensureRunning();
|
|
5294
5294
|
const response = await this.runtimeFetch("/files/read", {
|
|
5295
5295
|
method: "POST",
|
|
@@ -5325,6 +5325,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
5325
5325
|
const query = params.toString();
|
|
5326
5326
|
const data = await readResponseJson(await this.runtimeFetch(`/files/write${query ? `?${query}` : ""}`, {
|
|
5327
5327
|
method: "POST",
|
|
5328
|
+
headers: callHeaders({ traceId: options?.traceId }),
|
|
5328
5329
|
body: JSON.stringify({
|
|
5329
5330
|
path,
|
|
5330
5331
|
content,
|
|
@@ -6243,6 +6244,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
6243
6244
|
await this.ensureRunning();
|
|
6244
6245
|
const matches = (await readResponseJson(await this.runtimeFetch("/search", {
|
|
6245
6246
|
method: "POST",
|
|
6247
|
+
headers: callHeaders({ traceId: options?.traceId }),
|
|
6246
6248
|
body: JSON.stringify({
|
|
6247
6249
|
pattern,
|
|
6248
6250
|
glob: options?.glob,
|
|
@@ -9911,7 +9913,7 @@ var DirectRuntimeHttpClient = class {
|
|
|
9911
9913
|
path
|
|
9912
9914
|
};
|
|
9913
9915
|
if (!route) throw new NetworkError("Direct runtime route was withdrawn");
|
|
9914
|
-
if (route.useExec &&
|
|
9916
|
+
if (route.useExec && canUseNodeHttp2()) {
|
|
9915
9917
|
const { fetchDirectHttp2 } = await import("./direct-http2-D8mo1ePx.js");
|
|
9916
9918
|
return fetchDirectHttp2(route.url, request, timing);
|
|
9917
9919
|
}
|
|
@@ -9957,6 +9959,18 @@ async function isRefusedBearer(response) {
|
|
|
9957
9959
|
return false;
|
|
9958
9960
|
}
|
|
9959
9961
|
}
|
|
9962
|
+
/**
|
|
9963
|
+
* Headers for one exec, read, write or search call: the task session it runs in
|
|
9964
|
+
* and the turn trace it belongs to. Undefined when it names neither.
|
|
9965
|
+
*/
|
|
9966
|
+
function callHeaders(options) {
|
|
9967
|
+
const session = sessionHeaders(options?.sessionId);
|
|
9968
|
+
const trace = traceHeaders(options?.traceId);
|
|
9969
|
+
return session || trace ? {
|
|
9970
|
+
...session,
|
|
9971
|
+
...trace
|
|
9972
|
+
} : void 0;
|
|
9973
|
+
}
|
|
9960
9974
|
function quoteForShell(value) {
|
|
9961
9975
|
if (value.includes("\0")) throw new Error("Shell argument contains NUL byte");
|
|
9962
9976
|
return `'${value.replace(/'/g, "'\\''")}'`;
|
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-BTtb7z_Z.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-CpuSiEji.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-_4VbWrU1.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
|
/**
|
|
@@ -2899,6 +2899,10 @@ interface ExecOptions {
|
|
|
2899
2899
|
* give each task its own workspace subdirectory; no-op for drivers
|
|
2900
2900
|
* where the workspace is already the container root. */
|
|
2901
2901
|
sessionId?: string;
|
|
2902
|
+
/** Trace id of the turn this call belongs to, sent as `x-tangle-trace-id`
|
|
2903
|
+
* on the API path and the direct path, so an edge tool call joins the
|
|
2904
|
+
* turn's trace. See `PromptOptions.traceId`. */
|
|
2905
|
+
traceId?: string;
|
|
2902
2906
|
}
|
|
2903
2907
|
/**
|
|
2904
2908
|
* Options for code search.
|
|
@@ -2922,6 +2926,8 @@ interface SearchOptions {
|
|
|
2922
2926
|
ignoreCase?: boolean;
|
|
2923
2927
|
/** Include line context (lines before/after match) */
|
|
2924
2928
|
context?: number;
|
|
2929
|
+
/** Trace id of the turn this call belongs to; see {@link ExecOptions.traceId}. */
|
|
2930
|
+
traceId?: string;
|
|
2925
2931
|
}
|
|
2926
2932
|
/**
|
|
2927
2933
|
* A single search match from ripgrep.
|
|
@@ -7608,6 +7614,8 @@ interface WriteFileOptions {
|
|
|
7608
7614
|
encoding?: "utf8" | "base64";
|
|
7609
7615
|
/** Agent session whose workspace and change history receive the write. */
|
|
7610
7616
|
sessionId?: string;
|
|
7617
|
+
/** Trace id of the turn this call belongs to; see {@link ExecOptions.traceId}. */
|
|
7618
|
+
traceId?: string;
|
|
7611
7619
|
/**
|
|
7612
7620
|
* Only write when the current content SHA-256 matches this value.
|
|
7613
7621
|
* Use the hash returned by a prior {@link FileWriteResult} or
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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": [
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"@tangle-network/sse-core": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "8339904fa36f5195b928486f6130da1e07757289",
|
|
172
|
+
"mergedAt": "2026-10-19T03:30:55-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|