@tangle-network/sandbox 1.0.209 → 1.0.211

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 (69) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +2 -2
  5. package/dist/{agent-run-outcome-DdYlpMUM.d.ts → agent-run-outcome-CP2N40aT.d.ts} +2 -2
  6. package/dist/{api-request-DJKK0J5o.js → api-request-BDfrz_c1.js} +13 -23
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +2 -2
  9. package/dist/{browser-interactive-control-controller-BGxBBCcH.d.ts → browser-interactive-control-controller-7wyaNSvi.d.ts} +1 -1
  10. package/dist/{browser-interactive-control-controller-uNdUXYAZ.js → browser-interactive-control-controller-BiP6TJFP.js} +1 -1
  11. package/dist/{chunked-upload-C_8f9f5N.js → chunked-upload-D6ZCQ-iN.js} +13 -10
  12. package/dist/{chunked-upload-file-Cpz3hZns.js → chunked-upload-file-D3YxQdAl.js} +1 -1
  13. package/dist/cli-auth-bundle-CMJWI99l.js +2 -0
  14. package/dist/{client-x02QUDSJ.d.ts → client-DiLd0XGB.d.ts} +5 -5
  15. package/dist/{client-CUgcOsHm.js → client-qWjcDhXp.js} +16 -15
  16. package/dist/collaboration/index.d.ts +1 -1
  17. package/dist/collaboration/index.js +1 -1
  18. package/dist/{core-Dzkfkveq.js → core-C1GtjHOv.js} +4 -4
  19. package/dist/core.d.ts +6 -6
  20. package/dist/core.js +4 -4
  21. package/dist/{direct-http2-Bojg02xf.js → direct-http2-DU2SK2Wo.js} +1 -1
  22. package/dist/{index-CfUk7Yhe.d.ts → index-DyFU9hy7.d.ts} +8 -9
  23. package/dist/index.d.ts +11 -11
  24. package/dist/index.js +10 -10
  25. package/dist/intelligence/index.js +2 -2
  26. package/dist/interactive-control.d.ts +1 -1
  27. package/dist/interactive-control.js +1 -1
  28. package/dist/{interactive-controller-CGlW4Qfp.d.ts → interactive-controller-BzObb8aT.d.ts} +3 -3
  29. package/dist/{interactive-controller-CGiztnGI.js → interactive-controller-C-CuPVMA.js} +8 -7
  30. package/dist/lib/prepared-evidence.js +1 -1
  31. package/dist/lib/prepared-process.js +1 -1
  32. package/dist/{lines-fyzHzsrx.d.ts → lines-D0dHQ3X5.d.ts} +1 -1
  33. package/dist/lines.d.ts +1 -1
  34. package/dist/lines.js +1 -1
  35. package/dist/{local-cli-auth-CWWDeQ7N.js → local-cli-auth-CPS9yuTc.js} +1 -1
  36. package/dist/{mcp-local-lPwHM1Zr.js → mcp-local-D5RfqwD9.js} +3 -3
  37. package/dist/{prepared-evidence-COEcexVv.js → prepared-evidence--rjwnXGD.js} +1 -1
  38. package/dist/{prepared-process-CS919ksO.js → prepared-process-N-y0xr9S.js} +1 -1
  39. package/dist/{preview-Bdwy9Rsw.d.ts → preview-CrXG9Y8a.d.ts} +3 -3
  40. package/dist/{public-templates-DCVYfNbP.d.ts → public-templates-Ba-DTf2O.d.ts} +2 -2
  41. package/dist/public-templates.d.ts +1 -1
  42. package/dist/{raw-evidence-archive-Zc02SC0U.js → raw-evidence-archive-DrgeV9_0.js} +2 -2
  43. package/dist/retry-policy-0_NCh5OB.js +88 -0
  44. package/dist/runtime.d.ts +5 -5
  45. package/dist/runtime.js +4 -4
  46. package/dist/{sandbox-BsAn3XVC.js → sandbox-Bk7OST2r.js} +107 -105
  47. package/dist/{secp256k1-CZWrpqxW.js → secp256k1-Cbp9tbkX.js} +1 -1
  48. package/dist/select-seat-command.d.ts +1 -1
  49. package/dist/session-gateway/index.js +3 -3
  50. package/dist/tangle/index.d.ts +1 -1
  51. package/dist/tangle/index.js +1 -1
  52. package/dist/{tangle-DyLXpfYy.js → tangle-Bv_mdVIp.js} +3 -3
  53. package/dist/{types-f5nWlpOq.d.ts → types-BE70nj5h.d.ts} +4 -4
  54. package/package.json +5 -5
  55. package/dist/cli-auth-bundle-jlkQA2D8.js +0 -2
  56. /package/dist/{abort-signal-C0_9B1Hm.js → abort-signal-BbJTt2QJ.js} +0 -0
  57. /package/dist/{cli-auth-bundle-C6DtK7GX-DJH6vfkJ.js → cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js} +0 -0
  58. /package/dist/{cli-auth-bundle-COQ25k3d.d.ts → cli-auth-bundle-Wg3x2hd2.d.ts} +0 -0
  59. /package/dist/{collaboration-BAx-A7gz.js → collaboration-BgSGO1KD.js} +0 -0
  60. /package/dist/{file-download-BYaUfv8d.js → file-download-DrzpcvdM.js} +0 -0
  61. /package/dist/{index-Dslyq85a.d.ts → index-CDtEPygc.d.ts} +0 -0
  62. /package/dist/{index-Dqcr9p97.d.ts → index-YbAo-so_.d.ts} +0 -0
  63. /package/dist/{keep-alive-fetch-BbSFbRCd.js → keep-alive-fetch-BIaDMUtu.js} +0 -0
  64. /package/dist/{lines-D4kRkYfv.js → lines-DHOIUO-t.js} +0 -0
  65. /package/dist/{preview-operations-BvgwYaoL.js → preview-operations-B3TTvqlm.js} +0 -0
  66. /package/dist/{sidecar-proxy-error-5DpLmHeN.js → sidecar-proxy-error-DpBLxIof.js} +0 -0
  67. /package/dist/{sse-parser-CV6Jp-Am.js → sse-parser-DOCszo1K.js} +0 -0
  68. /package/dist/{terminal-stream-types-DxFpAmqp.d.ts → terminal-stream-types-DeH8FF0d.d.ts} +0 -0
  69. /package/dist/{utils-vaFoyyiO.js → utils-CK-x8vXj.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-CfUk7Yhe.js";
2
- import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-f5nWlpOq.js";
3
- import { t as Sandbox } from "../client-x02QUDSJ.js";
4
- import { u as PreviewAuthorizer } from "../preview-Bdwy9Rsw.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-DyFU9hy7.js";
2
+ import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-BE70nj5h.js";
3
+ import { t as Sandbox } from "../client-DiLd0XGB.js";
4
+ import { u as PreviewAuthorizer } from "../preview-CrXG9Y8a.js";
5
5
  import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
6
6
  import { JSONSchema } from "zod/v4/core";
7
7
  import { ToolSet } from "ai";
@@ -1,8 +1,8 @@
1
- import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-lPwHM1Zr.js";
2
- import { O as assertCurrentBackendType } from "../interactive-controller-CGiztnGI.js";
3
- import { t as SandboxInstance } from "../sandbox-BsAn3XVC.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-D5RfqwD9.js";
2
+ import { O as assertCurrentBackendType } from "../interactive-controller-C-CuPVMA.js";
3
+ import { t as SandboxInstance } from "../sandbox-Bk7OST2r.js";
4
4
  import { D as ValidationError, _ as NotFoundError, w as StateError } from "../errors-CNszZUZ2.js";
5
- import { t as Sandbox } from "../client-CUgcOsHm.js";
5
+ import { t as Sandbox } from "../client-qWjcDhXp.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -1,2 +1,2 @@
1
- import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-Bdwy9Rsw.js";
1
+ import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-CrXG9Y8a.js";
2
2
  export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
@@ -1,5 +1,5 @@
1
1
  import { r as agentProfileSchema } from "../profile-schema-C1KpT-wS.js";
2
- import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BvgwYaoL.js";
2
+ import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-B3TTvqlm.js";
3
3
  //#region src/agent/preview-policy.ts
4
4
  /** Channel-neutral preview tool selection from a host-authored profile. */
5
5
  const PREVIEW_TOOLS = [
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
66
66
  if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
67
67
  const tools = config.tools ?? PREVIEW_TOOLS;
68
68
  if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
69
- const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-lPwHM1Zr.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-D5RfqwD9.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
70
70
  const handle = await createMcpServer(config.box, {
71
71
  name: "tangle-previews",
72
72
  sessionId: config.sessionId,
@@ -1,5 +1,5 @@
1
- import { V as InteractionRequest } from "./terminal-stream-types-DxFpAmqp.js";
2
- import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-f5nWlpOq.js";
1
+ import { V as InteractionRequest } from "./terminal-stream-types-DeH8FF0d.js";
2
+ import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-BE70nj5h.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -1,4 +1,5 @@
1
1
  import { t as parseSandboxRetryAfterHeader } from "./retry-after-header-DUdCC0KJ.js";
2
+ import { n as SANDBOX_API_RETRY_SCOPE, o as planResend, r as abortableSleep, s as retryBudget } from "./retry-policy-0_NCh5OB.js";
2
3
  //#region src/lib/response-rewrap.mjs
3
4
  /**
4
5
  * Response wrappers that must outlive the fetch Response they wrap.
@@ -28,7 +29,7 @@ function rewrapResponse(original, headers, body = original.body) {
28
29
  //#endregion
29
30
  //#region src/lib/api-request.mjs
30
31
  /** The package version tsdown.config.ts defines; unbuilt source reports 0.0.0. */
31
- const SDK_VERSION = "1.0.209";
32
+ const SDK_VERSION = "1.0.211";
32
33
  function withRequestContextHeaders(response, path, method, body = response.body) {
33
34
  const headers = new Headers(response.headers);
34
35
  headers.set("x-tangle-request-path", path);
@@ -49,28 +50,16 @@ function isReplayableBody(body) {
49
50
  if (typeof ReadableStream !== "undefined" && body instanceof ReadableStream) return false;
50
51
  return !(Symbol.asyncIterator in body);
51
52
  }
52
- /** Resolve after `ms`; reject with the signal's reason the moment it aborts. */
53
- function abortableSleep(ms, signal) {
54
- if (signal?.aborted) return Promise.reject(signal.reason);
55
- if (ms <= 0) return Promise.resolve();
56
- return new Promise((resolve, reject) => {
57
- const timer = setTimeout(() => {
58
- signal?.removeEventListener("abort", onAbort);
59
- resolve();
60
- }, ms);
61
- const onAbort = () => {
62
- clearTimeout(timer);
63
- reject(signal?.reason);
64
- };
65
- signal?.addEventListener("abort", onAbort, { once: true });
66
- });
67
- }
68
- /** The wait before resending after `response` (none: connection lost), or undefined when it is final. */
69
- function retryDelayMs(response, attempt) {
53
+ /** The wait before resending after `response` (none: connection lost) on the shared pacing, or undefined when it is final or cannot go before `deadline`. */
54
+ function retryDelayMs(response, attempt, deadline) {
70
55
  const after = parseSandboxRetryAfterHeader(response?.headers.get("retry-after"));
71
56
  const status = response?.status ?? 503;
72
57
  if (!(status >= 502 && status <= 504 || status === 429 && after !== void 0)) return void 0;
73
- return after ?? Math.random() * Math.min(4e3, 250 * 2 ** attempt);
58
+ return planResend(SANDBOX_API_RETRY_SCOPE, attempt, {
59
+ retryAfterMs: after,
60
+ deadlineAt: deadline,
61
+ capMs: 4e3
62
+ });
74
63
  }
75
64
  /**
76
65
  * The SDK's authenticated raw transport, also shipped with standalone probes;
@@ -109,6 +98,7 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetch
109
98
  let response;
110
99
  let lost;
111
100
  for (let attempt = 1;; attempt++) {
101
+ retryBudget(SANDBOX_API_RETRY_SCOPE).sent();
112
102
  try {
113
103
  response = await fetchImpl(url, {
114
104
  ...options,
@@ -120,8 +110,8 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetch
120
110
  response = void 0;
121
111
  lost = error;
122
112
  }
123
- const delayMs = retryable && attempt < 4 ? retryDelayMs(response, attempt) : void 0;
124
- if (delayMs === void 0 || Date.now() + delayMs >= deadline) {
113
+ const delayMs = retryable && attempt < 4 ? retryDelayMs(response, attempt, deadline) : void 0;
114
+ if (delayMs === void 0) {
125
115
  if (!response) throw lost;
126
116
  break;
127
117
  }
@@ -180,4 +170,4 @@ async function fetchSandboxApi({ baseUrl, apiKey, timeoutMs = 3e4, signal, fetch
180
170
  }
181
171
  }
182
172
  //#endregion
183
- export { isReplayableBody as a, fetchSandboxApi as i, SDK_VERSION as n, rewrapResponse as o, abortableSleep as r, IDEMPOTENT_METHODS as t };
173
+ export { rewrapResponse as a, isReplayableBody as i, SDK_VERSION as n, fetchSandboxApi as r, IDEMPOTENT_METHODS as t };
@@ -1,3 +1,3 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-COQ25k3d.js";
2
- import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-Dslyq85a.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-Wg3x2hd2.js";
2
+ import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-CDtEPygc.js";
3
3
  export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
@@ -1,5 +1,5 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-C6DtK7GX-DJH6vfkJ.js";
2
- import "../cli-auth-bundle-jlkQA2D8.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
2
+ import "../cli-auth-bundle-CMJWI99l.js";
3
3
  //#region src/auth/tokens.ts
4
4
  const textEncoder = new TextEncoder();
5
5
  const textDecoder = new TextDecoder();
@@ -1,4 +1,4 @@
1
- import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-DxFpAmqp.js";
1
+ import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-DeH8FF0d.js";
2
2
 
3
3
  //#region src/interactive-types.d.ts
4
4
  /** Cancellation for an interactive SDK request. */
@@ -1,5 +1,5 @@
1
1
  import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-DMaNgn0S.js";
2
- import { t as awaitWithAbort } from "./abort-signal-C0_9B1Hm.js";
2
+ import { t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
3
3
  import { z } from "zod";
4
4
  //#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.13/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
5
5
  /**
@@ -1,6 +1,11 @@
1
1
  import { S as SandboxError, n as isTransientWrite, r as parseErrorResponse } from "./errors-CNszZUZ2.js";
2
- import { r as abortableSleep } from "./api-request-DJKK0J5o.js";
2
+ import { i as awaitResend, n as SANDBOX_API_RETRY_SCOPE, r as abortableSleep, s as retryBudget } from "./retry-policy-0_NCh5OB.js";
3
3
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES, n as isFileTooLargeErrorBody, r as isPayloadTooLargeErrorBody } from "./file-transfer-BSe4ayU9.js";
4
+ //#region src/lib/sdk-retry.ts
5
+ const countSdkRequest = () => retryBudget(SANDBOX_API_RETRY_SCOPE).sent();
6
+ const takeSdkTurn = (maxWaitMs) => retryBudget(SANDBOX_API_RETRY_SCOPE).take(maxWaitMs);
7
+ const awaitSdkResend = (resend, o) => awaitResend(SANDBOX_API_RETRY_SCOPE, resend, o);
8
+ //#endregion
4
9
  //#region src/generated/sandbox-upload-operations.ts
5
10
  function uploadSessionInit(transport, input, init = {}) {
6
11
  return transport.fetch(`/fs/upload-session`, {
@@ -42,8 +47,7 @@ function uploadSessionDelete(transport, params, init = {}) {
42
47
  * browsers, Workers, and Node 18+ — the same environments this module must
43
48
  * run in unmodified.
44
49
  */
45
- const DEFAULT_MAX_RETRIES = 4;
46
- const RETRY_BASE_MS = 250;
50
+ const DEFAULT_MAX_RETRIES = 6;
47
51
  const RETRY_MAX_MS = 2e3;
48
52
  /** Concurrent part PUTs — indexed parts + commit-time assembly make out-of-
49
53
  * order completion safe; the cap keeps one session polite to the sidecar's
@@ -217,12 +221,11 @@ async function putPart(transport, uploadId, index, options, wire) {
217
221
  if (!response.ok) throw await parseUploadError(response);
218
222
  return;
219
223
  } catch (err) {
220
- if (isTransientWrite(err) && attempt < maxRetries) {
221
- const retryAfterMs = err instanceof SandboxError ? err.retryAfterMs : void 0;
222
- const backoff = Math.min(RETRY_BASE_MS * 2 ** attempt, RETRY_MAX_MS);
223
- await abortableSleep(retryAfterMs ?? backoff, options.signal);
224
- continue;
225
- }
224
+ if (isTransientWrite(err) && attempt < maxRetries && await awaitSdkResend(attempt + 1, {
225
+ retryAfterMs: err instanceof SandboxError ? err.retryAfterMs : void 0,
226
+ signal: options.signal,
227
+ capMs: RETRY_MAX_MS
228
+ })) continue;
226
229
  throw err;
227
230
  }
228
231
  }
@@ -384,4 +387,4 @@ var ChunkedUploadInterruptedError = class extends Error {
384
387
  }
385
388
  };
386
389
  //#endregion
387
- export { planCompression as a, partCount as i, commitSession as n, putPart as o, initUploadSession as r, uploadChunked as s, abortSession as t };
390
+ export { planCompression as a, awaitSdkResend as c, partCount as i, countSdkRequest as l, commitSession as n, putPart as o, initUploadSession as r, uploadChunked as s, abortSession as t, takeSdkTurn as u };
@@ -1,5 +1,5 @@
1
1
  import { i as FILE_UPLOAD_SESSION_MAX_BYTES } from "./file-transfer-BSe4ayU9.js";
2
- import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-C_8f9f5N.js";
2
+ import { a as planCompression, i as partCount, n as commitSession, o as putPart, r as initUploadSession, t as abortSession } from "./chunked-upload-D6ZCQ-iN.js";
3
3
  import { createHash } from "node:crypto";
4
4
  import { open } from "node:fs/promises";
5
5
  //#region src/lib/chunked-upload-file.ts
@@ -0,0 +1,2 @@
1
+ import "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
2
+ export {};
@@ -1,8 +1,8 @@
1
- import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-CfUk7Yhe.js";
2
- import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, bt as SandboxError, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken } from "./terminal-stream-types-DxFpAmqp.js";
3
- import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _o as PublicBatchRunRequestInput, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, go as PublicBatchRunRequest, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, po as BatchResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yo as BatchEvent, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-f5nWlpOq.js";
4
- import { t as LinesClient } from "./lines-fyzHzsrx.js";
5
- import { a as PublicTemplatesClient } from "./public-templates-DCVYfNbP.js";
1
+ import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-DyFU9hy7.js";
2
+ import { G as AgentProfileConfidential, J as AgentProfileMcpServer, K as AgentProfileConfigValue, U as AgentProfile, X as AgentProfileSeat, Y as AgentProfileMetadata, b as SandboxSizePreset, bt as SandboxError, c as MintInteractiveSessionTokenOptions, k as AgentInteractiveSessionRef, q as AgentProfileFileMount, u as ScopedToken } from "./terminal-stream-types-DeH8FF0d.js";
3
+ import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _o as PublicBatchRunRequestInput, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, go as PublicBatchRunRequest, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, po as BatchResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yo as BatchEvent, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-BE70nj5h.js";
4
+ import { t as LinesClient } from "./lines-D0dHQ3X5.js";
5
+ import { a as PublicTemplatesClient } from "./public-templates-Ba-DTf2O.js";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/backend-registry.d.ts
@@ -1,13 +1,14 @@
1
- import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-CGiztnGI.js";
1
+ import { A as normalizeRuntimeBackendConfig, D as applyRequestedModel, E as isBrowserRuntime, H as backendTypeSchema, N as withProfileHarness, O as assertCurrentBackendType, P as withoutCreateOnlyModelFields, S as encodePromptForWire, o as requestInteractiveSessionToken } from "./interactive-controller-C-CuPVMA.js";
2
2
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
3
- import { A as normalizeSandboxCreateReceipt, B as CAPACITY_ETA_WAIT_MAX_MS, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeConnection, G as extendableDeadline, I as normalizeEgressPolicyFields, J as isDeployWindowCreateError, K as generateIdempotencyKey, L as normalizeProxySecretReceipt, N as dateOf, O as isRetryableProfileFileMaterializeFailure, P as parseLifecycleTimes, R as normalizeSandboxShape, T as splitInlineProfileFileMounts, U as DEPLOY_WINDOW_RETRY_MS, W as createRetryDelayMs, X as isRetryableCreateError, Y as isRateLimitCreateError, d as sandboxLedgerUsd, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as isCapacityShortageCreateError, z as CAPACITY_ETA_MARGIN_MS } from "./sandbox-BsAn3XVC.js";
3
+ import { A as normalizeSandboxCreateReceipt, B as CAPACITY_ETA_WAIT_MAX_MS, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeConnection, G as createRetryDelayMs, I as normalizeEgressPolicyFields, J as isCapacityShortageCreateError, K as extendableDeadline, L as normalizeProxySecretReceipt, N as dateOf, O as isRetryableProfileFileMaterializeFailure, P as parseLifecycleTimes, R as normalizeSandboxShape, T as splitInlineProfileFileMounts, U as DEPLOY_WINDOW_RETRY_MS, W as awaitCreateResend, X as isRateLimitCreateError, Y as isDeployWindowCreateError, Z as isRetryableCreateError, d as sandboxLedgerUsd, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle, q as generateIdempotencyKey, z as CAPACITY_ETA_MARGIN_MS } from "./sandbox-Bk7OST2r.js";
4
4
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, a as readResponseJson, g as NetworkError, i as parseResponseError, r as parseErrorResponse, s as AuthError, v as PartialFailureError } from "./errors-CNszZUZ2.js";
5
- import { i as fetchSandboxApi, r as abortableSleep } from "./api-request-DJKK0J5o.js";
6
- import { n as combineAbortSignals } from "./abort-signal-C0_9B1Hm.js";
5
+ import { n as combineAbortSignals } from "./abort-signal-BbJTt2QJ.js";
6
+ import { r as abortableSleep, t as RETRY_POLICY } from "./retry-policy-0_NCh5OB.js";
7
7
  import { l as SANDBOX_AGENT_HOME, t as isInsideReservedDir } from "./file-transfer-BSe4ayU9.js";
8
- import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BbSFbRCd.js";
9
- import { t as parseSSEStream } from "./sse-parser-CV6Jp-Am.js";
10
- import { t as LinesClient } from "./lines-D4kRkYfv.js";
8
+ import { r as fetchSandboxApi } from "./api-request-BDfrz_c1.js";
9
+ import { n as fetchWithKeepAlive, t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
10
+ import { t as parseSSEStream } from "./sse-parser-DOCszo1K.js";
11
+ import { t as LinesClient } from "./lines-DHOIUO-t.js";
11
12
  import { PublicTemplatesClient } from "./public-templates.js";
12
13
  import { z } from "zod";
13
14
  //#region ../../../packages/runtime-contracts/dist/git-policy.js
@@ -1215,11 +1216,11 @@ function isLocalSandboxEndpoint(baseUrl) {
1215
1216
  }
1216
1217
  }
1217
1218
  async function resolveLocalCliAuthFiles(backendType) {
1218
- const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CWWDeQ7N.js");
1219
+ const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CPS9yuTc.js");
1219
1220
  return discoverLocalCliAuthFiles(backendType);
1220
1221
  }
1221
1222
  async function loadLocalCliAuthExpectation(backendType) {
1222
- const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CWWDeQ7N.js");
1223
+ const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CPS9yuTc.js");
1223
1224
  return describe(backendType);
1224
1225
  }
1225
1226
  /**
@@ -1909,9 +1910,9 @@ var SandboxCreation = class extends SandboxManagement {
1909
1910
  cause: lastServerError
1910
1911
  });
1911
1912
  };
1912
- const sleepBeforeRetry = async (delayMs) => {
1913
+ const sleepBeforeRetry = async (delayMs, cause) => {
1913
1914
  try {
1914
- await abortableSleep(delayMs, postSignal);
1915
+ await awaitCreateResend(delayMs, deadline, postSignal, cause);
1915
1916
  } catch (waitError) {
1916
1917
  if (requestOptions?.signal?.aborted) throw waitError;
1917
1918
  throw createTimeoutError();
@@ -1926,9 +1927,9 @@ var SandboxCreation = class extends SandboxManagement {
1926
1927
  status: cause.status
1927
1928
  });
1928
1929
  if (isPacedCreateError(cause)) {
1929
- const delayMs = Math.max(createRetryDelayMs(cause, failedAttempt), 250);
1930
+ const delayMs = Math.max(createRetryDelayMs(cause, failedAttempt), RETRY_POLICY.baseMs);
1930
1931
  if (delayMs >= deployWindowDeadline - Date.now()) throw deployWindowDeadline === deadline ? createTimeoutError() : cause;
1931
- await sleepBeforeRetry(delayMs);
1932
+ await sleepBeforeRetry(delayMs, cause);
1932
1933
  return;
1933
1934
  }
1934
1935
  const delayMs = createRetryDelayMs(cause, failedAttempt);
@@ -1936,7 +1937,7 @@ var SandboxCreation = class extends SandboxManagement {
1936
1937
  if (proxyTimedOutCreate && cause.code === "IDEMPOTENT_CREATE_IN_PROGRESS") throw createTimeoutError();
1937
1938
  throw cause;
1938
1939
  }
1939
- await sleepBeforeRetry(delayMs);
1940
+ await sleepBeforeRetry(delayMs, cause);
1940
1941
  };
1941
1942
  let response;
1942
1943
  let shortBudgetFailures = 0;
@@ -1946,7 +1947,7 @@ var SandboxCreation = class extends SandboxManagement {
1946
1947
  if (isPacedCreateError(error)) return false;
1947
1948
  if (proxyTimedOutCreate && error instanceof SandboxError && error.code === "IDEMPOTENT_CREATE_IN_PROGRESS") return false;
1948
1949
  shortBudgetFailures += 1;
1949
- return shortBudgetFailures >= 5;
1950
+ return shortBudgetFailures >= 6;
1950
1951
  };
1951
1952
  for (let attempt = 1;; attempt++) {
1952
1953
  try {
@@ -1,2 +1,2 @@
1
- import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-Dqcr9p97.js";
1
+ import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "../index-YbAo-so_.js";
2
2
  export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,2 +1,2 @@
1
- import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-BAx-A7gz.js";
1
+ import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-BgSGO1KD.js";
2
2
  export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
@@ -1,9 +1,9 @@
1
1
  import { r as agentProfileSchema } from "./profile-schema-C1KpT-wS.js";
2
- import { Z as canonicalAgentProfileDigest } from "./sandbox-BsAn3XVC.js";
2
+ import { Q as canonicalAgentProfileDigest } from "./sandbox-Bk7OST2r.js";
3
3
  import { D as ValidationError, S as SandboxError, l as CapabilityError } from "./errors-CNszZUZ2.js";
4
- import { t as awaitWithAbort } from "./abort-signal-C0_9B1Hm.js";
5
- import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-DJH6vfkJ.js";
6
- import "./cli-auth-bundle-jlkQA2D8.js";
4
+ import { t as awaitWithAbort } from "./abort-signal-BbJTt2QJ.js";
5
+ import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js";
6
+ import "./cli-auth-bundle-CMJWI99l.js";
7
7
  import { z } from "zod";
8
8
  //#region src/failure-kind.ts
9
9
  const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
package/dist/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-CfUk7Yhe.js";
2
- import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, rt as parseErrorResponse, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-DxFpAmqp.js";
3
- import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-f5nWlpOq.js";
4
- import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-fyzHzsrx.js";
5
- import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-x02QUDSJ.js";
6
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-DCVYfNbP.js";
1
+ import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-DyFU9hy7.js";
2
+ import { Ct as ServerError, Dt as TimeoutError, Ot as ValidationError, St as SandboxFailureDetail, _t as ProfileFileMountPathError, bt as SandboxError, gt as PartialFailureError, ht as NotFoundError, it as AuthError, mt as NetworkError, ot as CapabilityError, rt as parseErrorResponse, ut as FileWriteConflictError, vt as QuotaError, wt as StateError, xt as SandboxErrorJson } from "./terminal-stream-types-DeH8FF0d.js";
3
+ import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-BE70nj5h.js";
4
+ import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-D0dHQ3X5.js";
5
+ import { Ct as InstanceRestartingError, Dt as sandboxFailureKind, Et as SandboxFailureKind, St as InstanceRecord, Tt as InstancesClient, _t as gatewaySeatTransport, an as backendRegistryEntrySchema, bt as HostedInstance, cn as isBackendRegistryInteractionKind, ct as SandboxResolvedSeat, dt as SeatOwnerReply, en as BackendRegistryCapabilities, ft as SeatOwnerTransport, gt as createSelectSeat, ht as SeatSelectionRequest, in as backendRegistryCapabilitiesSchema, ln as parseBackendRegistryResponse, lt as SandboxSeatCredentials, mt as SeatSelectionError, nn as BackendRegistryInteractionKind, on as backendRegistryInteractionKindSchema, ot as ISOLATED_CREATION_ATTESTATION_VERSION, pt as SeatResolutionObservation, rn as BackendRegistryResponse, sn as backendRegistryResponseSchema, st as CreateSelectSeatOptions, t as Sandbox, tn as BackendRegistryEntry, un as parseBackendRegistryResponseBody, ut as SandboxSeatSelectionInput, vt as ManagedProcessClient, xt as InstanceProfile, yt as EnsureInstanceOptions } from "./client-DiLd0XGB.js";
6
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-Ba-DTf2O.js";
7
7
  export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-BsAn3XVC.js";
1
+ import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-Bk7OST2r.js";
2
2
  import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-CNszZUZ2.js";
3
- import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-CUgcOsHm.js";
4
- import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-D4kRkYfv.js";
3
+ import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-qWjcDhXp.js";
4
+ import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-DHOIUO-t.js";
5
5
  import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
6
- import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-Dzkfkveq.js";
6
+ import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-C1GtjHOv.js";
7
7
  export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
@@ -1,4 +1,4 @@
1
- import { t as emitTiming } from "./keep-alive-fetch-BbSFbRCd.js";
1
+ import { t as emitTiming } from "./keep-alive-fetch-BIaDMUtu.js";
2
2
  //#region src/lib/direct-http2.ts
3
3
  const sessions = /* @__PURE__ */ new Map();
4
4
  const inFlight = /* @__PURE__ */ new WeakMap();
@@ -1,9 +1,9 @@
1
- import { $ as ProxySecretReceipt, At as SandboxCreateReceipt, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, bt as SandboxError, et as InteractionData, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, w as AgentInteractiveSessionControlClaim, z as AgentRunCancellationRequest } from "./terminal-stream-types-DxFpAmqp.js";
2
- import { $a as RawEvidenceBoxDirectoryExport, $r as ForkCounts, An as SandboxShape, Ar as DriverInfo, Bi as CreateSessionOptions, C as WorkspaceOperationLookup, Ci as IntelligenceReportWindow, Cn as TerminalStream, D as ProvisionResult, Di as SandboxEvent, E as ProvisionEvent, Ei as PromptResult, Fi as CommitTaskSessionOptions, Fn as EgressManager, G as GitBranch, Ga as ExecResult, Gi as ListMessagesOptions, Ha as CodeExecutionResult, Hi as DispatchPromptOptions, Ia as WorkspaceImagePublishInput, J as GitStatus, Ja as SandboxEnvRecoveryView, Ji as SendSessionMessageRequest, K as GitCommit, Ka as WriteFileRequest, Ki as PublicProfileConflict, Kt as SandboxFleetTraceBundle, La as WorkspaceImagePublishResult, Li as CompletedTurnResult, Ln as NetworkManager, Lr as GpuLeaseManager, Mi as SandboxTraceOptions, Mn as SandboxResourceUsage, Mr as GpuLease, N as WaitForOptions, Nn as SandboxRuntimeCapabilities, Pi as TurnBackendConfig, Qi as SessionExecutionInfo, Qr as BranchOptions, Ri as ConversationTurnOptions, S as StopOptions, Sn as TeePublicKeyResponse, Ti as PromptOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, Ua as CodeLanguage, Ui as DispatchedSession, Ur as CodeExecutionOptions, Vi as CreateTaskSessionOptions, Wi as DriveTurnOptions, Xa as RawEvidenceArchiveManifest, Xr as HttpClient, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, _ as SnapshotInfo, _r as SearchMatch, aa as SessionMessage, ai as WaitForRolloutOptions, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, c as SandboxDeleteOptions, ca as SessionResultOptions, co as InteractionResolutionAcknowledgement, cr as FileWriteResult, d as SandboxOperationKind, ei as ForkIdempotency, eo as RawEvidenceBoxExportOptions, f as SandboxOperationState, fa as TaskSessionInfo, ga as BackendConfig, gn as StartupDiagnostics, gr as WriteManyOptions, hi as DurablePlanDecisionResult, hn as SandboxTerminals, hr as WriteManyFile, ia as SessionListOptions, ii as RolloutStartResult, in as SandboxConnection, k as ResumeOptions, ki as SandboxTraceBundle, kn as SandboxStatus, la as TaskSessionChanges, ln as SandboxRuntimeHealth, m as SnapshotDeleteAcknowledgement, ma as TurnDriveResult, mi as DurablePlanDecisionOptions, mr as WriteFileOptions, na as SessionInfo, ni as Rollout, nn as SSHCommandDescriptor, no as RawEvidenceExportOptions, nr as FileSystem, o as RestoreSnapshotOptions, oa as SessionMessageAdmission, on as SandboxPortBinding, oo as RawEvidenceUnavailable, pi as DurablePlan, q as GitDiff, qa as SandboxEnvRecovery, qi as SendSessionMessageOptions, ra as SessionInterruptOptions, ri as RolloutOptions, rn as SSHCredentials, s as SandboxDeleteAcknowledgement, ta as SessionForkOptions, ti as ForkLookupOptions, to as RawEvidenceDirectoryExport, u as SandboxOperationInfo, ua as TaskSessionCommitResult, un as SandboxTerminalAttachOptions, v as SnapshotOptions, va as BackendManager, vi as EventStreamOptions, vn as TeeAttestationOptions, vr as SearchOptions, wi as PromptInputPart, x as SnapshotResult, xi as IntelligenceReportCompareTo, y as SnapshotProvenance, yi as IntelligenceReport, yr as ExecOptions, z as ProcessManager, zi as ConversationTurnResult } from "./types-f5nWlpOq.js";
3
- import { t as CliAuthReference } from "./cli-auth-bundle-COQ25k3d.js";
4
- import { n as SandboxLines } from "./lines-fyzHzsrx.js";
5
- import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-BGxBBCcH.js";
6
- import { r as InteractiveAttachRequest } from "./interactive-controller-CGlW4Qfp.js";
1
+ import { $ as ProxySecretReceipt, At as SandboxCreateReceipt, B as InteractionAcknowledgement, C as AgentInteractiveSessionAttach, D as AgentInteractiveSessionPromptAcknowledgement, E as AgentInteractiveSessionControlClaimRequest, F as TerminalOutputEvent, H as InteractionResponseCommand, I as TerminalReplayWindow, M as AgentInteractiveSessionStopCommand, N as AgentInteractiveTerminalSession, O as AgentInteractiveSessionPromptCommand, R as AgentRunCancellationAcknowledgement, S as AgentInteractiveSessionStart, T as AgentInteractiveSessionControlClaimAcknowledgement, U as AgentProfile, V as InteractionRequest, bt as SandboxError, et as InteractionData, g as TerminalReadyInfo, i as TerminalStreamHandlers, j as AgentInteractiveSessionStopAcknowledgement, k as AgentInteractiveSessionRef, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, q as AgentProfileFileMount, u as ScopedToken, w as AgentInteractiveSessionControlClaim, z as AgentRunCancellationRequest } from "./terminal-stream-types-DeH8FF0d.js";
2
+ import { $a as RawEvidenceBoxDirectoryExport, $r as ForkCounts, An as SandboxShape, Ar as DriverInfo, Bi as CreateSessionOptions, C as WorkspaceOperationLookup, Ci as IntelligenceReportWindow, Cn as TerminalStream, D as ProvisionResult, Di as SandboxEvent, E as ProvisionEvent, Ei as PromptResult, Fi as CommitTaskSessionOptions, Fn as EgressManager, G as GitBranch, Ga as ExecResult, Gi as ListMessagesOptions, Ha as CodeExecutionResult, Hi as DispatchPromptOptions, Ia as WorkspaceImagePublishInput, J as GitStatus, Ja as SandboxEnvRecoveryView, Ji as SendSessionMessageRequest, K as GitCommit, Ka as WriteFileRequest, Ki as PublicProfileConflict, Kt as SandboxFleetTraceBundle, La as WorkspaceImagePublishResult, Li as CompletedTurnResult, Ln as NetworkManager, Lr as GpuLeaseManager, Mi as SandboxTraceOptions, Mn as SandboxResourceUsage, Mr as GpuLease, N as WaitForOptions, Nn as SandboxRuntimeCapabilities, Pi as TurnBackendConfig, Qi as SessionExecutionInfo, Qr as BranchOptions, Ri as ConversationTurnOptions, S as StopOptions, Sn as TeePublicKeyResponse, Ti as PromptOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, Ua as CodeLanguage, Ui as DispatchedSession, Ur as CodeExecutionOptions, Vi as CreateTaskSessionOptions, Wi as DriveTurnOptions, Xa as RawEvidenceArchiveManifest, Xr as HttpClient, Yi as SentSessionMessage, Zi as SessionEventStreamOptions, _ as SnapshotInfo, _r as SearchMatch, aa as SessionMessage, ai as WaitForRolloutOptions, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, c as SandboxDeleteOptions, ca as SessionResultOptions, co as InteractionResolutionAcknowledgement, cr as FileWriteResult, d as SandboxOperationKind, ei as ForkIdempotency, eo as RawEvidenceBoxExportOptions, f as SandboxOperationState, fa as TaskSessionInfo, ga as BackendConfig, gn as StartupDiagnostics, gr as WriteManyOptions, hi as DurablePlanDecisionResult, hn as SandboxTerminals, hr as WriteManyFile, ia as SessionListOptions, ii as RolloutStartResult, in as SandboxConnection, k as ResumeOptions, ki as SandboxTraceBundle, kn as SandboxStatus, la as TaskSessionChanges, ln as SandboxRuntimeHealth, m as SnapshotDeleteAcknowledgement, ma as TurnDriveResult, mi as DurablePlanDecisionOptions, mr as WriteFileOptions, na as SessionInfo, ni as Rollout, nn as SSHCommandDescriptor, no as RawEvidenceExportOptions, nr as FileSystem, o as RestoreSnapshotOptions, oa as SessionMessageAdmission, on as SandboxPortBinding, oo as RawEvidenceUnavailable, pi as DurablePlan, q as GitDiff, qa as SandboxEnvRecovery, qi as SendSessionMessageOptions, ra as SessionInterruptOptions, ri as RolloutOptions, rn as SSHCredentials, s as SandboxDeleteAcknowledgement, ta as SessionForkOptions, ti as ForkLookupOptions, to as RawEvidenceDirectoryExport, u as SandboxOperationInfo, ua as TaskSessionCommitResult, un as SandboxTerminalAttachOptions, v as SnapshotOptions, va as BackendManager, vi as EventStreamOptions, vn as TeeAttestationOptions, vr as SearchOptions, wi as PromptInputPart, x as SnapshotResult, xi as IntelligenceReportCompareTo, y as SnapshotProvenance, yi as IntelligenceReport, yr as ExecOptions, z as ProcessManager, zi as ConversationTurnResult } from "./types-BE70nj5h.js";
3
+ import { t as CliAuthReference } from "./cli-auth-bundle-Wg3x2hd2.js";
4
+ import { n as SandboxLines } from "./lines-D0dHQ3X5.js";
5
+ import { _ as InteractiveSessionStatus, f as InteractiveAttachOptions, g as InteractiveRequestOptions, h as InteractiveObserveOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-7wyaNSvi.js";
6
+ import { r as InteractiveAttachRequest } from "./interactive-controller-BzObb8aT.js";
7
7
  import { z } from "zod";
8
8
  import { OtlpTraceExport } from "@tangle-network/agent-trace-contract/otlp";
9
9
 
@@ -148,8 +148,8 @@ declare class SandboxOperation {
148
148
  * with a succeeded operation; throws {@link SandboxOperationFailedError} on
149
149
  * a failed one and {@link TimeoutError} past `timeoutMs` (default 10 min).
150
150
  * The verb was accepted, so a read that was lost, timed out or refused
151
- * retryably says nothing about it: read again after a full-jitter wait no
152
- * shorter than its Retry-After.
151
+ * retryably says nothing about it: read again on the shared retry pacing
152
+ * (the server's Retry-After, else full jitter, and the client's retry budget).
153
153
  */
154
154
  wait(options?: {
155
155
  timeoutMs?: number;
@@ -874,7 +874,6 @@ declare abstract class SandboxLifecycleEventsCapabilities extends SandboxPreview
874
874
  * the same wait and error semantics.
875
875
  */
876
876
  protected consumerConnectionReady(): boolean;
877
- protected sleep(ms: number): Promise<void>;
878
877
  }
879
878
  //#endregion
880
879
  //#region src/sandbox-lifecycle.d.ts