@tangle-network/sandbox 0.63.2 → 0.63.3
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-Duf0w0lw.d.ts → agent-run-outcome-NGVlqzE7.d.ts} +1 -1
- package/dist/{client-dJg_uHf3.d.ts → client-8Bjza8AJ.d.ts} +5 -5
- package/dist/{client-CZYJlwB1.js → client-DpHeK8eo.js} +2 -2
- package/dist/core.d.ts +7 -7
- package/dist/core.js +2 -2
- package/dist/{errors-DmL4mj-O.d.ts → errors-Dv5aUoWZ.d.ts} +1 -1
- package/dist/{index-C0-GuuFi.d.ts → index-CqLHOYX0.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +4 -4
- package/dist/{interactive-controller-B8W1CCXk.js → interactive-controller-C0bJnKLu.js} +4 -1
- package/dist/{lines-C2K6fL28.d.ts → lines-CR8IQQUF.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{managed-process-YxCWCVid.d.ts → managed-process-BmE85APA.d.ts} +1 -1
- package/dist/{preview-CkFRFwKo.d.ts → preview-BJS9YgwI.d.ts} +3 -3
- package/dist/{public-templates-DYOX_nbQ.d.ts → public-templates-DZ5wsgul.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-CiMl1h2b.d.ts → sandbox-3Nh_iGm2.d.ts} +3 -3
- package/dist/{sandbox-BZ7bKjSE.js → sandbox-FmewPLL0.js} +21 -4
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BW_P-wOF.js → tangle-DhkMum3K.js} +1 -1
- package/dist/{types-DIAzYvBu.d.ts → types-DrkzZH4E.d.ts} +44 -0
- package/package.json +7 -7
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, O as CodeLanguage, ci as SandboxFleetParent, d as BackendConfig, fa as SessionInfo, k as CodeResultPart, ko as BackendType, ma as SessionListOptions } 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-3Nh_iGm2.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, ci as SandboxFleetParent, d as BackendConfig, fa as SessionInfo, k as CodeResultPart, ko as BackendType, ma as SessionListOptions } from "../types-DrkzZH4E.js";
|
|
3
|
+
import { i as Sandbox } from "../client-8Bjza8AJ.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BJS9YgwI.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 { A as assertCurrentBackendType } from "../interactive-controller-
|
|
2
|
+
import { A as assertCurrentBackendType } from "../interactive-controller-C0bJnKLu.js";
|
|
3
3
|
import { d as NotFoundError, v as StateError, x as ValidationError } from "../errors-Bfhg_Zc6.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-DpHeK8eo.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-FmewPLL0.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-BJS9YgwI.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 { Ur as SandboxEvent, a as AgentQuestionRequest, ft as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-
|
|
1
|
+
import { Ur as SandboxEvent, a as AgentQuestionRequest, ft as DurablePlanSnapshot, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation } from "./types-DrkzZH4E.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 { $r as SandboxFleetInfo, $t as FleetRunOptions, An as IntelligenceReportWindow, B as CreateSandboxFleetWithCoordinatorOptions, Ci as SandboxIdentity, Ct as ExecResult, Dn as IntelligenceReportBudget, En as IntelligenceReport, Fn as ListSandboxOptions, Gt as FleetDriveTurnOutcome, Hr as SandboxEnvironment, Ht as FleetDispatchResultBuffer, I as CreateIntelligenceReportOptions, Ir as SandboxConfig, J as DeleteMatchingSandboxesResult, Jr as SandboxFleetCostEstimate, Jt as FleetExecDispatchResult, K as DeleteMatchingSandboxesFilter, Kr as SandboxFleetArtifact, Kt as FleetDriveTurnRequest, L as CreateRequestOptions, Lt as FleetAgentId, N as ConversationTurnOptions, Na as SubscriptionInfo, Oa as SshKeysManager, On as IntelligenceReportCompareTo, P as ConversationTurnResult, Pi as SandboxRunGeneration, Pn as ListSandboxFleetOptions, Qt as FleetRunEvent, R as CreateSandboxFleetOptions, Si as SandboxFleetWorkspaceSnapshotResult, Sr as ReconcileSandboxFleetsResult, St as ExecOptions, Ut as FleetDispatchResultBufferOptions, V as CreateSandboxOptions, Vt as FleetDispatchCancelResult, Wa as TokenRefreshHandler, Wr as SandboxFleetAgent, Wt as FleetDispatchStreamOptions, Xr as SandboxFleetDispatchResponse, Xt as FleetPromptDispatchOptions, Yt as FleetMachineId, Za as UsageInfo, Zr as SandboxFleetDriverCapability, Zt as FleetPromptDispatchResult, _i as SandboxFleetTraceOptions, ai as SandboxFleetManifest, b as BatchRunRequest, bi as SandboxFleetWorkspaceReconcileResult, br as ReapExpiredSandboxFleetsResult, ci as SandboxFleetParent, cr as PromptOptions, d as BackendConfig, fi as SandboxFleetSpend, ii as SandboxFleetMachineSpec, io as SdkTimingHook, l as AttachSandboxFleetMachineOptions, lr as PromptResult, mi as SandboxFleetTraceBundle, na as SecretsManager, pi as SandboxFleetToken, q as DeleteMatchingSandboxesOptions, qr as SandboxFleetArtifactSpec, qt as FleetExecDispatchOptions, ri as SandboxFleetMachineRecord, si as SandboxFleetOperationsSummary, sr as PromptInputPart, ui as SandboxFleetPolicy, v as BatchResult, vi as SandboxFleetUsage, wi as SandboxInfo, wn as HttpClient, wo as BatchEvent, xi as SandboxFleetWorkspaceRestoreResult, xr as ReconcileSandboxFleetsOptions, y as BatchRunOptions, yr as ReapExpiredSandboxFleetsOptions, z as CreateSandboxFleetTokenOptions, zi as SandboxShapesInfo, zt as FleetAgentResult } from "./types-
|
|
1
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-3Nh_iGm2.js";
|
|
2
|
+
import { $r as SandboxFleetInfo, $t as FleetRunOptions, An as IntelligenceReportWindow, B as CreateSandboxFleetWithCoordinatorOptions, Ci as SandboxIdentity, Ct as ExecResult, Dn as IntelligenceReportBudget, En as IntelligenceReport, Fn as ListSandboxOptions, Gt as FleetDriveTurnOutcome, Hr as SandboxEnvironment, Ht as FleetDispatchResultBuffer, I as CreateIntelligenceReportOptions, Ir as SandboxConfig, J as DeleteMatchingSandboxesResult, Jr as SandboxFleetCostEstimate, Jt as FleetExecDispatchResult, K as DeleteMatchingSandboxesFilter, Kr as SandboxFleetArtifact, Kt as FleetDriveTurnRequest, L as CreateRequestOptions, Lt as FleetAgentId, N as ConversationTurnOptions, Na as SubscriptionInfo, Oa as SshKeysManager, On as IntelligenceReportCompareTo, P as ConversationTurnResult, Pi as SandboxRunGeneration, Pn as ListSandboxFleetOptions, Qt as FleetRunEvent, R as CreateSandboxFleetOptions, Si as SandboxFleetWorkspaceSnapshotResult, Sr as ReconcileSandboxFleetsResult, St as ExecOptions, Ut as FleetDispatchResultBufferOptions, V as CreateSandboxOptions, Vt as FleetDispatchCancelResult, Wa as TokenRefreshHandler, Wr as SandboxFleetAgent, Wt as FleetDispatchStreamOptions, Xr as SandboxFleetDispatchResponse, Xt as FleetPromptDispatchOptions, Yt as FleetMachineId, Za as UsageInfo, Zr as SandboxFleetDriverCapability, Zt as FleetPromptDispatchResult, _i as SandboxFleetTraceOptions, ai as SandboxFleetManifest, b as BatchRunRequest, bi as SandboxFleetWorkspaceReconcileResult, br as ReapExpiredSandboxFleetsResult, ci as SandboxFleetParent, cr as PromptOptions, d as BackendConfig, fi as SandboxFleetSpend, ii as SandboxFleetMachineSpec, io as SdkTimingHook, l as AttachSandboxFleetMachineOptions, lr as PromptResult, mi as SandboxFleetTraceBundle, na as SecretsManager, pi as SandboxFleetToken, q as DeleteMatchingSandboxesOptions, qr as SandboxFleetArtifactSpec, qt as FleetExecDispatchOptions, ri as SandboxFleetMachineRecord, si as SandboxFleetOperationsSummary, sr as PromptInputPart, ui as SandboxFleetPolicy, v as BatchResult, vi as SandboxFleetUsage, wi as SandboxInfo, wn as HttpClient, wo as BatchEvent, xi as SandboxFleetWorkspaceRestoreResult, xr as ReconcileSandboxFleetsOptions, y as BatchRunOptions, yr as ReapExpiredSandboxFleetsOptions, z as CreateSandboxFleetTokenOptions, zi as SandboxShapesInfo, zt as FleetAgentResult } from "./types-DrkzZH4E.js";
|
|
3
3
|
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
|
-
import { L as LinesClient } from "./lines-
|
|
5
|
-
import { g as SandboxError } from "./errors-
|
|
6
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
4
|
+
import { L as LinesClient } from "./lines-CR8IQQUF.js";
|
|
5
|
+
import { g as SandboxError } from "./errors-Dv5aUoWZ.js";
|
|
6
|
+
import { a as PublicTemplatesClient } from "./public-templates-DZ5wsgul.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 assertCurrentBackendType, E as encodePromptForWire, I as withProfileHarness, L as withoutCreateOnlyModelFields, N as normalizeRuntimeBackendConfig, O as parseSSEStream, c as requestInteractiveSessionToken, j as foldModelRoutingFields, k as applyRequestedModel } from "./interactive-controller-
|
|
2
|
+
import { A as assertCurrentBackendType, E as encodePromptForWire, I as withProfileHarness, L as withoutCreateOnlyModelFields, N as normalizeRuntimeBackendConfig, O as parseSSEStream, c as requestInteractiveSessionToken, j as foldModelRoutingFields, k as applyRequestedModel } from "./interactive-controller-C0bJnKLu.js";
|
|
3
3
|
import { C as parseResponseError, S as parseErrorResponse, _ as ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, m as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, w as readResponseJson, x as ValidationError } from "./errors-Bfhg_Zc6.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as normalizeSandboxShape, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, N as exportTraceBundle, O as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, j as rewrapResponse, k as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as isRetryableProfileFileMaterializeFailure } from "./sandbox-
|
|
5
|
+
import { A as normalizeSandboxShape, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, N as exportTraceBundle, O as validateDeferredProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, j as rewrapResponse, k as normalizeConnection, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof, w as isRetryableProfileFileMaterializeFailure } from "./sandbox-FmewPLL0.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 { Bi as SandboxStatus, Bn as ManagedProcessResumeOptions, Ct as ExecResult, Gn as NetworkConfig, Hn as ManagedProcessState, Ir as SandboxConfig, Ln as ManagedProcessJobs, N as ConversationTurnOptions, P as ConversationTurnResult, Qn as PreviewLinkWaitOptions, Rn as ManagedProcessOptions, St as ExecOptions, V as CreateSandboxOptions, Vn as ManagedProcessSpec, Xn as PreviewLinkInfo, Zn as PreviewLinkManager, co as SandboxEnvRecoveryView, ga as SessionMessageAdmission, so as SandboxEnvRecovery, sr as PromptInputPart, wi as SandboxInfo, zn as ManagedProcessRecord } 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 TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } 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-3Nh_iGm2.js";
|
|
2
|
+
import { Bi as SandboxStatus, Bn as ManagedProcessResumeOptions, Ct as ExecResult, Gn as NetworkConfig, Hn as ManagedProcessState, Ir as SandboxConfig, Ln as ManagedProcessJobs, N as ConversationTurnOptions, P as ConversationTurnResult, Qn as PreviewLinkWaitOptions, Rn as ManagedProcessOptions, St as ExecOptions, V as CreateSandboxOptions, Vn as ManagedProcessSpec, Xn as PreviewLinkInfo, Zn as PreviewLinkManager, co as SandboxEnvRecoveryView, ga as SessionMessageAdmission, so as SandboxEnvRecovery, sr as PromptInputPart, wi as SandboxInfo, zn as ManagedProcessRecord } from "./types-DrkzZH4E.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-CR8IQQUF.js";
|
|
4
|
+
import { C as TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } from "./errors-Dv5aUoWZ.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-8Bjza8AJ.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DZ5wsgul.js";
|
|
7
|
+
import { t as ManagedProcessClient } from "./managed-process-BmE85APA.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 ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError } from "./errors-Bfhg_Zc6.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-DpHeK8eo.js";
|
|
3
|
+
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-FmewPLL0.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 { V as CreateSandboxOptions, wn as HttpClient } from "./types-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-3Nh_iGm2.js";
|
|
2
|
+
import { V as CreateSandboxOptions, wn as HttpClient } from "./types-DrkzZH4E.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 DispatchedSession, $a as WaitForRolloutOptions, $i as SearchOptions, $n as Process, $r as SandboxFleetInfo, $t as FleetRunOptions, A as CommitTaskSessionOptions, Aa as StartupOperation, Ai as SandboxPortPreviewLink, An as IntelligenceReportWindow, Ao as parseBackendType, Ar as RolloutStartResult, At as FileSystem, B as CreateSandboxFleetWithCoordinatorOptions, Ba as TeeAttestationReport, Bi as SandboxStatus, Bn as ManagedProcessResumeOptions, Br as SandboxDeleteOutcome, Bt as FleetAgentRunStatus, C as BranchOptions, Ca as SnapshotInfo, Ci as SandboxIdentity, Cn as HostAgentRuntimeBackend, Co as BatchBackendStats, Cr as RenameOptions, Ct as ExecResult, Da as SnapshotResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, Do as BatchTaskUsage, Dr as RolloutChildResult, Dt as FileReadError, Ea as SnapshotRemoteSync, Ei as SandboxOperationInfo, En as IntelligenceReport, Eo as BatchSidecarGroup, Er as Rollout, Et as FileReadBatchResult, F as CreateGpuLeaseOptions, Fa as TaskSessionCommitResult, Fi as SandboxRuntimeCapabilities, Fn as ListSandboxOptions, Fr as SSHCredentials, Ft as FileUsageResult, G as DeleteMatchingSandboxResult, Ga as TokenUsage, Gi as SandboxTerminalRequestOptions, Gn as NetworkConfig, Gr as SandboxFleetAgentSpec, Gt as FleetDriveTurnOutcome, H as CreateSessionOptions, Ha as TeePublicKey, Hi as SandboxTerminalCreateOptions, Hn as ManagedProcessState, Hr as SandboxEnvironment, Ht as FleetDispatchResultBuffer, I as CreateIntelligenceReportOptions, Ia as TaskSessionFileChange, Ii as SandboxRuntimeHealth, In as MAX_EGRESS_DENIALS_LIMIT, Ir as SandboxConfig, It as FileWriteResult, J as DeleteMatchingSandboxesResult, Ja as UpdateUserOptions, Ji as SandboxTraceEvent, Jn as PermissionLevel, Jr as SandboxFleetCostEstimate, K as DeleteMatchingSandboxesFilter, Ka as TurnBackendConfig, Ki as SandboxTerminals, Kn as NetworkManager, Kr as SandboxFleetArtifact, Kt as FleetDriveTurnRequest, L as CreateRequestOptions, La as TaskSessionInfo, Li as SandboxShape, Ln as ManagedProcessJobs, Lr as SandboxConnection, Lt as FleetAgentId, M as CompletedTurnResult, Ma as StorageConfig, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, Mr as RolloutTurnPart, Mt as FileTreeOptions, N as ConversationTurnOptions, Na as SubscriptionInfo, Ni as SandboxResources, Nn as ListOptions, Nr as RouterRoutingOptions, Nt as FileTreeResult, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Oo as ALL_BACKEND_TYPES, Or as RolloutOptions, Ot as FileReadResult, P as ConversationTurnResult, Pa as TaskSessionChanges, Pi as SandboxRunGeneration, Pn as ListSandboxFleetOptions, Pr as SSHCommandDescriptor, Pt as FileUsageOptions, Q as DispatchPromptOptions, Qa as WaitForOptions, Qi as SearchMatch, Qn as PreviewLinkWaitOptions, Qr as SandboxFleetDriverTimings, Qt as FleetRunEvent, R as CreateSandboxFleetOptions, Ra as TaskSessionProfile, Ri as SandboxShapePreset, Rn as ManagedProcessOptions, Rr as SandboxDeleteAcknowledgement, Rt as FleetAgentPlacement, S as BatchTaskResult, Sa as SnapshotIdempotency, Si as SandboxFleetWorkspaceSnapshotResult, Sn as HostAgentDriverConfig, So as PublicBatchRunRequest, Sr as ReconcileSandboxFleetsResult, St as ExecOptions, T as ChunkedUploadResult, Ti as SandboxIntelligenceEnvelope, Tn as InstalledTool, To as BatchEventDataMap, Tt as FileReadBatchOptions, U as CreateTaskSessionOptions, Ua as TeePublicKeyResponse, Ui as SandboxTerminalInfo, Un as McpServerConfig, Ur as SandboxEvent, Ut as FleetDispatchResultBufferOptions, V as CreateSandboxOptions, Va as TeeAttestationResponse, Vi as SandboxTerminalAttachOptions, Vn as ManagedProcessSpec, Vr as SandboxEgressUsage, Vt as FleetDispatchCancelResult, W as DeleteMatchingSandboxOutcome, Wa as TokenRefreshHandler, Wi as SandboxTerminalManager, Wn as MkdirOptions, Wr as SandboxFleetAgent, Wt as FleetDispatchStreamOptions, X as DevServerInfo, Xa as UploadProgress, Xi as SandboxTraceOptions, Xn as PreviewLinkInfo, Xr as SandboxFleetDispatchResponse, Xt as FleetPromptDispatchOptions, Y as DeleteOptions, Ya as UploadOptions, Yi as SandboxTraceExport, Yn as PermissionsManager, Yr as SandboxFleetDispatchFailureClass, Yt as FleetMachineId, Z as DirectoryPermission, Za as UsageInfo, Zi as SandboxUser, Zn as PreviewLinkManager, Zr as SandboxFleetDriverCapability, Zt as FleetPromptDispatchResult, _ as BatchBackend, _a as SessionMessageInputPart, _i as SandboxFleetTraceOptions, _n as GpuLeaseProviderState, _o as RawEvidenceNativeFile, _r as PublishPublicTemplateOptions, _t as EgressManager, aa as SentSessionMessage, ai as SandboxFleetManifest, an as GitBranch, ao as SandboxCreateOutcome, ar as ProcessSpawnOptions, at as DriverConfig, b as BatchRunRequest, ba as SnapshotDeleteAcknowledgement, bi as SandboxFleetWorkspaceReconcileResult, bn as GpuLeaseProvidersOptions, br as ReapExpiredSandboxFleetsResult, bt as EventStreamOptions, c as AttachGpuLeaseOptions, ca as SessionExecutionInfo, ci as SandboxFleetParent, cn as GitDiff, co as SandboxEnvRecoveryView, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionForkOptions, di as SandboxFleetProfileRef, dn as GpuLeaseBilling, do as RawEvidenceArchiveManifestNative, dr as ProvisionResult, dt as DurablePlanFollowUpResume, ea as SecretBinding, ei as SandboxFleetIntelligenceEnvelope, en as ForkCounts, eo as WorkspaceOperationLookup, er as ProcessInfo, et as DockerDriverConfig, f as BackendInfo, fa as SessionInfo, fi as SandboxFleetSpend, fn as GpuLeaseCommandResult, fo as RawEvidenceBoxArchiveManifest, fr as ProvisionStatus, g as BackendStatus, ga as SessionMessageAdmission, gi as SandboxFleetTraceExport, gn as GpuLeaseProviderName, go as RawEvidenceExportOptions, gr as PublicTemplateVersionInfo, gt as EgressDenial, h as BackendRuntimeConfigUpdate, ha as SessionMessage, hi as SandboxFleetTraceEvent, hn as GpuLeaseManager, ho as RawEvidenceDirectoryExport, hr as PublicTemplateInfo, ht as EffectiveBackendSource, ia as SendSessionMessageRequest, ii as SandboxFleetMachineSpec, in as GitAuth, ir as ProcessSignal, it as DriveTurnOptions, j as CompletedTurnPayload, ja as StopOptions, ji as SandboxRemovalState, jr as RolloutStatus, jt as FileTreeFile, ka as StartupDiagnostics, ki as SandboxPortBinding, kn as IntelligenceReportSubjectType, ko as BackendType, kr as RolloutScorer, kt as FileRenameResult, l as AttachSandboxFleetMachineOptions, la as SessionExecutionStatus, li as SandboxFleetPlacement, ln as GitStatus, lo as NativeStoreHomeCopy, lr as PromptResult, lt as DurablePlanDecisionOptions, m as BackendMcpServerStatus, ma as SessionListOptions, mi as SandboxFleetTraceBundle, mn as GpuLeaseExecResult, mo as RawEvidenceBoxExportOptions, mr as PublicProfileConflict, mt as EffectiveBackendProfile, n as AccessPolicyRule, na as SecretsManager, ni as SandboxFleetMachineMeteredUsage, nn as ForkLookupOptions, no as WriteManyFile, nr as ProcessLogEntry, nt as DownloadProgress, oa as SessionBackendCredentials, oi as SandboxFleetManifestMachine, on as GitCommit, oo as SandboxCreateReceipt, or as ProcessStatus, ot as DriverInfo, p as BackendManager, pa as SessionInterruptOptions, pi as SandboxFleetToken, pn as GpuLeaseExecOptions, po as RawEvidenceBoxDirectoryExport, pr as ProvisionStep, pt as EffectiveBackend, q as DeleteMatchingSandboxesOptions, qa as TurnDriveResult, qi as SandboxTraceBundle, qn as NonHostAgentDriverConfig, qr as SandboxFleetArtifactSpec, qt as FleetExecDispatchOptions, r as AddUserOptions, ra as SendSessionMessageOptions, ri as SandboxFleetMachineRecord, rn as GPU_LEASE_PROVIDER_NAMES, ro as WriteManyOptions, rr as ProcessManager, rt as DownloadResult, sa as SessionEventStreamOptions, si as SandboxFleetOperationsSummary, sn as GitConfig, so as SandboxEnvRecovery, sr as PromptInputPart, st as DriverType, t as AcceleratorKind, ta as SecretInfo, ti as SandboxFleetMachine, tn as ForkIdempotency, to as WriteFileOptions, tr as ProcessListOptions, tt as DownloadOptions, u as BackendCapabilities, ua as SessionFailureReason, ui as SandboxFleetPolicy, un as GpuLease, uo as RawEvidenceArchiveManifest, ur as ProvisionEvent, ut as DurablePlanDecisionResult, v as BatchResult, va as SessionResultOptions, vi as SandboxFleetUsage, vn as GpuLeaseProviderStatus, vo as RawEvidencePayloadFile, vr as PublishPublicTemplateVersionOptions, vt as EgressPolicy, w as ChunkedUploadOptions, wa as SnapshotOptions, wi as SandboxInfo, wo as BatchEvent, wt as FileInfo, x as BatchTask, xa as SnapshotDeleteOutcome, xi as SandboxFleetWorkspaceRestoreResult, xn as GpuLeaseStatus, xr as ReconcileSandboxFleetsOptions, xt as ExactProcessSpawnOptions, y as BatchRunOptions, ya as SessionStatus, yi as SandboxFleetWorkspace, yn as GpuLeaseProviders, yo as RawEvidenceRecordsFile, yr as ReapExpiredSandboxFleetsOptions, yt as EnsureDevServerOptions, za as TeeAttestationOptions, zi as SandboxShapesInfo, zn as ManagedProcessRecord, zr as SandboxDeleteOptions, zt as FleetAgentResult } 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-3Nh_iGm2.js";
|
|
2
|
+
import { $ as DispatchedSession, $a as WaitForRolloutOptions, $i as SearchOptions, $n as Process, $r as SandboxFleetInfo, $t as FleetRunOptions, A as CommitTaskSessionOptions, Aa as StartupOperation, Ai as SandboxPortPreviewLink, An as IntelligenceReportWindow, Ao as parseBackendType, Ar as RolloutStartResult, At as FileSystem, B as CreateSandboxFleetWithCoordinatorOptions, Ba as TeeAttestationReport, Bi as SandboxStatus, Bn as ManagedProcessResumeOptions, Br as SandboxDeleteOutcome, Bt as FleetAgentRunStatus, C as BranchOptions, Ca as SnapshotInfo, Ci as SandboxIdentity, Cn as HostAgentRuntimeBackend, Co as BatchBackendStats, Cr as RenameOptions, Ct as ExecResult, Da as SnapshotResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, Do as BatchTaskUsage, Dr as RolloutChildResult, Dt as FileReadError, Ea as SnapshotRemoteSync, Ei as SandboxOperationInfo, En as IntelligenceReport, Eo as BatchSidecarGroup, Er as Rollout, Et as FileReadBatchResult, F as CreateGpuLeaseOptions, Fa as TaskSessionCommitResult, Fi as SandboxRuntimeCapabilities, Fn as ListSandboxOptions, Fr as SSHCredentials, Ft as FileUsageResult, G as DeleteMatchingSandboxResult, Ga as TokenUsage, Gi as SandboxTerminalRequestOptions, Gn as NetworkConfig, Gr as SandboxFleetAgentSpec, Gt as FleetDriveTurnOutcome, H as CreateSessionOptions, Ha as TeePublicKey, Hi as SandboxTerminalCreateOptions, Hn as ManagedProcessState, Hr as SandboxEnvironment, Ht as FleetDispatchResultBuffer, I as CreateIntelligenceReportOptions, Ia as TaskSessionFileChange, Ii as SandboxRuntimeHealth, In as MAX_EGRESS_DENIALS_LIMIT, Ir as SandboxConfig, It as FileWriteResult, J as DeleteMatchingSandboxesResult, Ja as UpdateUserOptions, Ji as SandboxTraceEvent, Jn as PermissionLevel, Jr as SandboxFleetCostEstimate, K as DeleteMatchingSandboxesFilter, Ka as TurnBackendConfig, Ki as SandboxTerminals, Kn as NetworkManager, Kr as SandboxFleetArtifact, Kt as FleetDriveTurnRequest, L as CreateRequestOptions, La as TaskSessionInfo, Li as SandboxShape, Ln as ManagedProcessJobs, Lr as SandboxConnection, Lt as FleetAgentId, M as CompletedTurnResult, Ma as StorageConfig, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, Mr as RolloutTurnPart, Mt as FileTreeOptions, N as ConversationTurnOptions, Na as SubscriptionInfo, Ni as SandboxResources, Nn as ListOptions, Nr as RouterRoutingOptions, Nt as FileTreeResult, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Oo as ALL_BACKEND_TYPES, Or as RolloutOptions, Ot as FileReadResult, P as ConversationTurnResult, Pa as TaskSessionChanges, Pi as SandboxRunGeneration, Pn as ListSandboxFleetOptions, Pr as SSHCommandDescriptor, Pt as FileUsageOptions, Q as DispatchPromptOptions, Qa as WaitForOptions, Qi as SearchMatch, Qn as PreviewLinkWaitOptions, Qr as SandboxFleetDriverTimings, Qt as FleetRunEvent, R as CreateSandboxFleetOptions, Ra as TaskSessionProfile, Ri as SandboxShapePreset, Rn as ManagedProcessOptions, Rr as SandboxDeleteAcknowledgement, Rt as FleetAgentPlacement, S as BatchTaskResult, Sa as SnapshotIdempotency, Si as SandboxFleetWorkspaceSnapshotResult, Sn as HostAgentDriverConfig, So as PublicBatchRunRequest, Sr as ReconcileSandboxFleetsResult, St as ExecOptions, T as ChunkedUploadResult, Ti as SandboxIntelligenceEnvelope, Tn as InstalledTool, To as BatchEventDataMap, Tt as FileReadBatchOptions, U as CreateTaskSessionOptions, Ua as TeePublicKeyResponse, Ui as SandboxTerminalInfo, Un as McpServerConfig, Ur as SandboxEvent, Ut as FleetDispatchResultBufferOptions, V as CreateSandboxOptions, Va as TeeAttestationResponse, Vi as SandboxTerminalAttachOptions, Vn as ManagedProcessSpec, Vr as SandboxEgressUsage, Vt as FleetDispatchCancelResult, W as DeleteMatchingSandboxOutcome, Wa as TokenRefreshHandler, Wi as SandboxTerminalManager, Wn as MkdirOptions, Wr as SandboxFleetAgent, Wt as FleetDispatchStreamOptions, X as DevServerInfo, Xa as UploadProgress, Xi as SandboxTraceOptions, Xn as PreviewLinkInfo, Xr as SandboxFleetDispatchResponse, Xt as FleetPromptDispatchOptions, Y as DeleteOptions, Ya as UploadOptions, Yi as SandboxTraceExport, Yn as PermissionsManager, Yr as SandboxFleetDispatchFailureClass, Yt as FleetMachineId, Z as DirectoryPermission, Za as UsageInfo, Zi as SandboxUser, Zn as PreviewLinkManager, Zr as SandboxFleetDriverCapability, Zt as FleetPromptDispatchResult, _ as BatchBackend, _a as SessionMessageInputPart, _i as SandboxFleetTraceOptions, _n as GpuLeaseProviderState, _o as RawEvidenceNativeFile, _r as PublishPublicTemplateOptions, _t as EgressManager, aa as SentSessionMessage, ai as SandboxFleetManifest, an as GitBranch, ao as SandboxCreateOutcome, ar as ProcessSpawnOptions, at as DriverConfig, b as BatchRunRequest, ba as SnapshotDeleteAcknowledgement, bi as SandboxFleetWorkspaceReconcileResult, bn as GpuLeaseProvidersOptions, br as ReapExpiredSandboxFleetsResult, bt as EventStreamOptions, c as AttachGpuLeaseOptions, ca as SessionExecutionInfo, ci as SandboxFleetParent, cn as GitDiff, co as SandboxEnvRecoveryView, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionForkOptions, di as SandboxFleetProfileRef, dn as GpuLeaseBilling, do as RawEvidenceArchiveManifestNative, dr as ProvisionResult, dt as DurablePlanFollowUpResume, ea as SecretBinding, ei as SandboxFleetIntelligenceEnvelope, en as ForkCounts, eo as WorkspaceOperationLookup, er as ProcessInfo, et as DockerDriverConfig, f as BackendInfo, fa as SessionInfo, fi as SandboxFleetSpend, fn as GpuLeaseCommandResult, fo as RawEvidenceBoxArchiveManifest, fr as ProvisionStatus, g as BackendStatus, ga as SessionMessageAdmission, gi as SandboxFleetTraceExport, gn as GpuLeaseProviderName, go as RawEvidenceExportOptions, gr as PublicTemplateVersionInfo, gt as EgressDenial, h as BackendRuntimeConfigUpdate, ha as SessionMessage, hi as SandboxFleetTraceEvent, hn as GpuLeaseManager, ho as RawEvidenceDirectoryExport, hr as PublicTemplateInfo, ht as EffectiveBackendSource, ia as SendSessionMessageRequest, ii as SandboxFleetMachineSpec, in as GitAuth, ir as ProcessSignal, it as DriveTurnOptions, j as CompletedTurnPayload, ja as StopOptions, ji as SandboxRemovalState, jr as RolloutStatus, jt as FileTreeFile, ka as StartupDiagnostics, ki as SandboxPortBinding, kn as IntelligenceReportSubjectType, ko as BackendType, kr as RolloutScorer, kt as FileRenameResult, l as AttachSandboxFleetMachineOptions, la as SessionExecutionStatus, li as SandboxFleetPlacement, ln as GitStatus, lo as NativeStoreHomeCopy, lr as PromptResult, lt as DurablePlanDecisionOptions, m as BackendMcpServerStatus, ma as SessionListOptions, mi as SandboxFleetTraceBundle, mn as GpuLeaseExecResult, mo as RawEvidenceBoxExportOptions, mr as PublicProfileConflict, mt as EffectiveBackendProfile, n as AccessPolicyRule, na as SecretsManager, ni as SandboxFleetMachineMeteredUsage, nn as ForkLookupOptions, no as WriteManyFile, nr as ProcessLogEntry, nt as DownloadProgress, oa as SessionBackendCredentials, oi as SandboxFleetManifestMachine, on as GitCommit, oo as SandboxCreateReceipt, or as ProcessStatus, ot as DriverInfo, p as BackendManager, pa as SessionInterruptOptions, pi as SandboxFleetToken, pn as GpuLeaseExecOptions, po as RawEvidenceBoxDirectoryExport, pr as ProvisionStep, pt as EffectiveBackend, q as DeleteMatchingSandboxesOptions, qa as TurnDriveResult, qi as SandboxTraceBundle, qn as NonHostAgentDriverConfig, qr as SandboxFleetArtifactSpec, qt as FleetExecDispatchOptions, r as AddUserOptions, ra as SendSessionMessageOptions, ri as SandboxFleetMachineRecord, rn as GPU_LEASE_PROVIDER_NAMES, ro as WriteManyOptions, rr as ProcessManager, rt as DownloadResult, sa as SessionEventStreamOptions, si as SandboxFleetOperationsSummary, sn as GitConfig, so as SandboxEnvRecovery, sr as PromptInputPart, st as DriverType, t as AcceleratorKind, ta as SecretInfo, ti as SandboxFleetMachine, tn as ForkIdempotency, to as WriteFileOptions, tr as ProcessListOptions, tt as DownloadOptions, u as BackendCapabilities, ua as SessionFailureReason, ui as SandboxFleetPolicy, un as GpuLease, uo as RawEvidenceArchiveManifest, ur as ProvisionEvent, ut as DurablePlanDecisionResult, v as BatchResult, va as SessionResultOptions, vi as SandboxFleetUsage, vn as GpuLeaseProviderStatus, vo as RawEvidencePayloadFile, vr as PublishPublicTemplateVersionOptions, vt as EgressPolicy, w as ChunkedUploadOptions, wa as SnapshotOptions, wi as SandboxInfo, wo as BatchEvent, wt as FileInfo, x as BatchTask, xa as SnapshotDeleteOutcome, xi as SandboxFleetWorkspaceRestoreResult, xn as GpuLeaseStatus, xr as ReconcileSandboxFleetsOptions, xt as ExactProcessSpawnOptions, y as BatchRunOptions, ya as SessionStatus, yi as SandboxFleetWorkspace, yn as GpuLeaseProviders, yo as RawEvidenceRecordsFile, yr as ReapExpiredSandboxFleetsOptions, yt as EnsureDevServerOptions, za as TeeAttestationOptions, zi as SandboxShapesInfo, zn as ManagedProcessRecord, zr as SandboxDeleteOptions, zt as FleetAgentResult } from "./types-DrkzZH4E.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 TimeoutError, S as StreamInterruptionReason, _ as SandboxErrorJson, a as EgressProxyRecoveryError, b as StateError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxError, h as ResumeEnvRequiredError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as QuotaError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, x as StreamInterruptedError, y as ServerError } 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-CR8IQQUF.js";
|
|
7
|
+
import { C as TimeoutError, S as StreamInterruptionReason, _ as SandboxErrorJson, a as EgressProxyRecoveryError, b as StateError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxError, h as ResumeEnvRequiredError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as QuotaError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, x as StreamInterruptedError, y as ServerError } from "./errors-Dv5aUoWZ.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-8Bjza8AJ.js";
|
|
9
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DZ5wsgul.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-BmE85APA.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-NGVlqzE7.js";
|
|
14
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-CqLHOYX0.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 { B as deriveAgentResultOutcome, H as projectAgentTerminalRecord, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, V as deriveAgentRunOutcome, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as createAgentRunOutcomeTracker } from "./interactive-controller-
|
|
2
|
+
import { B as deriveAgentResultOutcome, H as projectAgentTerminalRecord, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, V as deriveAgentRunOutcome, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as createAgentRunOutcomeTracker } from "./interactive-controller-C0bJnKLu.js";
|
|
3
3
|
import { _ as ServerError, a as EgressProxyRecoveryError, b as TimeoutError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as SandboxError, h as ResumeEnvRequiredError, i as EdgeNotReadyError, m as QuotaError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError, y as StreamInterruptedError } from "./errors-Bfhg_Zc6.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-DpHeK8eo.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 splitInlineProfileSkills, E as splitInlineProfileFileMounts, F as toOtelJson, M as buildTraceExportPayload, N as exportTraceBundle, O as validateDeferredProfileFileMounts, P as otelTraceIdForTangleTrace, S as isToolBearingEvent, T as materializeProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, 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, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-
|
|
6
|
+
import { C as ManagedProcessClient, D as splitInlineProfileSkills, E as splitInlineProfileFileMounts, F as toOtelJson, M as buildTraceExportPayload, N as exportTraceBundle, O as validateDeferredProfileFileMounts, P as otelTraceIdForTangleTrace, S as isToolBearingEvent, T as materializeProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, 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, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-FmewPLL0.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-CXtTwK3x.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-DhkMum3K.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
|
|
@@ -1668,6 +1668,7 @@ function sessionMessageRequestBody(request) {
|
|
|
1668
1668
|
const parsed = Date.parse(deadline);
|
|
1669
1669
|
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(deadline) || !Number.isFinite(parsed) || new Date(parsed).toISOString() !== deadline) throw new ValidationError("admissionDeadline must be canonical UTC");
|
|
1670
1670
|
}
|
|
1671
|
+
if (request.maxModelCalls !== void 0 && (!Number.isInteger(request.maxModelCalls) || request.maxModelCalls < 1 || request.maxModelCalls > 64)) throw new ValidationError("maxModelCalls must be an integer from 1 to 64");
|
|
1671
1672
|
if (request.managedQuoteVersion !== void 0 && !/^mmq_[a-f0-9]{40}$/.test(request.managedQuoteVersion)) throw new ValidationError("managedQuoteVersion is invalid");
|
|
1672
1673
|
if (request.expectedPublicProfileRequestDigest !== void 0) {
|
|
1673
1674
|
if (request.system !== void 0 || request.agent !== void 0 || request.model !== void 0 || request.reasoningEffort !== void 0 || request.interactions !== void 0 || request.managedQuoteVersion !== void 0 || request.managedModelCredential !== void 0) throw new ValidationError("Public profile request pin requires all authority controls in backend");
|
|
@@ -1701,7 +1702,9 @@ function sessionMessageRequestBody(request) {
|
|
|
1701
1702
|
} } : {},
|
|
1702
1703
|
...request.reasoningEffort !== void 0 ? { reasoningEffort: request.reasoningEffort } : {},
|
|
1703
1704
|
...request.turnId !== void 0 ? { turnId: request.turnId } : {},
|
|
1704
|
-
...request.interactions !== void 0 ? { interactions: request.interactions } : {}
|
|
1705
|
+
...request.interactions !== void 0 ? { interactions: request.interactions } : {},
|
|
1706
|
+
...request.disableTools === true ? { disableTools: true } : {},
|
|
1707
|
+
...request.maxModelCalls !== void 0 ? { maxModelCalls: request.maxModelCalls } : {}
|
|
1705
1708
|
};
|
|
1706
1709
|
}
|
|
1707
1710
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as CreateSandboxOptions, d as BackendConfig } from "./types-
|
|
1
|
+
import { V as CreateSandboxOptions, d as BackendConfig } from "./types-DrkzZH4E.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-CR8IQQUF.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 { Bn as ManagedProcessResumeOptions, Ln as ManagedProcessJobs, Rn as ManagedProcessOptions, Vn as ManagedProcessSpec, zn as ManagedProcessRecord } from "./types-
|
|
1
|
+
import { Bn as ManagedProcessResumeOptions, Ln as ManagedProcessJobs, Rn as ManagedProcessOptions, Vn as ManagedProcessSpec, zn as ManagedProcessRecord } from "./types-DrkzZH4E.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 { Xn as PreviewLinkInfo, yt as EnsureDevServerOptions } from "./types-
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-3Nh_iGm2.js";
|
|
2
|
+
import { Xn as PreviewLinkInfo, yt as EnsureDevServerOptions } from "./types-DrkzZH4E.js";
|
|
3
|
+
import { i as Sandbox } from "./client-8Bjza8AJ.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 { _r as PublishPublicTemplateOptions, gr as PublicTemplateVersionInfo, hr as PublicTemplateInfo, vr as PublishPublicTemplateVersionOptions, wn as HttpClient } from "./types-
|
|
2
|
-
import { g as SandboxError } from "./errors-
|
|
1
|
+
import { _r as PublishPublicTemplateOptions, gr as PublicTemplateVersionInfo, hr as PublicTemplateInfo, vr as PublishPublicTemplateVersionOptions, wn as HttpClient } from "./types-DrkzZH4E.js";
|
|
2
|
+
import { g as SandboxError } from "./errors-Dv5aUoWZ.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-DZ5wsgul.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as CommitTaskSessionOptions, Cr as RenameOptions, Et as FileReadBatchResult, Fa as TaskSessionCommitResult, Ft as FileUsageResult, Gi as SandboxTerminalRequestOptions, H as CreateSessionOptions, Hi as SandboxTerminalCreateOptions, Ii as SandboxRuntimeHealth, It as FileWriteResult, La as TaskSessionInfo, Mn as ListMessagesOptions, Mt as FileTreeOptions, Nt as FileTreeResult, Pa as TaskSessionChanges, Pt as FileUsageOptions, T as ChunkedUploadResult, Tt as FileReadBatchOptions, U as CreateTaskSessionOptions, Ui as SandboxTerminalInfo, Ur as SandboxEvent, Wi as SandboxTerminalManager, Xa as UploadProgress, aa as SentSessionMessage, ca as SessionExecutionInfo, fa as SessionInfo, ga as SessionMessageAdmission, ha as SessionMessage, ia as SendSessionMessageRequest, ki as SandboxPortBinding, kt as FileRenameResult, la as SessionExecutionStatus, ra as SendSessionMessageOptions, sa as SessionEventStreamOptions, to as WriteFileOptions, w as ChunkedUploadOptions } from "./types-
|
|
1
|
+
import { A as CommitTaskSessionOptions, Cr as RenameOptions, Et as FileReadBatchResult, Fa as TaskSessionCommitResult, Ft as FileUsageResult, Gi as SandboxTerminalRequestOptions, H as CreateSessionOptions, Hi as SandboxTerminalCreateOptions, Ii as SandboxRuntimeHealth, It as FileWriteResult, La as TaskSessionInfo, Mn as ListMessagesOptions, Mt as FileTreeOptions, Nt as FileTreeResult, Pa as TaskSessionChanges, Pt as FileUsageOptions, T as ChunkedUploadResult, Tt as FileReadBatchOptions, U as CreateTaskSessionOptions, Ui as SandboxTerminalInfo, Ur as SandboxEvent, Wi as SandboxTerminalManager, Xa as UploadProgress, aa as SentSessionMessage, ca as SessionExecutionInfo, fa as SessionInfo, ga as SessionMessageAdmission, ha as SessionMessage, ia as SendSessionMessageRequest, ki as SandboxPortBinding, kt as FileRenameResult, la as SessionExecutionStatus, ra as SendSessionMessageOptions, sa as SessionEventStreamOptions, to as WriteFileOptions, w as ChunkedUploadOptions } from "./types-DrkzZH4E.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 TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } 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 TimeoutError, _ as SandboxErrorJson, b as StateError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as SandboxFailureDetail, w as ValidationError, y as ServerError } from "./errors-Dv5aUoWZ.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-NGVlqzE7.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 { B as deriveAgentResultOutcome, H as projectAgentTerminalRecord, V as deriveAgentRunOutcome, d as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as createAgentRunOutcomeTracker } from "./interactive-controller-
|
|
1
|
+
import { B as deriveAgentResultOutcome, H as projectAgentTerminalRecord, V as deriveAgentRunOutcome, d as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as createAgentRunOutcomeTracker } from "./interactive-controller-C0bJnKLu.js";
|
|
2
2
|
import { _ as ServerError, b as TimeoutError, d as NotFoundError, f as PartialFailureError, g as SandboxError, m as QuotaError, o as FileWriteConflictError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, x as ValidationError } from "./errors-Bfhg_Zc6.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-B867njKv.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CliAuthReference } from "./cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
-
import { $ as DispatchedSession, $a as WaitForRolloutOptions, $i as SearchOptions, A as CommitTaskSessionOptions, An as IntelligenceReportWindow, Ar as RolloutStartResult, At as FileSystem, Bi as SandboxStatus, C as BranchOptions, Ca as SnapshotInfo, Ct as ExecResult, D as CodeExecutionResult, Da as SnapshotResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, E as CodeExecutionOptions, Ei as SandboxOperationInfo, En as IntelligenceReport, Er as Rollout, Fa as TaskSessionCommitResult, Fi as SandboxRuntimeCapabilities, Fr as SSHCredentials, H as CreateSessionOptions, Ii as SandboxRuntimeHealth, It as FileWriteResult, Ka as TurnBackendConfig, Ki as SandboxTerminals, Kn as NetworkManager, La as TaskSessionInfo, Li as SandboxShape, Lr as SandboxConnection, M as CompletedTurnResult, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, N as ConversationTurnOptions, O as CodeLanguage, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Or as RolloutOptions, P as ConversationTurnResult, Pa as TaskSessionChanges, Pr as SSHCommandDescriptor, Q as DispatchPromptOptions, Qa as WaitForOptions, Qi as SearchMatch, Rr as SandboxDeleteAcknowledgement, St as ExecOptions, Ta as SnapshotProvenance, Tn as InstalledTool, Tr as ResumeOptions, U as CreateTaskSessionOptions, Ua as TeePublicKeyResponse, Ur as SandboxEvent, Va as TeeAttestationResponse, Vi as SandboxTerminalAttachOptions, Xi as SandboxTraceOptions, Yn as PermissionsManager, Zn as PreviewLinkManager, _t as EgressManager, aa as SentSessionMessage, an as GitBranch, ba as SnapshotDeleteAcknowledgement, bo as WorkspaceImagePublishResult$1, bt as EventStreamOptions, ca as SessionExecutionInfo, cn as GitDiff, co as SandboxEnvRecoveryView, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionForkOptions, dr as ProvisionResult, en as ForkCounts, eo as WorkspaceOperationLookup, fa as SessionInfo, ga as SessionMessageAdmission, go as RawEvidenceExportOptions, ha as SessionMessage, hn as GpuLeaseManager, ho as RawEvidenceDirectoryExport, ia as SendSessionMessageRequest, it as DriveTurnOptions, ja as StopOptions, jn as JsonValue, ka as StartupDiagnostics, ki as SandboxPortBinding, ln as GitStatus, lr as PromptResult, lt as DurablePlanDecisionOptions, ma as SessionListOptions, mi as SandboxFleetTraceBundle, mo as RawEvidenceBoxExportOptions, mr as PublicProfileConflict, nn as ForkLookupOptions, no as WriteManyFile, on as GitCommit, oo as SandboxCreateReceipt, ot as DriverInfo, p as BackendManager, pa as SessionInterruptOptions, po as RawEvidenceBoxDirectoryExport, qa as TurnDriveResult, qi as SandboxTraceBundle, ra as SendSessionMessageOptions, ro as WriteManyOptions, rr as ProcessManager, sa as SessionEventStreamOptions, so as SandboxEnvRecovery, sr as PromptInputPart, tn as ForkIdempotency, to as WriteFileOptions, un as GpuLease, ur as ProvisionEvent, ut as DurablePlanDecisionResult, va as SessionResultOptions, wa as SnapshotOptions, wi as SandboxInfo, wn as HttpClient, wr as RestoreSnapshotOptions, xo as InteractionResolutionAcknowledgement, za as TeeAttestationOptions, zr as SandboxDeleteOptions } from "./types-
|
|
2
|
+
import { $ as DispatchedSession, $a as WaitForRolloutOptions, $i as SearchOptions, A as CommitTaskSessionOptions, An as IntelligenceReportWindow, Ar as RolloutStartResult, At as FileSystem, Bi as SandboxStatus, C as BranchOptions, Ca as SnapshotInfo, Ct as ExecResult, D as CodeExecutionResult, Da as SnapshotResult, Di as SandboxOperationKind, Dn as IntelligenceReportBudget, E as CodeExecutionOptions, Ei as SandboxOperationInfo, En as IntelligenceReport, Er as Rollout, Fa as TaskSessionCommitResult, Fi as SandboxRuntimeCapabilities, Fr as SSHCredentials, H as CreateSessionOptions, Ii as SandboxRuntimeHealth, It as FileWriteResult, Ka as TurnBackendConfig, Ki as SandboxTerminals, Kn as NetworkManager, La as TaskSessionInfo, Li as SandboxShape, Lr as SandboxConnection, M as CompletedTurnResult, Mi as SandboxResourceUsage, Mn as ListMessagesOptions, N as ConversationTurnOptions, O as CodeLanguage, Oi as SandboxOperationState, On as IntelligenceReportCompareTo, Or as RolloutOptions, P as ConversationTurnResult, Pa as TaskSessionChanges, Pr as SSHCommandDescriptor, Q as DispatchPromptOptions, Qa as WaitForOptions, Qi as SearchMatch, Rr as SandboxDeleteAcknowledgement, St as ExecOptions, Ta as SnapshotProvenance, Tn as InstalledTool, Tr as ResumeOptions, U as CreateTaskSessionOptions, Ua as TeePublicKeyResponse, Ur as SandboxEvent, Va as TeeAttestationResponse, Vi as SandboxTerminalAttachOptions, Xi as SandboxTraceOptions, Yn as PermissionsManager, Zn as PreviewLinkManager, _t as EgressManager, aa as SentSessionMessage, an as GitBranch, ba as SnapshotDeleteAcknowledgement, bo as WorkspaceImagePublishResult$1, bt as EventStreamOptions, ca as SessionExecutionInfo, cn as GitDiff, co as SandboxEnvRecoveryView, cr as PromptOptions, ct as DurablePlan, d as BackendConfig, da as SessionForkOptions, dr as ProvisionResult, en as ForkCounts, eo as WorkspaceOperationLookup, fa as SessionInfo, ga as SessionMessageAdmission, go as RawEvidenceExportOptions, ha as SessionMessage, hn as GpuLeaseManager, ho as RawEvidenceDirectoryExport, ia as SendSessionMessageRequest, it as DriveTurnOptions, ja as StopOptions, jn as JsonValue, ka as StartupDiagnostics, ki as SandboxPortBinding, ln as GitStatus, lr as PromptResult, lt as DurablePlanDecisionOptions, ma as SessionListOptions, mi as SandboxFleetTraceBundle, mo as RawEvidenceBoxExportOptions, mr as PublicProfileConflict, nn as ForkLookupOptions, no as WriteManyFile, on as GitCommit, oo as SandboxCreateReceipt, ot as DriverInfo, p as BackendManager, pa as SessionInterruptOptions, po as RawEvidenceBoxDirectoryExport, qa as TurnDriveResult, qi as SandboxTraceBundle, ra as SendSessionMessageOptions, ro as WriteManyOptions, rr as ProcessManager, sa as SessionEventStreamOptions, so as SandboxEnvRecovery, sr as PromptInputPart, tn as ForkIdempotency, to as WriteFileOptions, un as GpuLease, ur as ProvisionEvent, ut as DurablePlanDecisionResult, va as SessionResultOptions, wa as SnapshotOptions, wi as SandboxInfo, wn as HttpClient, wr as RestoreSnapshotOptions, xo as InteractionResolutionAcknowledgement, za as TeeAttestationOptions, zr as SandboxDeleteOptions } from "./types-DrkzZH4E.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 { g as SandboxError } from "./errors-
|
|
6
|
+
import { z as SandboxLines } from "./lines-CR8IQQUF.js";
|
|
7
|
+
import { g as SandboxError } from "./errors-Dv5aUoWZ.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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import { A as assertCurrentBackendType, B as deriveAgentResultOutcome, C as sessionHeaders, D as encodeTextForWire, E as encodePromptForWire, F as requestedSecretProfilePublicDigest, M as mergeRuntimeBackendConfig, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, R as withoutRuntimeSecrets, S as appendSessionIdQuery, T as validateAcceptedDispatchRunRef, _ as TRACE_ID_HEADER, a as terminalUpgradeHeadersSupported, b as resolveTraceId, d as SandboxRuntimeApi, f as isRetryableCredentialRefusal, g as waitForRetryAfter, h as sessionMessageRequestBody, i as TerminalStreamError, k as applyRequestedModel, l as requestScopedToken, m as normalizeSessionInfo, n as InteractiveSessionController, p as normalizeEffectiveBackend, r as TerminalStream, s as assertScopedTokenActive, u as canUseNodeHttp2, v as isTraceId, w as resolveDispatchRunIdentity, x as traceHeaders, y as mintTraceId, z as createAgentRunOutcomeTracker } from "./interactive-controller-
|
|
2
|
+
import { A as assertCurrentBackendType, B as deriveAgentResultOutcome, C as sessionHeaders, D as encodeTextForWire, E as encodePromptForWire, F as requestedSecretProfilePublicDigest, M as mergeRuntimeBackendConfig, N as normalizeRuntimeBackendConfig, O as parseSSEStream, P as requestedPublicProfileDigest, R as withoutRuntimeSecrets, S as appendSessionIdQuery, T as validateAcceptedDispatchRunRef, _ as TRACE_ID_HEADER, a as terminalUpgradeHeadersSupported, b as resolveTraceId, d as SandboxRuntimeApi, f as isRetryableCredentialRefusal, g as waitForRetryAfter, h as sessionMessageRequestBody, i as TerminalStreamError, k as applyRequestedModel, l as requestScopedToken, m as normalizeSessionInfo, n as InteractiveSessionController, p as normalizeEffectiveBackend, r as TerminalStream, s as assertScopedTokenActive, u as canUseNodeHttp2, v as isTraceId, w as resolveDispatchRunIdentity, x as traceHeaders, y as mintTraceId, z as createAgentRunOutcomeTracker } from "./interactive-controller-C0bJnKLu.js";
|
|
3
3
|
import { A as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, C as parseResponseError, M as SANDBOX_FILE_API_ABSOLUTE_ROOTS, N as isProfileFileMountOutsideRoots, O as SANDBOX_PROXY_REQUEST_MAX_BYTES, P as profileFileMountOutsideRootsMessage, S as parseErrorResponse, _ as ServerError, b as TimeoutError, d as NotFoundError, g as SandboxError, i as EdgeNotReadyError, j as SANDBOX_AGENT_HOME, m as QuotaError, p as ProfileFileMountPathError, r as CapabilityError, t as AuthError, u as NetworkError, v as StateError, w as readResponseJson, x as ValidationError, y as StreamInterruptedError } from "./errors-Bfhg_Zc6.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";
|
|
@@ -9406,7 +9406,9 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9406
9406
|
...opts.expectedPublicProfileRevision !== void 0 ? { expectedPublicProfileRevision: opts.expectedPublicProfileRevision } : {},
|
|
9407
9407
|
...opts.expectedSecretProfileReceipt !== void 0 ? { expectedSecretProfileReceipt: opts.expectedSecretProfileReceipt } : {},
|
|
9408
9408
|
...opts.runControlRef !== void 0 ? { runControlRef: opts.runControlRef } : {},
|
|
9409
|
-
...opts.admissionDeadline !== void 0 ? { admissionDeadline: opts.admissionDeadline } : {}
|
|
9409
|
+
...opts.admissionDeadline !== void 0 ? { admissionDeadline: opts.admissionDeadline } : {},
|
|
9410
|
+
...opts.disableTools === true ? { disableTools: true } : {},
|
|
9411
|
+
...opts.maxModelCalls !== void 0 ? { maxModelCalls: opts.maxModelCalls } : {}
|
|
9410
9412
|
};
|
|
9411
9413
|
const wireRequest = sessionMessageRequestBody(request);
|
|
9412
9414
|
if (opts.runControlRef && (opts.runControlRef.sessionId !== opts.sessionId || opts.runControlRef.environmentId !== this.id)) throw new ValidationError("runControlRef does not belong to this sandbox conversation");
|
|
@@ -9698,6 +9700,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9698
9700
|
let traceId;
|
|
9699
9701
|
let usage;
|
|
9700
9702
|
let costUsd;
|
|
9703
|
+
let modelCalls;
|
|
9701
9704
|
const events = this._executionEvents(id, executionId);
|
|
9702
9705
|
for await (const event of events) {
|
|
9703
9706
|
outcomeTracker.observe(event);
|
|
@@ -9707,6 +9710,7 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9707
9710
|
if (typeof data.executionId === "string" && data.executionId) resultExecutionId = data.executionId;
|
|
9708
9711
|
usage = readTokenUsage(data) ?? usage;
|
|
9709
9712
|
costUsd = readTokenCostUsd(data) ?? costUsd;
|
|
9713
|
+
modelCalls = readModelCalls(data.modelCalls) ?? modelCalls;
|
|
9710
9714
|
}
|
|
9711
9715
|
if (event.type === "trace.id") traceId = event.data.traceId;
|
|
9712
9716
|
if (event.type === "done" || event.type === "error") break;
|
|
@@ -9728,7 +9732,8 @@ var SandboxInstance = class SandboxInstance {
|
|
|
9728
9732
|
traceId,
|
|
9729
9733
|
durationMs: Date.now() - startTime,
|
|
9730
9734
|
usage,
|
|
9731
|
-
costUsd
|
|
9735
|
+
costUsd,
|
|
9736
|
+
...modelCalls ? { modelCalls } : {}
|
|
9732
9737
|
};
|
|
9733
9738
|
}
|
|
9734
9739
|
/** @internal — delegated to the native interactive operations module. */
|
|
@@ -9982,12 +9987,24 @@ function settleTurnDrive(result) {
|
|
|
9982
9987
|
launchDigest: publicProfileRevision.launchDigest,
|
|
9983
9988
|
...conflicts ? { conflicts } : {}
|
|
9984
9989
|
} : void 0;
|
|
9990
|
+
const modelCalls = readModelCalls(result.modelCalls);
|
|
9985
9991
|
return {
|
|
9986
9992
|
state: "completed",
|
|
9987
9993
|
text: text ?? "",
|
|
9988
9994
|
result,
|
|
9989
9995
|
...revisionReceipt ? { publicProfileRevision: revisionReceipt } : {},
|
|
9990
|
-
...usage ? { usage } : {}
|
|
9996
|
+
...usage ? { usage } : {},
|
|
9997
|
+
...modelCalls ? { modelCalls } : {}
|
|
9998
|
+
};
|
|
9999
|
+
}
|
|
10000
|
+
function readModelCalls(value) {
|
|
10001
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
10002
|
+
const { limit, count, observedModels } = value;
|
|
10003
|
+
if (!Number.isSafeInteger(limit) || !Number.isSafeInteger(count)) return void 0;
|
|
10004
|
+
return {
|
|
10005
|
+
limit,
|
|
10006
|
+
count,
|
|
10007
|
+
...Array.isArray(observedModels) && observedModels.every((model) => typeof model === "string") ? { observedModels } : {}
|
|
9991
10008
|
};
|
|
9992
10009
|
}
|
|
9993
10010
|
function readPublicProfileConflicts(value) {
|
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-CqLHOYX0.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-DhkMum3K.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 { w as readResponseJson } from "./errors-Bfhg_Zc6.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-FmewPLL0.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
|
/**
|
|
@@ -3296,6 +3296,20 @@ interface PromptResult {
|
|
|
3296
3296
|
usage?: TokenUsage;
|
|
3297
3297
|
/** Provider-reported model cost in USD, when the runtime emitted it. */
|
|
3298
3298
|
costUsd?: number;
|
|
3299
|
+
/**
|
|
3300
|
+
* A bounded turn's upstream model calls as the runtime's model proxy
|
|
3301
|
+
* relayed them (`maxModelCalls`), never the harness's own report.
|
|
3302
|
+
*/
|
|
3303
|
+
modelCalls?: {
|
|
3304
|
+
limit: number;
|
|
3305
|
+
count: number;
|
|
3306
|
+
/**
|
|
3307
|
+
* The model each counted call's upstream response named, in call order;
|
|
3308
|
+
* shorter than `count` when a response named none. The requested model
|
|
3309
|
+
* is `effectiveBackend.model`, a separate value.
|
|
3310
|
+
*/
|
|
3311
|
+
observedModels?: string[];
|
|
3312
|
+
};
|
|
3299
3313
|
}
|
|
3300
3314
|
type PromptInputPart = {
|
|
3301
3315
|
type: "text";
|
|
@@ -4130,6 +4144,14 @@ interface SendSessionMessageRequest {
|
|
|
4130
4144
|
reasoningEffort?: ReasoningEffort;
|
|
4131
4145
|
turnId?: string;
|
|
4132
4146
|
interactions?: BackendConfig["interactions"];
|
|
4147
|
+
/** Run this turn with every provider tool disabled (OpenCode). */
|
|
4148
|
+
disableTools?: true;
|
|
4149
|
+
/**
|
|
4150
|
+
* Bound this turn to N upstream model calls (1-64). The runtime's model
|
|
4151
|
+
* proxy counts and enforces them; a turn it cannot count is refused. The
|
|
4152
|
+
* completed result reports `modelCalls`.
|
|
4153
|
+
*/
|
|
4154
|
+
maxModelCalls?: number;
|
|
4133
4155
|
}
|
|
4134
4156
|
/** Per-call controls for `SandboxSession.sendMessage`. */
|
|
4135
4157
|
interface SendSessionMessageOptions {
|
|
@@ -4410,6 +4432,14 @@ interface ConversationTurnOptions {
|
|
|
4410
4432
|
admissionDeadline?: string;
|
|
4411
4433
|
/** False is a passive settlement/cancellation lookup; never admits new work. */
|
|
4412
4434
|
allowDispatch?: boolean;
|
|
4435
|
+
/** Run this turn with every provider tool disabled (OpenCode). */
|
|
4436
|
+
disableTools?: true;
|
|
4437
|
+
/**
|
|
4438
|
+
* Bound this turn to N upstream model calls (1-64). The runtime's model
|
|
4439
|
+
* proxy counts and enforces them; a turn it cannot count is refused. The
|
|
4440
|
+
* completed result reports `modelCalls`.
|
|
4441
|
+
*/
|
|
4442
|
+
maxModelCalls?: number;
|
|
4413
4443
|
timeoutMs?: number;
|
|
4414
4444
|
signal?: AbortSignal;
|
|
4415
4445
|
wallCapMs?: number;
|
|
@@ -4490,6 +4520,20 @@ type TurnDriveResult = {
|
|
|
4490
4520
|
* access to the counts otherwise buried untyped inside `result`.
|
|
4491
4521
|
*/
|
|
4492
4522
|
usage?: TokenUsage;
|
|
4523
|
+
/**
|
|
4524
|
+
* A bounded turn's upstream model calls as the runtime's model proxy
|
|
4525
|
+
* relayed them (`maxModelCalls`), never the harness's own report.
|
|
4526
|
+
*/
|
|
4527
|
+
modelCalls?: {
|
|
4528
|
+
limit: number;
|
|
4529
|
+
count: number;
|
|
4530
|
+
/**
|
|
4531
|
+
* The model each counted call's upstream response named, in call order;
|
|
4532
|
+
* shorter than `count` when a response named none. The requested model
|
|
4533
|
+
* is `effectiveBackend.model`, a separate value.
|
|
4534
|
+
*/
|
|
4535
|
+
observedModels?: string[];
|
|
4536
|
+
};
|
|
4493
4537
|
} | {
|
|
4494
4538
|
state: "awaiting_plan_decision";
|
|
4495
4539
|
plan: DurablePlanSnapshot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.3",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -159,17 +159,17 @@
|
|
|
159
159
|
"vitest": "^4.1.11",
|
|
160
160
|
"ws": "^8.20.0",
|
|
161
161
|
"yjs": "13.6.30",
|
|
162
|
+
"@products/sandbox-test-utils": "0.0.0",
|
|
162
163
|
"@repo/shared": "0.0.0",
|
|
164
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
163
165
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
164
|
-
"@tangle-network/sse-core": "0.0.0",
|
|
165
166
|
"@tangle-network/sdk": "4.0.16",
|
|
166
|
-
"@tangle-network/
|
|
167
|
-
"@tangle-network/cli-agent-registry": "0.10.2"
|
|
168
|
-
"@products/sandbox-test-utils": "0.0.0"
|
|
167
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
168
|
+
"@tangle-network/cli-agent-registry": "0.10.2"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "b1a6a3f13a03d21b1d341f23c929e8aaaaec407e",
|
|
172
|
+
"mergedAt": "2026-10-20T02:18:47-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|