@tangle-network/sandbox 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/agent/index.d.ts +6 -7
- package/dist/agent/index.js +4 -4
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-DQsKqrUg.d.ts → agent-run-outcome-DkJVwb8D.d.ts} +2 -2
- package/dist/{browser-interactive-control-controller-wp8WpHrK.d.ts → browser-interactive-control-controller-DdhciJR8.d.ts} +1 -1
- package/dist/{client-BU_g1IAA.d.ts → client-CpTt65-H.d.ts} +8 -17
- package/dist/{client-65nLOvJ7.js → client-fAhCkcRh.js} +3 -3
- package/dist/{core-Cr7opKvg.js → core-eAdKeKPo.js} +1 -1
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{index-Dg0oODRT.d.ts → index-CEnN8lzy.d.ts} +16 -24
- package/dist/index.d.ts +9 -9
- package/dist/index.js +8 -17
- package/dist/intelligence/index.d.ts +1 -4
- package/dist/intelligence/index.js +0 -1
- package/dist/interactive-control.d.ts +1 -1
- package/dist/{interactive-controller-DfzfOmf9.js → interactive-controller-BRUzaI-G.js} +1 -1
- package/dist/{interactive-controller-CYi2SQLW.d.ts → interactive-controller-DKSv-fGQ.d.ts} +3 -3
- package/dist/{lines-1ZmvseqM.d.ts → lines-BU4hEO2M.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{mcp-local-CPdKHcQ-.js → mcp-local-CQJwjQkZ.js} +2 -3
- package/dist/{preview-Ck7dk9RQ.d.ts → preview-DlMDTeyz.d.ts} +3 -3
- package/dist/{public-templates-BtwE92xQ.d.ts → public-templates-DgFlNR6x.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/{raw-evidence-archive-Cwap86xg.js → raw-evidence-archive-DXGxxsgK.js} +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-0FmoqR0P.js → sandbox-C_IZHl45.js} +20 -91
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/session-gateway/index.js +1 -1
- package/dist/{sse-parser-BU0BrEcQ.js → sse-parser-BUIKfYAd.js} +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BH7X-adR.js → tangle-D05S-A_g.js} +1 -1
- package/dist/{terminal-stream-types-BarOQIIa.d.ts → terminal-stream-types-BlOFGopg.d.ts} +2 -1
- package/dist/{types-KVM581O6.d.ts → types-D89tf_Kw.d.ts} +7 -49
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -958,7 +958,7 @@ pnpm --filter @tangle-network/sandbox build
|
|
|
958
958
|
pnpm --filter @tangle-network/sandbox verify-dist
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
-
Public type definitions live in `src/types/` by capability; `src/types.ts`
|
|
961
|
+
Public type definitions live in `src/types/` by capability; `src/types.ts` re-exports them. Compare two emitted declaration trees with `node products/sandbox/sdk/scripts/verify-declarations.mjs <after-dist> --compare <before-dist>`. The report separates raw artifact bytes from declaration and import identity; it preserves JSDoc and overload order.
|
|
962
962
|
|
|
963
963
|
## License
|
|
964
964
|
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, xt as SessionListOptions, yt as SessionInfo } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-CEnN8lzy.js";
|
|
2
|
+
import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, xt as SessionListOptions, yt as SessionInfo } from "../types-D89tf_Kw.js";
|
|
3
|
+
import { t as Sandbox } from "../client-CpTt65-H.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-DlMDTeyz.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";
|
|
@@ -185,9 +185,8 @@ declare const TOOL_SPECS: {
|
|
|
185
185
|
}, ToolHandlerResult>;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
|
-
* The
|
|
189
|
-
*
|
|
190
|
-
* through TOOL_SPECS or a pack's explicit tools allow-list.
|
|
188
|
+
* The default tool set. Preview publishing is opt-in through TOOL_SPECS or a
|
|
189
|
+
* pack's explicit tools allow-list.
|
|
191
190
|
*/
|
|
192
191
|
declare const ALL_TOOL_SPECS: ToolSpec[];
|
|
193
192
|
//#endregion
|
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-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
1
|
+
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-CQJwjQkZ.js";
|
|
2
|
+
import { D as assertCurrentBackendType } from "../interactive-controller-BRUzaI-G.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-C_IZHl45.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BStusQVc.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-fAhCkcRh.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-DlMDTeyz.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
|
@@ -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-CQJwjQkZ.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,5 +1,5 @@
|
|
|
1
|
-
import { U as InteractionRequest } from "./terminal-stream-types-
|
|
2
|
-
import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-
|
|
1
|
+
import { U as InteractionRequest } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
|
+
import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-D89tf_Kw.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
5
5
|
interface AgentRunOutcome {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, M as AgentInteractiveSessionStatus, O as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionAttach, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef } from "./terminal-stream-types-
|
|
1
|
+
import { D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, M as AgentInteractiveSessionStatus, O as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionAttach, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
2
|
|
|
3
3
|
//#region src/interactive-types.d.ts
|
|
4
4
|
/** Cancellation for an interactive SDK request. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
2
|
-
import { G as AgentProfile, J as AgentProfileConfigValue, Ot as SandboxError, Q as AgentProfileMetadata, S as SandboxSizePreset, X as AgentProfileFileMount, Z as AgentProfileMcpServer, c as MintInteractiveSessionTokenOptions, it as AgentProfileSeat, j as AgentInteractiveSessionRef, q as AgentProfileConfidential, u as ScopedToken } from "./terminal-stream-types-
|
|
3
|
-
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Or as DownloadOptions, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-CEnN8lzy.js";
|
|
2
|
+
import { G as AgentProfile, J as AgentProfileConfigValue, Ot as SandboxError, Q as AgentProfileMetadata, S as SandboxSizePreset, X as AgentProfileFileMount, Z as AgentProfileMcpServer, c as MintInteractiveSessionTokenOptions, it as AgentProfileSeat, j as AgentInteractiveSessionRef, q as AgentProfileConfidential, u as ScopedToken } from "./terminal-stream-types-BlOFGopg.js";
|
|
3
|
+
import { $n as TeeAttestationReport, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, Bt as FleetDispatchCancelResult, En as SandboxFleetTraceBundle, Fa as GpuLeaseProviderName, Fi as SdkTimingHook, Fn as ListSandboxOptions, Ft as CreateSandboxFleetWithCoordinatorOptions, Gi as BatchRunOptions, Gt as FleetExecDispatchResult, Hn as SandboxRunGeneration, Ht as FleetDispatchResultBufferOptions, It as FleetAgentId, Jt as FleetPromptDispatchResult, Kt as FleetMachineId, M as UsageInfo, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mt as AttachSandboxFleetMachineOptions, Nn as SandboxFleetWorkspaceRestoreResult, Nt as CreateSandboxFleetOptions, Oi as ManagedProcessJobs, Or as DownloadOptions, Pi as HttpClient, Pn as SandboxFleetWorkspaceSnapshotResult, Pt as CreateSandboxFleetTokenOptions, Qt as ReapExpiredSandboxFleetsOptions, Rt as FleetAgentResult, Sn as SandboxFleetPolicy, T as SshKeysManager, Tn as SandboxFleetToken, Ut as FleetDispatchStreamOptions, Vt as FleetDispatchResultBuffer, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xi as CreateIntelligenceReportOptions, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Yt as FleetRunEvent, Z as TokenRefreshHandler, Zt as ListSandboxFleetOptions, _n as SandboxFleetManifest, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, ba as BackendConfig, bn as SandboxFleetParent, ca as PromptInputPart, cn as SandboxFleetDispatchResponse, cr as SandboxShapesInfo, da as SandboxEvent, dn as SandboxFleetInfo, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, er as TeeAttestationResponse, fo as BatchResult, fr as SandboxShapePreset, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, hn as SandboxFleetMachineRecord, ho as PublicBatchRunRequest, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, in as SandboxFleetArtifact, ir as CreateRequestOptions, j as SubscriptionInfo, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, la as PromptOptions, ln as SandboxFleetDriverCapability, nn as SandboxFleetAgent, nt as ConversationTurnResult, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, or as SandboxConfig, pn as SandboxFleetMachine, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, sa as IntelligenceReportWindow, sr as SandboxResources, ti as ExecResult, tn as ReconcileSandboxFleetsResult, tt as ConversationTurnOptions, ua as PromptResult, va as TurnBackendConfig, vo as BatchEvent, w as SecretsManager, wn as SandboxFleetSpend, yn as SandboxFleetOperationsSummary, zn as SandboxInfo } from "./types-D89tf_Kw.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-BU4hEO2M.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-DgFlNR6x.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/backend-registry.d.ts
|
|
@@ -659,7 +659,7 @@ interface ServerFleetRecord {
|
|
|
659
659
|
* streams can explicitly warn and skip one invalid frame.
|
|
660
660
|
*
|
|
661
661
|
* What it does NOT do:
|
|
662
|
-
* - CR-only
|
|
662
|
+
* - CR-only line terminators. No known emitter uses
|
|
663
663
|
* them; supporting them would risk splitting payloads that
|
|
664
664
|
* legitimately contain CR.
|
|
665
665
|
* - Retry/reconnect (caller's responsibility).
|
|
@@ -1472,20 +1472,11 @@ declare class ImageBuilder {
|
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Compute the content-addressed ID for this spec.
|
|
1474
1474
|
*
|
|
1475
|
-
* Uses Web Crypto when available
|
|
1476
|
-
*
|
|
1475
|
+
* Uses Web Crypto when available, falling back to a lazy
|
|
1476
|
+
* `import("node:crypto")` on runtimes without a global `crypto.subtle`.
|
|
1477
1477
|
* Works in every JavaScript environment the SDK supports.
|
|
1478
1478
|
*
|
|
1479
1479
|
* @returns SHA-256 hash of the normalized spec as a hex string.
|
|
1480
|
-
*
|
|
1481
|
-
* **Breaking change (v0.0.3):** `computeId()` was previously
|
|
1482
|
-
* synchronous. Callers must now `await` the result. A Node-only sync
|
|
1483
|
-
* variant was considered and dropped: it would have either required
|
|
1484
|
-
* Node 22.3+ (breaking Node 18/20 consumers) or re-introduced the
|
|
1485
|
-
* top-level `node:crypto` import that blanks every browser page
|
|
1486
|
-
* transitively importing the SDK root. If you genuinely need the
|
|
1487
|
-
* hash synchronously in a Node-only context, compute it yourself
|
|
1488
|
-
* from `builder.toSpec()` with `JSON.stringify(spec, Object.keys(spec).sort())`.
|
|
1489
1480
|
*/
|
|
1490
1481
|
computeId(): Promise<string>;
|
|
1491
1482
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as normalizeRuntimeBackendConfig, D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, S as encodePromptForWire, T as isBrowserRuntime, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
1
|
+
import { A as normalizeRuntimeBackendConfig, D as assertCurrentBackendType, E as applyRequestedModel, H as backendTypeSchema, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, S as encodePromptForWire, T as isBrowserRuntime, o as requestInteractiveSessionToken } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
3
|
-
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRetryableCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as waitForCreateRetry, V as isDeployWindowCreateError, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-
|
|
3
|
+
import { A as normalizeSandboxCreateReceipt, B as generateIdempotencyKey, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, H as isRetryableCreateError, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileFileMounts, U as waitForCreateRetry, V as isDeployWindowCreateError, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, s as exportTraceBundle, z as createRetryDelayMs } from "./sandbox-C_IZHl45.js";
|
|
4
4
|
import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-JVaAyNMP.js";
|
|
6
6
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
7
7
|
import { n as fetchWithKeepAlive } from "./keep-alive-fetch--8twRp99.js";
|
|
8
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
8
|
+
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
9
9
|
import { t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
10
10
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
11
11
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
2
|
-
import { W as canonicalAgentProfileDigest } from "./sandbox-
|
|
2
|
+
import { W as canonicalAgentProfileDigest } from "./sandbox-C_IZHl45.js";
|
|
3
3
|
import { E as ValidationError, s as CapabilityError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
4
4
|
import { t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
5
5
|
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { $t as BackendRegistryCapabilities, Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryInteractionKindSchema, bt as HostedInstance, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryEntry, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryEntrySchema, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryResponse, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as backendRegistryCapabilitiesSchema, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-CEnN8lzy.js";
|
|
2
|
+
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BlOFGopg.js";
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishResult, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ka as SandboxEnvRecovery, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ca as PromptInputPart, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecoveryView, ti as ExecResult, tt as ConversationTurnOptions, za as WorkspaceImagePublishInput, zn as SandboxInfo } from "./types-D89tf_Kw.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-BU4hEO2M.js";
|
|
5
|
+
import { $t as BackendRegistryCapabilities, Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryInteractionKindSchema, bt as HostedInstance, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryEntry, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryEntrySchema, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryResponse, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as backendRegistryCapabilitiesSchema, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-CpTt65-H.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DgFlNR6x.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
1
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-C_IZHl45.js";
|
|
2
2
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-fAhCkcRh.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-eAdKeKPo.js";
|
|
7
7
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AgentInteractiveSessionPromptCommand, B as AgentRunCancellationAcknowledgement, D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, F as AgentInteractiveTerminalSession, G as AgentProfile, H as InteractionAcknowledgement, L as TerminalOutputEvent, N as AgentInteractiveSessionStopAcknowledgement, O as AgentInteractiveSessionControlClaimRequest, Ot as SandboxError, P as AgentInteractiveSessionStopCommand, R as TerminalReplayWindow, Rt as SandboxCreateReceipt, T as AgentInteractiveSessionAttach, U as InteractionRequest, V as AgentRunCancellationRequest, W as InteractionResponseCommand, X as AgentProfileFileMount, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef, k as AgentInteractiveSessionPromptAcknowledgement, l as MintScopedTokenOptions, lt as InteractionData, o as TerminalStreamReconnectAuthority, u as ScopedToken, w as AgentInteractiveSessionStart } from "./terminal-stream-types-
|
|
2
|
-
import { $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $r as SearchOptions, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, G as GitBranch, Hi as RolloutStartResult, Ii as BranchOptions, In as SSHCommandDescriptor, J as GitStatus, K as GitCommit, Ka as SandboxEnvRecovery, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkIdempotency, Rn as SandboxConnection, S as StopOptions, Sa as BackendManager, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as CodeLanguage, Vi as RolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Zi as DurablePlan, Zr as WriteManyOptions, _ as SnapshotInfo, aa as IntelligenceReportCompareTo, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, ba as BackendConfig, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, dr as SandboxShape, dt as SendSessionMessageRequest, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fi as DriverInfo, ft as SentSessionMessage, ga as SandboxTraceOptions, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReportBudget, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptOptions, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as EventStreamOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, ot as DispatchedSession, pa as SandboxTraceBundle, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, ra as IntelligenceReport, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo } from "./types-
|
|
1
|
+
import { A as AgentInteractiveSessionPromptCommand, B as AgentRunCancellationAcknowledgement, D as AgentInteractiveSessionControlClaimAcknowledgement, E as AgentInteractiveSessionControlClaim, F as AgentInteractiveTerminalSession, G as AgentProfile, H as InteractionAcknowledgement, L as TerminalOutputEvent, N as AgentInteractiveSessionStopAcknowledgement, O as AgentInteractiveSessionControlClaimRequest, Ot as SandboxError, P as AgentInteractiveSessionStopCommand, R as TerminalReplayWindow, Rt as SandboxCreateReceipt, T as AgentInteractiveSessionAttach, U as InteractionRequest, V as AgentRunCancellationRequest, W as InteractionResponseCommand, X as AgentProfileFileMount, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionRef, k as AgentInteractiveSessionPromptAcknowledgement, l as MintScopedTokenOptions, lt as InteractionData, o as TerminalStreamReconnectAuthority, u as ScopedToken, w as AgentInteractiveSessionStart } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
|
+
import { $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $r as SearchOptions, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, G as GitBranch, Hi as RolloutStartResult, Ii as BranchOptions, In as SSHCommandDescriptor, J as GitStatus, K as GitCommit, Ka as SandboxEnvRecovery, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkIdempotency, Rn as SandboxConnection, S as StopOptions, Sa as BackendManager, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as CodeLanguage, Vi as RolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Zi as DurablePlan, Zr as WriteManyOptions, _ as SnapshotInfo, aa as IntelligenceReportCompareTo, ao as RawEvidenceUnavailable, ar as CreateSandboxOptions, at as DispatchPromptOptions, ba as BackendConfig, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, dr as SandboxShape, dt as SendSessionMessageRequest, ei as ExecOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fi as DriverInfo, ft as SentSessionMessage, ga as SandboxTraceOptions, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReportBudget, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptOptions, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, na as EventStreamOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, ot as DispatchedSession, pa as SandboxTraceBundle, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecoveryView, ra as IntelligenceReport, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceExportOptions, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xt as SessionListOptions, y as SnapshotProvenance, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo } from "./types-D89tf_Kw.js";
|
|
3
3
|
import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
5
|
-
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
4
|
+
import { n as SandboxLines } from "./lines-BU4hEO2M.js";
|
|
5
|
+
import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-DdhciJR8.js";
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-DKSv-fGQ.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
|
|
9
9
|
|
|
@@ -408,8 +408,8 @@ type ProfileFileMountBox = {
|
|
|
408
408
|
/**
|
|
409
409
|
* Optional box runtime HTTP transport — the same fetch `/agents/profiles`
|
|
410
410
|
* rides. Backs the profile-bundle cache claim/publish protocol; a box
|
|
411
|
-
* without it (foreign implementations, tests) always
|
|
412
|
-
*
|
|
411
|
+
* without it (foreign implementations, tests) always delivers every file
|
|
412
|
+
* directly and never claims or publishes.
|
|
413
413
|
*/
|
|
414
414
|
runtimeFetch?: (endpoint: string, init?: RequestInit) => Promise<Response>;
|
|
415
415
|
};
|
|
@@ -458,10 +458,10 @@ declare function splitInlineProfileFileMounts(profile: AgentProfile): SplitInlin
|
|
|
458
458
|
* - `hit`: the host cache linked every file in-box;
|
|
459
459
|
* - `partial`: the cache linked some files and the rest were delivered;
|
|
460
460
|
* - `miss`: every file was delivered, then published to the host cache;
|
|
461
|
-
* - `
|
|
461
|
+
* - `direct`: the cache was unavailable, so every file was delivered.
|
|
462
462
|
*/
|
|
463
463
|
interface ProfileFileDeliveryReport {
|
|
464
|
-
outcome: "receipt" | "hit" | "partial" | "miss" | "
|
|
464
|
+
outcome: "receipt" | "hit" | "partial" | "miss" | "direct";
|
|
465
465
|
files: number;
|
|
466
466
|
deliveredFiles: number;
|
|
467
467
|
durationMs: number;
|
|
@@ -836,9 +836,7 @@ declare abstract class SandboxNetworkCapabilities extends SandboxProcessCapabili
|
|
|
836
836
|
/**
|
|
837
837
|
* Port exposure and runtime network state.
|
|
838
838
|
*
|
|
839
|
-
* Outbound restrictions are on {@link SandboxInstance.egress}
|
|
840
|
-
* here rejects every policy field rather than recording one nothing
|
|
841
|
-
* enforces.
|
|
839
|
+
* Outbound restrictions are on {@link SandboxInstance.egress}.
|
|
842
840
|
*
|
|
843
841
|
* @example Expose ports dynamically
|
|
844
842
|
* ```typescript
|
|
@@ -852,14 +850,9 @@ declare abstract class SandboxNetworkCapabilities extends SandboxProcessCapabili
|
|
|
852
850
|
* ```
|
|
853
851
|
*/
|
|
854
852
|
get network(): NetworkManager;
|
|
855
|
-
private networkUpdate;
|
|
856
853
|
private networkExposePort;
|
|
857
854
|
private networkListUrls;
|
|
858
855
|
private networkGetConfig;
|
|
859
|
-
/**
|
|
860
|
-
* Validate CIDR notation (IPv4 and IPv6)
|
|
861
|
-
*/
|
|
862
|
-
private isValidCidr;
|
|
863
856
|
}
|
|
864
857
|
//#endregion
|
|
865
858
|
//#region src/sandbox-workspace-gpu.d.ts
|
|
@@ -1238,11 +1231,11 @@ declare abstract class SandboxFileWriteCapabilities extends SandboxExecCapabilit
|
|
|
1238
1231
|
expectedHash?: string;
|
|
1239
1232
|
ifAbsent?: boolean;
|
|
1240
1233
|
}): void;
|
|
1241
|
-
protected writeBatchRequest(files: WriteManyWireFile[], body: string): Promise<
|
|
1234
|
+
protected writeBatchRequest(files: WriteManyWireFile[], body: string): Promise<void>;
|
|
1242
1235
|
protected writeManySequential(files: WriteManyFile[], paceMs: number, maxRetries: number): Promise<void>;
|
|
1243
1236
|
/**
|
|
1244
|
-
* Write many files through the runtime batch endpoint.
|
|
1245
|
-
*
|
|
1237
|
+
* Write many files through the runtime batch endpoint. Duplicate paths use
|
|
1238
|
+
* the sequential write path so the last write of a path wins.
|
|
1246
1239
|
*/
|
|
1247
1240
|
writeMany(files: WriteManyFile[], options?: WriteManyOptions): Promise<void>;
|
|
1248
1241
|
/**
|
|
@@ -1342,7 +1335,7 @@ declare abstract class SandboxProfileCapabilities extends SandboxFileWriteCapabi
|
|
|
1342
1335
|
*/
|
|
1343
1336
|
/**
|
|
1344
1337
|
* How this handle's most recent profile file preparation was satisfied
|
|
1345
|
-
* (host cache hit, partial, miss,
|
|
1338
|
+
* (host cache hit, partial, miss, direct delivery, or a held receipt) and
|
|
1346
1339
|
* how long it took. Undefined until a profile with file mounts is prepared.
|
|
1347
1340
|
*/
|
|
1348
1341
|
get lastProfileFileDelivery(): ProfileFileDeliveryReport | undefined;
|
|
@@ -1554,7 +1547,7 @@ declare abstract class SandboxInteractiveCapabilities extends SandboxPromptCapab
|
|
|
1554
1547
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
1555
1548
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
|
1556
1549
|
* stay server-side. Native session streams use read-only session-runtime;
|
|
1557
|
-
* session/project
|
|
1550
|
+
* session/project authorize the Sandbox API's `/session` WebSocket.
|
|
1558
1551
|
*/
|
|
1559
1552
|
mintScopedToken(opts: MintScopedTokenOptions): Promise<ScopedToken>;
|
|
1560
1553
|
/** @internal — delegated to the native interactive operations module. */
|
|
@@ -2732,8 +2725,7 @@ interface TangleSandboxClientConfig {
|
|
|
2732
2725
|
privateKey?: `0x${string}`;
|
|
2733
2726
|
/**
|
|
2734
2727
|
* HTTP JSON-RPC endpoint for the Tangle chain. Required for both the
|
|
2735
|
-
* privateKey and wallet paths: the SDK ships no default endpoint
|
|
2736
|
-
* legacy public host was retired.
|
|
2728
|
+
* privateKey and wallet paths: the SDK ships no default endpoint.
|
|
2737
2729
|
*/
|
|
2738
2730
|
rpcUrl: string;
|
|
2739
2731
|
/** Blueprint contract address for view calls (getAvailableCapacity, etc). */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as SandboxInteractionResult, A as TraceExportResult, B as WorkspaceImages, Ct as CONTROL_PLANE_MCP_SERVER_NAME, D as ForkAcknowledgement, Dt as SandboxMcpServerEntry, Et as SandboxMcpEndpoint, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as buildControlPlaneMcpConfig, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as BuildSandboxMcpConfigOptions, Tt as SandboxMcpConfig, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as createInteractiveTerminalCapture, at as InteractiveSessionHost, bt as SandboxOperationFailedError, ct as InteractiveSessionRef, dt as InteractiveStopCommand, et as InteractiveControlClaimRequest, ft as InterruptResult, gt as InteractiveTerminalMetadata, h as TangleSandboxClient, ht as InteractiveTerminalFrameLog, it as InteractiveSessionHandleOptions, j as TraceExportSink, k as TraceExportFormat, kt as buildSandboxMcpConfig, lt as InteractiveSessionStartOptions, mt as InteractiveTerminalCapture, nt as InteractiveSessionControlClaim, ot as InteractiveSessionIncarnationId, pt as RespondToPermissionOptions, q as splitInlineProfileFileMounts, rt as InteractiveSessionHandle, st as InteractiveSessionInfo, tt as InteractivePromptCommand, ut as InteractiveSessionStartResult, v as TangleSandboxClientConfig, vt as createInteractiveTerminalSession, wt as SANDBOX_MCP_SERVER_NAME, xt as BuildControlPlaneMcpConfigOptions, yt as SandboxOperation, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { $ as AgentProfileModelHints, At as SandboxFailureDetail, B as AgentRunCancellationAcknowledgement, Ct as NotFoundError, Dt as ResumeEnvRequiredError, Et as QuotaError, F as AgentInteractiveTerminalSession, Ft as TimeoutError, G as AgentProfile, I as agentInteractiveSessionPromptRequestDigest, It as ValidationError, K as AgentProfileCapabilities, Lt as SandboxCreateOutcome, Mt as StateError, Nt as StreamInterruptedError, Ot as SandboxError, Pt as StreamInterruptionReason, Rt as SandboxCreateReceipt, S as SandboxSizePreset, St as NetworkError, Tt as ProfileFileMountPathError, V as AgentRunCancellationRequest, X as AgentProfileFileMount, Y as AgentProfileConnection, Z as AgentProfileMcpServer, _ as TerminalReadyTimings, _t as EgressProxyRecoveryError, a as TerminalStreamOptions, at as AgentProfileValidationIssue, b as Capability, bt as GpuProviderRequirement, c as MintInteractiveSessionTokenOptions, d as ScopedTokenScope, dt as TerminalStreamError, et as AgentProfilePermissionValue, f as TERMINAL_WS_ECHO_SUBPROTOCOL, ft as AuthError, g as TerminalReadyInfo, gt as EdgeNotReadyError, h as TerminalOutputMessage, ht as CompliancePlacementError, i as TerminalStreamHandlers, jt as ServerError, kt as SandboxErrorJson, l as MintScopedTokenOptions, m as TerminalInteractiveSessionIdentity, mt as CapabilityError, n as TerminalStreamApiKey, nt as AgentProfileResourceRef, ot as AgentProfileValidationResult, p as TerminalExitInfo, pt as BranchFanoutExceedsHostError, r as TerminalStreamBearerToken, rt as AgentProfileResources, s as TerminalStreamToken, st as AgentSubagentProfile, t as TerminalAttachTimings, tt as AgentProfilePrompt, u as ScopedToken, v as TerminalStreamAuthFormat, vt as FileWriteConflictError, wt as PartialFailureError, x as SANDBOX_SIZE_PRESET_NAMES, xt as KeyBudgetExhaustedError, y as AgentProfileSecurityPolicy, yt as GpuProviderNotConfiguredError } from "./terminal-stream-types-
|
|
3
|
-
import { $ as CompletedTurnPayload, $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $n as TeeAttestationReport, $r as SearchOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Aa as RolloutScorer, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, At as TaskSessionProfile, B as ProcessSignal, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, Br as FileTreeResult, Bt as FleetDispatchCancelResult, C as WorkspaceOperationLookup, Ca as BackendMcpServerStatus, Ci as HostAgentRuntimeBackend, Cn as SandboxFleetProfileRef, Co as BackendType, Cr as GitAuth, Ct as SessionMessageAdmission, D as ProvisionResult, Da as RouterRoutingOptions, Dn as SandboxFleetTraceEvent, Do as parseBackendType, Dr as DeleteOptions, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ea as McpServerConfig, En as SandboxFleetTraceBundle, Eo as EffectiveBackendSource, Er as ChunkedUploadResult, Et as TaskSessionChanges, F as EnsureDevServerOptions, Fa as GpuLeaseProviderName, Fn as ListSandboxOptions, Fr as FileReadResult, Ft as CreateSandboxFleetWithCoordinatorOptions, G as GitBranch, Ga as SessionStatus, Gi as BatchRunOptions, Gn as SandboxTerminalCreateOptions, Gr as MkdirOptions, H as PreviewLinkInfo, Ha as ProcessInfo, Hi as RolloutStartResult, Hn as SandboxRunGeneration, Hr as FileUsageResult, Ht as FleetDispatchResultBufferOptions, I as ExactProcessSpawnOptions, Ia as GpuLeaseProviderState, Ii as BranchOptions, In as SSHCommandDescriptor, Ir as FileRenameResult, It as FleetAgentId, J as GitStatus, Ja as NativeStoreHomeCopy, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Jt as FleetPromptDispatchResult, K as GitCommit, Ka as SandboxEnvRecovery, Kn as SandboxTerminalInfo, Kr as RenameOptions, Kt as FleetMachineId, L as Process, La as GpuLeaseProviderStatus, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, Lt as FleetAgentPlacement, M as UsageInfo, Ma as RolloutTurnPart, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mr as FileReadBatchOptions, Mt as AttachSandboxFleetMachineOptions, N as WaitForOptions, Na as ProvisionStatus, Ni as ManagedProcessState, Nn as SandboxFleetWorkspaceRestoreResult, Nr as FileReadBatchResult, Nt as CreateSandboxFleetOptions, O as ProvisionStep, Oa as SecretInfo, Oi as ManagedProcessJobs, On as SandboxFleetTraceExport, Or as DownloadOptions, Ot as TaskSessionFileChange, P as DevServerInfo, Pa as GPU_LEASE_PROVIDER_NAMES, Pn as SandboxFleetWorkspaceSnapshotResult, Pr as FileReadError, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Qt as ReapExpiredSandboxFleetsOptions, R as ProcessLogEntry, Ra as GpuLeaseStatus, Ri as ForkIdempotency, Rn as SandboxConnection, Rr as FileTreeFile, Rt as FleetAgentResult, S as StopOptions, Sa as BackendManager, Si as HostAgentDriverConfig, Sn as SandboxFleetPolicy, So as ALL_BACKEND_TYPES, Sr as MAX_EGRESS_DENIALS_LIMIT, St as SessionMessage, Ta as BackendStatus, Tn as SandboxFleetToken, To as EffectiveBackendProfile, Tr as ChunkedUploadOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as ProcessListOptions, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Ut as FleetDispatchStreamOptions, V as ProcessSpawnOptions, Vi as RolloutOptions, Vn as SandboxPortPreviewLink, Vr as FileUsageOptions, Vt as FleetDispatchResultBuffer, W as PreviewLinkWaitOptions, Wa as ProcessStatus, Wi as BatchBackend, Wn as SandboxTerminalAttachOptions, Wr as ListOptions, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xa as RawEvidenceArchiveManifestNative, Xi as CreateIntelligenceReportOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Yt as FleetRunEvent, Z as TokenRefreshHandler, Za as RawEvidenceBoxArchiveManifest, Zi as DurablePlan, Zn as StartupOperation, Zr as WriteManyOptions, Zt as ListSandboxFleetOptions, _ as SnapshotInfo, _a as TokenUsage, _i as GpuLeaseExecOptions, _n as SandboxFleetManifest, _o as BatchBackendStats, _r as NetworkConfig, _t as SessionFailureReason, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, ai as PublishPublicTemplateVersionOptions, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, at as DispatchPromptOptions, b as SnapshotRemoteSync, ba as BackendConfig, bi as GpuLeaseProviders, bn as SandboxFleetParent, bo as BatchSidecarGroup, br as EgressPolicy, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ci as AttachGpuLeaseOptions, cn as SandboxFleetDispatchResponse, co as DECLARED_SECRET_HOSTS_ENV_VAR, cr as SandboxShapesInfo, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, di as DriverConfig, dn as SandboxFleetInfo, do as parseDeclaredSecretsEnv, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanFollowUpResume, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxIntelligenceEnvelope, fi as DriverInfo, fn as SandboxFleetIntelligenceEnvelope, fo as BatchResult, fr as SandboxShapePreset, ft as SentSessionMessage, g as SnapshotIdempotency, ga as SandboxTraceOptions, gi as GpuLeaseCommandResult, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, gr as EgressManager, gt as SessionExecutionStatus, h as SnapshotDeleteOutcome, ha as SandboxTraceExport, hi as GpuLeaseBilling, hn as SandboxFleetMachineRecord, hr as StorageConfig, ht as SessionExecutionInfo, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, ii as PublishPublicTemplateOptions, in as SandboxFleetArtifact, io as RawEvidenceRecordsFile, ir as CreateRequestOptions, it as CreateTaskSessionOptions, j as SubscriptionInfo, ja as RolloutStatus, ji as ManagedProcessResumeOptions, jn as SandboxFleetWorkspace, jr as FileInfo, jt as TurnDriveResult, ka as RolloutChildResult, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, kr as DownloadProgress, kt as TaskSessionInfo, l as SandboxDeleteOutcome, la as PromptOptions, li as CreateGpuLeaseOptions, ln as SandboxFleetDriverCapability, lo as assertDeclaredSecretsHeld, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceEvent, mi as GpuLease, mn as SandboxFleetMachineMeteredUsage, mo as BatchTaskInput, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, n as DeleteMatchingSandboxResult, na as EventStreamOptions, ni as PublicTemplateInfo, nn as SandboxFleetAgent, no as RawEvidenceNativeFile, nr as TeePublicKeyResponse, nt as ConversationTurnResult, oa as IntelligenceReportSubjectType, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, oo as baseProxyToken, or as SandboxConfig, ot as DispatchedSession, p as SandboxRemovalState, pa as SandboxTraceBundle, pi as DriverType, pn as SandboxFleetMachine, po as BatchTaskResult, pr as SandboxResourceUsage, pt as SessionBackendCredentials, q as GitDiff, qa as SandboxEnvRecoveryView, qn as SandboxTerminalManager, qr as UploadOptions, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, ri as PublicTemplateVersionInfo, rn as SandboxFleetAgentSpec, ro as RawEvidencePayloadFile, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, si as AcceleratorKind, sn as SandboxFleetDispatchFailureClass, sr as SandboxResources, st as DriveTurnOptions, t as DeleteMatchingSandboxOutcome, ti as ExecResult, tn as ReconcileSandboxFleetsResult, to as RawEvidenceExportOptions, tr as TeePublicKey, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ui as DockerDriverConfig, un as SandboxFleetDriverTimings, uo as declaredSecretBaseToken, ur as SecretBinding, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vi as GpuLeaseExecResult, vn as SandboxFleetManifestMachine, vo as BatchEvent, vr as NetworkManager, vt as SessionForkOptions, w as SecretsManager, wa as BackendRuntimeConfigUpdate, wi as NonHostAgentDriverConfig, wn as SandboxFleetSpend, wo as EffectiveBackend, wr as GitConfig, wt as SessionMessageInputPart, x as SnapshotResult, xa as BackendInfo, xi as GpuLeaseProvidersOptions, xn as SandboxFleetPlacement, xo as BatchTaskUsage, xr as EgressDenial, xt as SessionListOptions, ya as BackendCapabilities, yi as GpuLeaseManager, yn as SandboxFleetOperationsSummary, yo as BatchEventDataMap, yr as SandboxEgressUsage, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo, zr as FileTreeOptions, zt as FleetAgentRunStatus } from "./types-
|
|
4
|
-
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-
|
|
5
|
-
import { _ as InteractiveSessionStatus, a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, 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-
|
|
6
|
-
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
7
|
-
import { $ as ImageBuildClient, $t as BackendRegistryCapabilities, A as buildTangleRouterResponsesWebSearchRequest, At as CreateConfidentialSandboxOptions, B as MANAGE_SANDBOXES_TOOL_NAME, Bt as TeeAttestationHeartbeatSample, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as InstanceRestartingError, D as RouterSearchConfigOptions, Dt as sandboxFailureKind, E as RouterSearchConfig, Et as SandboxFailureKind, F as SANDBOX_SIZE_PRESETS, Ft as validateBatchRunRequest, G as manageSandboxesInputSchema, Gt as ParsedSSEEvent, H as ManageSandboxesTool, Ht as BuildProgressEvent, I as resolveSandboxResources, It as normalizeRuntimeBackendConfig, J as collectAgentFinalMessageText, Jt as InviteTeamMemberOptions, K as downloadFile, Kt as parseSSEStream, L as sandboxResourcesForSize, Lt as requestedPublicProfileDigest, M as buildTangleRouterSearchProfile, Mt as generateAttestationNonce, N as fetchTangleRouterSearchConfig, Nt as BatchResultAccumulator, O as TangleSearchProvider, Ot as ConfidentialSandboxResult, P as DEFAULT_SANDBOX_SIZE, Pt as createBatchResultAccumulator, Q as Image, Qt as IntelligenceClient, R as materializeProfileFileMounts, Rt as TeeAttestationHeartbeat, S as RouterImportedRunResponse, St as InstanceRecord, T as runTangleRouterEvalMatrixInSandbox, Tt as InstancesClient, U as ManageSandboxesToolOptions, Ut as ImageSpec, V as ManageSandboxesInput, Vt as startTeeAttestationHeartbeat, W as createManageSandboxesTool, Wt as ParseSSEStreamOptions, X as getSandboxEventText, Xt as TeamInvitation, Y as collectAgentResponseText, Yt as Team, Z as isToolBearingEvent, Zt as TeamMember, _ as RouterEvalMatrixPayload, _t as gatewaySeatTransport, a as SessionBroadcastEvent, an as backendRegistryInteractionKindSchema, at as generateDockerfile, b as RouterEvalMatrixScenario, bt as HostedInstance, c as RunPlacement, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, d as RunWaitOptions, dt as SeatOwnerReply, en as BackendRegistryEntry, et as ImageBuildClientConfig, f as RunsClient, ft as SeatOwnerTransport, g as RouterEvalMatrixHarness, gt as createSelectSeat, h as RouterEvalMatrixCaseResult, ht as SeatSelectionRequest, i as terminalUpgradeHeadersSupported, in as backendRegistryEntrySchema, it as ImageBuilder, j as buildTangleRouterSearchBackend, jt as createConfidentialSandbox, k as buildTangleRouterEvalMatrixRequest, kt as ConfidentialTeeType, l as RunPlacementRecord, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, m as RouterEvalMatrixAgentProfile, mt as SeatSelectionError, n as SandboxFleetClient, nn as BackendRegistryResponse, nt as ImageBuildOptions, o as SessionBroadcastResult, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, p as RunsHttpClient, pt as SeatResolutionObservation, q as applySandboxEventText, qt as CreateTeamOptions, r as SandboxFleet, rn as backendRegistryCapabilitiesSchema, rt as ImageBuildResult, s as RunOptions, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, tt as ImageBuildFetchClient, u as RunRecord, ut as SandboxSeatSelectionInput, v as RouterEvalMatrixSandboxBox, vt as ManagedProcessClient, w as RunTangleRouterEvalMatrixInSandboxResult, wt as InstanceStart, x as RouterEvalMatrixSuiteResponse, xt as InstanceProfile, y as RouterEvalMatrixSandboxClient, yt as EnsureInstanceOptions, z as MANAGE_SANDBOXES_PARAMETERS, zt as TeeAttestationHeartbeatOptions } from "./client-
|
|
8
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { $ as SandboxInteractionResult, A as TraceExportResult, B as WorkspaceImages, Ct as CONTROL_PLANE_MCP_SERVER_NAME, D as ForkAcknowledgement, Dt as SandboxMcpServerEntry, Et as SandboxMcpEndpoint, F as toOtelJson, G as SplitInlineProfileFileMountsResult, H as MaterializeProfileFileMountsOptions, I as SandboxTaskSession, J as splitInlineProfileSkills, K as SplitInlineProfileSkillsResult, L as RawEvidenceExport, M as buildTraceExportPayload, N as exportTraceBundle, O as SandboxInstance, Ot as buildControlPlaneMcpConfig, P as otelTraceIdForTangleTrace, Q as SandboxInteractionResolution, R as SandboxSession, St as BuildSandboxMcpConfigOptions, Tt as SandboxMcpConfig, U as MaterializeProfileFileMountsResult, V as ProfileFileDeliveryReport, X as SandboxInteractionCommandResult, Y as validateDeferredProfileFileMounts, Z as SandboxInteractionConflict, _t as createInteractiveTerminalCapture, at as InteractiveSessionHost, bt as SandboxOperationFailedError, ct as InteractiveSessionRef, dt as InteractiveStopCommand, et as InteractiveControlClaimRequest, ft as InterruptResult, gt as InteractiveTerminalMetadata, h as TangleSandboxClient, ht as InteractiveTerminalFrameLog, it as InteractiveSessionHandleOptions, j as TraceExportSink, k as TraceExportFormat, kt as buildSandboxMcpConfig, lt as InteractiveSessionStartOptions, mt as InteractiveTerminalCapture, nt as InteractiveSessionControlClaim, ot as InteractiveSessionIncarnationId, pt as RespondToPermissionOptions, q as splitInlineProfileFileMounts, rt as InteractiveSessionHandle, st as InteractiveSessionInfo, tt as InteractivePromptCommand, ut as InteractiveSessionStartResult, v as TangleSandboxClientConfig, vt as createInteractiveTerminalSession, wt as SANDBOX_MCP_SERVER_NAME, xt as BuildControlPlaneMcpConfigOptions, yt as SandboxOperation, z as WorkspaceImagePublishRequestOptions } from "./index-CEnN8lzy.js";
|
|
2
|
+
import { $ as AgentProfileModelHints, At as SandboxFailureDetail, B as AgentRunCancellationAcknowledgement, Ct as NotFoundError, Dt as ResumeEnvRequiredError, Et as QuotaError, F as AgentInteractiveTerminalSession, Ft as TimeoutError, G as AgentProfile, I as agentInteractiveSessionPromptRequestDigest, It as ValidationError, K as AgentProfileCapabilities, Lt as SandboxCreateOutcome, Mt as StateError, Nt as StreamInterruptedError, Ot as SandboxError, Pt as StreamInterruptionReason, Rt as SandboxCreateReceipt, S as SandboxSizePreset, St as NetworkError, Tt as ProfileFileMountPathError, V as AgentRunCancellationRequest, X as AgentProfileFileMount, Y as AgentProfileConnection, Z as AgentProfileMcpServer, _ as TerminalReadyTimings, _t as EgressProxyRecoveryError, a as TerminalStreamOptions, at as AgentProfileValidationIssue, b as Capability, bt as GpuProviderRequirement, c as MintInteractiveSessionTokenOptions, d as ScopedTokenScope, dt as TerminalStreamError, et as AgentProfilePermissionValue, f as TERMINAL_WS_ECHO_SUBPROTOCOL, ft as AuthError, g as TerminalReadyInfo, gt as EdgeNotReadyError, h as TerminalOutputMessage, ht as CompliancePlacementError, i as TerminalStreamHandlers, jt as ServerError, kt as SandboxErrorJson, l as MintScopedTokenOptions, m as TerminalInteractiveSessionIdentity, mt as CapabilityError, n as TerminalStreamApiKey, nt as AgentProfileResourceRef, ot as AgentProfileValidationResult, p as TerminalExitInfo, pt as BranchFanoutExceedsHostError, r as TerminalStreamBearerToken, rt as AgentProfileResources, s as TerminalStreamToken, st as AgentSubagentProfile, t as TerminalAttachTimings, tt as AgentProfilePrompt, u as ScopedToken, v as TerminalStreamAuthFormat, vt as FileWriteConflictError, wt as PartialFailureError, x as SANDBOX_SIZE_PRESET_NAMES, xt as KeyBudgetExhaustedError, y as AgentProfileSecurityPolicy, yt as GpuProviderNotConfiguredError } from "./terminal-stream-types-BlOFGopg.js";
|
|
3
|
+
import { $ as CompletedTurnPayload, $a as RawEvidenceBoxExportOptions, $i as DurablePlanDecisionResult, $n as TeeAttestationReport, $r as SearchOptions, $t as ReapExpiredSandboxFleetsResult, A as SandboxIdentity, Aa as RolloutScorer, Ai as ManagedProcessRecord, An as SandboxFleetUsage, Ar as DownloadResult, At as TaskSessionProfile, B as ProcessSignal, Ba as WorkspaceImagePublishResult, Bi as Rollout, Bn as SandboxPortBinding, Br as FileTreeResult, Bt as FleetDispatchCancelResult, C as WorkspaceOperationLookup, Ca as BackendMcpServerStatus, Ci as HostAgentRuntimeBackend, Cn as SandboxFleetProfileRef, Co as BackendType, Cr as GitAuth, Ct as SessionMessageAdmission, D as ProvisionResult, Da as RouterRoutingOptions, Dn as SandboxFleetTraceEvent, Do as parseBackendType, Dr as DeleteOptions, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ea as McpServerConfig, En as SandboxFleetTraceBundle, Eo as EffectiveBackendSource, Er as ChunkedUploadResult, Et as TaskSessionChanges, F as EnsureDevServerOptions, Fa as GpuLeaseProviderName, Fn as ListSandboxOptions, Fr as FileReadResult, Ft as CreateSandboxFleetWithCoordinatorOptions, G as GitBranch, Ga as SessionStatus, Gi as BatchRunOptions, Gn as SandboxTerminalCreateOptions, Gr as MkdirOptions, H as PreviewLinkInfo, Ha as ProcessInfo, Hi as RolloutStartResult, Hn as SandboxRunGeneration, Hr as FileUsageResult, Ht as FleetDispatchResultBufferOptions, I as ExactProcessSpawnOptions, Ia as GpuLeaseProviderState, Ii as BranchOptions, In as SSHCommandDescriptor, Ir as FileRenameResult, It as FleetAgentId, J as GitStatus, Ja as NativeStoreHomeCopy, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Jt as FleetPromptDispatchResult, K as GitCommit, Ka as SandboxEnvRecovery, Kn as SandboxTerminalInfo, Kr as RenameOptions, Kt as FleetMachineId, L as Process, La as GpuLeaseProviderStatus, Li as ForkCounts, Ln as SSHCredentials, Lr as FileSystem, Lt as FleetAgentPlacement, M as UsageInfo, Ma as RolloutTurnPart, Mi as ManagedProcessSpec, Mn as SandboxFleetWorkspaceReconcileResult, Mr as FileReadBatchOptions, Mt as AttachSandboxFleetMachineOptions, N as WaitForOptions, Na as ProvisionStatus, Ni as ManagedProcessState, Nn as SandboxFleetWorkspaceRestoreResult, Nr as FileReadBatchResult, Nt as CreateSandboxFleetOptions, O as ProvisionStep, Oa as SecretInfo, Oi as ManagedProcessJobs, On as SandboxFleetTraceExport, Or as DownloadOptions, Ot as TaskSessionFileChange, P as DevServerInfo, Pa as GPU_LEASE_PROVIDER_NAMES, Pn as SandboxFleetWorkspaceSnapshotResult, Pr as FileReadError, Q as CommitTaskSessionOptions, Qa as RawEvidenceBoxDirectoryExport, Qi as DurablePlanDecisionOptions, Qn as TeeAttestationOptions, Qr as SearchMatch, Qt as ReapExpiredSandboxFleetsOptions, R as ProcessLogEntry, Ra as GpuLeaseStatus, Ri as ForkIdempotency, Rn as SandboxConnection, Rr as FileTreeFile, Rt as FleetAgentResult, S as StopOptions, Sa as BackendManager, Si as HostAgentDriverConfig, Sn as SandboxFleetPolicy, So as ALL_BACKEND_TYPES, Sr as MAX_EGRESS_DENIALS_LIMIT, St as SessionMessage, Ta as BackendStatus, Tn as SandboxFleetToken, To as EffectiveBackendProfile, Tr as ChunkedUploadOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ua as ProcessListOptions, Ui as WaitForRolloutOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Ut as FleetDispatchStreamOptions, V as ProcessSpawnOptions, Vi as RolloutOptions, Vn as SandboxPortPreviewLink, Vr as FileUsageOptions, Vt as FleetDispatchResultBuffer, W as PreviewLinkWaitOptions, Wa as ProcessStatus, Wi as BatchBackend, Wn as SandboxTerminalAttachOptions, Wr as ListOptions, Wt as FleetExecDispatchOptions, X as FleetDriveTurnRequest, Xa as RawEvidenceArchiveManifestNative, Xi as CreateIntelligenceReportOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Xt as FleetRunOptions, Y as FleetDriveTurnOutcome, Ya as RawEvidenceArchiveManifest, Yn as SandboxTerminals, Yr as WriteFileOptions, Yt as FleetRunEvent, Z as TokenRefreshHandler, Za as RawEvidenceBoxArchiveManifest, Zi as DurablePlan, Zn as StartupOperation, Zr as WriteManyOptions, Zt as ListSandboxFleetOptions, _ as SnapshotInfo, _a as TokenUsage, _i as GpuLeaseExecOptions, _n as SandboxFleetManifest, _o as BatchBackendStats, _r as NetworkConfig, _t as SessionFailureReason, a as DeleteMatchingSandboxesResult, aa as IntelligenceReportCompareTo, ai as PublishPublicTemplateVersionOptions, an as SandboxFleetArtifactSpec, ar as CreateSandboxOptions, at as DispatchPromptOptions, b as SnapshotRemoteSync, ba as BackendConfig, bi as GpuLeaseProviders, bn as SandboxFleetParent, bo as BatchSidecarGroup, br as EgressPolicy, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as PromptInputPart, ci as AttachGpuLeaseOptions, cn as SandboxFleetDispatchResponse, co as DECLARED_SECRET_HOSTS_ENV_VAR, cr as SandboxShapesInfo, ct as ListMessagesOptions, d as SandboxOperationKind, da as SandboxEvent, di as DriverConfig, dn as SandboxFleetInfo, do as parseDeclaredSecretsEnv, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanFollowUpResume, ei as ExecOptions, en as ReconcileSandboxFleetsOptions, eo as RawEvidenceDirectoryExport, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxIntelligenceEnvelope, fi as DriverInfo, fn as SandboxFleetIntelligenceEnvelope, fo as BatchResult, fr as SandboxShapePreset, ft as SentSessionMessage, g as SnapshotIdempotency, ga as SandboxTraceOptions, gi as GpuLeaseCommandResult, gn as SandboxFleetMachineSpec, go as PublicBatchRunRequestInput, gr as EgressManager, gt as SessionExecutionStatus, h as SnapshotDeleteOutcome, ha as SandboxTraceExport, hi as GpuLeaseBilling, hn as SandboxFleetMachineRecord, hr as StorageConfig, ht as SessionExecutionInfo, i as DeleteMatchingSandboxesOptions, ia as IntelligenceReportBudget, ii as PublishPublicTemplateOptions, in as SandboxFleetArtifact, io as RawEvidenceRecordsFile, ir as CreateRequestOptions, it as CreateTaskSessionOptions, j as SubscriptionInfo, ja as RolloutStatus, ji as ManagedProcessResumeOptions, jn as SandboxFleetWorkspace, jr as FileInfo, jt as TurnDriveResult, ka as RolloutChildResult, ki as ManagedProcessOptions, kn as SandboxFleetTraceOptions, kr as DownloadProgress, kt as TaskSessionInfo, l as SandboxDeleteOutcome, la as PromptOptions, li as CreateGpuLeaseOptions, ln as SandboxFleetDriverCapability, lo as assertDeclaredSecretsHeld, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceEvent, mi as GpuLease, mn as SandboxFleetMachineMeteredUsage, mo as BatchTaskInput, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, n as DeleteMatchingSandboxResult, na as EventStreamOptions, ni as PublicTemplateInfo, nn as SandboxFleetAgent, no as RawEvidenceNativeFile, nr as TeePublicKeyResponse, nt as ConversationTurnResult, oa as IntelligenceReportSubjectType, oi as SandboxEnvironment, on as SandboxFleetCostEstimate, oo as baseProxyToken, or as SandboxConfig, ot as DispatchedSession, p as SandboxRemovalState, pa as SandboxTraceBundle, pi as DriverType, pn as SandboxFleetMachine, po as BatchTaskResult, pr as SandboxResourceUsage, pt as SessionBackendCredentials, q as GitDiff, qa as SandboxEnvRecoveryView, qn as SandboxTerminalManager, qr as UploadOptions, qt as FleetPromptDispatchOptions, r as DeleteMatchingSandboxesFilter, ra as IntelligenceReport, ri as PublicTemplateVersionInfo, rn as SandboxFleetAgentSpec, ro as RawEvidencePayloadFile, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, sa as IntelligenceReportWindow, si as AcceleratorKind, sn as SandboxFleetDispatchFailureClass, sr as SandboxResources, st as DriveTurnOptions, t as DeleteMatchingSandboxOutcome, ti as ExecResult, tn as ReconcileSandboxFleetsResult, to as RawEvidenceExportOptions, tr as TeePublicKey, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptResult, ui as DockerDriverConfig, un as SandboxFleetDriverTimings, uo as declaredSecretBaseToken, ur as SecretBinding, ut as SendSessionMessageOptions, v as SnapshotOptions, va as TurnBackendConfig, vi as GpuLeaseExecResult, vn as SandboxFleetManifestMachine, vo as BatchEvent, vr as NetworkManager, vt as SessionForkOptions, w as SecretsManager, wa as BackendRuntimeConfigUpdate, wi as NonHostAgentDriverConfig, wn as SandboxFleetSpend, wo as EffectiveBackend, wr as GitConfig, wt as SessionMessageInputPart, x as SnapshotResult, xa as BackendInfo, xi as GpuLeaseProvidersOptions, xn as SandboxFleetPlacement, xo as BatchTaskUsage, xr as EgressDenial, xt as SessionListOptions, ya as BackendCapabilities, yi as GpuLeaseManager, yn as SandboxFleetOperationsSummary, yo as BatchEventDataMap, yr as SandboxEgressUsage, yt as SessionInfo, z as ProcessManager, za as WorkspaceImagePublishInput, zi as ForkLookupOptions, zn as SandboxInfo, zr as FileTreeOptions, zt as FleetAgentRunStatus } from "./types-D89tf_Kw.js";
|
|
4
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BU4hEO2M.js";
|
|
5
|
+
import { _ as InteractiveSessionStatus, a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as interactiveSessionIdentityDigest, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, 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-DdhciJR8.js";
|
|
6
|
+
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-DKSv-fGQ.js";
|
|
7
|
+
import { $ as ImageBuildClient, $t as BackendRegistryCapabilities, A as buildTangleRouterResponsesWebSearchRequest, At as CreateConfidentialSandboxOptions, B as MANAGE_SANDBOXES_TOOL_NAME, Bt as TeeAttestationHeartbeatSample, C as RunTangleRouterEvalMatrixInSandboxOptions, Ct as InstanceRestartingError, D as RouterSearchConfigOptions, Dt as sandboxFailureKind, E as RouterSearchConfig, Et as SandboxFailureKind, F as SANDBOX_SIZE_PRESETS, Ft as validateBatchRunRequest, G as manageSandboxesInputSchema, Gt as ParsedSSEEvent, H as ManageSandboxesTool, Ht as BuildProgressEvent, I as resolveSandboxResources, It as normalizeRuntimeBackendConfig, J as collectAgentFinalMessageText, Jt as InviteTeamMemberOptions, K as downloadFile, Kt as parseSSEStream, L as sandboxResourcesForSize, Lt as requestedPublicProfileDigest, M as buildTangleRouterSearchProfile, Mt as generateAttestationNonce, N as fetchTangleRouterSearchConfig, Nt as BatchResultAccumulator, O as TangleSearchProvider, Ot as ConfidentialSandboxResult, P as DEFAULT_SANDBOX_SIZE, Pt as createBatchResultAccumulator, Q as Image, Qt as IntelligenceClient, R as materializeProfileFileMounts, Rt as TeeAttestationHeartbeat, S as RouterImportedRunResponse, St as InstanceRecord, T as runTangleRouterEvalMatrixInSandbox, Tt as InstancesClient, U as ManageSandboxesToolOptions, Ut as ImageSpec, V as ManageSandboxesInput, Vt as startTeeAttestationHeartbeat, W as createManageSandboxesTool, Wt as ParseSSEStreamOptions, X as getSandboxEventText, Xt as TeamInvitation, Y as collectAgentResponseText, Yt as Team, Z as isToolBearingEvent, Zt as TeamMember, _ as RouterEvalMatrixPayload, _t as gatewaySeatTransport, a as SessionBroadcastEvent, an as backendRegistryInteractionKindSchema, at as generateDockerfile, b as RouterEvalMatrixScenario, bt as HostedInstance, c as RunPlacement, cn as parseBackendRegistryResponse, ct as SandboxResolvedSeat, d as RunWaitOptions, dt as SeatOwnerReply, en as BackendRegistryEntry, et as ImageBuildClientConfig, f as RunsClient, ft as SeatOwnerTransport, g as RouterEvalMatrixHarness, gt as createSelectSeat, h as RouterEvalMatrixCaseResult, ht as SeatSelectionRequest, i as terminalUpgradeHeadersSupported, in as backendRegistryEntrySchema, it as ImageBuilder, j as buildTangleRouterSearchBackend, jt as createConfidentialSandbox, k as buildTangleRouterEvalMatrixRequest, kt as ConfidentialTeeType, l as RunPlacementRecord, ln as parseBackendRegistryResponseBody, lt as SandboxSeatCredentials, m as RouterEvalMatrixAgentProfile, mt as SeatSelectionError, n as SandboxFleetClient, nn as BackendRegistryResponse, nt as ImageBuildOptions, o as SessionBroadcastResult, on as backendRegistryResponseSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, p as RunsHttpClient, pt as SeatResolutionObservation, q as applySandboxEventText, qt as CreateTeamOptions, r as SandboxFleet, rn as backendRegistryCapabilitiesSchema, rt as ImageBuildResult, s as RunOptions, sn as isBackendRegistryInteractionKind, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryInteractionKind, tt as ImageBuildFetchClient, u as RunRecord, ut as SandboxSeatSelectionInput, v as RouterEvalMatrixSandboxBox, vt as ManagedProcessClient, w as RunTangleRouterEvalMatrixInSandboxResult, wt as InstanceStart, x as RouterEvalMatrixSuiteResponse, xt as InstanceProfile, y as RouterEvalMatrixSandboxClient, yt as EnsureInstanceOptions, z as MANAGE_SANDBOXES_PARAMETERS, zt as TeeAttestationHeartbeatOptions } from "./client-CpTt65-H.js";
|
|
8
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DkJVwb8D.js";
|
|
9
9
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DpgwYPWl.js";
|
|
10
10
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-e7PqAuQR.js";
|
|
11
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
11
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DgFlNR6x.js";
|
|
12
12
|
export { ALL_BACKEND_TYPES, AcceleratorKind, AgentInteractiveTerminalSession, AgentProfile, AgentProfileCapabilities, AgentProfileConnection, AgentProfileFileMount, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePermissionValue, AgentProfilePrompt, AgentProfileResourceRef, AgentProfileResources, AgentProfileSecurityPolicy, AgentProfileValidationIssue, AgentProfileValidationResult, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, AgentRunOutcome, AgentRunOutcomeTracker, AgentSubagentProfile, AnyTokenPayload, AttachGpuLeaseOptions, AttachSandboxFleetMachineOptions, AuthError, BackendCapabilities, BackendConfig, BackendInfo, BackendManager, BackendMcpServerStatus, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, BackendRuntimeConfigUpdate, BackendStatus, BackendType, BatchBackend, BatchBackendStats, BatchEvent, BatchEventDataMap, BatchResult, BatchResultAccumulator, BatchRunOptions, PublicBatchRunRequestInput as BatchRunRequest, BatchSidecarGroup, BatchTaskInput as BatchTask, BatchTaskResult, BatchTaskUsage, BranchFanoutExceedsHostError, BranchOptions, BrowserInteractiveSessionControlController, BrowserInteractiveSessionControlControllerOptions, BrowserInteractiveSessionController, BrowserInteractiveSessionControllerOptions, BuildControlPlaneMcpConfigOptions, BuildProgressEvent, BuildSandboxMcpConfigOptions, CONTROL_PLANE_MCP_SERVER_NAME, Capability, CapabilityError, ChunkedUploadOptions, ChunkedUploadResult, CollaborationAccess, CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenPayload, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, CommitTaskSessionOptions, CompletedTurnPayload, CompletedTurnResult, CompliancePlacementError, ConfidentialSandboxResult, ConfidentialTeeType, ConversationTurnOptions, ConversationTurnResult, CreateConfidentialSandboxOptions, CreateGpuLeaseOptions, CreateIntelligenceReportOptions, CreateRequestOptions, CreateSandboxFleetOptions, CreateSandboxFleetWithCoordinatorOptions, CreateSandboxOptions, CreateSelectSeatOptions, CreateSessionOptions, CreateTaskSessionOptions, CreateTeamOptions, DECLARED_SECRET_HOSTS_ENV_VAR, DEFAULT_SANDBOX_SIZE, DeleteMatchingSandboxOutcome, DeleteMatchingSandboxResult, DeleteMatchingSandboxesFilter, DeleteMatchingSandboxesOptions, DeleteMatchingSandboxesResult, DeleteOptions, DevServerInfo, DispatchPromptOptions, DispatchedSession, DockerDriverConfig, DownloadOptions, DownloadProgress, DownloadResult, DriveTurnOptions, DriverConfig, DriverInfo, DriverType, DurablePlan, DurablePlanDecisionOptions, DurablePlanDecisionResult, DurablePlanFollowUpResume, EdgeNotReadyError, EffectiveBackend, EffectiveBackendProfile, EffectiveBackendSource, EgressDenial, EgressManager, EgressPolicy, EgressProxyRecoveryError, EnsureDevServerOptions, EnsureInstanceOptions, EventStreamOptions, ExactProcessSpawnOptions, ExecOptions, ExecResult, FileInfo, FileReadBatchOptions, FileReadBatchResult, FileReadError, FileReadResult, FileRenameResult, FileSystem, FileTreeFile, FileTreeOptions, FileTreeResult, FileUsageOptions, FileUsageResult, FileWriteConflictError, FileWriteResult, FleetAgentId, FleetAgentPlacement, FleetAgentResult, FleetAgentRunStatus, FleetDispatchCancelResult, FleetDispatchResultBuffer, FleetDispatchResultBufferOptions, FleetDispatchStreamOptions, FleetDriveTurnOutcome, FleetDriveTurnRequest, FleetExecDispatchOptions, FleetMachineId, FleetPromptDispatchOptions, FleetPromptDispatchResult, FleetRunEvent, FleetRunOptions, ForkAcknowledgement, ForkCounts, ForkIdempotency, ForkLookupOptions, GPU_LEASE_PROVIDER_NAMES, GitAuth, GitBranch, GitCommit, GitConfig, GitDiff, GitStatus, GpuLease, GpuLeaseBilling, GpuLeaseCommandResult, GpuLeaseExecOptions, GpuLeaseExecResult, GpuLeaseManager, GpuLeaseProviderName, GpuLeaseProviderState, GpuLeaseProviderStatus, GpuLeaseProviders, GpuLeaseProvidersOptions, GpuLeaseStatus, GpuProviderNotConfiguredError, GpuProviderRequirement, HostAgentDriverConfig, HostAgentRuntimeBackend, HostedInstance, INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, ISOLATED_CREATION_ATTESTATION_VERSION, Image, ImageBuildClient, ImageBuildClientConfig, ImageBuildFetchClient, ImageBuildOptions, ImageBuildResult, ImageBuilder, ImageSpec, InstanceProfile, InstanceRecord, InstanceRestartingError, InstanceStart, InstancesClient, IntelligenceClient, IntelligenceReport, IntelligenceReportBudget, IntelligenceReportCompareTo, IntelligenceReportSubjectType, IntelligenceReportWindow, InteractiveAttachOptions, InteractiveAttachRequest, InteractiveControlClaimAcknowledgement, InteractiveControlClaimOptions, InteractiveControlClaimRequest, InteractiveObserveOptions, InteractivePromptCommand, InteractiveRequestOptions, InteractiveSessionControlClaim, InteractiveSessionControlController, InteractiveSessionControlControllerOptions, InteractiveSessionControlTransport, InteractiveSessionController, InteractiveSessionControllerOptions, InteractiveSessionControllerTransport, InteractiveSessionHandle, InteractiveSessionHandleOptions, InteractiveSessionHost, InteractiveSessionIdentity, InteractiveSessionIncarnationId, InteractiveSessionInfo, InteractiveSessionNotRunningError, InteractiveSessionRef, InteractiveSessionStartOptions, InteractiveSessionStartResult, InteractiveSessionStatus, InteractiveStopCommand, InteractiveTerminalCapture, InteractiveTerminalFrameLog, InteractiveTerminalMetadata, InterruptResult, InviteTeamMemberOptions, IssueCollaborationTokenOptions, KeyBudgetExhaustedError, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, 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, ListMessagesOptions, ListOptions, ListSandboxFleetOptions, ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, MAX_EGRESS_DENIALS_LIMIT, ManageSandboxesInput, ManageSandboxesTool, ManageSandboxesToolOptions, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, MaterializeProfileFileMountsOptions, MaterializeProfileFileMountsResult, McpServerConfig, MintInteractiveSessionTokenOptions, MintScopedTokenOptions, MkdirOptions, NativeStoreHomeCopy, NetworkConfig, NetworkError, NetworkManager, NonHostAgentDriverConfig, NotFoundError, ParseSSEStreamOptions, ParsedSSEEvent, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, Process, ProcessInfo, ProcessListOptions, ProcessLogEntry, ProcessManager, ProcessSignal, ProcessSpawnOptions, ProcessStatus, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PromptOptions, PromptResult, ProvisionEvent, ProvisionResult, ProvisionStatus, ProvisionStep, PublicProfileConflict, PublicTemplateInfo, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplateVersionInfo, PublicTemplatesClient, PublishPublicTemplateOptions, PublishPublicTemplateVersionOptions, QuotaError, RawEvidenceArchiveManifest, RawEvidenceArchiveManifestNative, RawEvidenceBoxArchiveManifest, RawEvidenceBoxDirectoryExport, RawEvidenceBoxExportOptions, RawEvidenceDirectoryExport, RawEvidenceExport, RawEvidenceExportOptions, RawEvidenceNativeFile, RawEvidencePayloadFile, RawEvidenceRecordsFile, ReapExpiredSandboxFleetsOptions, ReapExpiredSandboxFleetsResult, ReconcileSandboxFleetsOptions, ReconcileSandboxFleetsResult, RenameOptions, RespondToPermissionOptions, ResumeEnvRequiredError, Rollout, RolloutChildResult, RolloutOptions, RolloutScorer, RolloutStartResult, RolloutStatus, RolloutTurnPart, RouterEvalMatrixAgentProfile, RouterEvalMatrixCaseResult, RouterEvalMatrixHarness, RouterEvalMatrixPayload, RouterEvalMatrixSandboxBox, RouterEvalMatrixSandboxClient, RouterEvalMatrixScenario, RouterEvalMatrixSuiteResponse, RouterImportedRunResponse, RouterRoutingOptions, RouterSearchConfig, RouterSearchConfigOptions, RunOptions, RunPlacement, RunPlacementRecord, RunRecord, RunTangleRouterEvalMatrixInSandboxOptions, RunTangleRouterEvalMatrixInSandboxResult, RunWaitOptions, RunsClient, RunsHttpClient, SANDBOX_MCP_SERVER_NAME, SANDBOX_SIZE_PRESETS, SANDBOX_SIZE_PRESET_NAMES, SSHCommandDescriptor, SSHCredentials, Sandbox, SandboxConfig, SandboxConnection, SandboxCreateOutcome, SandboxCreateReceipt, SandboxDeleteAcknowledgement, SandboxDeleteOptions, SandboxDeleteOutcome, SandboxEgressUsage, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxEnvironment, SandboxError, SandboxErrorJson, SandboxEvent, SandboxFailureDetail, SandboxFailureKind, SandboxFleet, SandboxFleetAgent, SandboxFleetAgentSpec, SandboxFleetArtifact, SandboxFleetArtifactSpec, SandboxFleetClient, SandboxFleetCostEstimate, SandboxFleetDispatchFailureClass, SandboxFleetDispatchResponse, SandboxFleetDriverCapability, SandboxFleetDriverTimings, SandboxFleetInfo, SandboxFleetIntelligenceEnvelope, SandboxFleetMachine, SandboxFleetMachineMeteredUsage, SandboxFleetMachineRecord, SandboxFleetMachineSpec, SandboxFleetManifest, SandboxFleetManifestMachine, SandboxFleetOperationsSummary, SandboxFleetParent, SandboxFleetPlacement, SandboxFleetPolicy, SandboxFleetProfileRef, SandboxFleetSpend, SandboxFleetToken, SandboxFleetTraceBundle, SandboxFleetTraceEvent, SandboxFleetTraceExport, SandboxFleetTraceOptions, SandboxFleetUsage, SandboxFleetWorkspace, SandboxFleetWorkspaceReconcileResult, SandboxFleetWorkspaceRestoreResult, SandboxFleetWorkspaceSnapshotResult, SandboxIdentity, SandboxInfo, SandboxInstance, SandboxIntelligenceEnvelope, SandboxInteractionCommandResult, SandboxInteractionConflict, SandboxInteractionResolution, SandboxInteractionResult, SandboxLines, SandboxMcpConfig, SandboxMcpEndpoint, SandboxMcpServerEntry, SandboxOperation, SandboxOperationFailedError, SandboxOperationInfo, SandboxOperationKind, SandboxOperationState, SandboxPortBinding, SandboxPortPreviewLink, SandboxRemovalState, SandboxResolvedSeat, SandboxResourceUsage, SandboxResources, SandboxRunGeneration, SandboxRuntimeCapabilities, SandboxRuntimeHealth, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxSession, SandboxShape, SandboxShapePreset, SandboxShapesInfo, SandboxSizePreset, SandboxStatus, SandboxTaskSession, SandboxTerminalAttachOptions, SandboxTerminalCreateOptions, SandboxTerminalInfo, SandboxTerminalManager, SandboxTerminalRequestOptions, SandboxTerminals, SandboxTraceBundle, SandboxTraceEvent, SandboxTraceExport, SandboxTraceOptions, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, ScopedToken, ScopedTokenScope, SearchMatch, SearchOptions, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, SecretBinding, SecretInfo, SecretsManager, SendSessionMessageOptions, SendSessionMessageRequest, SentSessionMessage, ServerError, SessionBackendCredentials, SessionBroadcastEvent, SessionBroadcastResult, SessionEventStreamOptions, SessionExecutionInfo, SessionExecutionStatus, SessionFailureReason, SessionForkOptions, SessionInfo, SessionInterruptOptions, SessionListOptions, SessionMessage, SessionMessageAdmission, SessionMessageInputPart, SessionResultOptions, SessionStatus, SnapshotDeleteAcknowledgement, SnapshotDeleteOutcome, SnapshotIdempotency, SnapshotInfo, SnapshotOptions, SnapshotRemoteSync, SnapshotResult, SplitInlineProfileFileMountsResult, SplitInlineProfileSkillsResult, StartupDiagnostics, StartupOperation, StateError, StopOptions, StorageConfig, StreamInterruptedError, StreamInterruptionReason, SubscriptionInfo, TERMINAL_WS_ECHO_SUBPROTOCOL, TangleSandboxClient, TangleSandboxClientConfig, TangleSearchProvider, TaskSessionChanges, TaskSessionCommitResult, TaskSessionFileChange, TaskSessionInfo, TaskSessionProfile, Team, TeamInvitation, TeamMember, TeeAttestationHeartbeat, TeeAttestationHeartbeatOptions, TeeAttestationHeartbeatSample, TeeAttestationOptions, TeeAttestationReport, TeeAttestationResponse, TeePublicKey, TeePublicKeyResponse, TerminalAttachTimings, TerminalExitInfo, TerminalInteractiveSessionIdentity, TerminalOutputMessage, TerminalReadyInfo, TerminalReadyTimings, TerminalStream, TerminalStreamApiKey, TerminalStreamAuthFormat, TerminalStreamBearerToken, TerminalStreamError, TerminalStreamHandlers, TerminalStreamOptions, TerminalStreamToken, TimeoutError, TokenRefreshHandler, TokenUsage, TraceExportFormat, TraceExportResult, TraceExportSink, TurnBackendConfig, TurnDriveResult, UploadOptions, UploadProgress, UsageInfo, ValidationError, WaitForOptions, WaitForRolloutOptions, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, WorkspaceOperationLookup, WriteFileOptions, WriteManyFile, WriteManyOptions, applySandboxEventText, assertDeclaredSecretsHeld, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, baseProxyToken, browserInteractiveControlHolderId, buildCollaborationDocumentId, buildControlPlaneMcpConfig, buildSandboxMcpConfig, buildTangleRouterEvalMatrixRequest, buildTangleRouterResponsesWebSearchRequest, buildTangleRouterSearchBackend, buildTangleRouterSearchProfile, buildTraceExportPayload, collectAgentFinalMessageText, collectAgentResponseText, createAgentRunOutcomeTracker, createBatchResultAccumulator, createConfidentialSandbox, createInteractiveControlHolderId, createInteractiveTerminalCapture, createInteractiveTerminalSession, createManageSandboxesTool, createSelectSeat, declaredSecretBaseToken, deriveAgentResultOutcome, deriveAgentRunOutcome, downloadFile, exportTraceBundle, fetchTangleRouterSearchConfig, gatewaySeatTransport, generateAttestationNonce, generateDockerfile, getSandboxEventText, agentInteractiveSessionPromptRequestDigest as interactivePromptRequestDigest, interactiveSessionIdentityDigest, isBackendRegistryInteractionKind, isToolBearingEvent, lineInstanceKey, manageSandboxesInputSchema, materializeProfileFileMounts, normalizeCollaborationPath, normalizeRuntimeBackendConfig, otelTraceIdForTangleTrace, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseBackendType, parseCollaborationDocumentId, parseDeclaredSecretsEnv, parseLineApplicationRequest, parseLineApplicationResult, parseSSEStream, profileChannelReference, projectAgentTerminalRecord, requestedPublicProfileDigest, resolveSandboxResources, runTangleRouterEvalMatrixInSandbox, sandboxFailureKind, sandboxResourcesForSize, splitInlineProfileFileMounts, splitInlineProfileSkills, startTeeAttestationHeartbeat, terminalUpgradeHeadersSupported, toOtelJson, validateBatchRunRequest, validateDeferredProfileFileMounts };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, G as parseBackendType, H as backendTypeSchema, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-
|
|
1
|
+
import { A as normalizeRuntimeBackendConfig, B as TERMINAL_WS_ECHO_SUBPROTOCOL, G as parseBackendType, H as backendTypeSchema, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { a as INTERACTIVE_CONTROL_CLEANUP_TIMEOUT_MS, k as agentInteractiveSessionPromptRequestDigest, l as createInteractiveControlHolderId, n as browserInteractiveControlHolderId, o as InteractiveSessionControlController, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController, u as interactiveSessionIdentityDigest } from "./browser-interactive-control-controller-BvtNDWql.js";
|
|
3
3
|
import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-DFZTAn1S.js";
|
|
4
|
-
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-
|
|
4
|
+
import { C as SandboxOperationFailedError, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, S as SandboxOperation, T as splitInlineProfileFileMounts, _ as collectAgentFinalMessageText, a as MAX_EGRESS_DENIALS_LIMIT, b as isToolBearingEvent, c as otelTraceIdForTangleTrace, d as SandboxSession, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as downloadFile, l as toOtelJson, m as createInteractiveTerminalCapture, o as buildTraceExportPayload, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as exportTraceBundle, t as SandboxInstance, u as SandboxTaskSession, v as collectAgentResponseText, w as materializeProfileFileMounts, x as ManagedProcessClient, y as getSandboxEventText } from "./sandbox-C_IZHl45.js";
|
|
5
5
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
6
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
6
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-fAhCkcRh.js";
|
|
7
7
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BULMqzR_.js";
|
|
8
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
8
|
+
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
9
9
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-D9XmRZMl.js";
|
|
10
10
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
11
|
-
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-
|
|
12
|
-
import { s as TangleSandboxClient } from "./tangle-
|
|
11
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-eAdKeKPo.js";
|
|
12
|
+
import { s as TangleSandboxClient } from "./tangle-D05S-A_g.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
|
|
15
15
|
/**
|
|
@@ -655,20 +655,11 @@ var ImageBuilder = class {
|
|
|
655
655
|
/**
|
|
656
656
|
* Compute the content-addressed ID for this spec.
|
|
657
657
|
*
|
|
658
|
-
* Uses Web Crypto when available
|
|
659
|
-
*
|
|
658
|
+
* Uses Web Crypto when available, falling back to a lazy
|
|
659
|
+
* `import("node:crypto")` on runtimes without a global `crypto.subtle`.
|
|
660
660
|
* Works in every JavaScript environment the SDK supports.
|
|
661
661
|
*
|
|
662
662
|
* @returns SHA-256 hash of the normalized spec as a hex string.
|
|
663
|
-
*
|
|
664
|
-
* **Breaking change (v0.0.3):** `computeId()` was previously
|
|
665
|
-
* synchronous. Callers must now `await` the result. A Node-only sync
|
|
666
|
-
* variant was considered and dropped: it would have either required
|
|
667
|
-
* Node 22.3+ (breaking Node 18/20 consumers) or re-introduced the
|
|
668
|
-
* top-level `node:crypto` import that blanks every browser page
|
|
669
|
-
* transitively importing the SDK root. If you genuinely need the
|
|
670
|
-
* hash synchronously in a Node-only context, compute it yourself
|
|
671
|
-
* from `builder.toSpec()` with `JSON.stringify(spec, Object.keys(spec).sort())`.
|
|
672
663
|
*/
|
|
673
664
|
async computeId() {
|
|
674
665
|
const normalized = JSON.stringify(this.spec, Object.keys(this.spec).sort());
|
|
@@ -157,11 +157,10 @@ interface IntelligenceRun {
|
|
|
157
157
|
receivedAt: string;
|
|
158
158
|
[key: string]: unknown;
|
|
159
159
|
}
|
|
160
|
-
/** A page of eval-runs
|
|
160
|
+
/** A page of eval-runs; follow `nextCursor` to paginate. */
|
|
161
161
|
interface RunList {
|
|
162
162
|
items: IntelligenceRun[];
|
|
163
163
|
limit: number;
|
|
164
|
-
offset: number;
|
|
165
164
|
nextCursor: string | null;
|
|
166
165
|
}
|
|
167
166
|
/** One row of the tenant-wide session explorer (`GET /v1/sessions`). */
|
|
@@ -270,8 +269,6 @@ interface GetTraceSpansParams {
|
|
|
270
269
|
/** Query params for {@link IntelligenceTraceClient.listRuns}. */
|
|
271
270
|
interface ListRunsParams {
|
|
272
271
|
limit?: number;
|
|
273
|
-
/** Legacy offset pagination; ignored once `cursor` is supplied. */
|
|
274
|
-
offset?: number;
|
|
275
272
|
status?: "started" | "baseline-complete" | "generation-complete" | "gate-decided" | "finished" | "errored";
|
|
276
273
|
gate?: "ship" | "hold" | "need_more_work" | "model_ceiling" | "arch_ceiling";
|
|
277
274
|
/** Case-insensitive substring over `run_dir`. */
|
|
@@ -134,7 +134,6 @@ function createIntelligenceClient(config) {
|
|
|
134
134
|
async function listRuns(params = {}) {
|
|
135
135
|
const search = new URLSearchParams();
|
|
136
136
|
appendParam(search, "limit", params.limit);
|
|
137
|
-
appendParam(search, "offset", params.offset);
|
|
138
137
|
appendParam(search, "status", params.status);
|
|
139
138
|
appendParam(search, "gate", params.gate);
|
|
140
139
|
appendParam(search, "q", params.q);
|
|
@@ -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-DdhciJR8.js";
|
|
2
2
|
export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
|
|
@@ -3,7 +3,7 @@ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMa
|
|
|
3
3
|
import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
4
4
|
import { E as ValidationError, S as ServerError, h as NetworkError, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, x as SandboxError } from "./errors-BStusQVc.js";
|
|
5
5
|
import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
6
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
6
|
+
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
7
7
|
import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-
|
|
2
|
-
import { rr as TerminalStream } from "./types-
|
|
3
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
1
|
+
import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
|
+
import { rr as TerminalStream } from "./types-D89tf_Kw.js";
|
|
3
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-DdhciJR8.js";
|
|
4
4
|
|
|
5
5
|
//#region src/interactive-controller.d.ts
|
|
6
6
|
/** The request fields supplied by an attach caller before control is claimed. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-
|
|
1
|
+
import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-D89tf_Kw.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 LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-
|
|
1
|
+
import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-BU4hEO2M.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 };
|
|
@@ -279,9 +279,8 @@ const TOOL_SPECS = {
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
|
-
* The
|
|
283
|
-
*
|
|
284
|
-
* through TOOL_SPECS or a pack's explicit tools allow-list.
|
|
282
|
+
* The default tool set. Preview publishing is opt-in through TOOL_SPECS or a
|
|
283
|
+
* pack's explicit tools allow-list.
|
|
285
284
|
*/
|
|
286
285
|
const ALL_TOOL_SPECS = Object.values(TOOL_SPECS).filter((spec) => spec.enabledByDefault !== false);
|
|
287
286
|
/** Pack-side helper: filter the registry by an optional allow-list. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as SandboxInstance } from "./index-
|
|
2
|
-
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-
|
|
3
|
-
import { t as Sandbox } from "./client-
|
|
1
|
+
import { O as SandboxInstance } from "./index-CEnN8lzy.js";
|
|
2
|
+
import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-D89tf_Kw.js";
|
|
3
|
+
import { t as Sandbox } from "./client-CpTt65-H.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 { Ot as SandboxError } from "./terminal-stream-types-
|
|
2
|
-
import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-
|
|
1
|
+
import { Ot as SandboxError } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
|
+
import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-D89tf_Kw.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-DgFlNR6x.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
|
@@ -249,7 +249,7 @@ async function exportRawEvidenceDirectory(request, subject, targetDirectory, opt
|
|
|
249
249
|
const response = await runPreparedEvidence(request, options.signal);
|
|
250
250
|
if (!response.ok) {
|
|
251
251
|
await response.body?.cancel();
|
|
252
|
-
throw new Error(`Raw evidence archive request failed (HTTP ${response.status})
|
|
252
|
+
throw new Error(`Raw evidence archive request failed (HTTP ${response.status})`);
|
|
253
253
|
}
|
|
254
254
|
if (response.headers.get("content-type")?.includes("application/json")) {
|
|
255
255
|
const body = JSON.parse(await readBoundedResponse(response, 64 * 1024, options.signal));
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-
|
|
2
|
-
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-
|
|
3
|
-
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-
|
|
4
|
-
import { t as BrowserInteractiveSessionController } from "./interactive-controller-
|
|
5
|
-
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-
|
|
1
|
+
import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
|
+
import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-D89tf_Kw.js";
|
|
3
|
+
import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DdhciJR8.js";
|
|
4
|
+
import { t as BrowserInteractiveSessionController } from "./interactive-controller-DKSv-fGQ.js";
|
|
5
|
+
import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DkJVwb8D.js";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/chunked-upload.d.ts
|
|
8
8
|
/** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-
|
|
1
|
+
import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BvtNDWql.js";
|
|
3
3
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
|
|
4
4
|
import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-
|
|
1
|
+
import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-BRUzaI-G.js";
|
|
2
2
|
import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, u as isCanonicalJsonValue } from "./harness-BnGz2Wng.js";
|
|
3
3
|
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BvtNDWql.js";
|
|
4
4
|
import { a as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
|
|
@@ -7,7 +7,7 @@ import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort }
|
|
|
7
7
|
import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
|
|
8
8
|
import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch--8twRp99.js";
|
|
9
9
|
import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.js";
|
|
10
|
-
import { t as parseSSEStream } from "./sse-parser-
|
|
10
|
+
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
11
11
|
import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
|
|
12
12
|
import { t as runPreparedProcess } from "./prepared-process-DUPGC_ff.js";
|
|
13
13
|
import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
|
|
@@ -2701,16 +2701,6 @@ const PROFILE_BUNDLE_PUBLISH_ENDPOINT = "/agents/profile-bundle/publish";
|
|
|
2701
2701
|
* hold create() hostage.
|
|
2702
2702
|
*/
|
|
2703
2703
|
const PROFILE_BUNDLE_HTTP_TIMEOUT_MS = 1e4;
|
|
2704
|
-
/**
|
|
2705
|
-
* Answers that mean the box predates the cache API: no route, a route that
|
|
2706
|
-
* rejects the method, or a recognized-but-unimplemented handler. Remembered
|
|
2707
|
-
* per box handle so an old box is never probed twice.
|
|
2708
|
-
*/
|
|
2709
|
-
const PROFILE_BUNDLE_API_GONE_STATUSES = new Set([
|
|
2710
|
-
404,
|
|
2711
|
-
405,
|
|
2712
|
-
501
|
|
2713
|
-
]);
|
|
2714
2704
|
function profileBundleDebug(message, data = {}) {
|
|
2715
2705
|
if (globalThis.process?.env?.TANGLE_SANDBOX_SDK_PROFILE_BUNDLE_DEBUG !== "1") return;
|
|
2716
2706
|
console.debug(`[sandbox-sdk] profile bundle: ${message}`, data);
|
|
@@ -2754,7 +2744,6 @@ var ProfileFileDelivery = class {
|
|
|
2754
2744
|
/** The most recent successful preparation with file mounts; undefined until one. */
|
|
2755
2745
|
lastReport;
|
|
2756
2746
|
pending = Promise.resolve();
|
|
2757
|
-
unsupportedBoxes = /* @__PURE__ */ new WeakSet();
|
|
2758
2747
|
prepare(box, profile, signal, existingFiles = "allow-identical") {
|
|
2759
2748
|
const split = splitInlineProfileFileMounts(structuredClone(profile));
|
|
2760
2749
|
const { leanProfile } = split;
|
|
@@ -2791,10 +2780,10 @@ var ProfileFileDelivery = class {
|
|
|
2791
2780
|
}
|
|
2792
2781
|
async deliverProfileFiles(box, deferredFiles, bundle, existingFiles) {
|
|
2793
2782
|
const claim = await this.claimProfileBundle(box, deferredFiles, bundle);
|
|
2794
|
-
if (claim.kind === "
|
|
2783
|
+
if (claim.kind === "direct") {
|
|
2795
2784
|
await materializeProfileFileMounts(box, deferredFiles, { existingFiles });
|
|
2796
2785
|
return {
|
|
2797
|
-
outcome: "
|
|
2786
|
+
outcome: "direct",
|
|
2798
2787
|
deliveredFiles: deferredFiles.length
|
|
2799
2788
|
};
|
|
2800
2789
|
}
|
|
@@ -2811,7 +2800,7 @@ var ProfileFileDelivery = class {
|
|
|
2811
2800
|
};
|
|
2812
2801
|
}
|
|
2813
2802
|
async claimProfileBundle(box, deferredFiles, bundle) {
|
|
2814
|
-
if (typeof box.runtimeFetch !== "function"
|
|
2803
|
+
if (typeof box.runtimeFetch !== "function") return { kind: "direct" };
|
|
2815
2804
|
const table = profileBundleFileTable(deferredFiles);
|
|
2816
2805
|
try {
|
|
2817
2806
|
const response = await withProfileBundleTimeout(box.runtimeFetch(PROFILE_BUNDLE_CLAIM_ENDPOINT, {
|
|
@@ -2825,14 +2814,9 @@ var ProfileFileDelivery = class {
|
|
|
2825
2814
|
}))
|
|
2826
2815
|
})
|
|
2827
2816
|
}), "profile bundle claim");
|
|
2828
|
-
if (PROFILE_BUNDLE_API_GONE_STATUSES.has(response.status)) {
|
|
2829
|
-
this.unsupportedBoxes.add(box);
|
|
2830
|
-
profileBundleDebug("box predates the bundle cache API", { status: response.status });
|
|
2831
|
-
return { kind: "legacy" };
|
|
2832
|
-
}
|
|
2833
2817
|
if (!response.ok) {
|
|
2834
|
-
profileBundleDebug("claim refused;
|
|
2835
|
-
return { kind: "
|
|
2818
|
+
profileBundleDebug("claim refused; direct delivery this turn", { status: response.status });
|
|
2819
|
+
return { kind: "direct" };
|
|
2836
2820
|
}
|
|
2837
2821
|
const body = await response.json();
|
|
2838
2822
|
if (body.status === "hit") return {
|
|
@@ -2846,12 +2830,12 @@ var ProfileFileDelivery = class {
|
|
|
2846
2830
|
missing: new Set(body.missing)
|
|
2847
2831
|
};
|
|
2848
2832
|
} catch (error) {
|
|
2849
|
-
profileBundleDebug("claim failed;
|
|
2850
|
-
return { kind: "
|
|
2833
|
+
profileBundleDebug("claim failed; direct delivery this turn", { error: error instanceof Error ? error.message : String(error) });
|
|
2834
|
+
return { kind: "direct" };
|
|
2851
2835
|
}
|
|
2852
2836
|
}
|
|
2853
2837
|
async publishProfileBundle(box, deferredFiles, bundle) {
|
|
2854
|
-
if (typeof box.runtimeFetch !== "function"
|
|
2838
|
+
if (typeof box.runtimeFetch !== "function") return;
|
|
2855
2839
|
try {
|
|
2856
2840
|
const response = await withProfileBundleTimeout(box.runtimeFetch(PROFILE_BUNDLE_PUBLISH_ENDPOINT, {
|
|
2857
2841
|
method: "POST",
|
|
@@ -3572,9 +3556,7 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
|
|
|
3572
3556
|
/**
|
|
3573
3557
|
* Port exposure and runtime network state.
|
|
3574
3558
|
*
|
|
3575
|
-
* Outbound restrictions are on {@link SandboxInstance.egress}
|
|
3576
|
-
* here rejects every policy field rather than recording one nothing
|
|
3577
|
-
* enforces.
|
|
3559
|
+
* Outbound restrictions are on {@link SandboxInstance.egress}.
|
|
3578
3560
|
*
|
|
3579
3561
|
* @example Expose ports dynamically
|
|
3580
3562
|
* ```typescript
|
|
@@ -3589,26 +3571,11 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
|
|
|
3589
3571
|
*/
|
|
3590
3572
|
get network() {
|
|
3591
3573
|
return {
|
|
3592
|
-
update: (config) => this.networkUpdate(config),
|
|
3593
3574
|
exposePort: (port) => this.networkExposePort(port),
|
|
3594
3575
|
listUrls: () => this.networkListUrls(),
|
|
3595
3576
|
getConfig: () => this.networkGetConfig()
|
|
3596
3577
|
};
|
|
3597
3578
|
}
|
|
3598
|
-
async networkUpdate(config) {
|
|
3599
|
-
if (config.blockOutbound !== void 0 && config.allowList !== void 0) {
|
|
3600
|
-
if (config.blockOutbound && config.allowList.length > 0) throw new Error("blockOutbound and allowList are mutually exclusive");
|
|
3601
|
-
}
|
|
3602
|
-
if (config.allowList) {
|
|
3603
|
-
if (config.allowList.length > 10) throw new Error("allowList cannot exceed 10 entries");
|
|
3604
|
-
for (const cidr of config.allowList) if (!this.isValidCidr(cidr)) throw new Error(`Invalid CIDR format: ${cidr}`);
|
|
3605
|
-
}
|
|
3606
|
-
const response = await this.runtimeFetch("/network", {
|
|
3607
|
-
method: "PATCH",
|
|
3608
|
-
body: JSON.stringify(config)
|
|
3609
|
-
});
|
|
3610
|
-
if (!response.ok) throw await parseResponseError(response);
|
|
3611
|
-
}
|
|
3612
3579
|
async networkExposePort(port) {
|
|
3613
3580
|
if (port < 1 || port > 65535) throw new Error("Port must be between 1 and 65535");
|
|
3614
3581
|
return (await readResponseJson(await this.runtimeFetch("/network/expose", {
|
|
@@ -3622,26 +3589,6 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
|
|
|
3622
3589
|
async networkGetConfig() {
|
|
3623
3590
|
return await readResponseJson(await this.runtimeFetch("/network"));
|
|
3624
3591
|
}
|
|
3625
|
-
/**
|
|
3626
|
-
* Validate CIDR notation (IPv4 and IPv6)
|
|
3627
|
-
*/
|
|
3628
|
-
isValidCidr(cidr) {
|
|
3629
|
-
const ipv4Pattern = /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\/(?:[0-9]|[12]\d|3[0-2])$/;
|
|
3630
|
-
const ipv6Pattern = /^([a-fA-F0-9:]+)\/(\d{1,3})$/;
|
|
3631
|
-
if (ipv4Pattern.test(cidr)) return true;
|
|
3632
|
-
const ipv6Match = cidr.match(ipv6Pattern);
|
|
3633
|
-
if (ipv6Match) {
|
|
3634
|
-
const ipPart = ipv6Match[1];
|
|
3635
|
-
const prefixPart = ipv6Match[2];
|
|
3636
|
-
if (ipPart === void 0 || prefixPart === void 0) return false;
|
|
3637
|
-
const prefix = Number.parseInt(prefixPart, 10);
|
|
3638
|
-
if (prefix >= 0 && prefix <= 128) {
|
|
3639
|
-
const groups = ipPart.split(":");
|
|
3640
|
-
if (groups.length <= 8 && ipPart.includes(":")) return groups.every((g) => g === "" || /^[a-fA-F0-9]{1,4}$/.test(g));
|
|
3641
|
-
}
|
|
3642
|
-
}
|
|
3643
|
-
return false;
|
|
3644
|
-
}
|
|
3645
3592
|
};
|
|
3646
3593
|
//#endregion
|
|
3647
3594
|
//#region src/sandbox-workspace-gpu.ts
|
|
@@ -4281,25 +4228,13 @@ const LIFECYCLE_CONFLICT_MAX_DELAY_MS = 4e3;
|
|
|
4281
4228
|
function isLifecycleConflict(cause) {
|
|
4282
4229
|
return cause instanceof SandboxError && cause.status === 409 && cause.code === LIFECYCLE_CONFLICT_CODE;
|
|
4283
4230
|
}
|
|
4284
|
-
/**
|
|
4285
|
-
* The orchestrator's typed refusal of a delete whose agent sessions are not
|
|
4286
|
-
* yet sealed in run session storage: HTTP 503, nothing was torn down, and the
|
|
4287
|
-
* route says to retry the delete. One child delete of a 16-child branch met it
|
|
4288
|
-
* in production branch-fanout (eu1, 2026-10-26) and failed the whole run.
|
|
4289
|
-
*/
|
|
4290
|
-
const RUN_SESSION_CAPTURE_PENDING_CODE = "RUN_SESSION_CAPTURE_PENDING";
|
|
4291
|
-
/** A refusal that changed nothing and that the platform says to retry. */
|
|
4292
|
-
function isRetriedLifecycleRefusal(cause) {
|
|
4293
|
-
return isLifecycleConflict(cause) || cause instanceof SandboxError && cause.status === 503 && cause.code === RUN_SESSION_CAPTURE_PENDING_CODE;
|
|
4294
|
-
}
|
|
4295
4231
|
function lifecycleConflictDelayMs(cause, failedAttempt) {
|
|
4296
4232
|
if (cause instanceof SandboxError && cause.retryAfterMs !== void 0) return cause.retryAfterMs;
|
|
4297
4233
|
return Math.min(LIFECYCLE_CONFLICT_BASE_DELAY_MS * 2 ** Math.max(0, failedAttempt - 1), LIFECYCLE_CONFLICT_MAX_DELAY_MS);
|
|
4298
4234
|
}
|
|
4299
4235
|
/**
|
|
4300
4236
|
* Run one lifecycle mutation, re-attempting only the platform's typed
|
|
4301
|
-
* "already in progress" refusal
|
|
4302
|
-
* refusal.
|
|
4237
|
+
* "already in progress" refusal.
|
|
4303
4238
|
*
|
|
4304
4239
|
* Every other failure keeps its identity and its stack: this widens no other
|
|
4305
4240
|
* error class, and a caller abort ends the wait immediately.
|
|
@@ -4308,7 +4243,7 @@ async function withLifecycleConflictRetry(run, options) {
|
|
|
4308
4243
|
for (let attempt = 1;; attempt += 1) try {
|
|
4309
4244
|
return await run();
|
|
4310
4245
|
} catch (error) {
|
|
4311
|
-
if (!
|
|
4246
|
+
if (!isLifecycleConflict(error) || attempt >= LIFECYCLE_CONFLICT_MAX_ATTEMPTS || options?.signal?.aborted) throw error;
|
|
4312
4247
|
await delayUntilAborted(lifecycleConflictDelayMs(error, attempt), options?.signal);
|
|
4313
4248
|
}
|
|
4314
4249
|
}
|
|
@@ -5842,7 +5777,6 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
|
|
|
5842
5777
|
method: "POST",
|
|
5843
5778
|
body
|
|
5844
5779
|
});
|
|
5845
|
-
if (response.status === 404) return false;
|
|
5846
5780
|
if (!response.ok) {
|
|
5847
5781
|
const errorBody = await response.text();
|
|
5848
5782
|
throw parseErrorResponse(response.status, errorBody, {
|
|
@@ -5877,7 +5811,6 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
|
|
|
5877
5811
|
ifAbsent: file.ifAbsent
|
|
5878
5812
|
});
|
|
5879
5813
|
}
|
|
5880
|
-
return true;
|
|
5881
5814
|
}
|
|
5882
5815
|
async writeManySequential(files, paceMs, maxRetries) {
|
|
5883
5816
|
let started = false;
|
|
@@ -5903,8 +5836,8 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
|
|
|
5903
5836
|
}
|
|
5904
5837
|
}
|
|
5905
5838
|
/**
|
|
5906
|
-
* Write many files through the runtime batch endpoint.
|
|
5907
|
-
*
|
|
5839
|
+
* Write many files through the runtime batch endpoint. Duplicate paths use
|
|
5840
|
+
* the sequential write path so the last write of a path wins.
|
|
5908
5841
|
*/
|
|
5909
5842
|
async writeMany(files, options = {}) {
|
|
5910
5843
|
if (files.length === 0) return;
|
|
@@ -5918,11 +5851,7 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
|
|
|
5918
5851
|
const batches = splitWriteManyBatches(files.map(toWriteManyWireFile));
|
|
5919
5852
|
for (const [index, batch] of batches.entries()) {
|
|
5920
5853
|
if (index > 0 && paceMs > 0) await delay(paceMs);
|
|
5921
|
-
|
|
5922
|
-
if (index > 0) throw new ServerError("Runtime removed file batch support during writeMany", 502);
|
|
5923
|
-
await this.writeManySequential(files, paceMs, maxRetries);
|
|
5924
|
-
return;
|
|
5925
|
-
}
|
|
5854
|
+
await this.writeBatchRequest(batch.files, batch.body);
|
|
5926
5855
|
}
|
|
5927
5856
|
}
|
|
5928
5857
|
/**
|
|
@@ -6159,7 +6088,7 @@ var SandboxProfileCapabilities = class extends SandboxFileWriteCapabilities {
|
|
|
6159
6088
|
*/
|
|
6160
6089
|
/**
|
|
6161
6090
|
* How this handle's most recent profile file preparation was satisfied
|
|
6162
|
-
* (host cache hit, partial, miss,
|
|
6091
|
+
* (host cache hit, partial, miss, direct delivery, or a held receipt) and
|
|
6163
6092
|
* how long it took. Undefined until a profile with file mounts is prepared.
|
|
6164
6093
|
*/
|
|
6165
6094
|
get lastProfileFileDelivery() {
|
|
@@ -7428,7 +7357,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7428
7357
|
* Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
|
|
7429
7358
|
* Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
|
|
7430
7359
|
* stay server-side. Native session streams use read-only session-runtime;
|
|
7431
|
-
* session/project
|
|
7360
|
+
* session/project authorize the Sandbox API's `/session` WebSocket.
|
|
7432
7361
|
*/
|
|
7433
7362
|
async mintScopedToken(opts) {
|
|
7434
7363
|
return requestScopedToken(state(this).client, this.id, opts);
|
|
@@ -7662,7 +7591,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
7662
7591
|
var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
|
|
7663
7592
|
/** @internal — invoked before the sandbox is deleted. */
|
|
7664
7593
|
async _sessionExportRawEvidence(id, destination, options) {
|
|
7665
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7594
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DXGxxsgK.js");
|
|
7666
7595
|
await this.ensureRunning();
|
|
7667
7596
|
await this.refresh();
|
|
7668
7597
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
|
|
@@ -7693,7 +7622,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
|
|
|
7693
7622
|
* and the byte and file bounds are verified before the directory appears.
|
|
7694
7623
|
*/
|
|
7695
7624
|
async exportRawEvidence(destination, options) {
|
|
7696
|
-
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-
|
|
7625
|
+
const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DXGxxsgK.js");
|
|
7697
7626
|
await this.ensureRunning();
|
|
7698
7627
|
await this.refresh();
|
|
7699
7628
|
return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as combineAbortSignals } from "../abort-signal-JVaAyNMP.js";
|
|
2
2
|
import "../sidecar-proxy-error-DORW8_mD.js";
|
|
3
|
-
import { t as parseSSEStream } from "../sse-parser-
|
|
3
|
+
import { t as parseSSEStream } from "../sse-parser-BUIKfYAd.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/session-gateway.js
|
|
5
5
|
/**
|
|
6
6
|
* Calculate connection quality from metrics.
|
|
@@ -30,7 +30,7 @@ import { streamSSEFrames } from "@tangle-network/agent-core/sse";
|
|
|
30
30
|
* streams can explicitly warn and skip one invalid frame.
|
|
31
31
|
*
|
|
32
32
|
* What it does NOT do:
|
|
33
|
-
* - CR-only
|
|
33
|
+
* - CR-only line terminators. No known emitter uses
|
|
34
34
|
* them; supporting them would risk splitting payloads that
|
|
35
35
|
* legitimately contain CR.
|
|
36
36
|
* - Retry/reconnect (caller's responsibility).
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, 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 TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, 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 TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-CEnN8lzy.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 TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-D05S-A_g.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,4 +1,4 @@
|
|
|
1
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-C_IZHl45.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-BStusQVc.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-BXgE8UHJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
@@ -2561,7 +2561,8 @@ type MintScopedTokenOptions = (MintScopedTokenBase & {
|
|
|
2561
2561
|
type MintInteractiveSessionTokenOptions = Pick<MintScopedTokenBase, "ttlMinutes" | "signal">;
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Returned by `box.mintScopedToken()`. Native session streams use a read-only
|
|
2564
|
-
* session-runtime token. Session/project tokens
|
|
2564
|
+
* session-runtime token. Session/project tokens authorize the Sandbox API's
|
|
2565
|
+
* `/session` WebSocket.
|
|
2565
2566
|
*/
|
|
2566
2567
|
interface ScopedToken {
|
|
2567
2568
|
/** Bearer token (JWT) for the consumer selected by `scope`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as AgentRuntimeAttachments, G as AgentProfile, K as AgentProfileCapabilities, Rt as SandboxCreateReceipt, S as SandboxSizePreset, U as InteractionRequest, a as TerminalStreamOptions, ct as ReasoningEffort, g as TerminalReadyInfo, i as TerminalStreamHandlers, ot as AgentProfileValidationResult, q as AgentProfileConfidential, s as TerminalStreamToken, t as TerminalAttachTimings, ut as PlanContinuation, z as AgentExactRunControlRef } from "./terminal-stream-types-
|
|
1
|
+
import { C as AgentRuntimeAttachments, G as AgentProfile, K as AgentProfileCapabilities, Rt as SandboxCreateReceipt, S as SandboxSizePreset, U as InteractionRequest, a as TerminalStreamOptions, ct as ReasoningEffort, g as TerminalReadyInfo, i as TerminalStreamHandlers, ot as AgentProfileValidationResult, q as AgentProfileConfidential, s as TerminalStreamToken, t as TerminalAttachTimings, ut as PlanContinuation, z as AgentExactRunControlRef } from "./terminal-stream-types-BlOFGopg.js";
|
|
2
2
|
import { t as CliAuthReference } from "./cli-auth-bundle-99-eo7R4.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
@@ -3890,9 +3890,9 @@ interface WriteFileOptions {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
/** Options for {@link FileSystem.writeMany}. */
|
|
3892
3892
|
interface WriteManyOptions {
|
|
3893
|
-
/** Delay between batch requests or
|
|
3893
|
+
/** Delay between batch requests or sequential writes. Default 0. */
|
|
3894
3894
|
paceMs?: number;
|
|
3895
|
-
/** Max retries per
|
|
3895
|
+
/** Max retries per sequential write on a transient error. Default 4. */
|
|
3896
3896
|
maxRetries?: number;
|
|
3897
3897
|
}
|
|
3898
3898
|
interface FileSystem {
|
|
@@ -4390,12 +4390,8 @@ interface EgressPolicy {
|
|
|
4390
4390
|
//#endregion
|
|
4391
4391
|
//#region src/types/network.d.ts
|
|
4392
4392
|
/**
|
|
4393
|
-
* Runtime network state for a sandbox
|
|
4394
|
-
*
|
|
4395
|
-
* `ports` is the only field the platform reports: it lists ports exposed via
|
|
4396
|
-
* {@link NetworkManager.exposePort}. The outbound-policy fields are retained
|
|
4397
|
-
* for source compatibility and are rejected by the server — see
|
|
4398
|
-
* {@link NetworkManager.update}.
|
|
4393
|
+
* Runtime network state for a sandbox: the ports exposed via
|
|
4394
|
+
* {@link NetworkManager.exposePort}.
|
|
4399
4395
|
*
|
|
4400
4396
|
* @example Read the exposed ports
|
|
4401
4397
|
* ```typescript
|
|
@@ -4408,27 +4404,7 @@ interface EgressPolicy {
|
|
|
4408
4404
|
* ```
|
|
4409
4405
|
*/
|
|
4410
4406
|
interface NetworkConfig {
|
|
4411
|
-
/**
|
|
4412
|
-
* @deprecated Not enforceable and rejected with a 409. No driver applies
|
|
4413
|
-
* per-sandbox outbound rules: sandboxes are never granted NET_ADMIN, and a
|
|
4414
|
-
* rule set written inside a sandbox could be flushed by the code it is
|
|
4415
|
-
* meant to constrain. Block all outbound traffic with
|
|
4416
|
-
* `box.egress.update({ mode: "blocked" })`.
|
|
4417
|
-
*/
|
|
4418
|
-
blockOutbound?: boolean;
|
|
4419
|
-
/**
|
|
4420
|
-
* @deprecated Not enforceable and rejected with a 409. Egress enforcement
|
|
4421
|
-
* allowlists domains, not CIDRs, so there is no destination-IP filter to
|
|
4422
|
-
* apply. Use `box.egress.update({ mode: "strict", allowDomains: [...] })`.
|
|
4423
|
-
*/
|
|
4424
|
-
allowList?: string[];
|
|
4425
|
-
/**
|
|
4426
|
-
* Ports currently exposed for the sandbox.
|
|
4427
|
-
*
|
|
4428
|
-
* Read-only in practice: sending `ports` to `update()` is rejected with a
|
|
4429
|
-
* 409 because it never exposed anything. Expose a port with
|
|
4430
|
-
* {@link NetworkManager.exposePort}.
|
|
4431
|
-
*/
|
|
4407
|
+
/** Ports currently exposed for the sandbox. */
|
|
4432
4408
|
ports?: number[];
|
|
4433
4409
|
}
|
|
4434
4410
|
/**
|
|
@@ -4580,23 +4556,6 @@ interface SandboxEgressUsage {
|
|
|
4580
4556
|
* ```
|
|
4581
4557
|
*/
|
|
4582
4558
|
interface NetworkManager {
|
|
4583
|
-
/**
|
|
4584
|
-
* Update runtime network settings.
|
|
4585
|
-
*
|
|
4586
|
-
* @deprecated Every field this accepts is rejected by the server. Outbound
|
|
4587
|
-
* policy is unenforceable here (see {@link NetworkConfig}) and `ports` never
|
|
4588
|
-
* exposed anything. Use `box.egress.update()` for outbound policy and
|
|
4589
|
-
* {@link NetworkManager.exposePort} for ports.
|
|
4590
|
-
*
|
|
4591
|
-
* @param config - Partial network configuration to apply
|
|
4592
|
-
* @throws Error if blockOutbound and allowList are both specified
|
|
4593
|
-
* @throws Error if allowList exceeds 10 entries
|
|
4594
|
-
* @throws Error if CIDR format is invalid
|
|
4595
|
-
* @throws SandboxError (409, `DRIVER_CAPABILITY_UNSUPPORTED`) if the request
|
|
4596
|
-
* carries `blockOutbound`, `allowList`, or `ports` — the platform will not
|
|
4597
|
-
* report success for a policy it cannot enforce
|
|
4598
|
-
*/
|
|
4599
|
-
update(config: Partial<NetworkConfig>): Promise<void>;
|
|
4600
4559
|
/**
|
|
4601
4560
|
* Expose a port dynamically.
|
|
4602
4561
|
* Returns a publicly accessible URL for the port.
|
|
@@ -7099,8 +7058,7 @@ interface SessionMessage {
|
|
|
7099
7058
|
completedAt?: string;
|
|
7100
7059
|
interrupted?: boolean;
|
|
7101
7060
|
interruptedAt?: string;
|
|
7102
|
-
interruptReason?: string;
|
|
7103
|
-
turnId?: string;
|
|
7061
|
+
interruptReason?: string;
|
|
7104
7062
|
startedAt?: string;
|
|
7105
7063
|
[extra: string]: unknown;
|
|
7106
7064
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
|
-
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
157
|
-
"@tangle-network/runtime-contracts": "0.19.0",
|
|
158
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
159
157
|
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
160
|
-
"@repo/shared": "0.0.0"
|
|
158
|
+
"@repo/shared": "0.0.0",
|
|
159
|
+
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
160
|
+
"@tangle-network/runtime-contracts": "0.19.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-28T20:
|
|
163
|
+
"sourceSha": "d011aa6cd77e06d8a1ebccc15fc39ff15b3ba7fa",
|
|
164
|
+
"mergedAt": "2026-10-28T20:17:30-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|