@tangle-network/sandbox 1.0.60 → 1.0.62

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 (39) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/index.d.ts +6 -7
  3. package/dist/agent/index.js +4 -4
  4. package/dist/agent/preview.d.ts +1 -1
  5. package/dist/agent/preview.js +1 -1
  6. package/dist/{agent-run-outcome-DQsKqrUg.d.ts → agent-run-outcome-DkJVwb8D.d.ts} +2 -2
  7. package/dist/{browser-interactive-control-controller-wp8WpHrK.d.ts → browser-interactive-control-controller-DdhciJR8.d.ts} +1 -1
  8. package/dist/{client-65nLOvJ7.js → client-CB8fk-35.js} +9 -5
  9. package/dist/{client-BU_g1IAA.d.ts → client-CpTt65-H.d.ts} +8 -17
  10. package/dist/{core-Cr7opKvg.js → core-f9uxff1T.js} +1 -1
  11. package/dist/core.d.ts +6 -6
  12. package/dist/core.js +3 -3
  13. package/dist/{index-Dg0oODRT.d.ts → index-CEnN8lzy.d.ts} +16 -24
  14. package/dist/index.d.ts +9 -9
  15. package/dist/index.js +8 -17
  16. package/dist/intelligence/index.d.ts +1 -4
  17. package/dist/intelligence/index.js +0 -1
  18. package/dist/interactive-control.d.ts +1 -1
  19. package/dist/{interactive-controller-DfzfOmf9.js → interactive-controller-BRUzaI-G.js} +1 -1
  20. package/dist/{interactive-controller-CYi2SQLW.d.ts → interactive-controller-DKSv-fGQ.d.ts} +3 -3
  21. package/dist/{lines-1ZmvseqM.d.ts → lines-BU4hEO2M.d.ts} +1 -1
  22. package/dist/lines.d.ts +1 -1
  23. package/dist/{mcp-local-CPdKHcQ-.js → mcp-local-CQJwjQkZ.js} +2 -3
  24. package/dist/{preview-Ck7dk9RQ.d.ts → preview-DlMDTeyz.d.ts} +3 -3
  25. package/dist/{public-templates-BtwE92xQ.d.ts → public-templates-DgFlNR6x.d.ts} +2 -2
  26. package/dist/public-templates.d.ts +1 -1
  27. package/dist/{raw-evidence-archive-Cwap86xg.js → raw-evidence-archive-DXGxxsgK.js} +1 -1
  28. package/dist/runtime.d.ts +5 -5
  29. package/dist/runtime.js +1 -1
  30. package/dist/{sandbox-0FmoqR0P.js → sandbox-CkSdNOmZ.js} +45 -101
  31. package/dist/select-seat-command.d.ts +1 -1
  32. package/dist/session-gateway/index.js +1 -1
  33. package/dist/{sse-parser-BU0BrEcQ.js → sse-parser-BUIKfYAd.js} +1 -1
  34. package/dist/tangle/index.d.ts +1 -1
  35. package/dist/tangle/index.js +1 -1
  36. package/dist/{tangle-BH7X-adR.js → tangle-Dd1RSvh3.js} +1 -1
  37. package/dist/{terminal-stream-types-BarOQIIa.d.ts → terminal-stream-types-BlOFGopg.d.ts} +2 -1
  38. package/dist/{types-KVM581O6.d.ts → types-D89tf_Kw.d.ts} +7 -49
  39. package/package.json +7 -7
@@ -157,11 +157,10 @@ interface IntelligenceRun {
157
157
  receivedAt: string;
158
158
  [key: string]: unknown;
159
159
  }
160
- /** A page of eval-runs. Offset is legacy; follow `nextCursor` to paginate. */
160
+ /** A page of eval-runs; follow `nextCursor` to paginate. */
161
161
  interface RunList {
162
162
  items: IntelligenceRun[];
163
163
  limit: number;
164
- offset: number;
165
164
  nextCursor: string | null;
166
165
  }
167
166
  /** One row of the tenant-wide session explorer (`GET /v1/sessions`). */
@@ -270,8 +269,6 @@ interface GetTraceSpansParams {
270
269
  /** Query params for {@link IntelligenceTraceClient.listRuns}. */
271
270
  interface ListRunsParams {
272
271
  limit?: number;
273
- /** Legacy offset pagination; ignored once `cursor` is supplied. */
274
- offset?: number;
275
272
  status?: "started" | "baseline-complete" | "generation-complete" | "gate-decided" | "finished" | "errored";
276
273
  gate?: "ship" | "hold" | "need_more_work" | "model_ceiling" | "arch_ceiling";
277
274
  /** Case-insensitive substring over `run_dir`. */
@@ -134,7 +134,6 @@ function createIntelligenceClient(config) {
134
134
  async function listRuns(params = {}) {
135
135
  const search = new URLSearchParams();
136
136
  appendParam(search, "limit", params.limit);
137
- appendParam(search, "offset", params.offset);
138
137
  appendParam(search, "status", params.status);
139
138
  appendParam(search, "gate", params.gate);
140
139
  appendParam(search, "q", params.q);
@@ -1,2 +1,2 @@
1
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-wp8WpHrK.js";
1
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, n as BrowserInteractiveSessionControlControllerOptions, r as browserInteractiveControlHolderId, t as BrowserInteractiveSessionControlController } from "./browser-interactive-control-controller-DdhciJR8.js";
2
2
  export { BrowserInteractiveSessionControlController, type BrowserInteractiveSessionControlControllerOptions, type InteractiveSessionIdentity, InteractiveSessionNotRunningError, browserInteractiveControlHolderId };
@@ -3,7 +3,7 @@ import { B as PlanContinuationSchema, D as agentInteractiveSessionControlClaimMa
3
3
  import { r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
4
4
  import { E as ValidationError, S as ServerError, h as NetworkError, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, x as SandboxError } from "./errors-BStusQVc.js";
5
5
  import { n as combineAbortSignals, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
6
- import { t as parseSSEStream } from "./sse-parser-BU0BrEcQ.js";
6
+ import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
7
7
  import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
8
8
  import { z } from "zod";
9
9
  /** Stable declaration order; registry tests check the shipped spec composition. */
@@ -1,6 +1,6 @@
1
- import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BarOQIIa.js";
2
- import { rr as TerminalStream } from "./types-KVM581O6.js";
3
- import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-wp8WpHrK.js";
1
+ import { j as AgentInteractiveSessionRef, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BlOFGopg.js";
2
+ import { rr as TerminalStream } from "./types-D89tf_Kw.js";
3
+ import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, g as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-DdhciJR8.js";
4
4
 
5
5
  //#region src/interactive-controller.d.ts
6
6
  /** The request fields supplied by an attach caller before control is claimed. */
@@ -1,4 +1,4 @@
1
- import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-KVM581O6.js";
1
+ import { ar as CreateSandboxOptions, ba as BackendConfig } from "./types-D89tf_Kw.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
package/dist/lines.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-1ZmvseqM.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-BU4hEO2M.js";
2
2
  export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
@@ -279,9 +279,8 @@ const TOOL_SPECS = {
279
279
  }
280
280
  };
281
281
  /**
282
- * The legacy default tool set. Kept stable for callers that pass this exported
283
- * array directly as well as for framework packs. Preview publishing is opt-in
284
- * through TOOL_SPECS or a pack's explicit tools allow-list.
282
+ * The default tool set. Preview publishing is opt-in through TOOL_SPECS or a
283
+ * pack's explicit tools allow-list.
285
284
  */
286
285
  const ALL_TOOL_SPECS = Object.values(TOOL_SPECS).filter((spec) => spec.enabledByDefault !== false);
287
286
  /** Pack-side helper: filter the registry by an optional allow-list. */
@@ -1,6 +1,6 @@
1
- import { O as SandboxInstance } from "./index-Dg0oODRT.js";
2
- import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-KVM581O6.js";
3
- import { t as Sandbox } from "./client-BU_g1IAA.js";
1
+ import { O as SandboxInstance } from "./index-CEnN8lzy.js";
2
+ import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-D89tf_Kw.js";
3
+ import { t as Sandbox } from "./client-CpTt65-H.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
- import { Ot as SandboxError } from "./terminal-stream-types-BarOQIIa.js";
2
- import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-KVM581O6.js";
1
+ import { Ot as SandboxError } from "./terminal-stream-types-BlOFGopg.js";
2
+ import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-D89tf_Kw.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/public-templates.d.ts
@@ -1,2 +1,2 @@
1
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-BtwE92xQ.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DgFlNR6x.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
@@ -249,7 +249,7 @@ async function exportRawEvidenceDirectory(request, subject, targetDirectory, opt
249
249
  const response = await runPreparedEvidence(request, options.signal);
250
250
  if (!response.ok) {
251
251
  await response.body?.cancel();
252
- throw new Error(`Raw evidence archive request failed (HTTP ${response.status}); no legacy fallback`);
252
+ throw new Error(`Raw evidence archive request failed (HTTP ${response.status})`);
253
253
  }
254
254
  if (response.headers.get("content-type")?.includes("application/json")) {
255
255
  const body = JSON.parse(await readBoundedResponse(response, 64 * 1024, options.signal));
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BarOQIIa.js";
2
- import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-KVM581O6.js";
3
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-wp8WpHrK.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-CYi2SQLW.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-DQsKqrUg.js";
1
+ import { At as SandboxFailureDetail, Ct as NotFoundError, Et as QuotaError, Ft as TimeoutError, It as ValidationError, Mt as StateError, Ot as SandboxError, St as NetworkError, Tt as ProfileFileMountPathError, ft as AuthError, jt as ServerError, kt as SandboxErrorJson, mt as CapabilityError, u as ScopedToken, vt as FileWriteConflictError, wt as PartialFailureError } from "./terminal-stream-types-BlOFGopg.js";
2
+ import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, da as SandboxEvent, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-D89tf_Kw.js";
3
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-DdhciJR8.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-DKSv-fGQ.js";
5
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-DkJVwb8D.js";
6
6
 
7
7
  //#region src/lib/chunked-upload.d.ts
8
8
  /** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
package/dist/runtime.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-DfzfOmf9.js";
1
+ import { I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, R as deriveAgentRunOutcome, c as SandboxRuntimeApi, t as BrowserInteractiveSessionController, z as projectAgentTerminalRecord } from "./interactive-controller-BRUzaI-G.js";
2
2
  import { n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BvtNDWql.js";
3
3
  import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-BStusQVc.js";
4
4
  import { t as fetchSandboxApi } from "./api-request-B7cnX489.js";
@@ -1,4 +1,4 @@
1
- import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-DfzfOmf9.js";
1
+ import { A as normalizeRuntimeBackendConfig, C as encodeTextForWire, D as assertCurrentBackendType, E as applyRequestedModel, F as withoutRuntimeSecrets, I as createAgentRunOutcomeTracker, L as deriveAgentResultOutcome, M as requestedSecretProfilePublicDigest, S as encodePromptForWire, W as normalizeEffectiveBackend, _ as mintTraceId, a as assertScopedTokenActive, b as resolveDispatchRunIdentity, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as sessionHeaders, g as isTraceId, h as TRACE_ID_HEADER, i as terminalUpgradeHeadersSupported, j as requestedPublicProfileDigest, k as mergeRuntimeBackendConfig, l as normalizeSessionInfo, m as waitForRetryAfter, n as InteractiveSessionController, p as isRetryableCredentialRefusal, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as resolveTraceId, w as canUseNodeHttp2, x as validateAcceptedDispatchRunRef, y as traceHeaders } from "./interactive-controller-BRUzaI-G.js";
2
2
  import { C as boundedIdentifierSchema, E as boundedStringSchema, g as sha256DigestSchema, o as canonicalCandidateDigest, s as canonicalCandidateJson, u as isCanonicalJsonValue } from "./harness-BnGz2Wng.js";
3
3
  import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-BvtNDWql.js";
4
4
  import { a as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-DFZTAn1S.js";
@@ -7,7 +7,7 @@ import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort }
7
7
  import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
8
8
  import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch--8twRp99.js";
9
9
  import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.js";
10
- import { t as parseSSEStream } from "./sse-parser-BU0BrEcQ.js";
10
+ import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
11
11
  import { s as uploadChunked } from "./chunked-upload-C0HQnuId.js";
12
12
  import { t as runPreparedProcess } from "./prepared-process-DUPGC_ff.js";
13
13
  import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-BoK5wpru.js";
@@ -267,15 +267,16 @@ const RETRYABLE_CREATE_STATUS_CODES = new Set([
267
267
  ]);
268
268
  /**
269
269
  * 503 classes that mean "the cell cannot place a create right now, ask
270
- * again", not "this create failed". They are what a caller sees while the
271
- * production host-agent rolls: placement is drained on the only host, so an
272
- * unkeyed create fails `CAPACITY_EXHAUSTED` (`HOST_PRESSURE` and
273
- * `PROVISIONING_PAUSED` are the sibling admission refusals the orchestrator
274
- * maps to 503), and a keyed create cannot verify its ref while the agent is
275
- * down (`IDEMPOTENT_CREATE_PROBE_FAILED`). Re-POSTing is safe: the admission
276
- * refusals started no provision, the probe answer is the Worker declining to
277
- * act until it can prove what exists, and the idempotency key joins
278
- * whichever provision did start.
270
+ * again", not "this create failed". A full fleet answers `CAPACITY_EXHAUSTED`
271
+ * at once with `Retry-After` (nothing queues in the controller; the refusal
272
+ * wakes the autoscaler and this re-POST meets the host it bought), and so
273
+ * does a host-agent roll that drains placement on the only host.
274
+ * `HOST_PRESSURE` and `PROVISIONING_PAUSED` are the sibling placement
275
+ * refusals the orchestrator maps to 503, and a keyed create cannot verify its
276
+ * ref while the agent is down (`IDEMPOTENT_CREATE_PROBE_FAILED`). Re-POSTing
277
+ * is safe: the placement refusals started no provision, the probe answer is
278
+ * the Worker declining to act until it can prove what exists, and the
279
+ * idempotency key joins whichever provision did start.
279
280
  *
280
281
  * `SANDBOX_CREATE_RECONCILING` is deliberately not in the family. The Worker
281
282
  * answers it (Retry-After 2) when a same-key create meets a journaled D1
@@ -325,6 +326,20 @@ const DEPLOY_WINDOW_RETRY_MS = 15e4;
325
326
  function isDeployWindowCreateError(cause) {
326
327
  return cause instanceof SandboxError && cause.status === 503 && DEPLOY_WINDOW_RETRY_CODES.has(cause.code);
327
328
  }
329
+ /**
330
+ * The plan rate limiter's 429 (`RATE_LIMIT_EXCEEDED`, or the platform's own
331
+ * limiter): `quotaType` is the limiter's default `rate_limit`, never one of
332
+ * the create quotas, which name their reason. Every paced re-POST above is a
333
+ * Worker management request that limiter counts (the free plan allows 60 a
334
+ * minute, and one create retrying every 2 s is 30 of them), so in a full
335
+ * fleet two concurrent creates meet it. Answered right after a capacity
336
+ * refusal on the same key, it is part of that pacing, not a new failure: it
337
+ * is retried on its own `Retry-After` on the time budget, and spends none of
338
+ * the attempt budget.
339
+ */
340
+ function isRateLimitCreateError(cause) {
341
+ return cause instanceof QuotaError && cause.status === 429 && cause.quotaType === "rate_limit";
342
+ }
328
343
  function isRetryableCreateError(cause) {
329
344
  if (cause instanceof NetworkError) return true;
330
345
  if (cause instanceof GpuProviderNotConfiguredError) return false;
@@ -2701,16 +2716,6 @@ const PROFILE_BUNDLE_PUBLISH_ENDPOINT = "/agents/profile-bundle/publish";
2701
2716
  * hold create() hostage.
2702
2717
  */
2703
2718
  const PROFILE_BUNDLE_HTTP_TIMEOUT_MS = 1e4;
2704
- /**
2705
- * Answers that mean the box predates the cache API: no route, a route that
2706
- * rejects the method, or a recognized-but-unimplemented handler. Remembered
2707
- * per box handle so an old box is never probed twice.
2708
- */
2709
- const PROFILE_BUNDLE_API_GONE_STATUSES = new Set([
2710
- 404,
2711
- 405,
2712
- 501
2713
- ]);
2714
2719
  function profileBundleDebug(message, data = {}) {
2715
2720
  if (globalThis.process?.env?.TANGLE_SANDBOX_SDK_PROFILE_BUNDLE_DEBUG !== "1") return;
2716
2721
  console.debug(`[sandbox-sdk] profile bundle: ${message}`, data);
@@ -2754,7 +2759,6 @@ var ProfileFileDelivery = class {
2754
2759
  /** The most recent successful preparation with file mounts; undefined until one. */
2755
2760
  lastReport;
2756
2761
  pending = Promise.resolve();
2757
- unsupportedBoxes = /* @__PURE__ */ new WeakSet();
2758
2762
  prepare(box, profile, signal, existingFiles = "allow-identical") {
2759
2763
  const split = splitInlineProfileFileMounts(structuredClone(profile));
2760
2764
  const { leanProfile } = split;
@@ -2791,10 +2795,10 @@ var ProfileFileDelivery = class {
2791
2795
  }
2792
2796
  async deliverProfileFiles(box, deferredFiles, bundle, existingFiles) {
2793
2797
  const claim = await this.claimProfileBundle(box, deferredFiles, bundle);
2794
- if (claim.kind === "legacy") {
2798
+ if (claim.kind === "direct") {
2795
2799
  await materializeProfileFileMounts(box, deferredFiles, { existingFiles });
2796
2800
  return {
2797
- outcome: "legacy",
2801
+ outcome: "direct",
2798
2802
  deliveredFiles: deferredFiles.length
2799
2803
  };
2800
2804
  }
@@ -2811,7 +2815,7 @@ var ProfileFileDelivery = class {
2811
2815
  };
2812
2816
  }
2813
2817
  async claimProfileBundle(box, deferredFiles, bundle) {
2814
- if (typeof box.runtimeFetch !== "function" || this.unsupportedBoxes.has(box)) return { kind: "legacy" };
2818
+ if (typeof box.runtimeFetch !== "function") return { kind: "direct" };
2815
2819
  const table = profileBundleFileTable(deferredFiles);
2816
2820
  try {
2817
2821
  const response = await withProfileBundleTimeout(box.runtimeFetch(PROFILE_BUNDLE_CLAIM_ENDPOINT, {
@@ -2825,14 +2829,9 @@ var ProfileFileDelivery = class {
2825
2829
  }))
2826
2830
  })
2827
2831
  }), "profile bundle claim");
2828
- if (PROFILE_BUNDLE_API_GONE_STATUSES.has(response.status)) {
2829
- this.unsupportedBoxes.add(box);
2830
- profileBundleDebug("box predates the bundle cache API", { status: response.status });
2831
- return { kind: "legacy" };
2832
- }
2833
2832
  if (!response.ok) {
2834
- profileBundleDebug("claim refused; legacy delivery this turn", { status: response.status });
2835
- return { kind: "legacy" };
2833
+ profileBundleDebug("claim refused; direct delivery this turn", { status: response.status });
2834
+ return { kind: "direct" };
2836
2835
  }
2837
2836
  const body = await response.json();
2838
2837
  if (body.status === "hit") return {
@@ -2846,12 +2845,12 @@ var ProfileFileDelivery = class {
2846
2845
  missing: new Set(body.missing)
2847
2846
  };
2848
2847
  } catch (error) {
2849
- profileBundleDebug("claim failed; legacy delivery this turn", { error: error instanceof Error ? error.message : String(error) });
2850
- return { kind: "legacy" };
2848
+ profileBundleDebug("claim failed; direct delivery this turn", { error: error instanceof Error ? error.message : String(error) });
2849
+ return { kind: "direct" };
2851
2850
  }
2852
2851
  }
2853
2852
  async publishProfileBundle(box, deferredFiles, bundle) {
2854
- if (typeof box.runtimeFetch !== "function" || this.unsupportedBoxes.has(box)) return;
2853
+ if (typeof box.runtimeFetch !== "function") return;
2855
2854
  try {
2856
2855
  const response = await withProfileBundleTimeout(box.runtimeFetch(PROFILE_BUNDLE_PUBLISH_ENDPOINT, {
2857
2856
  method: "POST",
@@ -3572,9 +3571,7 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
3572
3571
  /**
3573
3572
  * Port exposure and runtime network state.
3574
3573
  *
3575
- * Outbound restrictions are on {@link SandboxInstance.egress}: `update()`
3576
- * here rejects every policy field rather than recording one nothing
3577
- * enforces.
3574
+ * Outbound restrictions are on {@link SandboxInstance.egress}.
3578
3575
  *
3579
3576
  * @example Expose ports dynamically
3580
3577
  * ```typescript
@@ -3589,26 +3586,11 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
3589
3586
  */
3590
3587
  get network() {
3591
3588
  return {
3592
- update: (config) => this.networkUpdate(config),
3593
3589
  exposePort: (port) => this.networkExposePort(port),
3594
3590
  listUrls: () => this.networkListUrls(),
3595
3591
  getConfig: () => this.networkGetConfig()
3596
3592
  };
3597
3593
  }
3598
- async networkUpdate(config) {
3599
- if (config.blockOutbound !== void 0 && config.allowList !== void 0) {
3600
- if (config.blockOutbound && config.allowList.length > 0) throw new Error("blockOutbound and allowList are mutually exclusive");
3601
- }
3602
- if (config.allowList) {
3603
- if (config.allowList.length > 10) throw new Error("allowList cannot exceed 10 entries");
3604
- for (const cidr of config.allowList) if (!this.isValidCidr(cidr)) throw new Error(`Invalid CIDR format: ${cidr}`);
3605
- }
3606
- const response = await this.runtimeFetch("/network", {
3607
- method: "PATCH",
3608
- body: JSON.stringify(config)
3609
- });
3610
- if (!response.ok) throw await parseResponseError(response);
3611
- }
3612
3594
  async networkExposePort(port) {
3613
3595
  if (port < 1 || port > 65535) throw new Error("Port must be between 1 and 65535");
3614
3596
  return (await readResponseJson(await this.runtimeFetch("/network/expose", {
@@ -3622,26 +3604,6 @@ var SandboxNetworkCapabilities = class extends SandboxProcessCapabilities {
3622
3604
  async networkGetConfig() {
3623
3605
  return await readResponseJson(await this.runtimeFetch("/network"));
3624
3606
  }
3625
- /**
3626
- * Validate CIDR notation (IPv4 and IPv6)
3627
- */
3628
- isValidCidr(cidr) {
3629
- const ipv4Pattern = /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\/(?:[0-9]|[12]\d|3[0-2])$/;
3630
- const ipv6Pattern = /^([a-fA-F0-9:]+)\/(\d{1,3})$/;
3631
- if (ipv4Pattern.test(cidr)) return true;
3632
- const ipv6Match = cidr.match(ipv6Pattern);
3633
- if (ipv6Match) {
3634
- const ipPart = ipv6Match[1];
3635
- const prefixPart = ipv6Match[2];
3636
- if (ipPart === void 0 || prefixPart === void 0) return false;
3637
- const prefix = Number.parseInt(prefixPart, 10);
3638
- if (prefix >= 0 && prefix <= 128) {
3639
- const groups = ipPart.split(":");
3640
- if (groups.length <= 8 && ipPart.includes(":")) return groups.every((g) => g === "" || /^[a-fA-F0-9]{1,4}$/.test(g));
3641
- }
3642
- }
3643
- return false;
3644
- }
3645
3607
  };
3646
3608
  //#endregion
3647
3609
  //#region src/sandbox-workspace-gpu.ts
@@ -4281,25 +4243,13 @@ const LIFECYCLE_CONFLICT_MAX_DELAY_MS = 4e3;
4281
4243
  function isLifecycleConflict(cause) {
4282
4244
  return cause instanceof SandboxError && cause.status === 409 && cause.code === LIFECYCLE_CONFLICT_CODE;
4283
4245
  }
4284
- /**
4285
- * The orchestrator's typed refusal of a delete whose agent sessions are not
4286
- * yet sealed in run session storage: HTTP 503, nothing was torn down, and the
4287
- * route says to retry the delete. One child delete of a 16-child branch met it
4288
- * in production branch-fanout (eu1, 2026-10-26) and failed the whole run.
4289
- */
4290
- const RUN_SESSION_CAPTURE_PENDING_CODE = "RUN_SESSION_CAPTURE_PENDING";
4291
- /** A refusal that changed nothing and that the platform says to retry. */
4292
- function isRetriedLifecycleRefusal(cause) {
4293
- return isLifecycleConflict(cause) || cause instanceof SandboxError && cause.status === 503 && cause.code === RUN_SESSION_CAPTURE_PENDING_CODE;
4294
- }
4295
4246
  function lifecycleConflictDelayMs(cause, failedAttempt) {
4296
4247
  if (cause instanceof SandboxError && cause.retryAfterMs !== void 0) return cause.retryAfterMs;
4297
4248
  return Math.min(LIFECYCLE_CONFLICT_BASE_DELAY_MS * 2 ** Math.max(0, failedAttempt - 1), LIFECYCLE_CONFLICT_MAX_DELAY_MS);
4298
4249
  }
4299
4250
  /**
4300
4251
  * Run one lifecycle mutation, re-attempting only the platform's typed
4301
- * "already in progress" refusal and its "sessions not yet sealed" delete
4302
- * refusal.
4252
+ * "already in progress" refusal.
4303
4253
  *
4304
4254
  * Every other failure keeps its identity and its stack: this widens no other
4305
4255
  * error class, and a caller abort ends the wait immediately.
@@ -4308,7 +4258,7 @@ async function withLifecycleConflictRetry(run, options) {
4308
4258
  for (let attempt = 1;; attempt += 1) try {
4309
4259
  return await run();
4310
4260
  } catch (error) {
4311
- if (!isRetriedLifecycleRefusal(error) || attempt >= LIFECYCLE_CONFLICT_MAX_ATTEMPTS || options?.signal?.aborted) throw error;
4261
+ if (!isLifecycleConflict(error) || attempt >= LIFECYCLE_CONFLICT_MAX_ATTEMPTS || options?.signal?.aborted) throw error;
4312
4262
  await delayUntilAborted(lifecycleConflictDelayMs(error, attempt), options?.signal);
4313
4263
  }
4314
4264
  }
@@ -5842,7 +5792,6 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
5842
5792
  method: "POST",
5843
5793
  body
5844
5794
  });
5845
- if (response.status === 404) return false;
5846
5795
  if (!response.ok) {
5847
5796
  const errorBody = await response.text();
5848
5797
  throw parseErrorResponse(response.status, errorBody, {
@@ -5877,7 +5826,6 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
5877
5826
  ifAbsent: file.ifAbsent
5878
5827
  });
5879
5828
  }
5880
- return true;
5881
5829
  }
5882
5830
  async writeManySequential(files, paceMs, maxRetries) {
5883
5831
  let started = false;
@@ -5903,8 +5851,8 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
5903
5851
  }
5904
5852
  }
5905
5853
  /**
5906
- * Write many files through the runtime batch endpoint. Older runtimes that
5907
- * return 404 use the sequential write path with the same retry policy.
5854
+ * Write many files through the runtime batch endpoint. Duplicate paths use
5855
+ * the sequential write path so the last write of a path wins.
5908
5856
  */
5909
5857
  async writeMany(files, options = {}) {
5910
5858
  if (files.length === 0) return;
@@ -5918,11 +5866,7 @@ var SandboxFileWriteCapabilities = class extends SandboxExecCapabilities {
5918
5866
  const batches = splitWriteManyBatches(files.map(toWriteManyWireFile));
5919
5867
  for (const [index, batch] of batches.entries()) {
5920
5868
  if (index > 0 && paceMs > 0) await delay(paceMs);
5921
- if (!await this.writeBatchRequest(batch.files, batch.body)) {
5922
- if (index > 0) throw new ServerError("Runtime removed file batch support during writeMany", 502);
5923
- await this.writeManySequential(files, paceMs, maxRetries);
5924
- return;
5925
- }
5869
+ await this.writeBatchRequest(batch.files, batch.body);
5926
5870
  }
5927
5871
  }
5928
5872
  /**
@@ -6159,7 +6103,7 @@ var SandboxProfileCapabilities = class extends SandboxFileWriteCapabilities {
6159
6103
  */
6160
6104
  /**
6161
6105
  * How this handle's most recent profile file preparation was satisfied
6162
- * (host cache hit, partial, miss, legacy delivery, or a held receipt) and
6106
+ * (host cache hit, partial, miss, direct delivery, or a held receipt) and
6163
6107
  * how long it took. Undefined until a profile with file mounts is prepared.
6164
6108
  */
6165
6109
  get lastProfileFileDelivery() {
@@ -7428,7 +7372,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
7428
7372
  * Mint a scoped, time-bounded JWT for browser access (Issue #913 Gap 1).
7429
7373
  * Authority is the caller's `TANGLE_API_KEY` (sk-tan-*); signing secrets
7430
7374
  * stay server-side. Native session streams use read-only session-runtime;
7431
- * session/project retain legacy gateway semantics.
7375
+ * session/project authorize the Sandbox API's `/session` WebSocket.
7432
7376
  */
7433
7377
  async mintScopedToken(opts) {
7434
7378
  return requestScopedToken(state(this).client, this.id, opts);
@@ -7662,7 +7606,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
7662
7606
  var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabilities {
7663
7607
  /** @internal — invoked before the sandbox is deleted. */
7664
7608
  async _sessionExportRawEvidence(id, destination, options) {
7665
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Cwap86xg.js");
7609
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DXGxxsgK.js");
7666
7610
  await this.ensureRunning();
7667
7611
  await this.refresh();
7668
7612
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/sessions/${encodeURIComponent(id)}/raw-evidence/archive?${new URLSearchParams([
@@ -7693,7 +7637,7 @@ var SandboxSessionEvidenceCapabilities = class extends SandboxInteractiveCapabil
7693
7637
  * and the byte and file bounds are verified before the directory appears.
7694
7638
  */
7695
7639
  async exportRawEvidence(destination, options) {
7696
- const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-Cwap86xg.js");
7640
+ const { exportRawEvidenceDirectory } = await import("./raw-evidence-archive-DXGxxsgK.js");
7697
7641
  await this.ensureRunning();
7698
7642
  await this.refresh();
7699
7643
  return exportRawEvidenceDirectory((signal, archiveId, cancel) => this.runtimeFetch(`/agents/raw-evidence/archive?${new URLSearchParams({
@@ -10922,4 +10866,4 @@ var SandboxInstance = class SandboxInstance extends SandboxEgressCapabilities {
10922
10866
  }
10923
10867
  };
10924
10868
  //#endregion
10925
- export { normalizeSandboxCreateReceipt as A, generateIdempotencyKey as B, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, isRetryableCreateError as H, DEFAULT_CREATE_TIMEOUT_MS as I, DEFAULT_GPU_CREATE_TIMEOUT_MS as L, parseStopPhase as M, normalizeConnection as N, isRetryableProfileFileMaterializeFailure as O, normalizeEgressPolicyFields as P, DEPLOY_WINDOW_RETRY_MS as R, SandboxOperation as S, splitInlineProfileFileMounts as T, waitForCreateRetry as U, isDeployWindowCreateError as V, canonicalAgentProfileDigest as W, collectAgentFinalMessageText as _, MAX_EGRESS_DENIALS_LIMIT as a, isToolBearingEvent as b, otelTraceIdForTangleTrace as c, SandboxSession as d, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, downloadFile as i, normalizeStartupDiagnostics as j, normalizeCaptureProof as k, toOtelJson as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, buildTraceExportPayload as o, InteractiveTerminalFrameLog as p, WorkspaceImages as r, exportTraceBundle as s, SandboxInstance as t, SandboxTaskSession as u, collectAgentResponseText as v, materializeProfileFileMounts as w, ManagedProcessClient as x, getSandboxEventText as y, createRetryDelayMs as z };
10869
+ export { normalizeSandboxCreateReceipt as A, generateIdempotencyKey as B, SandboxOperationFailedError as C, validateDeferredProfileFileMounts as D, splitInlineProfileSkills as E, normalizeSandboxShape as F, canonicalAgentProfileDigest as G, isRateLimitCreateError as H, DEFAULT_CREATE_TIMEOUT_MS as I, DEFAULT_GPU_CREATE_TIMEOUT_MS as L, parseStopPhase as M, normalizeConnection as N, isRetryableProfileFileMaterializeFailure as O, normalizeEgressPolicyFields as P, DEPLOY_WINDOW_RETRY_MS as R, SandboxOperation as S, splitInlineProfileFileMounts as T, isRetryableCreateError as U, isDeployWindowCreateError as V, waitForCreateRetry as W, collectAgentFinalMessageText as _, MAX_EGRESS_DENIALS_LIMIT as a, isToolBearingEvent as b, otelTraceIdForTangleTrace as c, SandboxSession as d, InteractiveSessionHandle as f, applySandboxEventText as g, createInteractiveTerminalSession as h, downloadFile as i, normalizeStartupDiagnostics as j, normalizeCaptureProof as k, toOtelJson as l, createInteractiveTerminalCapture as m, createSandboxInstanceFromResponse as n, buildTraceExportPayload as o, InteractiveTerminalFrameLog as p, WorkspaceImages as r, exportTraceBundle as s, SandboxInstance as t, SandboxTaskSession as u, collectAgentResponseText as v, materializeProfileFileMounts as w, ManagedProcessClient as x, getSandboxEventText as y, createRetryDelayMs as z };
@@ -1,4 +1,4 @@
1
- import { ft as SeatOwnerTransport } from "./client-BU_g1IAA.js";
1
+ import { ft as SeatOwnerTransport } from "./client-CpTt65-H.js";
2
2
 
3
3
  //#region src/select-seat-command.d.ts
4
4
  /** Public reply bound; the owner prints one metadata object. */
@@ -1,6 +1,6 @@
1
1
  import { n as combineAbortSignals } from "../abort-signal-JVaAyNMP.js";
2
2
  import "../sidecar-proxy-error-DORW8_mD.js";
3
- import { t as parseSSEStream } from "../sse-parser-BU0BrEcQ.js";
3
+ import { t as parseSSEStream } from "../sse-parser-BUIKfYAd.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/session-gateway.js
5
5
  /**
6
6
  * Calculate connection quality from metrics.
@@ -30,7 +30,7 @@ import { streamSSEFrames } from "@tangle-network/agent-core/sse";
30
30
  * streams can explicitly warn and skip one invalid frame.
31
31
  *
32
32
  * What it does NOT do:
33
- * - CR-only (legacy Mac) line terminators. No known emitter uses
33
+ * - CR-only line terminators. No known emitter uses
34
34
  * them; supporting them would risk splitting payloads that
35
35
  * legitimately contain CR.
36
36
  * - Retry/reconnect (caller's responsibility).
@@ -1,2 +1,2 @@
1
- import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-Dg0oODRT.js";
1
+ import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-CEnN8lzy.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,2 +1,2 @@
1
- import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-BH7X-adR.js";
1
+ import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-Dd1RSvh3.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
@@ -1,4 +1,4 @@
1
- import { n as createSandboxInstanceFromResponse } from "./sandbox-0FmoqR0P.js";
1
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-CkSdNOmZ.js";
2
2
  import { i as readResponseJson } from "./errors-BStusQVc.js";
3
3
  import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BXgE8UHJ.js";
4
4
  //#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
@@ -2561,7 +2561,8 @@ type MintScopedTokenOptions = (MintScopedTokenBase & {
2561
2561
  type MintInteractiveSessionTokenOptions = Pick<MintScopedTokenBase, "ttlMinutes" | "signal">;
2562
2562
  /**
2563
2563
  * Returned by `box.mintScopedToken()`. Native session streams use a read-only
2564
- * session-runtime token. Session/project tokens retain legacy gateway semantics.
2564
+ * session-runtime token. Session/project tokens authorize the Sandbox API's
2565
+ * `/session` WebSocket.
2565
2566
  */
2566
2567
  interface ScopedToken {
2567
2568
  /** Bearer token (JWT) for the consumer selected by `scope`. */