@tangle-network/sandbox 0.60.87 → 0.60.89
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 +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-CIlpTZNU.d.ts → agent-run-outcome-KxjDXZW-.d.ts} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-Cu6J3TUP.d.ts → browser-interactive-control-controller-B6sySQFu.d.ts} +1 -1
- package/dist/{chunked-upload-file-DnsHEjg0.js → chunked-upload-file-RaMaNFN_.js} +1 -1
- package/dist/{client-D9OomGmE.js → client-BJ-xYm0s.js} +5 -4
- package/dist/{client-CUxfURSp.d.ts → client-BZnfyj0K.d.ts} +5 -5
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/direct-http2-D8mo1ePx.js +97 -0
- package/dist/{errors-B7i6lxHc.d.ts → errors-Fv8leP33.d.ts} +3 -3
- package/dist/{index-BFW3FzJG.d.ts → index-LO5315tT.d.ts} +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +6 -6
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-CPtHnjrz.js → interactive-controller-Bize8Sca.js} +1 -1
- package/dist/keep-alive-fetch-qPVvvkgJ.js +239 -0
- package/dist/{lines-DosoSbnD.d.ts → lines-BgVaTJBw.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-CBV7Vjk5.js → local-cli-auth-Do4Kc2jL.js} +1 -1
- package/dist/{managed-process-CP-geV3k.d.ts → managed-process-BoQAK9cz.d.ts} +1 -1
- package/dist/{mcp-local-DjryqUiY.js → mcp-local-BYHcA72Z.js} +1 -1
- package/dist/{preview-B-h5p2LF.d.ts → preview-Zqt4hIgH.d.ts} +3 -3
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-Bcs4w1RE.d.ts → sandbox-00TWLhei.d.ts} +8 -7
- package/dist/{sandbox-DyoFguBU.js → sandbox-CCVZWs8k.js} +141 -273
- package/dist/{secp256k1-Dx2XABHz.js → secp256k1-DoWlH6ff.js} +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-yvuD9HP_.js → tangle-DugVLl53.js} +3 -3
- package/dist/{types-H3SX7E33.d.ts → types-DWG-ZlvL.d.ts} +7 -2
- package/package.json +5 -5
- /package/dist/{chunked-upload-DtIvkKNo.js → chunked-upload-ClCKGr59.js} +0 -0
- /package/dist/{cli-auth-bundle-ODe06Ts7.d.ts → cli-auth-bundle-BKsrsbxy.d.ts} +0 -0
- /package/dist/{cli-auth-bundle-cSJjPeFF.js → cli-auth-bundle-CaknD92R.js} +0 -0
- /package/dist/{collaboration-YxqL5cZY.js → collaboration-DZCyTGdn.js} +0 -0
- /package/dist/{index-7_-RzCh9.d.ts → index-BxyTdtyB.d.ts} +0 -0
- /package/dist/{index-Vr-2tNP3.d.ts → index-ONMNeJwr.d.ts} +0 -0
- /package/dist/{line-application-Cq6dJLBD.js → line-application-UtPFP0o4.js} +0 -0
- /package/dist/{preview-operations-DqSo-IBm.js → preview-operations-Bvo5YcIq.js} +0 -0
- /package/dist/{raw-evidence-archive-CZdOSXOC.js → raw-evidence-archive-BjDIFiOM.js} +0 -0
- /package/dist/{terminal-stream-BANlVD4Q.d.ts → terminal-stream-DgD7GlFi.d.ts} +0 -0
- /package/dist/{utils-B7_9Hl_z.js → utils-B6gap92T.js} +0 -0
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, So as BackendType, d as BackendConfig, da as SessionListOptions, k as CodeResultPart, la as SessionInfo, oi as SandboxFleetParent } from "../types-
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-00TWLhei.js";
|
|
2
|
+
import { D as CodeExecutionResult, E as CodeExecutionOptions, O as CodeLanguage, So as BackendType, d as BackendConfig, da as SessionListOptions, k as CodeResultPart, la as SessionInfo, oi as SandboxFleetParent } from "../types-DWG-ZlvL.js";
|
|
3
|
+
import { i as Sandbox } from "../client-BZnfyj0K.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-Zqt4hIgH.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
|
-
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-
|
|
2
|
-
import { D as assertCurrentBackendType } from "../interactive-controller-
|
|
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 { D as assertCurrentBackendType } from "../interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { _ as StateError, b as ValidationError, d as NotFoundError } from "../errors-DSJBKmGZ.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
5
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
4
|
+
import { n as Sandbox } from "../client-BJ-xYm0s.js";
|
|
5
|
+
import { t as SandboxInstance } from "../sandbox-CCVZWs8k.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-Zqt4hIgH.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 };
|
package/dist/agent/preview.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-
|
|
1
|
+
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-Bvo5YcIq.js";
|
|
2
2
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
|
|
|
66
66
|
if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
|
|
67
67
|
const tools = config.tools ?? PREVIEW_TOOLS;
|
|
68
68
|
if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
|
|
69
|
-
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-
|
|
69
|
+
const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-BYHcA72Z.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
|
|
70
70
|
const handle = await createMcpServer(config.box, {
|
|
71
71
|
name: "tangle-previews",
|
|
72
72
|
sessionId: config.sessionId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vr as SandboxEvent, a as AgentQuestionRequest, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation, ut as DurablePlanSnapshot } from "./types-
|
|
1
|
+
import { Vr as SandboxEvent, a as AgentQuestionRequest, i as AgentApprovalRequirement, o as AgentRunStatus, s as AgentToolInvocation, ut as DurablePlanSnapshot } from "./types-DWG-ZlvL.js";
|
|
2
2
|
import { InteractionRequest } from "@tangle-network/agent-interface";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-
|
|
2
|
-
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-BKsrsbxy.js";
|
|
2
|
+
import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-ONMNeJwr.js";
|
|
3
3
|
export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-CaknD92R.js";
|
|
2
2
|
//#region src/auth/tokens.ts
|
|
3
3
|
const textEncoder = new TextEncoder();
|
|
4
4
|
const textDecoder = new TextDecoder();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as TerminalStreamHandlers } from "./terminal-stream-
|
|
1
|
+
import { o as TerminalStreamHandlers } from "./terminal-stream-DgD7GlFi.js";
|
|
2
2
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaimAcknowledgement, AgentInteractiveSessionStatus } from "@tangle-network/agent-interface";
|
|
3
3
|
import { AgentInteractiveSessionControlClaim as AgentInteractiveSessionControlClaim$1, AgentInteractiveSessionControlClaimRequest as AgentInteractiveSessionControlClaimRequest$1, AgentInteractiveSessionRef as AgentInteractiveSessionRef$1 } from "@tangle-network/agent-interface/environment-interactive-control";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-
|
|
1
|
+
import { a as planCompression, c as FILE_UPLOAD_SESSION_MAX_BYTES, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-ClCKGr59.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { open } from "node:fs/promises";
|
|
4
4
|
//#region src/lib/chunked-upload-file.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, T as parseSSEStream, c as requestInteractiveSessionToken } from "./interactive-controller-
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, T as parseSSEStream, c as requestInteractiveSessionToken } from "./interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { C as readResponseJson, S as parseResponseError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, l as NON_RETRYABLE_CREATE_QUOTA_REASONS, p as QuotaError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, x as parseErrorResponse, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
5
|
-
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills,
|
|
5
|
+
import { A as rewrapResponse, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, O as normalizeConnection, T as splitInlineProfileFileMounts, a as normalizeStartupDiagnostics, i as normalizeSandboxCreateReceipt, k as normalizeSandboxShape, n as createSandboxInstanceFromResponse, r as normalizeCaptureProof } from "./sandbox-CCVZWs8k.js";
|
|
6
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
6
7
|
import { LinesClient } from "./lines.js";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
@@ -3338,11 +3339,11 @@ function withRequestContextHeaders(response, path, method, body = response.body)
|
|
|
3338
3339
|
return rewrapResponse(response, headers, body);
|
|
3339
3340
|
}
|
|
3340
3341
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
3341
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
3342
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-Do4Kc2jL.js");
|
|
3342
3343
|
return discoverLocalCliAuthFiles(backendType);
|
|
3343
3344
|
}
|
|
3344
3345
|
async function describeLocalCliAuthExpectation(backendType) {
|
|
3345
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
3346
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-Do4Kc2jL.js");
|
|
3346
3347
|
return describe(backendType);
|
|
3347
3348
|
}
|
|
3348
3349
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { $i as SecretsManager, Aa as SubscriptionInfo, B as CreateSandboxOptions, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, En as IntelligenceReportCompareTo, F as CreateIntelligenceReportOptions, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ja as UsageInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetCostEstimate, Kt as FleetExecDispatchResult, L as CreateSandboxFleetOptions, Li as SandboxShapesInfo, Lt as FleetAgentResult, M as ConversationTurnOptions, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, N as ConversationTurnResult, Nn as ListSandboxOptions, On as IntelligenceReportWindow, Pr as SandboxConfig, R as CreateSandboxFleetTokenOptions, Si as SandboxInfo, Sn as HttpClient, Ta as SshKeysManager, Tn as IntelligenceReportBudget, Ut as FleetDriveTurnOutcome, Va as TokenRefreshHandler, Vt as FleetDispatchResultBufferOptions, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, Xt as FleetRunEvent, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _o as BatchEvent, _r as ReapExpiredSandboxFleetsOptions, ai as SandboxFleetOperationsSummary, ar as PromptInputPart, b as BatchRunRequest, bi as SandboxFleetWorkspaceSnapshotResult, br as ReconcileSandboxFleetsResult, bt as ExecOptions, ci as SandboxFleetPolicy, d as BackendConfig, di as SandboxFleetToken, fi as SandboxFleetTraceBundle, gi as SandboxFleetUsage, gr as PublishPublicTemplateVersionOptions, hi as SandboxFleetTraceOptions, hr as PublishPublicTemplateOptions, l as AttachSandboxFleetMachineOptions, mr as PublicTemplateVersionInfo, ni as SandboxFleetMachineSpec, oi as SandboxFleetParent, or as PromptOptions, pr as PublicTemplateInfo, q as DeleteMatchingSandboxesResult, qt as FleetMachineId, ri as SandboxFleetManifest, sr as PromptResult, ti as SandboxFleetMachineRecord, to as SdkTimingHook, ui as SandboxFleetSpend, v as BatchResult, vi as SandboxFleetWorkspaceReconcileResult, vr as ReapExpiredSandboxFleetsResult, wn as IntelligenceReport, xi as SandboxIdentity, xt as ExecResult, y as BatchRunOptions, yi as SandboxFleetWorkspaceRestoreResult, yr as ReconcileSandboxFleetsOptions, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchCancelResult } from "./types-
|
|
3
|
-
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-
|
|
4
|
-
import { h as SandboxError } from "./errors-
|
|
5
|
-
import { L as LinesClient } from "./lines-
|
|
1
|
+
import { c as TraceExportResult, l as TraceExportSink, n as SandboxInstance } from "./sandbox-00TWLhei.js";
|
|
2
|
+
import { $i as SecretsManager, Aa as SubscriptionInfo, B as CreateSandboxOptions, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, En as IntelligenceReportCompareTo, F as CreateIntelligenceReportOptions, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ja as UsageInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Kr as SandboxFleetCostEstimate, Kt as FleetExecDispatchResult, L as CreateSandboxFleetOptions, Li as SandboxShapesInfo, Lt as FleetAgentResult, M as ConversationTurnOptions, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, N as ConversationTurnResult, Nn as ListSandboxOptions, On as IntelligenceReportWindow, Pr as SandboxConfig, R as CreateSandboxFleetTokenOptions, Si as SandboxInfo, Sn as HttpClient, Ta as SshKeysManager, Tn as IntelligenceReportBudget, Ut as FleetDriveTurnOutcome, Va as TokenRefreshHandler, Vt as FleetDispatchResultBufferOptions, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, Xt as FleetRunEvent, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _o as BatchEvent, _r as ReapExpiredSandboxFleetsOptions, ai as SandboxFleetOperationsSummary, ar as PromptInputPart, b as BatchRunRequest, bi as SandboxFleetWorkspaceSnapshotResult, br as ReconcileSandboxFleetsResult, bt as ExecOptions, ci as SandboxFleetPolicy, d as BackendConfig, di as SandboxFleetToken, fi as SandboxFleetTraceBundle, gi as SandboxFleetUsage, gr as PublishPublicTemplateVersionOptions, hi as SandboxFleetTraceOptions, hr as PublishPublicTemplateOptions, l as AttachSandboxFleetMachineOptions, mr as PublicTemplateVersionInfo, ni as SandboxFleetMachineSpec, oi as SandboxFleetParent, or as PromptOptions, pr as PublicTemplateInfo, q as DeleteMatchingSandboxesResult, qt as FleetMachineId, ri as SandboxFleetManifest, sr as PromptResult, ti as SandboxFleetMachineRecord, to as SdkTimingHook, ui as SandboxFleetSpend, v as BatchResult, vi as SandboxFleetWorkspaceReconcileResult, vr as ReapExpiredSandboxFleetsResult, wn as IntelligenceReport, xi as SandboxIdentity, xt as ExecResult, y as BatchRunOptions, yi as SandboxFleetWorkspaceRestoreResult, yr as ReconcileSandboxFleetsOptions, z as CreateSandboxFleetWithCoordinatorOptions, zt as FleetDispatchCancelResult } from "./types-DWG-ZlvL.js";
|
|
3
|
+
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
|
+
import { h as SandboxError } from "./errors-Fv8leP33.js";
|
|
5
|
+
import { L as LinesClient } from "./lines-BgVaTJBw.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
8
8
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-BxyTdtyB.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-DZCyTGdn.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Bn as ManagedProcessState, Fn as ManagedProcessJobs, In as ManagedProcessOptions, Jn as PreviewLinkInfo, Ln as ManagedProcessRecord, M as ConversationTurnOptions, N as ConversationTurnResult, Pr as SandboxConfig, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Si as SandboxInfo, Un as NetworkConfig, Xn as PreviewLinkWaitOptions, Yn as PreviewLinkManager, ao as SandboxEnvRecoveryView, ar as PromptInputPart, bt as ExecOptions, io as SandboxEnvRecovery, pa as SessionMessageAdmission, xt as ExecResult, zn as ManagedProcessSpec } from "./types-
|
|
3
|
-
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-
|
|
4
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-
|
|
5
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
6
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
1
|
+
import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as WorkspaceImagePublishRequestOptions, n as SandboxInstance, o as WorkspaceImages, r as WorkspaceImagePublishInput } from "./sandbox-00TWLhei.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Bn as ManagedProcessState, Fn as ManagedProcessJobs, In as ManagedProcessOptions, Jn as PreviewLinkInfo, Ln as ManagedProcessRecord, M as ConversationTurnOptions, N as ConversationTurnResult, Pr as SandboxConfig, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Si as SandboxInfo, Un as NetworkConfig, Xn as PreviewLinkWaitOptions, Yn as PreviewLinkManager, ao as SandboxEnvRecoveryView, ar as PromptInputPart, bt as ExecOptions, io as SandboxEnvRecovery, pa as SessionMessageAdmission, xt as ExecResult, zn as ManagedProcessSpec } from "./types-DWG-ZlvL.js";
|
|
3
|
+
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-Fv8leP33.js";
|
|
4
|
+
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-BgVaTJBw.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-BZnfyj0K.js";
|
|
6
|
+
import { t as ManagedProcessClient } from "./managed-process-BoQAK9cz.js";
|
|
7
7
|
|
|
8
8
|
//#region src/core.d.ts
|
|
9
9
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as StateError, b as ValidationError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
2
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-
|
|
3
|
-
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-BJ-xYm0s.js";
|
|
3
|
+
import { C as ManagedProcessClient, o as WorkspaceImages, t as SandboxInstance } from "./sandbox-CCVZWs8k.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
|
-
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-
|
|
5
|
+
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
|
|
6
6
|
//#region src/core.ts
|
|
7
7
|
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
8
8
|
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as emitTiming } from "./keep-alive-fetch-qPVvvkgJ.js";
|
|
2
|
+
//#region src/lib/direct-http2.ts
|
|
3
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
4
|
+
const inFlight = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
async function fetchDirectHttp2(url, init, timing) {
|
|
6
|
+
const { connect } = await import("node:http2");
|
|
7
|
+
const { Readable } = await import("node:stream");
|
|
8
|
+
const request = new Request(url, init);
|
|
9
|
+
request.signal.throwIfAborted();
|
|
10
|
+
const target = new URL(url);
|
|
11
|
+
let session = sessions.get(target.origin);
|
|
12
|
+
const reused = !!session && !session.closed && !session.destroyed;
|
|
13
|
+
if (!session || session.closed || session.destroyed) {
|
|
14
|
+
session = connect(target.origin);
|
|
15
|
+
sessions.set(target.origin, session);
|
|
16
|
+
const opened = session;
|
|
17
|
+
const forget = () => {
|
|
18
|
+
if (sessions.get(target.origin) === opened) sessions.delete(target.origin);
|
|
19
|
+
};
|
|
20
|
+
opened.on("error", forget);
|
|
21
|
+
opened.on("close", forget);
|
|
22
|
+
opened.on("goaway", () => {
|
|
23
|
+
forget();
|
|
24
|
+
opened.close();
|
|
25
|
+
});
|
|
26
|
+
opened.setTimeout(6e4, () => opened.close());
|
|
27
|
+
opened.unref();
|
|
28
|
+
}
|
|
29
|
+
const activeSession = session;
|
|
30
|
+
const headers = {
|
|
31
|
+
":method": request.method,
|
|
32
|
+
":path": target.pathname + target.search
|
|
33
|
+
};
|
|
34
|
+
for (const [key, value] of request.headers) if (![
|
|
35
|
+
"connection",
|
|
36
|
+
"host",
|
|
37
|
+
"transfer-encoding",
|
|
38
|
+
"upgrade",
|
|
39
|
+
"keep-alive"
|
|
40
|
+
].includes(key)) headers[key] = value;
|
|
41
|
+
const started = performance.now();
|
|
42
|
+
const stream = activeSession.request(headers);
|
|
43
|
+
activeSession.ref();
|
|
44
|
+
inFlight.set(activeSession, (inFlight.get(activeSession) ?? 0) + 1);
|
|
45
|
+
stream.once("close", () => {
|
|
46
|
+
const count = (inFlight.get(activeSession) ?? 1) - 1;
|
|
47
|
+
inFlight.set(activeSession, count);
|
|
48
|
+
if (!count) activeSession.unref();
|
|
49
|
+
});
|
|
50
|
+
const abort = () => stream.destroy(request.signal.reason instanceof Error ? request.signal.reason : /* @__PURE__ */ new Error("Request aborted"));
|
|
51
|
+
request.signal.addEventListener("abort", abort, { once: true });
|
|
52
|
+
stream.once("close", () => request.signal.removeEventListener("abort", abort));
|
|
53
|
+
const response = new Promise((resolve, reject) => {
|
|
54
|
+
stream.on("error", reject);
|
|
55
|
+
stream.once("response", (received) => {
|
|
56
|
+
const status = Number(received[":status"]);
|
|
57
|
+
const responseHeaders = new Headers();
|
|
58
|
+
for (const [key, value] of Object.entries(received)) {
|
|
59
|
+
if (key.startsWith(":")) continue;
|
|
60
|
+
if (Array.isArray(value)) for (const item of value) responseHeaders.append(key, item);
|
|
61
|
+
else if (value !== void 0) responseHeaders.set(key, String(value));
|
|
62
|
+
}
|
|
63
|
+
emitTiming(timing.onTiming, {
|
|
64
|
+
name: "sdk.request",
|
|
65
|
+
durMs: performance.now() - started,
|
|
66
|
+
desc: "http2",
|
|
67
|
+
method: request.method,
|
|
68
|
+
path: timing.path,
|
|
69
|
+
status,
|
|
70
|
+
socket: reused ? "reused" : "new"
|
|
71
|
+
});
|
|
72
|
+
const noBody = request.method === "HEAD" || [
|
|
73
|
+
204,
|
|
74
|
+
205,
|
|
75
|
+
304
|
|
76
|
+
].includes(status);
|
|
77
|
+
if (noBody) stream.resume();
|
|
78
|
+
resolve(new Response(noBody ? null : Readable.toWeb(stream), {
|
|
79
|
+
status,
|
|
80
|
+
headers: responseHeaders
|
|
81
|
+
}));
|
|
82
|
+
});
|
|
83
|
+
stream.once("aborted", () => reject(/* @__PURE__ */ new Error("HTTP/2 request aborted")));
|
|
84
|
+
stream.once("close", () => {
|
|
85
|
+
reject(/* @__PURE__ */ new Error(`HTTP/2 stream closed before response (${stream.rstCode})`));
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
if (request.body) {
|
|
89
|
+
const body = Readable.fromWeb(request.body);
|
|
90
|
+
body.on("error", (error) => stream.destroy(error));
|
|
91
|
+
stream.once("close", () => body.destroy());
|
|
92
|
+
body.pipe(stream);
|
|
93
|
+
} else stream.end();
|
|
94
|
+
return response;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { fetchDirectHttp2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ro as SandboxCreateReceipt } from "./types-
|
|
2
|
-
import { c as TerminalStreamReconnectAuthority, n as TerminalStream, p as ScopedToken } from "./terminal-stream-
|
|
3
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
1
|
+
import { ro as SandboxCreateReceipt } from "./types-DWG-ZlvL.js";
|
|
2
|
+
import { c as TerminalStreamReconnectAuthority, n as TerminalStream, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
3
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
4
4
|
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
5
5
|
|
|
6
6
|
//#region src/interactive-controller.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as SandboxInstance } from "./sandbox-
|
|
2
|
-
import { B as CreateSandboxOptions, Sn as HttpClient } from "./types-
|
|
1
|
+
import { n as SandboxInstance } from "./sandbox-00TWLhei.js";
|
|
2
|
+
import { B as CreateSandboxOptions, Sn as HttpClient } from "./types-DWG-ZlvL.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tangle/abi.d.ts
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as BuildControlPlaneMcpConfigOptions, A as InteractivePromptCommand, B as InteractiveStopCommand, C as splitInlineProfileFileMounts, D as SandboxOperationFailedError, E as SandboxOperation, F as InteractiveSessionIncarnationId, G as InteractiveTerminalFrameLog, H as RespondToPermissionOptions, I as InteractiveSessionInfo, J as createInteractiveTerminalSession, K as InteractiveTerminalMetadata, L as InteractiveSessionRef, M as InteractiveSessionHandle, N as InteractiveSessionHandleOptions, O as AgentInteractiveTerminalSession, P as InteractiveSessionHost, Q as SandboxInteractionResult, R as InteractiveSessionStartOptions, S as materializeProfileFileMounts, T as validateDeferredProfileFileMounts, U as agentInteractiveSessionPromptRequestDigest, V as InterruptResult, W as InteractiveTerminalCapture, X as SandboxInteractionConflict, Y as SandboxInteractionCommandResult, Z as SandboxInteractionResolution, _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, at as SandboxMcpServerEntry, b as SplitInlineProfileFileMountsResult, c as TraceExportResult, d as exportTraceBundle, et as BuildSandboxMcpConfigOptions, f as otelTraceIdForTangleTrace, g as SandboxSession, h as RawEvidenceExport, i as WorkspaceImagePublishRequestOptions, it as SandboxMcpEndpoint, j as InteractiveSessionControlClaim, k as InteractiveControlClaimRequest, l as TraceExportSink, m as SandboxTaskSession, n as SandboxInstance, nt as SANDBOX_MCP_SERVER_NAME, o as WorkspaceImages, ot as buildControlPlaneMcpConfig, p as toOtelJson, q as createInteractiveTerminalCapture, r as WorkspaceImagePublishInput, rt as SandboxMcpConfig, s as TraceExportFormat, st as buildSandboxMcpConfig, t as ForkAcknowledgement, tt as CONTROL_PLANE_MCP_SERVER_NAME, u as buildTraceExportPayload, v as MaterializeProfileFileMountsOptions, w as splitInlineProfileSkills, x as SplitInlineProfileSkillsResult, y as MaterializeProfileFileMountsResult, z as InteractiveSessionStartResult } from "./sandbox-
|
|
2
|
-
import { $ as DownloadOptions, $a as WriteManyFile, $i as SecretsManager, $n as ProcessListOptions, $r as SandboxFleetMachine, $t as ForkIdempotency, A as CommitTaskSessionOptions, Aa as SubscriptionInfo, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ar as RolloutTurnPart, At as FileTreeOptions, B as CreateSandboxOptions, Ba as TeePublicKeyResponse, Bi as SandboxTerminalCreateOptions, Bn as ManagedProcessState, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, C as BranchOptions, Ca as SnapshotRemoteSync, Ci as SandboxIntelligenceEnvelope, Cn as InstalledTool, Co as parseBackendType, Ct as FileReadBatchOptions, Da as StartupOperation, Di as SandboxPortBinding, Dn as IntelligenceReportSubjectType, Dr as RolloutScorer, Dt as FileRenameResult, Ea as StartupDiagnostics, Ei as SandboxOperationState, En as IntelligenceReportCompareTo, Er as RolloutOptions, Et as FileReadResult, F as CreateIntelligenceReportOptions, Fa as TaskSessionProfile, Fi as SandboxShape, Fn as ManagedProcessJobs, Fr as SandboxConnection, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Ga as UpdateUserOptions, Gi as SandboxTraceBundle, Gn as NonHostAgentDriverConfig, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, H as CreateTaskSessionOptions, Ha as TokenUsage, Hi as SandboxTerminalManager, Hn as MkdirOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ia as TeeAttestationOptions, Ii as SandboxShapePreset, In as ManagedProcessOptions, Ir as SandboxDeleteAcknowledgement, It as FleetAgentPlacement, J as DeleteOptions, Ja as UsageInfo, Ji as SandboxTraceOptions, Jn as PreviewLinkInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Ka as UploadOptions, Ki as SandboxTraceEvent, Kn as PermissionLevel, Kr as SandboxFleetCostEstimate, L as CreateSandboxFleetOptions, La as TeeAttestationReport, Li as SandboxShapesInfo, Ln as ManagedProcessRecord, Lr as SandboxDeleteOptions, Lt as FleetAgentResult, M as ConversationTurnOptions, Ma as TaskSessionCommitResult, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, Mr as SSHCommandDescriptor, Mt as FileUsageOptions, N as ConversationTurnResult, Na as TaskSessionFileChange, Ni as SandboxRuntimeCapabilities, Nn as ListSandboxOptions, Nr as SSHCredentials, Nt as FileUsageResult, Oa as StopOptions, Oi as SandboxPortPreviewLink, On as IntelligenceReportWindow, Or as RolloutStartResult, Ot as FileSystem, P as CreateGpuLeaseOptions, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pn as MAX_EGRESS_DENIALS_LIMIT, Pr as SandboxConfig, Pt as FileWriteResult, Q as DispatchedSession, Qa as WriteFileOptions, Qi as SecretInfo, Qn as ProcessInfo, Qr as SandboxFleetIntelligenceEnvelope, Qt as ForkCounts, Ra as TeeAttestationResponse, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Rr as SandboxDeleteOutcome, Rt as FleetAgentRunStatus, S as BatchTaskResult, Si as SandboxInfo, So as BackendType, St as FileInfo, T as ChunkedUploadResult, Ti as SandboxOperationKind, Tn as IntelligenceReportBudget, Tr as RolloutChildResult, Tt as FileReadError, U as DeleteMatchingSandboxOutcome, Ua as TurnBackendConfig, Ui as SandboxTerminalRequestOptions, Un as NetworkConfig, Ur as SandboxFleetAgentSpec, Ut as FleetDriveTurnOutcome, V as CreateSessionOptions, Va as TokenRefreshHandler, Vi as SandboxTerminalInfo, Vn as McpServerConfig, Vr as SandboxEvent, Vt as FleetDispatchResultBufferOptions, W as DeleteMatchingSandboxResult, Wa as TurnDriveResult, Wi as SandboxTerminals, Wn as NetworkManager, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, X as DirectoryPermission, Xa as WaitForRolloutOptions, Xi as SearchMatch, Xn as PreviewLinkWaitOptions, Xr as SandboxFleetDriverTimings, Xt as FleetRunEvent, Y as DevServerInfo, Ya as WaitForOptions, Yi as SandboxUser, Yn as PreviewLinkManager, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Z as DispatchPromptOptions, Za as WorkspaceOperationLookup, Zi as SearchOptions, Zn as Process, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _ as BatchBackend, _a as SnapshotDeleteAcknowledgement, _i as SandboxFleetWorkspace, _n as GpuLeaseProviders, _o as BatchEvent, _r as ReapExpiredSandboxFleetsOptions, _t as EnsureDevServerOptions, aa as SessionExecutionInfo, ai as SandboxFleetOperationsSummary, an as GitConfig, ao as SandboxEnvRecoveryView, ar as PromptInputPart, at as DriverType, b as BatchRunRequest, ba as SnapshotInfo, bi as SandboxFleetWorkspaceSnapshotResult, bn as HostAgentDriverConfig, bo as BatchTaskUsage, br as ReconcileSandboxFleetsResult, bt as ExecOptions, c as AttachGpuLeaseOptions, ca as SessionForkOptions, ci as SandboxFleetPolicy, cn as GpuLease, co as RawEvidenceDirectoryExport, cr as ProvisionEvent, ct as DurablePlanDecisionResult, d as BackendConfig, da as SessionListOptions, di as SandboxFleetToken, dn as GpuLeaseExecOptions, do as RawEvidencePayloadFile, dr as ProvisionStep, dt as EffectiveBackend, ea as SendSessionMessageOptions, ei as SandboxFleetMachineMeteredUsage, en as ForkLookupOptions, eo as WriteManyOptions, er as ProcessLogEntry, et as DownloadProgress, f as BackendInfo, fa as SessionMessage, fi as SandboxFleetTraceBundle, fn as GpuLeaseExecResult, fo as RawEvidenceRecordsFile, fr as PublicProfileConflict, ft as EffectiveBackendProfile, g as BackendStatus, ga as SessionStatus, gi as SandboxFleetUsage, gn as GpuLeaseProviderStatus, go as BatchBackendStats, gr as PublishPublicTemplateVersionOptions, gt as EgressPolicy, h as BackendRuntimeConfigUpdate, ha as SessionResultOptions, hi as SandboxFleetTraceOptions, hn as GpuLeaseProviderState, ho as PublicBatchRunRequest, hr as PublishPublicTemplateOptions, ht as EgressManager, ia as SessionEventStreamOptions, ii as SandboxFleetManifestMachine, in as GitCommit, io as SandboxEnvRecovery, ir as ProcessStatus, it as DriverInfo, j as CompletedTurnResult, ja as TaskSessionChanges, ji as SandboxResources, jn as ListOptions, jr as RouterRoutingOptions, jt as FileTreeResult, ka as StorageConfig, ki as SandboxRemovalState, kr as RolloutStatus, kt as FileTreeFile, l as AttachSandboxFleetMachineOptions, la as SessionInfo, li as SandboxFleetProfileRef, ln as GpuLeaseBilling, lo as RawEvidenceExportOptions, lr as ProvisionResult, lt as DurablePlanFollowUpResume, m as BackendMcpServerStatus, ma as SessionMessageInputPart, mi as SandboxFleetTraceExport, mn as GpuLeaseProviderName, mr as PublicTemplateVersionInfo, mt as EgressDenial, n as AccessPolicyRule, na as SentSessionMessage, ni as SandboxFleetMachineSpec, nn as GitAuth, no as SandboxCreateOutcome, nr as ProcessSignal, nt as DriveTurnOptions, oa as SessionExecutionStatus, oi as SandboxFleetParent, on as GitDiff, oo as RawEvidenceArchiveManifest, or as PromptOptions, ot as DurablePlan, p as BackendManager, pa as SessionMessageAdmission, pi as SandboxFleetTraceEvent, pn as GpuLeaseManager, pr as PublicTemplateInfo, pt as EffectiveBackendSource, q as DeleteMatchingSandboxesResult, qa as UploadProgress, qi as SandboxTraceExport, qn as PermissionsManager, qr as SandboxFleetDispatchFailureClass, qt as FleetMachineId, r as AddUserOptions, ra as SessionBackendCredentials, ri as SandboxFleetManifest, rn as GitBranch, ro as SandboxCreateReceipt, rr as ProcessSpawnOptions, rt as DriverConfig, sa as SessionFailureReason, si as SandboxFleetPlacement, sn as GitStatus, so as RawEvidenceArchiveManifestNative, sr as PromptResult, st as DurablePlanDecisionOptions, t as AcceleratorKind, ta as SendSessionMessageRequest, ti as SandboxFleetMachineRecord, tn as GPU_LEASE_PROVIDER_NAMES, tr as ProcessManager, tt as DownloadResult, u as BackendCapabilities, ua as SessionInterruptOptions, ui as SandboxFleetSpend, un as GpuLeaseCommandResult, uo as RawEvidenceNativeFile, ur as ProvisionStatus, v as BatchResult, va as SnapshotDeleteOutcome, vi as SandboxFleetWorkspaceReconcileResult, vn as GpuLeaseProvidersOptions, vo as BatchEventDataMap, vr as ReapExpiredSandboxFleetsResult, vt as EventStreamOptions, w as ChunkedUploadOptions, wa as SnapshotResult, wi as SandboxOperationInfo, wn as IntelligenceReport, wr as Rollout, wt as FileReadBatchResult, x as BatchTask, xa as SnapshotOptions, xi as SandboxIdentity, xn as HostAgentRuntimeBackend, xo as ALL_BACKEND_TYPES, xr as RenameOptions, xt as ExecResult, y as BatchRunOptions, ya as SnapshotIdempotency, yi as SandboxFleetWorkspaceRestoreResult, yn as GpuLeaseStatus, yo as BatchSidecarGroup, yr as ReconcileSandboxFleetsOptions, yt as ExactProcessSpawnOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeePublicKey, zi as SandboxTerminalAttachOptions, zn as ManagedProcessSpec, zr as SandboxEgressUsage, zt as FleetDispatchCancelResult } from "./types-
|
|
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-
|
|
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-
|
|
5
|
-
import { C as ValidationError, D as InteractiveSessionController, E as InteractiveAttachRequest, O as InteractiveSessionControllerOptions, S as TimeoutError, T as BrowserInteractiveSessionControllerOptions, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, k as InteractiveSessionControllerTransport, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, x as StreamInterruptionReason, y as StateError } from "./errors-
|
|
6
|
-
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-
|
|
7
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
8
|
-
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-
|
|
9
|
-
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-
|
|
10
|
-
import { t as ManagedProcessClient } from "./managed-process-
|
|
11
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
12
|
-
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-
|
|
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-00TWLhei.js";
|
|
2
|
+
import { $ as DownloadOptions, $a as WriteManyFile, $i as SecretsManager, $n as ProcessListOptions, $r as SandboxFleetMachine, $t as ForkIdempotency, A as CommitTaskSessionOptions, Aa as SubscriptionInfo, Ai as SandboxResourceUsage, An as ListMessagesOptions, Ar as RolloutTurnPart, At as FileTreeOptions, B as CreateSandboxOptions, Ba as TeePublicKeyResponse, Bi as SandboxTerminalCreateOptions, Bn as ManagedProcessState, Br as SandboxEnvironment, Bt as FleetDispatchResultBuffer, C as BranchOptions, Ca as SnapshotRemoteSync, Ci as SandboxIntelligenceEnvelope, Cn as InstalledTool, Co as parseBackendType, Ct as FileReadBatchOptions, Da as StartupOperation, Di as SandboxPortBinding, Dn as IntelligenceReportSubjectType, Dr as RolloutScorer, Dt as FileRenameResult, Ea as StartupDiagnostics, Ei as SandboxOperationState, En as IntelligenceReportCompareTo, Er as RolloutOptions, Et as FileReadResult, F as CreateIntelligenceReportOptions, Fa as TaskSessionProfile, Fi as SandboxShape, Fn as ManagedProcessJobs, Fr as SandboxConnection, Ft as FleetAgentId, G as DeleteMatchingSandboxesFilter, Ga as UpdateUserOptions, Gi as SandboxTraceBundle, Gn as NonHostAgentDriverConfig, Gr as SandboxFleetArtifactSpec, Gt as FleetExecDispatchOptions, H as CreateTaskSessionOptions, Ha as TokenUsage, Hi as SandboxTerminalManager, Hn as MkdirOptions, Hr as SandboxFleetAgent, Ht as FleetDispatchStreamOptions, I as CreateRequestOptions, Ia as TeeAttestationOptions, Ii as SandboxShapePreset, In as ManagedProcessOptions, Ir as SandboxDeleteAcknowledgement, It as FleetAgentPlacement, J as DeleteOptions, Ja as UsageInfo, Ji as SandboxTraceOptions, Jn as PreviewLinkInfo, Jr as SandboxFleetDispatchResponse, Jt as FleetPromptDispatchOptions, K as DeleteMatchingSandboxesOptions, Ka as UploadOptions, Ki as SandboxTraceEvent, Kn as PermissionLevel, Kr as SandboxFleetCostEstimate, L as CreateSandboxFleetOptions, La as TeeAttestationReport, Li as SandboxShapesInfo, Ln as ManagedProcessRecord, Lr as SandboxDeleteOptions, Lt as FleetAgentResult, M as ConversationTurnOptions, Ma as TaskSessionCommitResult, Mi as SandboxRunGeneration, Mn as ListSandboxFleetOptions, Mr as SSHCommandDescriptor, Mt as FileUsageOptions, N as ConversationTurnResult, Na as TaskSessionFileChange, Ni as SandboxRuntimeCapabilities, Nn as ListSandboxOptions, Nr as SSHCredentials, Nt as FileUsageResult, Oa as StopOptions, Oi as SandboxPortPreviewLink, On as IntelligenceReportWindow, Or as RolloutStartResult, Ot as FileSystem, P as CreateGpuLeaseOptions, Pa as TaskSessionInfo, Pi as SandboxRuntimeHealth, Pn as MAX_EGRESS_DENIALS_LIMIT, Pr as SandboxConfig, Pt as FileWriteResult, Q as DispatchedSession, Qa as WriteFileOptions, Qi as SecretInfo, Qn as ProcessInfo, Qr as SandboxFleetIntelligenceEnvelope, Qt as ForkCounts, Ra as TeeAttestationResponse, Ri as SandboxStatus, Rn as ManagedProcessResumeOptions, Rr as SandboxDeleteOutcome, Rt as FleetAgentRunStatus, S as BatchTaskResult, Si as SandboxInfo, So as BackendType, St as FileInfo, T as ChunkedUploadResult, Ti as SandboxOperationKind, Tn as IntelligenceReportBudget, Tr as RolloutChildResult, Tt as FileReadError, U as DeleteMatchingSandboxOutcome, Ua as TurnBackendConfig, Ui as SandboxTerminalRequestOptions, Un as NetworkConfig, Ur as SandboxFleetAgentSpec, Ut as FleetDriveTurnOutcome, V as CreateSessionOptions, Va as TokenRefreshHandler, Vi as SandboxTerminalInfo, Vn as McpServerConfig, Vr as SandboxEvent, Vt as FleetDispatchResultBufferOptions, W as DeleteMatchingSandboxResult, Wa as TurnDriveResult, Wi as SandboxTerminals, Wn as NetworkManager, Wr as SandboxFleetArtifact, Wt as FleetDriveTurnRequest, X as DirectoryPermission, Xa as WaitForRolloutOptions, Xi as SearchMatch, Xn as PreviewLinkWaitOptions, Xr as SandboxFleetDriverTimings, Xt as FleetRunEvent, Y as DevServerInfo, Ya as WaitForOptions, Yi as SandboxUser, Yn as PreviewLinkManager, Yr as SandboxFleetDriverCapability, Yt as FleetPromptDispatchResult, Z as DispatchPromptOptions, Za as WorkspaceOperationLookup, Zi as SearchOptions, Zn as Process, Zr as SandboxFleetInfo, Zt as FleetRunOptions, _ as BatchBackend, _a as SnapshotDeleteAcknowledgement, _i as SandboxFleetWorkspace, _n as GpuLeaseProviders, _o as BatchEvent, _r as ReapExpiredSandboxFleetsOptions, _t as EnsureDevServerOptions, aa as SessionExecutionInfo, ai as SandboxFleetOperationsSummary, an as GitConfig, ao as SandboxEnvRecoveryView, ar as PromptInputPart, at as DriverType, b as BatchRunRequest, ba as SnapshotInfo, bi as SandboxFleetWorkspaceSnapshotResult, bn as HostAgentDriverConfig, bo as BatchTaskUsage, br as ReconcileSandboxFleetsResult, bt as ExecOptions, c as AttachGpuLeaseOptions, ca as SessionForkOptions, ci as SandboxFleetPolicy, cn as GpuLease, co as RawEvidenceDirectoryExport, cr as ProvisionEvent, ct as DurablePlanDecisionResult, d as BackendConfig, da as SessionListOptions, di as SandboxFleetToken, dn as GpuLeaseExecOptions, do as RawEvidencePayloadFile, dr as ProvisionStep, dt as EffectiveBackend, ea as SendSessionMessageOptions, ei as SandboxFleetMachineMeteredUsage, en as ForkLookupOptions, eo as WriteManyOptions, er as ProcessLogEntry, et as DownloadProgress, f as BackendInfo, fa as SessionMessage, fi as SandboxFleetTraceBundle, fn as GpuLeaseExecResult, fo as RawEvidenceRecordsFile, fr as PublicProfileConflict, ft as EffectiveBackendProfile, g as BackendStatus, ga as SessionStatus, gi as SandboxFleetUsage, gn as GpuLeaseProviderStatus, go as BatchBackendStats, gr as PublishPublicTemplateVersionOptions, gt as EgressPolicy, h as BackendRuntimeConfigUpdate, ha as SessionResultOptions, hi as SandboxFleetTraceOptions, hn as GpuLeaseProviderState, ho as PublicBatchRunRequest, hr as PublishPublicTemplateOptions, ht as EgressManager, ia as SessionEventStreamOptions, ii as SandboxFleetManifestMachine, in as GitCommit, io as SandboxEnvRecovery, ir as ProcessStatus, it as DriverInfo, j as CompletedTurnResult, ja as TaskSessionChanges, ji as SandboxResources, jn as ListOptions, jr as RouterRoutingOptions, jt as FileTreeResult, ka as StorageConfig, ki as SandboxRemovalState, kr as RolloutStatus, kt as FileTreeFile, l as AttachSandboxFleetMachineOptions, la as SessionInfo, li as SandboxFleetProfileRef, ln as GpuLeaseBilling, lo as RawEvidenceExportOptions, lr as ProvisionResult, lt as DurablePlanFollowUpResume, m as BackendMcpServerStatus, ma as SessionMessageInputPart, mi as SandboxFleetTraceExport, mn as GpuLeaseProviderName, mr as PublicTemplateVersionInfo, mt as EgressDenial, n as AccessPolicyRule, na as SentSessionMessage, ni as SandboxFleetMachineSpec, nn as GitAuth, no as SandboxCreateOutcome, nr as ProcessSignal, nt as DriveTurnOptions, oa as SessionExecutionStatus, oi as SandboxFleetParent, on as GitDiff, oo as RawEvidenceArchiveManifest, or as PromptOptions, ot as DurablePlan, p as BackendManager, pa as SessionMessageAdmission, pi as SandboxFleetTraceEvent, pn as GpuLeaseManager, pr as PublicTemplateInfo, pt as EffectiveBackendSource, q as DeleteMatchingSandboxesResult, qa as UploadProgress, qi as SandboxTraceExport, qn as PermissionsManager, qr as SandboxFleetDispatchFailureClass, qt as FleetMachineId, r as AddUserOptions, ra as SessionBackendCredentials, ri as SandboxFleetManifest, rn as GitBranch, ro as SandboxCreateReceipt, rr as ProcessSpawnOptions, rt as DriverConfig, sa as SessionFailureReason, si as SandboxFleetPlacement, sn as GitStatus, so as RawEvidenceArchiveManifestNative, sr as PromptResult, st as DurablePlanDecisionOptions, t as AcceleratorKind, ta as SendSessionMessageRequest, ti as SandboxFleetMachineRecord, tn as GPU_LEASE_PROVIDER_NAMES, tr as ProcessManager, tt as DownloadResult, u as BackendCapabilities, ua as SessionInterruptOptions, ui as SandboxFleetSpend, un as GpuLeaseCommandResult, uo as RawEvidenceNativeFile, ur as ProvisionStatus, v as BatchResult, va as SnapshotDeleteOutcome, vi as SandboxFleetWorkspaceReconcileResult, vn as GpuLeaseProvidersOptions, vo as BatchEventDataMap, vr as ReapExpiredSandboxFleetsResult, vt as EventStreamOptions, w as ChunkedUploadOptions, wa as SnapshotResult, wi as SandboxOperationInfo, wn as IntelligenceReport, wr as Rollout, wt as FileReadBatchResult, x as BatchTask, xa as SnapshotOptions, xi as SandboxIdentity, xn as HostAgentRuntimeBackend, xo as ALL_BACKEND_TYPES, xr as RenameOptions, xt as ExecResult, y as BatchRunOptions, ya as SnapshotIdempotency, yi as SandboxFleetWorkspaceRestoreResult, yn as GpuLeaseStatus, yo as BatchSidecarGroup, yr as ReconcileSandboxFleetsOptions, yt as ExactProcessSpawnOptions, z as CreateSandboxFleetWithCoordinatorOptions, za as TeePublicKey, zi as SandboxTerminalAttachOptions, zn as ManagedProcessSpec, zr as SandboxEgressUsage, zt as FleetDispatchCancelResult } from "./types-DWG-ZlvL.js";
|
|
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
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, i as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as InteractiveSessionNotRunningError, m as InteractiveControlClaimOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimAcknowledgement, r as browserInteractiveControlHolderId, s as InteractiveSessionControlTransport, t as BrowserInteractiveSessionControlController, u as createInteractiveControlHolderId } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
5
|
+
import { C as ValidationError, D as InteractiveSessionController, E as InteractiveAttachRequest, O as InteractiveSessionControllerOptions, S as TimeoutError, T as BrowserInteractiveSessionControllerOptions, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, k as InteractiveSessionControllerTransport, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, w as BrowserInteractiveSessionController, x as StreamInterruptionReason, y as StateError } from "./errors-Fv8leP33.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-BgVaTJBw.js";
|
|
7
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-BZnfyj0K.js";
|
|
8
|
+
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-ONMNeJwr.js";
|
|
9
|
+
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-BxyTdtyB.js";
|
|
10
|
+
import { t as ManagedProcessClient } from "./managed-process-BoQAK9cz.js";
|
|
11
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-KxjDXZW-.js";
|
|
12
|
+
import { b as TangleSandboxClientConfig, h as TangleSandboxClient } from "./index-LO5315tT.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
15
15
|
import { AgentProfile, AgentProfile as AgentProfile$1, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileConfigValue, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentSubagentProfile, Capability, SANDBOX_SIZE_PRESET_NAMES, SandboxSizePreset } from "@tangle-network/agent-interface";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as parseBackendType, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-D6bYbvMB.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, T as parseSSEStream, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, j as requestedPublicProfileDigest, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, T as parseSSEStream, a as terminalUpgradeHeadersSupported, i as TerminalStreamError, j as requestedPublicProfileDigest, n as InteractiveSessionController, o as TERMINAL_WS_ECHO_SUBPROTOCOL, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-Bize8Sca.js";
|
|
3
3
|
import { _ as StateError, a as EgressProxyRecoveryError, b as ValidationError, c as KeyBudgetExhaustedError, d as NotFoundError, f as PartialFailureError, g as ServerError, h as SandboxError, i as EdgeNotReadyError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as StreamInterruptedError, y as TimeoutError } from "./errors-DSJBKmGZ.js";
|
|
4
|
-
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-
|
|
4
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, c as SandboxFleetClient, d as validateBatchRunRequest, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, l as runtimeWorkspaceCwdSchema, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, r as RunsClient, s as SandboxFleet, t as IntelligenceClient, u as createBatchResultAccumulator, v as parseBackendRegistryResponseBody } from "./client-BJ-xYm0s.js";
|
|
5
5
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
6
|
-
import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills,
|
|
6
|
+
import { C as ManagedProcessClient, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, M as exportTraceBundle, N as otelTraceIdForTangleTrace, P as toOtelJson, S as isToolBearingEvent, T as splitInlineProfileFileMounts, _ as SandboxOperationFailedError, b as collectAgentResponseText, c as MAX_EGRESS_DENIALS_LIMIT, d as InteractiveSessionHandle, f as agentInteractiveSessionPromptRequestDigest, g as SandboxOperation, h as createInteractiveTerminalSession, j as buildTraceExportPayload, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as WorkspaceImages, p as InteractiveTerminalFrameLog, s as GPU_LEASE_PROVIDER_NAMES, t as SandboxInstance, u as SandboxSession, v as applySandboxEventText, w as materializeProfileFileMounts, x as getSandboxEventText, y as collectAgentFinalMessageText } from "./sandbox-CCVZWs8k.js";
|
|
7
7
|
import { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
8
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-
|
|
9
|
-
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-
|
|
10
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
8
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-DZCyTGdn.js";
|
|
9
|
+
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-UtPFP0o4.js";
|
|
10
|
+
import { s as TangleSandboxClient } from "./tangle-DugVLl53.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { SANDBOX_SIZE_PRESET_NAMES, agentProfileConfidentialSchema, agentProfileSchema } from "@tangle-network/agent-interface";
|
|
13
13
|
//#region src/confidential.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-
|
|
1
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-B6sySQFu.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-D6bYbvMB.js";
|
|
2
2
|
import { S as parseResponseError, b as ValidationError, g as ServerError, h as SandboxError, r as CapabilityError, u as NetworkError } from "./errors-DSJBKmGZ.js";
|
|
3
3
|
import { c as assertInteractiveSessionRef, d as awaitWithAbort, f as combineAbortSignals, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint } from "./browser-interactive-control-controller-BJf0P_J4.js";
|
|
4
|
-
import { s as uploadChunked } from "./chunked-upload-
|
|
4
|
+
import { s as uploadChunked } from "./chunked-upload-ClCKGr59.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { AgentExactRunControlRefSchema, AgentExecutionOutcomeSchema, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionRefSchema, AgentRuntimeAttachmentsSchema, DurablePlanSchema, InteractionRequestSchema, PlanContinuationSchema, agentInteractiveSessionControlClaimMatchesRef, agentProfileSchema, canonicalCandidateDigest } from "@tangle-network/agent-interface";
|
|
7
7
|
//#region src/agent-run-outcome-inspection.ts
|