@tangle-network/sandbox 1.0.424 → 1.0.426

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 (51) 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-D-lxNAXy.d.ts → agent-run-outcome-DVcPF3iI.d.ts} +1 -1
  6. package/dist/{api-request-C-5K0vGI.js → api-request-VlqatyAT.js} +2 -2
  7. package/dist/{browser-interactive-control-controller-lIGPhN1d.js → browser-interactive-control-controller-C3GYoJCL.js} +1 -1
  8. package/dist/{browser-interactive-control-controller-4Whvbr-1.d.ts → browser-interactive-control-controller-CHnMRFRF.d.ts} +1 -1
  9. package/dist/{chunked-upload-B3a7JG2m.js → chunked-upload-DuXDFxxJ.js} +1 -1
  10. package/dist/{chunked-upload-file-BmvRKCv1.js → chunked-upload-file-BNeuzLOo.js} +1 -1
  11. package/dist/{client-D6AttaC6.js → client-DzYQLcFz.js} +35 -5
  12. package/dist/{client-NcdgrHfL.d.ts → client-vsCsGgg1.d.ts} +21 -5
  13. package/dist/collaboration/index.js +1 -1
  14. package/dist/{collaboration-C5N6238z.js → collaboration-ligkFzXs.js} +2 -2
  15. package/dist/core.d.ts +6 -6
  16. package/dist/core.js +5 -5
  17. package/dist/{error-catalog-Cg0XFEtd.js → error-catalog-C8FDdk83.js} +1 -0
  18. package/dist/{errors-BJk4E5x7.js → errors-DNmfKxwE.js} +1 -1
  19. package/dist/{file-download-BZv9h3zc.js → file-download-I463VYUJ.js} +1 -1
  20. package/dist/gpu-lease/index.js +1 -1
  21. package/dist/{index-B9M5GOY_.d.ts → index-DzGflA-b.d.ts} +5 -5
  22. package/dist/index.d.ts +10 -10
  23. package/dist/index.js +11 -11
  24. package/dist/intelligence/index.js +3 -3
  25. package/dist/interactive-control.d.ts +1 -1
  26. package/dist/interactive-control.js +1 -1
  27. package/dist/{interactive-controller-ja9Zp2ko.js → interactive-controller-BAxNlWK-.js} +16 -5
  28. package/dist/{interactive-controller-DMEjRnWD.d.ts → interactive-controller-Ch4SLGeF.d.ts} +3 -3
  29. package/dist/{lines-CzXtswdI.js → lines-DjZMcB7V.js} +1 -1
  30. package/dist/{lines-DuXKA12c.d.ts → lines-mOLUGPYs.d.ts} +1 -1
  31. package/dist/lines.d.ts +1 -1
  32. package/dist/lines.js +1 -1
  33. package/dist/{mcp-local-DfRZSG10.js → mcp-local-tydRoMu_.js} +2 -2
  34. package/dist/{preview-DV2hf-fJ.d.ts → preview-DF2dYJCH.d.ts} +3 -3
  35. package/dist/{public-templates-WlOykqRp.d.ts → public-templates-Bw4PJ99r.d.ts} +2 -2
  36. package/dist/public-templates.d.ts +1 -1
  37. package/dist/public-templates.js +1 -1
  38. package/dist/{raw-evidence-archive-DAhLHzK6.js → raw-evidence-archive-0GpUrTKO.js} +1 -1
  39. package/dist/runtime.d.ts +5 -5
  40. package/dist/runtime.js +5 -5
  41. package/dist/{sandbox-BQBq7suQ.js → sandbox-BDEIzzu_.js} +21 -14
  42. package/dist/{select-seat-BiL-Hst3.js → select-seat-BbTGujaf.js} +1 -1
  43. package/dist/select-seat-command.d.ts +2 -2
  44. package/dist/select-seat-command.js +2 -2
  45. package/dist/session-gateway/index.js +1 -1
  46. package/dist/tangle/index.d.ts +1 -1
  47. package/dist/tangle/index.js +1 -1
  48. package/dist/{tangle-D0a7ah0P.js → tangle-DfFEgakb.js} +3 -3
  49. package/dist/{terminal-stream-types-BOsaBihS.d.ts → terminal-stream-types-iOZjIxLK.d.ts} +6 -0
  50. package/dist/{types-sJfK_b40.d.ts → types-BYIgnmzV.d.ts} +28 -4
  51. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-ja9Zp2ko.js";
1
+ import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, G as parseBackendType, H as backendTypeSchema, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, U as isolationPrincipalSchema, V as ALL_BACKEND_TYPES, i as terminalUpgradeHeadersSupported, k as normalizeRuntimeBackendConfig, n as InteractiveSessionController, r as TerminalStream, t as BrowserInteractiveSessionController, z as TERMINAL_WS_ECHO_SUBPROTOCOL } from "./interactive-controller-BAxNlWK-.js";
2
2
  import { i as SANDBOX_SIZE_PRESET_NAMES, r as agentProfileSchema, t as agentProfileConfidentialSchema } from "./profile-schema-BuXg-MCu.js";
3
- import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-BQBq7suQ.js";
4
- 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-lIGPhN1d.js";
5
- import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-BJk4E5x7.js";
6
- import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-D6AttaC6.js";
7
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-C-5K0vGI.js";
8
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-C5N6238z.js";
3
+ import { A as isMaterializerHarness, C as materializeProfileFileMounts, D as HARNESS_LAUNCH_MATERIALIZE_OPTIONS, E as validateDeferredProfileFileMounts, M as SandboxOperation, N as SandboxOperationFailedError, O as ProfileUnsupportedError, S as ManagedProcessClient, T as splitInlineProfileSkills, _ as collectAgentFinalMessageText, a as buildTraceExportPayload, b as isToolBearingEvent, c as toOtelJson, f as InteractiveSessionHandle, g as applySandboxEventText, h as createInteractiveTerminalSession, i as MAX_EGRESS_DENIALS_LIMIT, j as materializeProfile, k as enforceWorkspacePlanSupport, l as SandboxTaskSession, m as createInteractiveTerminalCapture, o as exportTraceBundle, p as InteractiveTerminalFrameLog, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, tt as runtimeWorkspaceCwdSchema, u as SandboxSession, v as collectAgentResponseText, w as splitInlineProfileFileMounts, y as getSandboxEventText } from "./sandbox-BDEIzzu_.js";
4
+ 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-C3GYoJCL.js";
5
+ import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, S as ResumeEnvRequiredError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, d as CompliancePlacementError, f as EdgeNotReadyError, g as KeyBudgetExhaustedError, h as GpuProviderNotConfiguredError, l as BranchFanoutExceedsHostError, m as FileWriteConflictError, o as responseMetadata, p as EgressProxyRecoveryError, r as parseErrorResponse, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
6
+ import { _ as validateBatchRunRequest, a as InstancesClient, c as backendRegistryCapabilitiesSchema, d as backendRegistryResponseSchema, f as isBackendRegistryInteractionKind, g as createBatchResultAccumulator, h as IntelligenceClient, i as InstanceRestartingError, l as backendRegistryEntrySchema, m as parseBackendRegistryResponseBody, n as RunsClient, o as SandboxFleetClient, p as parseBackendRegistryResponse, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryInteractionKindSchema } from "./client-DzYQLcFz.js";
7
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-VlqatyAT.js";
8
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-ligkFzXs.js";
9
9
  import "./file-transfer-DOSTbUSR.js";
10
10
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
11
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-CzXtswdI.js";
12
- import { t as downloadFile } from "./file-download-BZv9h3zc.js";
11
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DjZMcB7V.js";
12
+ import { t as downloadFile } from "./file-download-I463VYUJ.js";
13
13
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
14
14
  import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CBWUEURz.js";
15
- import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-BiL-Hst3.js";
16
- import { s as BlueprintSandboxClient } from "./tangle-D0a7ah0P.js";
15
+ import { a as createSelectSeat, i as SeatSelectionError, o as gatewaySeatTransport } from "./select-seat-BbTGujaf.js";
16
+ import { s as BlueprintSandboxClient } from "./tangle-DfFEgakb.js";
17
17
  import { z } from "zod";
18
18
  //#region ../../../packages/runtime-contracts/dist/model-key-proxy.js
19
19
  const MANAGED_MODEL_KEY_SENTINEL = "proxy-managed-per-request";
@@ -1,6 +1,6 @@
1
- import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-BJk4E5x7.js";
2
- import { i as fetchSandboxApi } from "../api-request-C-5K0vGI.js";
3
- import { n as verifyDownload } from "../file-download-BZv9h3zc.js";
1
+ import { D as TimeoutError, _ as NetworkError, r as parseErrorResponse, u as CapabilityError } from "../errors-DNmfKxwE.js";
2
+ import { i as fetchSandboxApi } from "../api-request-VlqatyAT.js";
3
+ import { n as verifyDownload } from "../file-download-I463VYUJ.js";
4
4
  import { t as rawEvidenceArchiveAttemptSchema } from "../raw-evidence-export-Dog7W5zP.js";
5
5
  import { z } from "zod";
6
6
  //#region src/intelligence/run-session-capture.ts
@@ -1,2 +1,2 @@
1
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-4Whvbr-1.js";
1
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-CHnMRFRF.js";
2
2
  export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,2 +1,2 @@
1
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-lIGPhN1d.js";
1
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-C3GYoJCL.js";
2
2
  export { BrowserInteractiveSessionControlController, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -1,10 +1,10 @@
1
1
  import { C as boundedIdentifierSchema, T as boundedJsonSchema, o as canonicalCandidateDigest } from "./harness-Dq3XGyYd.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
3
- import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-lIGPhN1d.js";
4
- import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-BJk4E5x7.js";
3
+ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMatchesRef, P as AgentExactRunControlRefSchema, R as AgentExecutionOutcomeSchema, U as InteractionRequestSchema, c as assertInteractiveSessionRef, h as AgentInteractiveSessionAttachSchema, i as createBrowserInteractiveSessionControlTransport, o as InteractiveSessionControlController, r as browserInteractiveTerminalEndpoint, v as AgentInteractiveSessionControlClaimSchema, x as AgentInteractiveSessionRefSchema, z as DurablePlanSchema } from "./browser-interactive-control-controller-C3GYoJCL.js";
4
+ import { O as ValidationError, _ as NetworkError, i as parseResponseError, s as retryWhen, t as TerminalStreamError, u as CapabilityError, w as ServerError } from "./errors-DNmfKxwE.js";
5
5
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
6
- import { n as SDK_TIMEOUTS } from "./api-request-C-5K0vGI.js";
7
- import { c as uploadChunked, l as awaitSdkResend } from "./chunked-upload-B3a7JG2m.js";
6
+ import { n as SDK_TIMEOUTS } from "./api-request-VlqatyAT.js";
7
+ import { c as uploadChunked, l as awaitSdkResend } from "./chunked-upload-DuXDFxxJ.js";
8
8
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
9
9
  import { z } from "zod";
10
10
  import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
@@ -139,6 +139,11 @@ const terminalInitMessageSchema = z.object({
139
139
  /** Canonical control claim for an interactive-agent PTY. */
140
140
  control: AgentInteractiveSessionControlClaimSchema.optional(),
141
141
  /**
142
+ * The last output seq this client rendered. An interactive reattach then
143
+ * replays only the retained output after it, not the whole history.
144
+ */
145
+ afterSeq: z.number().int().positive().safe().optional(),
146
+ /**
142
147
  * `observe` watches an interactive-agent PTY: replayed and live output
143
148
  * only, with no control claim, so it never displaces the claim holder.
144
149
  */
@@ -2047,7 +2052,8 @@ function interactiveInitFields(options, identity) {
2047
2052
  if (identity === void 0) return {};
2048
2053
  return {
2049
2054
  incarnationId: identity.incarnationId,
2050
- control: identity.control
2055
+ control: identity.control,
2056
+ ...options.afterSeq ? { afterSeq: options.afterSeq } : {}
2051
2057
  };
2052
2058
  }
2053
2059
  function buildTerminalInitMessage(options, identity, traceId) {
@@ -2128,6 +2134,8 @@ var TerminalStream = class TerminalStream {
2128
2134
  dialStartedAt = performance.now();
2129
2135
  openedAt;
2130
2136
  readyAt;
2137
+ /** The newest output seq handed to the caller, so a reconnect resumes after it. */
2138
+ deliveredSeq = 0;
2131
2139
  firstByteAt;
2132
2140
  firstWriteAt;
2133
2141
  echoRttMs;
@@ -2301,6 +2309,7 @@ var TerminalStream = class TerminalStream {
2301
2309
  try {
2302
2310
  const bytes = decodeBase64(parsed.data.data);
2303
2311
  this.noteOutput();
2312
+ this.deliveredSeq = Math.max(this.deliveredSeq, parsed.data.seq);
2304
2313
  this.handlers.onOutput?.(parsed.data.seq, bytes);
2305
2314
  if (this.handlers.onOutput === void 0) this.handlers.onData?.(bytes);
2306
2315
  } catch (error) {
@@ -2433,12 +2442,14 @@ var TerminalStream = class TerminalStream {
2433
2442
  async reconnectOnce(overrides) {
2434
2443
  const binding = await this.#options.reconnectAuthority?.acquire(overrides?.signal);
2435
2444
  try {
2445
+ const afterSeq = Math.max(this.deliveredSeq, this.#options.afterSeq ?? 0);
2436
2446
  return await TerminalStream.connect({
2437
2447
  ...this.#options,
2438
2448
  ...binding === void 0 ? {} : {
2439
2449
  incarnationId: binding.incarnationId,
2440
2450
  control: binding.control
2441
2451
  },
2452
+ ...afterSeq > 0 ? { afterSeq } : {},
2442
2453
  token: overrides?.token ?? this.#options.token,
2443
2454
  mintMs: void 0,
2444
2455
  handlers: this.handlersForReconnect(overrides?.handlers),
@@ -1,7 +1,7 @@
1
- import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BOsaBihS.js";
1
+ import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-iOZjIxLK.js";
2
2
  import { u as AgentInteractiveSessionRef } from "./index-B4OJkmmC.js";
3
- import { en as TerminalStream } from "./types-sJfK_b40.js";
4
- 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-4Whvbr-1.js";
3
+ import { en as TerminalStream } from "./types-BYIgnmzV.js";
4
+ 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-CHnMRFRF.js";
5
5
 
6
6
  //#region src/interactive-controller.d.ts
7
7
  /** The request fields supplied by an attach caller before control is claimed. */
@@ -1,4 +1,4 @@
1
- import { O as ValidationError, r as parseErrorResponse } from "./errors-BJk4E5x7.js";
1
+ import { O as ValidationError, r as parseErrorResponse } from "./errors-DNmfKxwE.js";
2
2
  //#region src/line-identity.ts
3
3
  /**
4
4
  * The instance key that serves one member: `keyPrefix` plus the first 32 hex
@@ -1,4 +1,4 @@
1
- import { nn as CreateSandboxOptions, pa as BackendConfig } from "./types-sJfK_b40.js";
1
+ import { ha as BackendConfig, nn as CreateSandboxOptions } from "./types-BYIgnmzV.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-DuXKA12c.js";
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-mOLUGPYs.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 };
package/dist/lines.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-CzXtswdI.js";
1
+ import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-DjZMcB7V.js";
2
2
  export { LinesClient, SandboxLines, lineInstanceKey, profileChannelReference };
@@ -1,4 +1,4 @@
1
- import "./api-request-C-5K0vGI.js";
1
+ import "./api-request-VlqatyAT.js";
2
2
  import { u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
3
3
  import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-BTHZR1w2.js";
4
4
  //#region \0rolldown/runtime.js
@@ -396,7 +396,7 @@ async function createMcpServer(box, options = {}) {
396
396
  const { bindings, handlers } = bindToolSpecs(box, options);
397
397
  const server = new serverModule.Server({
398
398
  name: options.name ?? "tangle-sandbox",
399
- version: options.version ?? "1.0.424"
399
+ version: options.version ?? "1.0.426"
400
400
  }, { capabilities: { tools: {} } });
401
401
  server.setRequestHandler(typesModule.ListToolsRequestSchema, async () => ({ tools: bindings.map(({ spec: s }) => ({
402
402
  name: s.name,
@@ -1,6 +1,6 @@
1
- import { O as SandboxInstance } from "./index-B9M5GOY_.js";
2
- import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-sJfK_b40.js";
3
- import { t as Sandbox } from "./client-NcdgrHfL.js";
1
+ import { O as SandboxInstance } from "./index-DzGflA-b.js";
2
+ import { f as EnsureDevServerOptions, y as PreviewLinkInfo } from "./types-BYIgnmzV.js";
3
+ import { t as Sandbox } from "./client-vsCsGgg1.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
- import { R as SandboxError } from "./terminal-stream-types-BOsaBihS.js";
2
- import { Jn as PublicTemplateInfo, Xn as PublishPublicTemplateOptions, Yn as PublicTemplateVersionInfo, Zn as PublishPublicTemplateVersionOptions, br as HttpClient } from "./types-sJfK_b40.js";
1
+ import { R as SandboxError } from "./terminal-stream-types-iOZjIxLK.js";
2
+ import { Qn as PublishPublicTemplateVersionOptions, Xn as PublicTemplateVersionInfo, Yn as PublicTemplateInfo, Zn as PublishPublicTemplateOptions, xr as HttpClient } from "./types-BYIgnmzV.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-WlOykqRp.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-Bw4PJ99r.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
@@ -1,4 +1,4 @@
1
- import { C as SandboxError, a as readResponseJson } from "./errors-BJk4E5x7.js";
1
+ import { C as SandboxError, a as readResponseJson } from "./errors-DNmfKxwE.js";
2
2
  import { n as combineAbortSignals } from "./abort-signal-BsriwJ8L.js";
3
3
  import { z } from "zod";
4
4
  //#region src/public-templates.ts
@@ -1,4 +1,4 @@
1
- import { n as verifyDownload } from "./file-download-BZv9h3zc.js";
1
+ import { n as verifyDownload } from "./file-download-I463VYUJ.js";
2
2
  import { t as runPreparedEvidence } from "./prepared-evidence-DIFfn4Ki.js";
3
3
  import { t as rawEvidenceArchiveAttemptSchema } from "./raw-evidence-export-Dog7W5zP.js";
4
4
  import { z } from "zod";
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-BOsaBihS.js";
2
- import { $i as SessionInfo, Bt as SandboxRuntimeHealth, Ci as SandboxEvent, En as FileReadBatchResult, Fn as FileUsageResult, Gi as SendSessionMessageRequest, Gt as SandboxTerminalRequestOptions, Hi as ListMessagesOptions, Hn as WriteFileOptions, Ht as SandboxTerminalCreateOptions, In as FileWriteResult, Ji as SessionEventStreamOptions, Ki as SentSessionMessage, Li as CreateSessionOptions, Lt as SandboxPortBinding, Mi as CommitTaskSessionOptions, Mn as FileTreeOptions, Nn as FileTreeResult, Pn as FileUsageOptions, Ri as CreateTaskSessionOptions, Tn as FileReadBatchOptions, Ut as SandboxTerminalInfo, Vn as UploadProgress, Wi as SendSessionMessageOptions, Wt as SandboxTerminalManager, Xi as SessionExecutionStatus, Yi as SessionExecutionInfo, br as HttpClient, en as TerminalStream, kn as FileRenameResult, la as TaskSessionInfo, na as SessionMessage, oa as TaskSessionChanges, ra as SessionMessageAdmission, sa as TaskSessionCommitResult, vn as ChunkedUploadOptions, yn as ChunkedUploadResult, zn as RenameOptions } from "./types-sJfK_b40.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-4Whvbr-1.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-DMEjRnWD.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-D-lxNAXy.js";
1
+ import { F as ProfileFileMountPathError, H as ServerError, I as QuotaError, K as TimeoutError, M as NetworkError, N as NotFoundError, O as FileWriteConflictError, P as PartialFailureError, R as SandboxError, S as AuthError, U as StateError, V as SandboxFailureDetail, q as ValidationError, u as ScopedToken, w as CapabilityError, z as SandboxErrorJson } from "./terminal-stream-types-iOZjIxLK.js";
2
+ import { An as FileRenameResult, Bi as CreateTaskSessionOptions, Bn as RenameOptions, Bt as SandboxRuntimeHealth, Dn as FileReadBatchResult, En as FileReadBatchOptions, Fn as FileUsageOptions, Gt as SandboxTerminalRequestOptions, Hn as UploadProgress, Ht as SandboxTerminalCreateOptions, In as FileUsageResult, Ji as SentSessionMessage, Ki as SendSessionMessageOptions, Ln as FileWriteResult, Lt as SandboxPortBinding, Nn as FileTreeOptions, Pi as CommitTaskSessionOptions, Pn as FileTreeResult, Qi as SessionExecutionStatus, Ti as SandboxEvent, Un as WriteFileOptions, Ut as SandboxTerminalInfo, Wi as ListMessagesOptions, Wt as SandboxTerminalManager, Xi as SessionEventStreamOptions, Zi as SessionExecutionInfo, aa as SessionMessageAdmission, bn as ChunkedUploadResult, ca as TaskSessionChanges, da as TaskSessionInfo, en as TerminalStream, ia as SessionMessage, la as TaskSessionCommitResult, qi as SendSessionMessageRequest, ta as SessionInfo, xr as HttpClient, yn as ChunkedUploadOptions, zi as CreateSessionOptions } from "./types-BYIgnmzV.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-CHnMRFRF.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-Ch4SLGeF.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-DVcPF3iI.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,8 +1,8 @@
1
- import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-ja9Zp2ko.js";
2
- import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-lIGPhN1d.js";
3
- import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-BJk4E5x7.js";
4
- import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-C-5K0vGI.js";
5
- import { c as uploadChunked } from "./chunked-upload-B3a7JG2m.js";
1
+ import { F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, L as deriveAgentRunOutcome, R as projectAgentTerminalRecord, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-BAxNlWK-.js";
2
+ import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-C3GYoJCL.js";
3
+ import { C as SandboxError, D as TimeoutError, O as ValidationError, T as StateError, _ as NetworkError, b as ProfileFileMountPathError, c as AuthError, m as FileWriteConflictError, u as CapabilityError, v as NotFoundError, w as ServerError, x as QuotaError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
4
+ import { i as fetchSandboxApi, n as SDK_TIMEOUTS } from "./api-request-VlqatyAT.js";
5
+ import { c as uploadChunked } from "./chunked-upload-DuXDFxxJ.js";
6
6
  //#region src/runtime-client.ts
7
7
  function requireToken(token) {
8
8
  const value = token.trim();
@@ -1,23 +1,23 @@
1
- import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-ja9Zp2ko.js";
1
+ import { A as requestedPublicProfileDigest, B as AgentRuntimeAttachmentsSchema, C as runtimeFilesystemPath, D as assertCurrentBackendType, E as applyRequestedModel, F as createAgentRunOutcomeTracker, I as deriveAgentResultOutcome, O as mergeRuntimeBackendConfig, P as withoutRuntimeSecrets, S as encodeTextForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as validateAcceptedDispatchRunRef, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedSecretProfilePublicDigest, k as normalizeRuntimeBackendConfig, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as encodePromptForWire, y as resolveDispatchRunIdentity } from "./interactive-controller-BAxNlWK-.js";
2
2
  import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson } from "./harness-Dq3XGyYd.js";
3
3
  import { a as ProxySecretReceiptSchema, r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
4
- 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-lIGPhN1d.js";
4
+ 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-C3GYoJCL.js";
5
5
  import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CemN5Bl6.js";
6
- import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-BJk4E5x7.js";
6
+ import { C as SandboxError, D as TimeoutError, E as StreamInterruptedError, O as ValidationError, T as StateError, _ as NetworkError, a as readResponseJson, b as ProfileFileMountPathError, c as AuthError, f as EdgeNotReadyError, i as parseResponseError, n as isTransientWrite, o as responseMetadata, r as parseErrorResponse, s as retryWhen, t as TerminalStreamError, u as CapabilityError, v as NotFoundError, w as ServerError, y as PartialFailureError } from "./errors-DNmfKxwE.js";
7
7
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-BZbs5rig.js";
8
8
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
9
9
  import { a as backoffDelayMs, o as isUndelivered, r as abortableSleep } from "./retry-policy-oW3_ljoc.js";
10
- import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-C-5K0vGI.js";
10
+ import { a as isReplayableBody, i as fetchSandboxApi, n as SDK_TIMEOUTS, o as rewrapResponse, t as IDEMPOTENT_METHODS } from "./api-request-VlqatyAT.js";
11
11
  import { a as SANDBOX_PROXY_REQUEST_MAX_BYTES, c as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, d as isProfileFileMountOutsideRoots, f as profileFileMountOutsideRootsMessage, l as SANDBOX_AGENT_HOME, o as FILE_OPERATION_LIMITS, t as isInsideReservedDir, u as SANDBOX_FILE_API_ABSOLUTE_ROOTS } from "./file-transfer-DOSTbUSR.js";
12
- import { c as uploadChunked, l as awaitSdkResend, u as takeSdkTurn } from "./chunked-upload-B3a7JG2m.js";
12
+ import { c as uploadChunked, l as awaitSdkResend, u as takeSdkTurn } from "./chunked-upload-DuXDFxxJ.js";
13
13
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-sGVP8skk.js";
14
14
  import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DTdbCbUM.js";
15
15
  import { t as parseSSEStream } from "./sse-parser-BCG3iL9j.js";
16
16
  import { t as runPreparedProcess } from "./prepared-process-DQ_68Ofg.js";
17
17
  import { a as isBackendType, r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-7ByGEdOv.js";
18
18
  import "./cli-auth-bundle-Vc_wO6gp.js";
19
- import { n as SandboxLines } from "./lines-CzXtswdI.js";
20
- import { t as downloadFile } from "./file-download-BZv9h3zc.js";
19
+ import { n as SandboxLines } from "./lines-DjZMcB7V.js";
20
+ import { t as downloadFile } from "./file-download-I463VYUJ.js";
21
21
  import { z } from "zod";
22
22
  import { createHash } from "node:crypto";
23
23
  import { constants } from "node:fs";
@@ -3720,6 +3720,7 @@ const ERROR_CATALOG = {
3720
3720
  COMPLIANCE_CAPACITY_UNAVAILABLE: "503 retry | No verified compliance-scope host can take this sandbox now. | Retry after the Retry-After interval.",
3721
3721
  CPU_FEATURES_UNAVAILABLE: "503 final | No verified host has capacity with the required CPU features. | Retry when matching capacity is available; the platform does not substitute an incompatible CPU.",
3722
3722
  FIRECRACKER_IMAGE_UNAVAILABLE: "503 final | No host carries the requested Firecracker image. | Choose an image whose runtimes include firecracker in `environments list`, or set runtime: docker.",
3723
+ FIRECRACKER_IMAGE_BUILDING: "503 retry | The requested Firecracker image is being prepared on a host and is not ready yet; the build keeps running. | Send the same create again after the Retry-After interval, which is the remaining build estimate.",
3723
3724
  PLACEMENT_WARMING: "503 retry | The cell's controller has just started and has not heard a host yet. | Retry after the Retry-After interval.",
3724
3725
  HOST_UNAVAILABLE: "503 retry | The host did not answer; the sandbox and its files remain. | Retry after the Retry-After interval.",
3725
3726
  HOST_LOST: "503 retry | The sandbox's host was destroyed; any run unfinished on it is gone. | Resume the sandbox or create another, then run the turn again.",
@@ -10449,7 +10450,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
10449
10450
  var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
10450
10451
  /** @internal — invoked before the sandbox is deleted. */
10451
10452
  async _sessionExportRawEvidence(id, destination, options) {
10452
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DAhLHzK6.js");
10453
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-0GpUrTKO.js");
10453
10454
  await this.ensureRunning();
10454
10455
  await this.refresh();
10455
10456
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
@@ -10480,7 +10481,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
10480
10481
  * and the byte and file bounds are verified before the directory appears.
10481
10482
  */
10482
10483
  async exportRawEvidence(destination, options) {
10483
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DAhLHzK6.js");
10484
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-0GpUrTKO.js");
10484
10485
  await this.ensureRunning();
10485
10486
  await this.refresh();
10486
10487
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
@@ -12281,7 +12282,7 @@ var SandboxEgressCapabilities = class extends SandboxTraceCapabilities {
12281
12282
  get egress() {
12282
12283
  return {
12283
12284
  get: () => state(this).egressOperations.egressGet(),
12284
- update: (policy) => state(this).egressOperations.egressUpdate(policy),
12285
+ update: (policy, options) => state(this).egressOperations.egressUpdate(policy, options),
12285
12286
  denials: (options) => state(this).egressOperations.egressDenials(options),
12286
12287
  activity: (options) => state(this).egressOperations.egressActivity(options),
12287
12288
  usage: (options) => state(this).egressOperations.egressUsage(options)
@@ -12314,13 +12315,19 @@ var SandboxEgressOperations = class {
12314
12315
  const data = await readResponseJson(await this.host.fetch(`/v1/sandboxes/${encodeURIComponent(this.host.id())}`));
12315
12316
  return {
12316
12317
  policy: data.egressPolicy ?? { mode: "open" },
12317
- source: data.egressPolicySource ?? "platform"
12318
+ source: data.egressPolicySource ?? "platform",
12319
+ updatedAt: data.egressPolicyUpdatedAt ?? null
12318
12320
  };
12319
12321
  }
12320
- async egressUpdate(policy) {
12322
+ async egressUpdate(policy, options = {}) {
12323
+ const { signal, expectedUpdatedAt } = options;
12321
12324
  const data = await readResponseJson(await this.host.fetch(`/v1/sandboxes/${encodeURIComponent(this.host.id())}/egress`, {
12322
12325
  method: "PATCH",
12323
- body: JSON.stringify(policy)
12326
+ signal,
12327
+ body: JSON.stringify(expectedUpdatedAt === void 0 ? policy : {
12328
+ ...policy,
12329
+ expectedUpdatedAt
12330
+ })
12324
12331
  }));
12325
12332
  this.host.adoptPolicy(data.egressPolicy, data.source);
12326
12333
  return {
@@ -12565,7 +12572,7 @@ var SandboxFilesystemOperations = class extends DeclaredFilesystemOperations {
12565
12572
  totalBytes: size,
12566
12573
  percentage: 0
12567
12574
  });
12568
- const { uploadChunkedFromFile } = await import("./chunked-upload-file-BmvRKCv1.js");
12575
+ const { uploadChunkedFromFile } = await import("./chunked-upload-file-BNeuzLOo.js");
12569
12576
  await uploadChunkedFromFile({ fetch: (path, init) => this.host.runtimeFetch(path, init) }, remotePath, localPath, {
12570
12577
  mode: options?.permissions,
12571
12578
  onProgress: options?.onProgress ? (progress) => {
@@ -1,6 +1,6 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-BuXg-MCu.js";
2
2
  import { t as canonicalAgentProfileDigest } from "./agent-execution-preparation-CemN5Bl6.js";
3
- import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-BJk4E5x7.js";
3
+ import { C as SandboxError, O as ValidationError, u as CapabilityError } from "./errors-DNmfKxwE.js";
4
4
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-BsriwJ8L.js";
5
5
  import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-DuY2E2FD-7ByGEdOv.js";
6
6
  import "./cli-auth-bundle-Vc_wO6gp.js";
@@ -1,5 +1,5 @@
1
- import { R as SandboxError } from "./terminal-stream-types-BOsaBihS.js";
2
- import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-NcdgrHfL.js";
1
+ import { R as SandboxError } from "./terminal-stream-types-iOZjIxLK.js";
2
+ import { _t as SeatOwnerTransport, bt as SeatSelectionRequest, ft as SEAT_COMMAND_TIMEOUT_MS } from "./client-vsCsGgg1.js";
3
3
 
4
4
  //#region src/select-seat-command.d.ts
5
5
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,5 +1,5 @@
1
- import { C as SandboxError, O as ValidationError } from "./errors-BJk4E5x7.js";
2
- import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-BiL-Hst3.js";
1
+ import { C as SandboxError, O as ValidationError } from "./errors-DNmfKxwE.js";
2
+ import { r as SEAT_OWNER_MAX_RESPONSE_BYTES, s as seatOwnerTimeoutMs, t as SEAT_COMMAND_TIMEOUT_MS } from "./select-seat-BbTGujaf.js";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region src/select-seat-command.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as combineAbortSignals } from "../abort-signal-BsriwJ8L.js";
2
- import { i as fetchSandboxApi } from "../api-request-C-5K0vGI.js";
2
+ import { i as fetchSandboxApi } from "../api-request-VlqatyAT.js";
3
3
  import "../sidecar-proxy-error-DTdbCbUM.js";
4
4
  import { t as parseSSEStream } from "../sse-parser-BCG3iL9j.js";
5
5
  import { PART_TEXT, PART_TEXT_SUFFIX } from "@tangle-network/agent-core/sse";
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-B9M5GOY_.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_CHAIN_ID, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as BlueprintSandboxClientConfig, h as BlueprintSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TANGLE_JOBS_CONTRACT, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-DzGflA-b.js";
2
2
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, BlueprintSandboxClientConfig, 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, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,3 +1,3 @@
1
- import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-D0a7ah0P.js";
1
+ import { _ as SandboxCreateResponseParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as AgentSandboxBlueprintAbi, g as SandboxCreateParamTypes, h as JsonResponseParamTypes, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_DELETE, n as fetchQuote, o as validateQuote, p as JOB_SANDBOX_CREATE, r as inputsHashOf, s as BlueprintSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxIdParamTypes } from "../tangle-DfFEgakb.js";
2
2
  import { t as ITangleJobsAbi } from "../abi-pcDt2Adp.js";
3
3
  export { AgentSandboxBlueprintAbi, BlueprintSandboxClient, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,6 +1,6 @@
1
- import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-BQBq7suQ.js";
2
- import { a as readResponseJson } from "./errors-BJk4E5x7.js";
3
- import { i as fetchSandboxApi } from "./api-request-C-5K0vGI.js";
1
+ import { L as readFilesystemIncarnationTuple, n as createSandboxInstanceFromResponse } from "./sandbox-BDEIzzu_.js";
2
+ import { a as readResponseJson } from "./errors-DNmfKxwE.js";
3
+ import { i as fetchSandboxApi } from "./api-request-VlqatyAT.js";
4
4
  import { t as ITangleJobsAbi } from "./abi-pcDt2Adp.js";
5
5
  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-BvN0Mk3j.js";
6
6
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
@@ -1271,6 +1271,7 @@ declare const ERROR_CATALOG: {
1271
1271
  readonly COMPLIANCE_CAPACITY_UNAVAILABLE: "503 retry | No verified compliance-scope host can take this sandbox now. | Retry after the Retry-After interval.";
1272
1272
  readonly CPU_FEATURES_UNAVAILABLE: "503 final | No verified host has capacity with the required CPU features. | Retry when matching capacity is available; the platform does not substitute an incompatible CPU.";
1273
1273
  readonly FIRECRACKER_IMAGE_UNAVAILABLE: "503 final | No host carries the requested Firecracker image. | Choose an image whose runtimes include firecracker in `environments list`, or set runtime: docker.";
1274
+ readonly FIRECRACKER_IMAGE_BUILDING: "503 retry | The requested Firecracker image is being prepared on a host and is not ready yet; the build keeps running. | Send the same create again after the Retry-After interval, which is the remaining build estimate.";
1274
1275
  readonly PLACEMENT_WARMING: "503 retry | The cell's controller has just started and has not heard a host yet. | Retry after the Retry-After interval.";
1275
1276
  readonly HOST_UNAVAILABLE: "503 retry | The host did not answer; the sandbox and its files remain. | Retry after the Retry-After interval.";
1276
1277
  readonly HOST_LOST: "503 retry | The sandbox's host was destroyed; any run unfinished on it is gone. | Resume the sandbox or create another, then run the turn again.";
@@ -1785,6 +1786,11 @@ interface TerminalStreamOptions {
1785
1786
  incarnationId?: TerminalInteractiveSessionIdentity["incarnationId"];
1786
1787
  /** Exact active control claim for the interactive-agent incarnation. */
1787
1788
  control?: TerminalInteractiveSessionIdentity["control"];
1789
+ /**
1790
+ * The last output seq already rendered. An interactive reattach replays only
1791
+ * what follows it; {@link TerminalStream.reconnect} sets it from the stream.
1792
+ */
1793
+ afterSeq?: number;
1788
1794
  /**
1789
1795
  * Watch the interactive-agent incarnation named by `incarnationId` without
1790
1796
  * a control claim: replayed and live output only. The runtime refuses the