@tangle-network/sandbox 1.0.219 → 1.0.220

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.
Files changed (46) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +1 -1
  5. package/dist/{agent-run-outcome-DW_S8f-u.d.ts → agent-run-outcome-DAN_EtGZ.d.ts} +2 -2
  6. package/dist/{api-request-D2LC0l2F.js → api-request-BTdRjI3w.js} +1 -1
  7. package/dist/{browser-interactive-control-controller-s9d82qc9.d.ts → browser-interactive-control-controller-ow-Ebkd1.d.ts} +1 -1
  8. package/dist/{chunked-upload-BqjKs2uB.js → chunked-upload-CAzx8Ijy.js} +1 -1
  9. package/dist/{chunked-upload-file-CxKU6yTt.js → chunked-upload-file-WZPpuUE0.js} +1 -1
  10. package/dist/{client-CSMb6fHz.d.ts → client-CiFnarzL.d.ts} +9 -61
  11. package/dist/{client-CSUTe70Z.js → client-ronGvKYn.js} +74 -86
  12. package/dist/collaboration/index.js +1 -1
  13. package/dist/{collaboration-Bv22hvgZ.js → collaboration-BEGUYvm7.js} +1 -1
  14. package/dist/{core-B6Ma53O9.js → core-CmGAuOS3.js} +2 -2
  15. package/dist/core.d.ts +6 -6
  16. package/dist/core.js +5 -5
  17. package/dist/{errors-Bh1udpJ0.js → errors-Bprs6YnT.js} +1 -84
  18. package/dist/{file-download-B9UceD-P.js → file-download-DHpnw8of.js} +1 -1
  19. package/dist/{index-DB4MbfIb.d.ts → index-B1kH9ptD.d.ts} +5 -5
  20. package/dist/index.d.ts +10 -10
  21. package/dist/index.js +9 -9
  22. package/dist/intelligence/index.js +3 -3
  23. package/dist/interactive-control.d.ts +1 -1
  24. package/dist/{interactive-controller-D8QKEwjM.js → interactive-controller-YdvqdSm5.js} +2 -2
  25. package/dist/{interactive-controller-Cl9Ablmg.d.ts → interactive-controller-ZoRprm7c.d.ts} +3 -3
  26. package/dist/{lines-DvSNh5dD.js → lines-C06U-ma3.js} +1 -1
  27. package/dist/{lines-DXdAUnUf.d.ts → lines-stVnnbw8.d.ts} +1 -1
  28. package/dist/lines.d.ts +1 -1
  29. package/dist/lines.js +1 -1
  30. package/dist/{mcp-local-FNH3uRiu.js → mcp-local-Ck7jH01_.js} +2 -2
  31. package/dist/{preview-DhFcCERz.d.ts → preview-DTqp8fY5.d.ts} +3 -3
  32. package/dist/{public-templates-D0QpNlni.d.ts → public-templates-CaJoEbFK.d.ts} +2 -2
  33. package/dist/public-templates.d.ts +1 -1
  34. package/dist/public-templates.js +1 -1
  35. package/dist/{raw-evidence-archive-DCQgYdIF.js → raw-evidence-archive-DD9clPQd.js} +1 -1
  36. package/dist/runtime.d.ts +5 -5
  37. package/dist/runtime.js +4 -4
  38. package/dist/{sandbox-DAQl7rIK.js → sandbox-CSV_5JRt.js} +9 -9
  39. package/dist/select-seat-command.d.ts +1 -1
  40. package/dist/select-seat-command.js +1 -1
  41. package/dist/tangle/index.d.ts +1 -1
  42. package/dist/tangle/index.js +1 -1
  43. package/dist/{tangle-o6oHKdr-.js → tangle-D5604U4K.js} +2 -2
  44. package/dist/{terminal-stream-types-B74nb8jV.d.ts → terminal-stream-types-77ia9qZ8.d.ts} +1468 -407
  45. package/dist/{types-DzB-PS9p.d.ts → types-C0hvqGim.d.ts} +5 -1126
  46. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-DB4MbfIb.js";
2
- import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-DzB-PS9p.js";
3
- import { t as Sandbox } from "../client-CSMb6fHz.js";
4
- import { u as PreviewAuthorizer } from "../preview-DhFcCERz.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-B1kH9ptD.js";
2
+ import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, mo as BackendType, na as SessionInfo } from "../types-C0hvqGim.js";
3
+ import { t as Sandbox } from "../client-CiFnarzL.js";
4
+ import { u as PreviewAuthorizer } from "../preview-DTqp8fY5.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";
@@ -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-FNH3uRiu.js";
2
- import { O as assertCurrentBackendType } from "../interactive-controller-D8QKEwjM.js";
3
- import { t as SandboxInstance } from "../sandbox-DAQl7rIK.js";
4
- import { D as ValidationError, _ as NotFoundError, w as StateError } from "../errors-Bh1udpJ0.js";
5
- import { t as Sandbox } from "../client-CSUTe70Z.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-Ck7jH01_.js";
2
+ import { O as assertCurrentBackendType } from "../interactive-controller-YdvqdSm5.js";
3
+ import { t as SandboxInstance } from "../sandbox-CSV_5JRt.js";
4
+ import { D as ValidationError, _ as NotFoundError, w as StateError } from "../errors-Bprs6YnT.js";
5
+ import { t as Sandbox } from "../client-ronGvKYn.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -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-DhFcCERz.js";
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-DTqp8fY5.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 };
@@ -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-FNH3uRiu.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-Ck7jH01_.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 { V as InteractionRequest } from "./terminal-stream-types-B74nb8jV.js";
2
- import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-DzB-PS9p.js";
1
+ import { Ct as InteractionRequest } from "./terminal-stream-types-77ia9qZ8.js";
2
+ import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-C0hvqGim.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -29,7 +29,7 @@ function rewrapResponse(original, headers, body = original.body) {
29
29
  //#endregion
30
30
  //#region src/lib/api-request.mjs
31
31
  /** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
32
- const SDK_VERSION = "1.0.219";
32
+ const SDK_VERSION = "1.0.220";
33
33
  function withRequestContextHeaders(response, path, method, body = response.body) {
34
34
  const headers = new Headers(response.headers);
35
35
  headers.set("x-tangle-request-path", path);
@@ -1,4 +1,4 @@
1
- import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-B74nb8jV.js";
1
+ import { at as AgentInteractiveSessionAttach, ct as AgentInteractiveSessionControlClaimRequest, dt as AgentInteractiveSessionRef, ft as AgentInteractiveSessionStatus, i as TerminalStreamHandlers, ot as AgentInteractiveSessionControlClaim, st as AgentInteractiveSessionControlClaimAcknowledgement } from "./terminal-stream-types-77ia9qZ8.js";
2
2
 
3
3
  //#region src/interactive-types.d.ts
4
4
  /** Cancellation for an interactive SDK request. */
@@ -1,4 +1,4 @@
1
- import { S as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-Bh1udpJ0.js";
1
+ import { S as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-Bprs6YnT.js";
2
2
  import { c as retryBudget, i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep } from "./retry-policy-Dh-VezcE.js";
3
3
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-BSe4ayU9.js";
4
4
  //#region src/lib/sdk-retry.ts
@@ -1,5 +1,5 @@
1
1
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-BSe4ayU9.js";
2
- import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-BqjKs2uB.js";
2
+ import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-CAzx8Ijy.js";
3
3
  import { createHash } from "node:crypto";
4
4
  import { open } from "node:fs/promises";
5
5
  //#region src/lib/chunked-upload-file.ts
@@ -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-DB4MbfIb.js";
2
- import { $ as HarnessType, G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken, x as AgentRuntimeAttachments, xt as SandboxError } from "./terminal-stream-types-B74nb8jV.js";
3
- import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _o as PublicBatchRunRequestInput, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, go as PublicBatchRunRequest, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, po as BatchResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yo as BatchEvent, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-DzB-PS9p.js";
4
- import { t as LinesClient } from "./lines-DXdAUnUf.js";
5
- import { a as PublicTemplatesClient } from "./public-templates-D0QpNlni.js";
1
+ import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-B1kH9ptD.js";
2
+ import { $ as PublicBatchRunRequest, At as AgentProfileMcpServer, Bt as BatchEvent, Dt as AgentProfileConfidential, Ft as HarnessType, J as BatchCustody, L as SandboxError, Mt as AgentProfileSeat, Ot as AgentProfileConfigValue, Tt as AgentProfile, Y as BatchResult, c as MintInteractiveSessionTokenOptions, dt as AgentInteractiveSessionRef, et as PublicBatchRunRequestInput, jt as AgentProfileMetadata, kt as AgentProfileFileMount, nt as SandboxSizePreset, rt as AgentRuntimeAttachments, u as ScopedToken } from "./terminal-stream-types-77ia9qZ8.js";
3
+ import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-C0hvqGim.js";
4
+ import { t as LinesClient } from "./lines-stVnnbw8.js";
5
+ import { a as PublicTemplatesClient } from "./public-templates-CaJoEbFK.js";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/backend-registry.d.ts
@@ -303,58 +303,9 @@ declare class SandboxCreation extends SandboxManagement {
303
303
  //#endregion
304
304
  //#region src/client-batch.d.ts
305
305
  declare class SandboxBatch extends SandboxCreation {
306
- /**
307
- * Run multiple tasks in parallel across sandboxes.
308
- * Returns the aggregated results after all tasks complete.
309
- *
310
- * @param request - Complete batch request
311
- * @param options - Batch execution options
312
- * @returns Aggregated batch results
313
- *
314
- * @throws {@link ValidationError} / {@link QuotaError} / other typed
315
- * SDK errors if the server rejects the request before streaming.
316
- * @throws `DOMException` with `name === "AbortError"` if
317
- * `options.signal` fires.
318
- * @throws `Error` with the server message if the stream emits a
319
- * `batch.failed` event.
320
- *
321
- * @example
322
- * ```typescript
323
- * const result = await client.runBatch({
324
- * tasks: [
325
- * { id: "task-1", message: "Analyze this file" },
326
- * { id: "task-2", message: "Generate a summary" },
327
- * ],
328
- * backends: [{ id: "primary", type: "opencode" }],
329
- * });
330
- * console.log(`Success rate: ${result.successRate}%`);
331
- * ```
332
- */
306
+ /** Run a batch and return its terminal result and cleanup receipt. */
333
307
  runBatch(request: PublicBatchRunRequestInput, options?: BatchRunOptions): Promise<BatchResult>;
334
- /**
335
- * Stream events from a batch execution.
336
- * Use this for real-time progress updates during batch processing.
337
- *
338
- * @param request - Complete batch request
339
- * @param options - Per-call controls
340
- *
341
- * @throws {@link ValidationError} / {@link QuotaError} / other typed
342
- * SDK errors if the server rejects the request before streaming.
343
- * @throws `DOMException` with `name === "AbortError"` when
344
- * `options.signal` fires.
345
- *
346
- * @example
347
- * ```typescript
348
- * for await (const event of client.streamBatch({
349
- * tasks,
350
- * backends: [{ id: "primary", type: "opencode" }],
351
- * })) {
352
- * if (event.type === "task.completed") {
353
- * console.log(`Task ${event.data.taskId} completed`);
354
- * }
355
- * }
356
- * ```
357
- */
308
+ /** Stream a batch once. Failures preserve observed custody; rejoin with replayOnly. */
358
309
  streamBatch(request: PublicBatchRunRequestInput, options?: BatchRunOptions): AsyncGenerator<BatchEvent, BatchResult>;
359
310
  }
360
311
  //#endregion
@@ -834,15 +785,12 @@ declare function requestedPublicProfileDigest(backend: TurnBackendConfig): `sha2
834
785
  //#region src/batch.d.ts
835
786
  /** Validate and normalize one public batch request. */
836
787
  declare function validateBatchRunRequest(request: PublicBatchRunRequestInput): PublicBatchRunRequest;
837
- /** Stateful adapter for callers that consume batch events manually. */
838
788
  interface BatchResultAccumulator {
789
+ readonly custody?: BatchCustody;
839
790
  add(event: BatchEvent): void;
840
791
  finish(): BatchResult;
841
792
  }
842
- /**
843
- * Create a result accumulator that preserves Sandbox SDK error types while
844
- * delegating all event semantics to runtime-contracts.
845
- */
793
+ /** Adapt protocol results and failures to Sandbox SDK types. */
846
794
  declare function createBatchResultAccumulator(request: PublicBatchRunRequestInput): BatchResultAccumulator;
847
795
  //#endregion
848
796
  //#region src/confidential.d.ts
@@ -1,14 +1,14 @@
1
- import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-D8QKEwjM.js";
1
+ import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-YdvqdSm5.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
3
- import { $ as isCapacityShortageCreateError, B as normalizeConnection, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as DEPLOY_WINDOW_RETRY_MS, O as isRetryableProfileFileMaterializeFailure, P as normalizeCaptureProof, Q as generateIdempotencyKey, R as dateOf, T as splitInlineProfileFileMounts, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, tt as isRateLimitCreateError, z as parseLifecycleTimes } from "./sandbox-DAQl7rIK.js";
4
- import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, a as readResponseJson, g as NetworkError, i as parseResponseError, r as parseErrorResponse, s as AuthError, v as PartialFailureError } from "./errors-Bh1udpJ0.js";
3
+ import { $ as isCapacityShortageCreateError, B as normalizeConnection, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxCreateReceipt, G as CAPACITY_ETA_WAIT_MAX_MS, H as normalizeProxySecretReceipt, I as normalizeStartupDiagnostics, J as DEPLOY_WINDOW_RETRY_MS, O as isRetryableProfileFileMaterializeFailure, P as normalizeCaptureProof, Q as generateIdempotencyKey, R as dateOf, T as splitInlineProfileFileMounts, U as normalizeSandboxShape, V as normalizeEgressPolicyFields, W as CAPACITY_ETA_MARGIN_MS, X as createRetryDelayMs, Y as awaitCreateResend, Z as extendableDeadline, d as sandboxLedgerUsd, et as isDeployWindowCreateError, n as createSandboxInstanceFromResponse, nt as isRetryableCreateError, o as exportTraceBundle, tt as isRateLimitCreateError, z as parseLifecycleTimes } from "./sandbox-CSV_5JRt.js";
4
+ import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, a as readResponseJson, g as NetworkError, i as parseResponseError, r as parseErrorResponse, s as AuthError, v as PartialFailureError } from "./errors-Bprs6YnT.js";
5
5
  import { n as combineAbortSignals } from "./abort-signal-BbJTt2QJ.js";
6
6
  import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-Dh-VezcE.js";
7
7
  import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-BSe4ayU9.js";
8
- import { r as fetchSandboxApi } from "./api-request-D2LC0l2F.js";
8
+ import { r as fetchSandboxApi } from "./api-request-BTdRjI3w.js";
9
9
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
11
- import { t as LinesClient } from "./lines-DvSNh5dD.js";
11
+ import { t as LinesClient } from "./lines-C06U-ma3.js";
12
12
  import { PublicTemplatesClient } from "./public-templates.js";
13
13
  import { z } from "zod";
14
14
  //#region ../../../packages/runtime-contracts/dist/git-policy.js
@@ -376,7 +376,8 @@ var BatchCleanupTracker = class {
376
376
  mode: "release",
377
377
  releasedSidecarIds: [...this.releasedSidecars],
378
378
  pendingSidecarIds: [...this.pendingSidecars],
379
- isComplete: this.pendingSidecars.size === 0
379
+ isComplete: this.pendingSidecars.size === 0 && (!this.host.failed() || this.host.failureCleanup()?.isComplete === true && this.host.failureCleanup()?.pendingJobIds.length === 0),
380
+ ...this.host.failureCleanup()?.pendingJobIds.length ? { pendingCleanupJobIds: this.host.failureCleanup()?.pendingJobIds } : {}
380
381
  };
381
382
  }
382
383
  };
@@ -441,13 +442,21 @@ var BatchStreamState = class {
441
442
  allocatedSidecarIds: this.allocatedSidecarIds,
442
443
  terminal: () => this.terminal,
443
444
  completed: () => this.completion !== void 0,
444
- failed: () => this.failure !== void 0
445
+ failed: () => this.failure !== void 0,
446
+ failureCleanup: () => this.failure?.cleanup
445
447
  });
446
448
  }
447
449
  get terminal() {
448
450
  if (this.completion) return "completed";
449
451
  if (this.failure) return "failed";
450
452
  }
453
+ get custody() {
454
+ return {
455
+ acceptance: this.started || this.provisioning || this.failure ? "accepted" : "unknown",
456
+ sidecarIds: [...this.allocatedSidecarIds],
457
+ terminal: this.terminal
458
+ };
459
+ }
451
460
  add(event) {
452
461
  if (event.id !== void 0) {
453
462
  if (this.eventIds.has(event.id)) invalid(`Batch stream repeated event id: ${event.id}`);
@@ -763,41 +772,45 @@ function validateBatchRunRequest(request) {
763
772
  const path = formatIssuePath(issue.path.length === 0 && issue.code === "unrecognized_keys" ? [issue.keys?.[0] ?? "request"] : issue.path);
764
773
  throw new ValidationError(path ? `${path}: ${issue.message}` : issue.message, { fields: path ? { [path]: issue.message } : void 0 });
765
774
  }
766
- function mapBatchStreamError(error) {
775
+ function mapBatchStreamError(error, custody) {
767
776
  if (!(error instanceof BatchStreamError)) throw error;
768
777
  if (error.kind === "failed") throw new ServerError(error.message, {
769
778
  status: 500,
779
+ batchCustody: {
780
+ ...custody,
781
+ cleanup: error.cleanup
782
+ },
770
783
  endpoint: BATCH_RUN_PATH,
771
784
  origin: "sandbox-api"
772
785
  });
773
786
  throw new NetworkError(error.message, {
787
+ batchCustody: custody,
774
788
  endpoint: BATCH_RUN_PATH,
775
789
  origin: "sandbox-api"
776
790
  });
777
791
  }
778
- /**
779
- * Create a result accumulator that preserves Sandbox SDK error types while
780
- * delegating all event semantics to runtime-contracts.
781
- */
792
+ /** Adapt protocol results and failures to Sandbox SDK types. */
782
793
  function createBatchResultAccumulator(request) {
783
794
  return createNormalizedBatchResultAccumulator(validateBatchRunRequest(request));
784
795
  }
785
- /** Internal adapter for requests that have already passed public validation. */
786
796
  function createNormalizedBatchResultAccumulator(request) {
787
797
  const state = new BatchStreamState(request);
788
798
  return {
799
+ get custody() {
800
+ return state.custody;
801
+ },
789
802
  add(event) {
790
803
  try {
791
804
  state.add(event);
792
805
  } catch (error) {
793
- mapBatchStreamError(error);
806
+ mapBatchStreamError(error, state.custody);
794
807
  }
795
808
  },
796
809
  finish() {
797
810
  try {
798
811
  return state.finish();
799
812
  } catch (error) {
800
- mapBatchStreamError(error);
813
+ mapBatchStreamError(error, state.custody);
801
814
  }
802
815
  }
803
816
  };
@@ -1050,6 +1063,10 @@ const batchEventDataSchemas = {
1050
1063
  }).strict(),
1051
1064
  "batch.failed": z.object({
1052
1065
  error: z.string().min(1),
1066
+ cleanup: z.object({
1067
+ isComplete: z.boolean(),
1068
+ pendingJobIds: z.array(z.string().min(1))
1069
+ }).strict().optional(),
1053
1070
  backendIds: z.array(z.string().min(1)).min(1)
1054
1071
  }).strict(),
1055
1072
  "batch.persistent": z.object({
@@ -1136,6 +1153,7 @@ const batchEventDataSchemas = {
1136
1153
  "sidecar.released": z.object({ sidecarId: z.string().min(1) }).strict(),
1137
1154
  "sidecar.release_pending": z.object({
1138
1155
  sidecarId: z.string().min(1),
1156
+ cleanupJobId: z.string().min(1).optional(),
1139
1157
  attempt: countSchema,
1140
1158
  retryInMs: durationSchema
1141
1159
  }).strict()
@@ -1169,6 +1187,8 @@ const batchEventSchema = z.discriminatedUnion("type", [
1169
1187
  eventSchema("sidecar.released", batchEventDataSchemas["sidecar.released"]),
1170
1188
  eventSchema("sidecar.release_pending", batchEventDataSchemas["sidecar.release_pending"])
1171
1189
  ]);
1190
+ /** Opt-in receipt metadata; older strict SDK event schemas keep their wire shape. */
1191
+ const BATCH_CUSTODY_ACCEPT = "text/event-stream; batch-custody=1";
1172
1192
  //#endregion
1173
1193
  //#region ../../../packages/runtime-contracts/dist/workspace-cwd.js
1174
1194
  const MAX_RUNTIME_WORKSPACE_CWD_LENGTH = 4096;
@@ -2088,33 +2108,7 @@ var SandboxCreation = class extends SandboxManagement {
2088
2108
  //#endregion
2089
2109
  //#region src/client-batch.ts
2090
2110
  var SandboxBatch = class extends SandboxCreation {
2091
- /**
2092
- * Run multiple tasks in parallel across sandboxes.
2093
- * Returns the aggregated results after all tasks complete.
2094
- *
2095
- * @param request - Complete batch request
2096
- * @param options - Batch execution options
2097
- * @returns Aggregated batch results
2098
- *
2099
- * @throws {@link ValidationError} / {@link QuotaError} / other typed
2100
- * SDK errors if the server rejects the request before streaming.
2101
- * @throws `DOMException` with `name === "AbortError"` if
2102
- * `options.signal` fires.
2103
- * @throws `Error` with the server message if the stream emits a
2104
- * `batch.failed` event.
2105
- *
2106
- * @example
2107
- * ```typescript
2108
- * const result = await client.runBatch({
2109
- * tasks: [
2110
- * { id: "task-1", message: "Analyze this file" },
2111
- * { id: "task-2", message: "Generate a summary" },
2112
- * ],
2113
- * backends: [{ id: "primary", type: "opencode" }],
2114
- * });
2115
- * console.log(`Success rate: ${result.successRate}%`);
2116
- * ```
2117
- */
2111
+ /** Run a batch and return its terminal result and cleanup receipt. */
2118
2112
  async runBatch(request, options) {
2119
2113
  const stream = this.streamBatch(request, options);
2120
2114
  while (true) {
@@ -2122,30 +2116,7 @@ var SandboxBatch = class extends SandboxCreation {
2122
2116
  if (next.done) return next.value;
2123
2117
  }
2124
2118
  }
2125
- /**
2126
- * Stream events from a batch execution.
2127
- * Use this for real-time progress updates during batch processing.
2128
- *
2129
- * @param request - Complete batch request
2130
- * @param options - Per-call controls
2131
- *
2132
- * @throws {@link ValidationError} / {@link QuotaError} / other typed
2133
- * SDK errors if the server rejects the request before streaming.
2134
- * @throws `DOMException` with `name === "AbortError"` when
2135
- * `options.signal` fires.
2136
- *
2137
- * @example
2138
- * ```typescript
2139
- * for await (const event of client.streamBatch({
2140
- * tasks,
2141
- * backends: [{ id: "primary", type: "opencode" }],
2142
- * })) {
2143
- * if (event.type === "task.completed") {
2144
- * console.log(`Task ${event.data.taskId} completed`);
2145
- * }
2146
- * }
2147
- * ```
2148
- */
2119
+ /** Stream a batch once. Failures preserve observed custody; rejoin with replayOnly. */
2149
2120
  async *streamBatch(request, options) {
2150
2121
  const normalizedRequest = validateBatchRunRequest(request);
2151
2122
  const accumulator = createNormalizedBatchResultAccumulator(normalizedRequest);
@@ -2158,6 +2129,17 @@ var SandboxBatch = class extends SandboxCreation {
2158
2129
  const issue = parsedIdempotencyKey.error.issues[0];
2159
2130
  throw new ValidationError(`idempotencyKey: ${issue?.message ?? "Invalid batch idempotency key"}`, { fields: { idempotencyKey: issue?.message ?? "Invalid value" } });
2160
2131
  }
2132
+ if (options?.replayOnly && !parsedIdempotencyKey?.success) throw new ValidationError("replayOnly requires idempotencyKey");
2133
+ let accepted = false;
2134
+ const preserveCustody = (error) => {
2135
+ const failure = error instanceof Error ? error : new NetworkError(String(error));
2136
+ throw Object.assign(failure, { batchCustody: {
2137
+ ...accumulator.custody,
2138
+ ..."batchCustody" in failure ? failure.batchCustody : {},
2139
+ ...accepted ? { acceptance: "accepted" } : {},
2140
+ ...parsedIdempotencyKey?.success ? { idempotencyKey: parsedIdempotencyKey.data } : {}
2141
+ } });
2142
+ };
2161
2143
  let response;
2162
2144
  try {
2163
2145
  response = await globalThis.fetch(url, {
@@ -2165,45 +2147,51 @@ var SandboxBatch = class extends SandboxCreation {
2165
2147
  headers: {
2166
2148
  Authorization: `Bearer ${sandboxTransportApiKey(this)}`,
2167
2149
  "Content-Type": "application/json",
2168
- Accept: "text/event-stream",
2150
+ Accept: BATCH_CUSTODY_ACCEPT,
2151
+ ...options?.replayOnly ? { "If-Match": "*" } : {},
2169
2152
  ...parsedIdempotencyKey?.success ? { "Idempotency-Key": parsedIdempotencyKey.data } : {}
2170
2153
  },
2171
2154
  body: requestBody,
2172
2155
  signal: userSignal
2173
2156
  });
2174
2157
  } catch (err) {
2175
- if (userSignal?.aborted) throw err instanceof Error && err.name === "AbortError" ? err : new DOMException("Batch aborted", "AbortError");
2176
- throw new NetworkError(`Failed to connect to Sandbox API: ${err instanceof Error ? err.message : String(err)}`, {
2158
+ if (userSignal?.aborted) return preserveCustody(err instanceof Error && err.name === "AbortError" ? err : new DOMException("Batch aborted", "AbortError"));
2159
+ return preserveCustody(new NetworkError(`Failed to connect to Sandbox API: ${err instanceof Error ? err.message : String(err)}`, {
2177
2160
  cause: err instanceof Error ? err : void 0,
2178
2161
  endpoint: BATCH_RUN_PATH,
2179
2162
  origin: "sandbox-api"
2180
- });
2163
+ }));
2181
2164
  }
2182
2165
  if (!response.ok) {
2183
2166
  const errBody = await response.text();
2184
2167
  throw parseErrorResponse(response.status, errBody, void 0, response.headers);
2185
2168
  }
2186
- const contentType = response.headers.get("content-type")?.toLowerCase();
2187
- if (!contentType?.includes("text/event-stream")) {
2188
- const responseBody = await response.text().catch(() => "");
2189
- throw new NetworkError(`Batch endpoint returned ${contentType ?? "no content type"} instead of text/event-stream${responseBody ? `: ${responseBody.slice(0, 200)}` : ""}`, {
2190
- endpoint: BATCH_RUN_PATH,
2191
- origin: "sandbox-api"
2192
- });
2193
- }
2194
- for await (const event of parseSSEStream(response.body, { signal: userSignal })) {
2195
- const parsed = batchEventSchema.safeParse(event);
2196
- if (!parsed.success) {
2197
- const issue = parsed.error.issues[0];
2198
- throw new NetworkError(`Batch stream emitted an invalid ${event.type} event: ${issue ? `${issue.path.join(".") || "event"}: ${issue.message}` : parsed.error.message}`, {
2169
+ accepted = parsedIdempotencyKey?.success === true && response.headers.get("Idempotency-Key") === parsedIdempotencyKey.data;
2170
+ try {
2171
+ const contentType = response.headers.get("content-type")?.toLowerCase();
2172
+ if (!contentType?.includes("text/event-stream")) {
2173
+ const responseBody = await response.text().catch(() => "");
2174
+ throw new NetworkError(`Batch endpoint returned ${contentType ?? "no content type"} instead of text/event-stream${responseBody ? `: ${responseBody.slice(0, 200)}` : ""}`, {
2199
2175
  endpoint: BATCH_RUN_PATH,
2200
2176
  origin: "sandbox-api"
2201
2177
  });
2202
2178
  }
2203
- accumulator.add(parsed.data);
2204
- yield parsed.data;
2179
+ for await (const event of parseSSEStream(response.body, { signal: userSignal })) {
2180
+ const parsed = batchEventSchema.safeParse(event);
2181
+ if (!parsed.success) {
2182
+ const issue = parsed.error.issues[0];
2183
+ throw new NetworkError(`Batch stream emitted an invalid ${event.type} event: ${issue ? `${issue.path.join(".") || "event"}: ${issue.message}` : parsed.error.message}`, {
2184
+ endpoint: BATCH_RUN_PATH,
2185
+ origin: "sandbox-api"
2186
+ });
2187
+ }
2188
+ accumulator.add(parsed.data);
2189
+ yield parsed.data;
2190
+ }
2191
+ return accumulator.finish();
2192
+ } catch (error) {
2193
+ return preserveCustody(error);
2205
2194
  }
2206
- return accumulator.finish();
2207
2195
  }
2208
2196
  };
2209
2197
  //#endregion
@@ -1,2 +1,2 @@
1
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-Bv22hvgZ.js";
1
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-BEGUYvm7.js";
2
2
  export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,4 +1,4 @@
1
- import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "./errors-Bh1udpJ0.js";
1
+ import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "./errors-Bprs6YnT.js";
2
2
  //#region src/collaboration/client.ts
3
3
  const DEFAULT_TIMEOUT_MS = 3e4;
4
4
  function normalizeBaseUrl(url) {
@@ -1,6 +1,6 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
2
- import { rt as canonicalAgentProfileDigest } from "./sandbox-DAQl7rIK.js";
3
- import { D as ValidationError, S as SandboxError, l as CapabilityError } from "./errors-Bh1udpJ0.js";
2
+ import { rt as canonicalAgentProfileDigest } from "./sandbox-CSV_5JRt.js";
3
+ import { D as ValidationError, S as SandboxError, l as CapabilityError } from "./errors-Bprs6YnT.js";
4
4
  import { t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
5
5
  import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
6
6
  import "./cli-auth-bundle-CMJWI99l.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-DB4MbfIb.js";
2
- import { Ct as SandboxFailureDetail, Ot as TimeoutError, St as SandboxErrorJson, Tt as StateError, _t as PartialFailureError, at as AuthError, dt as FileWriteConflictError, gt as NotFoundError, ht as NetworkError, it as parseErrorResponse, kt as ValidationError, st as CapabilityError, vt as ProfileFileMountPathError, wt as ServerError, xt as SandboxError, yt as QuotaError } from "./terminal-stream-types-B74nb8jV.js";
3
- import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-DzB-PS9p.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-DXdAUnUf.js";
5
- import { Ct as InstanceProfile, Dt as InstancesClient, Ot as SandboxFailureKind, St as HostedInstance, Tt as InstanceRestartingError, _t as SeatSelectionRequest, an as BackendRegistryResponse, bt as ManagedProcessClient, cn as backendRegistryInteractionKindSchema, ct as ISOLATED_CREATION_ATTESTATION_VERSION, dn as parseBackendRegistryResponse, dt as SandboxSeatCredentials, fn as parseBackendRegistryResponseBody, ft as SandboxSeatSelectionInput, gt as SeatSelectionError, ht as SeatResolutionObservation, in as BackendRegistryInteractionKind, kt as sandboxFailureKind, ln as backendRegistryResponseSchema, lt as CreateSelectSeatOptions, mt as SeatOwnerTransport, nn as BackendRegistryCapabilities, on as backendRegistryCapabilitiesSchema, pt as SeatOwnerReply, rn as BackendRegistryEntry, sn as backendRegistryEntrySchema, t as Sandbox, un as isBackendRegistryInteractionKind, ut as SandboxResolvedSeat, vt as createSelectSeat, wt as InstanceRecord, xt as EnsureInstanceOptions, yt as gatewaySeatTransport } from "./client-CSMb6fHz.js";
6
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-D0QpNlni.js";
1
+ import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-B1kH9ptD.js";
2
+ import { B as ServerError, C as CapabilityError, D as FileWriteConflictError, F as QuotaError, G as ValidationError, L as SandboxError, M as NotFoundError, N as PartialFailureError, P as ProfileFileMountPathError, R as SandboxErrorJson, V as StateError, W as TimeoutError, b as parseErrorResponse, j as NetworkError, x as AuthError, z as SandboxFailureDetail } from "./terminal-stream-types-77ia9qZ8.js";
3
+ import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-C0hvqGim.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-stVnnbw8.js";
5
+ import { Ct as InstanceProfile, Dt as InstancesClient, Ot as SandboxFailureKind, St as HostedInstance, Tt as InstanceRestartingError, _t as SeatSelectionRequest, an as BackendRegistryResponse, bt as ManagedProcessClient, cn as backendRegistryInteractionKindSchema, ct as ISOLATED_CREATION_ATTESTATION_VERSION, dn as parseBackendRegistryResponse, dt as SandboxSeatCredentials, fn as parseBackendRegistryResponseBody, ft as SandboxSeatSelectionInput, gt as SeatSelectionError, ht as SeatResolutionObservation, in as BackendRegistryInteractionKind, kt as sandboxFailureKind, ln as backendRegistryResponseSchema, lt as CreateSelectSeatOptions, mt as SeatOwnerTransport, nn as BackendRegistryCapabilities, on as backendRegistryCapabilitiesSchema, pt as SeatOwnerReply, rn as BackendRegistryEntry, sn as backendRegistryEntrySchema, t as Sandbox, un as isBackendRegistryInteractionKind, ut as SandboxResolvedSeat, vt as createSelectSeat, wt as InstanceRecord, xt as EnsureInstanceOptions, yt as gatewaySeatTransport } from "./client-CiFnarzL.js";
6
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CaJoEbFK.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, parseErrorResponse, 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-DAQl7rIK.js";
2
- import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bh1udpJ0.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-CSUTe70Z.js";
4
- import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DvSNh5dD.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-CSV_5JRt.js";
2
+ import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-Bprs6YnT.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-ronGvKYn.js";
4
+ import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-C06U-ma3.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-B6Ma53O9.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-CmGAuOS3.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, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };