@boxes-dev/dvb-runtime 1.0.1111 → 1.0.1113

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.
@@ -42,13 +42,21 @@ Ground rules:
42
42
 
43
43
  ## Phase 1: Prerequisites
44
44
 
45
- 1. The user must be signed in to boxes.dev. The setup prompt from boxes.dev
45
+ 1. Check whether you're running on the user's own computer. If you're in a
46
+ cloud agent environment such as Codex cloud, or on another remote machine,
47
+ tell the user before continuing. Setup will copy the project from this
48
+ environment, so it needs to be a full development environment that can run
49
+ the app with its configuration and services. An environment that can only
50
+ run tests won't be enough, and files and agent settings on the user's own
51
+ computer won't be included. Ask the user to confirm that this environment
52
+ can run their app, or to run setup from the computer where they develop it.
53
+ 2. The user must be signed in to boxes.dev. The setup prompt from boxes.dev
46
54
  includes a login code, and `dvb agent-init --login-code <code>` signs in
47
55
  with it. If there is no code or it no longer works, follow the sign-in
48
56
  instruction that `dvb agent-init` prints. `dvb agent-init login` waits
49
57
  until the user finishes signing in, so run it in the background and give
50
58
  them the sign-in link it prints.
51
- 2. The user's accounts must be connected. The Template box runs Codex or
59
+ 3. The user's accounts must be connected. The Template box runs Codex or
52
60
  Claude Code on the user's own account, so `check` requires at least one
53
61
  of them. Run `dvb agent-init accounts` in the background: it opens a
54
62
  boxes.dev page where the user can connect Codex, Claude Code, GitHub, and
@@ -61,9 +69,12 @@ Ground rules:
61
69
  selects **Use a code instead**. With an older CLI, if the user says they
62
70
  clicked Done but the command is still waiting, stop it and run
63
71
  `dvb agent-init status`.
64
- Over SSH it prints a link for the user to open instead and exits without
65
- waiting; continue when the user says they're done.
66
- 3. Billing activation may be required before launch; `run` will say so with
72
+ When the user's browser is on another computer, such as over SSH or in a
73
+ cloud environment, it prints a link for the user to open instead and exits
74
+ without waiting; continue when the user says they're done. If you aren't
75
+ on the user's computer but it says it opened the page, ask the user to
76
+ click **Use a code instead** on that page.
77
+ 4. Billing activation may be required before launch; `run` will say so with
67
78
  a link if needed. Composition can proceed regardless.
68
79
 
69
80
  ## Phase 2: Start
package/dist/bin/dvb.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a9a5ab0a-d34f-5b1c-afa5-ae1d2d484362")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="80505d4d-509b-54e0-9465-02dc4ecd0ba7")}catch(e){}}();
4
4
  import { createRequire as __dvbCreateRequire } from "node:module";
5
5
  import { dirname as __dvbDirname } from "node:path";
6
6
  import { fileURLToPath as __dvbFileURLToPath } from "node:url";
@@ -6462,7 +6462,7 @@ var MANAGED_CODEX_MCP_OAUTH_VERSION, MANAGED_CLAUDE_MCP_OAUTH_VERSION, CLAUDE_CO
6462
6462
  var init_profiles = __esm({
6463
6463
  "../../../../shared/devboxCore/dist/mcpOAuth/profiles.js"() {
6464
6464
  "use strict";
6465
- MANAGED_CODEX_MCP_OAUTH_VERSION = "0.159.0";
6465
+ MANAGED_CODEX_MCP_OAUTH_VERSION = "0.166.0";
6466
6466
  MANAGED_CLAUDE_MCP_OAUTH_VERSION = "2.1.305";
6467
6467
  CLAUDE_CODE_CLIENT_METADATA_URL = "https://claude.ai/oauth/claude-code-client-metadata";
6468
6468
  buildPublicClientMetadata = (clientName, redirectUri) => ({
@@ -70565,9 +70565,9 @@ var init_sentry = __esm({
70565
70565
  uncaughtExceptionMonitorInstalled = false;
70566
70566
  currentDevboxSentryUser = null;
70567
70567
  readBuildMetadata = () => {
70568
- const rawPackageVersion = "1.0.1111";
70569
- const rawGitSha = "5759d9e04c92cddf2fd051b9c9be0d4fb20b7ce9";
70570
- const rawSentryRelease = "boxes-dev-dvb@1.0.1111+5759d9e04c92cddf2fd051b9c9be0d4fb20b7ce9";
70568
+ const rawPackageVersion = "1.0.1113";
70569
+ const rawGitSha = "5c92512300006a85ac7be2bd93af7c9f48fb2799";
70570
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1113+5c92512300006a85ac7be2bd93af7c9f48fb2799";
70571
70571
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
70572
70572
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
70573
70573
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -76240,7 +76240,7 @@ var init_packageVersion = __esm({
76240
76240
  return path18.join(process.cwd(), "dvb");
76241
76241
  };
76242
76242
  readEmbeddedPackageVersion = () => {
76243
- const raw = "1.0.1111";
76243
+ const raw = "1.0.1113";
76244
76244
  return trimVersion(raw);
76245
76245
  };
76246
76246
  readNearestPackageMetadata = (basePath) => {
@@ -144743,7 +144743,7 @@ var init_managedCodex = __esm({
144743
144743
  init_devboxCore();
144744
144744
  init_setupTooling();
144745
144745
  init_logger3();
144746
- MANAGED_CODEX_VERSION = "0.159.0";
144746
+ MANAGED_CODEX_VERSION = "0.166.0";
144747
144747
  MANAGED_CODEX_INSTALL_MANIFEST_DIR = "managed-codex-install";
144748
144748
  MANAGED_CODEX_INSTALL_MANIFEST_FILES = [
144749
144749
  "package.json",
@@ -166225,7 +166225,6 @@ var init_codexRemoteRenderer = __esm({
166225
166225
  reason: closedMessage.reason,
166226
166226
  detail: closedMessage.detail
166227
166227
  };
166228
- void forwarder.close();
166229
166228
  return;
166230
166229
  }
166231
166230
  forwarder.sendRemoteMessage(message);
@@ -166435,7 +166434,6 @@ var init_codexNewThreadRenderer = __esm({
166435
166434
  reason: closedMessage.reason,
166436
166435
  detail: closedMessage.detail
166437
166436
  };
166438
- void forwarder.close();
166439
166437
  return;
166440
166438
  }
166441
166439
  forwarder.sendRemoteMessage(message);
@@ -236807,17 +236805,19 @@ var init_agentThreadImportBundle = __esm({
236807
236805
 
236808
236806
  // ../../../../shared/initPrep/src/bundleUploadTransport.mjs
236809
236807
  import fs36 from "node:fs/promises";
236810
- var UPLOAD_PROGRESS_MIN_INTERVAL_MS, UPLOAD_PROGRESS_MIN_BYTES, UPLOAD_PART_CONCURRENCY, UPLOAD_PART_RETRY_COUNT, UPLOAD_PART_RETRY_BASE_DELAY_MS, UPLOAD_PART_RETRY_MAX_DELAY_MS, UPLOAD_PART_REQUEST_IDLE_TIMEOUT_MS, RETRYABLE_UPLOAD_TRANSPORT_ERROR_CODES, RETRYABLE_UPLOAD_HTTP_STATUS_CODES, sleepWithSignal, createUploadAbortError, createUploadTimeoutError, createDesktopInitBundleUploadError, getUploadErrorCode, isRetryableDesktopInitUploadError, createDesktopInitBundleUploadInterruptedError, isDesktopInitUploadRejectedError, calculateRetryDelayMs, normalizeProgressBytes, createUploadProgressReporter, putFileRange, uploadFileWithProgress, normalizeMultipartPartNumberForLocal, normalizeCompletedMultipartPart, normalizeCompletedMultipartParts, mergeCompletedMultipartParts, buildCompletedMultipartPartSet, buildMultipartPartRangeMap, getMultipartPartByteLength, calculateCompletedMultipartBytes, uploadFilePartWithRetries, uploadMultipartFileWithProgress;
236808
+ var UPLOAD_PROGRESS_MIN_INTERVAL_MS, UPLOAD_PROGRESS_MIN_BYTES, UPLOAD_PART_CONCURRENCY, UPLOAD_RETRY_COUNT, UPLOAD_RETRY_BASE_DELAY_MS, UPLOAD_RETRY_MAX_DELAY_MS, UPLOAD_PART_REQUEST_IDLE_TIMEOUT_MS, UPLOAD_CONNECT_ATTEMPT_TIMEOUT_MS, UPLOAD_CONNECT_TIMEOUT_MS, RETRYABLE_UPLOAD_TRANSPORT_ERROR_CODES, RETRYABLE_UPLOAD_HTTP_STATUS_CODES, sleepWithSignal, createUploadAbortError, createUploadTimeoutError, createUploadConnectTimeoutError, createDesktopInitBundleUploadError, getUploadErrorCode, createUploadConnectError, isRetryableDesktopInitUploadError, createDesktopInitBundleUploadInterruptedError, isDesktopInitUploadRejectedError, calculateRetryDelayMs, normalizeProgressBytes, createUploadProgressReporter, putFileRange, putFileRangeWithRetries, uploadFileWithProgress, normalizeMultipartPartNumberForLocal, normalizeCompletedMultipartPart, normalizeCompletedMultipartParts, mergeCompletedMultipartParts, buildCompletedMultipartPartSet, buildMultipartPartRangeMap, getMultipartPartByteLength, calculateCompletedMultipartBytes, uploadFilePartWithRetries, uploadMultipartFileWithProgress;
236811
236809
  var init_bundleUploadTransport = __esm({
236812
236810
  "../../../../shared/initPrep/src/bundleUploadTransport.mjs"() {
236813
236811
  "use strict";
236814
236812
  UPLOAD_PROGRESS_MIN_INTERVAL_MS = 1e3;
236815
236813
  UPLOAD_PROGRESS_MIN_BYTES = 8 * 1024 * 1024;
236816
236814
  UPLOAD_PART_CONCURRENCY = 3;
236817
- UPLOAD_PART_RETRY_COUNT = 6;
236818
- UPLOAD_PART_RETRY_BASE_DELAY_MS = 1e3;
236819
- UPLOAD_PART_RETRY_MAX_DELAY_MS = 3e4;
236815
+ UPLOAD_RETRY_COUNT = 6;
236816
+ UPLOAD_RETRY_BASE_DELAY_MS = 1e3;
236817
+ UPLOAD_RETRY_MAX_DELAY_MS = 3e4;
236820
236818
  UPLOAD_PART_REQUEST_IDLE_TIMEOUT_MS = 6e4;
236819
+ UPLOAD_CONNECT_ATTEMPT_TIMEOUT_MS = 2e3;
236820
+ UPLOAD_CONNECT_TIMEOUT_MS = 1e4;
236821
236821
  RETRYABLE_UPLOAD_TRANSPORT_ERROR_CODES = /* @__PURE__ */ new Set([
236822
236822
  "EAI_AGAIN",
236823
236823
  "ECONNABORTED",
@@ -236865,6 +236865,14 @@ var init_bundleUploadTransport = __esm({
236865
236865
  error55.code = "ETIMEDOUT";
236866
236866
  return error55;
236867
236867
  };
236868
+ createUploadConnectTimeoutError = (host) => {
236869
+ const error55 = new Error(
236870
+ `Couldn't connect to ${host} within ${String(UPLOAD_CONNECT_TIMEOUT_MS / 1e3)} seconds. Check your network connection, VPN, or firewall, then try again.`
236871
+ );
236872
+ error55.code = "ETIMEDOUT";
236873
+ error55.desktopInitErrorCode = "desktop_init_bundle_upload_connect_failed";
236874
+ return error55;
236875
+ };
236868
236876
  createDesktopInitBundleUploadError = ({
236869
236877
  statusCode,
236870
236878
  statusMessage
@@ -236878,6 +236886,24 @@ var init_bundleUploadTransport = __esm({
236878
236886
  return error55;
236879
236887
  };
236880
236888
  getUploadErrorCode = (error55) => error55 && typeof error55 === "object" && typeof error55.code === "string" ? error55.code : null;
236889
+ createUploadConnectError = ({ error: error55, host }) => {
236890
+ const countsByCode = /* @__PURE__ */ new Map();
236891
+ for (const attemptError of error55.errors) {
236892
+ const code2 = getUploadErrorCode(attemptError) ?? "unknown";
236893
+ countsByCode.set(code2, (countsByCode.get(code2) ?? 0) + 1);
236894
+ }
236895
+ const failures = Array.from(
236896
+ countsByCode,
236897
+ ([code2, count]) => `${String(count)} ${code2}`
236898
+ ).join(", ");
236899
+ const connectError = new Error(
236900
+ `Couldn't connect to ${host}: all ${String(error55.errors.length)} addresses failed (${failures}). Check your network connection, VPN, or firewall, then try again.`,
236901
+ { cause: error55 }
236902
+ );
236903
+ connectError.code = error55.code;
236904
+ connectError.desktopInitErrorCode = "desktop_init_bundle_upload_connect_failed";
236905
+ return connectError;
236906
+ };
236881
236907
  isRetryableDesktopInitUploadError = (error55) => {
236882
236908
  if (!error55 || typeof error55 !== "object") {
236883
236909
  return false;
@@ -236895,8 +236921,9 @@ var init_bundleUploadTransport = __esm({
236895
236921
  if (cause instanceof Error && cause.desktopInitErrorCode === "desktop_init_bundle_upload_interrupted") {
236896
236922
  return cause;
236897
236923
  }
236924
+ const causeMessage = cause instanceof Error ? cause.message.trim() : "";
236898
236925
  const error55 = new Error(
236899
- "The encrypted setup bundle upload was interrupted after several automatic recovery attempts.",
236926
+ `The encrypted setup bundle upload was interrupted after several automatic recovery attempts.${causeMessage ? ` Last error: ${causeMessage}` : ""}`,
236900
236927
  { cause }
236901
236928
  );
236902
236929
  error55.desktopInitErrorCode = "desktop_init_bundle_upload_interrupted";
@@ -236908,8 +236935,8 @@ var init_bundleUploadTransport = __esm({
236908
236935
  isDesktopInitUploadRejectedError = (error55) => error55 instanceof Error && error55.desktopInitErrorCode === "desktop_init_bundle_upload_failed" && error55.statusCode === 403;
236909
236936
  calculateRetryDelayMs = (failedAttempt) => {
236910
236937
  const unjittered = Math.min(
236911
- UPLOAD_PART_RETRY_MAX_DELAY_MS,
236912
- UPLOAD_PART_RETRY_BASE_DELAY_MS * 2 ** Math.max(0, failedAttempt - 1)
236938
+ UPLOAD_RETRY_MAX_DELAY_MS,
236939
+ UPLOAD_RETRY_BASE_DELAY_MS * 2 ** Math.max(0, failedAttempt - 1)
236913
236940
  );
236914
236941
  return Math.round(unjittered * (0.75 + Math.random() * 0.5));
236915
236942
  };
@@ -236952,13 +236979,6 @@ var init_bundleUploadTransport = __esm({
236952
236979
  });
236953
236980
  };
236954
236981
  return {
236955
- addTransferringBytes(bytes) {
236956
- transferringBytes = normalizeProgressBytes(
236957
- transferringBytes + bytes,
236958
- Math.max(0, totalBytes - confirmedBytes)
236959
- );
236960
- report(false);
236961
- },
236962
236982
  enqueue(callback) {
236963
236983
  return queue(callback);
236964
236984
  },
@@ -237014,6 +237034,8 @@ var init_bundleUploadTransport = __esm({
237014
237034
  const request2 = protocol.request(
237015
237035
  parsedUrl,
237016
237036
  {
237037
+ autoSelectFamilyAttemptTimeout: UPLOAD_CONNECT_ATTEMPT_TIMEOUT_MS,
237038
+ timeout: UPLOAD_CONNECT_TIMEOUT_MS,
237017
237039
  method: "PUT",
237018
237040
  headers: {
237019
237041
  ...headers,
@@ -237059,14 +237081,42 @@ var init_bundleUploadTransport = __esm({
237059
237081
  }
237060
237082
  }
237061
237083
  request2.setTimeout(UPLOAD_PART_REQUEST_IDLE_TIMEOUT_MS, () => {
237062
- request2.destroy(createUploadTimeoutError());
237084
+ request2.destroy(
237085
+ request2.socket?.connecting ? createUploadConnectTimeoutError(parsedUrl.hostname) : createUploadTimeoutError()
237086
+ );
237063
237087
  });
237064
237088
  request2.on("error", (error55) => {
237065
237089
  stream.destroy();
237066
- settle(reject, error55);
237090
+ settle(
237091
+ reject,
237092
+ error55 instanceof AggregateError ? createUploadConnectError({ error: error55, host: parsedUrl.hostname }) : error55
237093
+ );
237094
+ });
237095
+ let connected = false;
237096
+ let bytesBeforeConnect = 0;
237097
+ request2.once("socket", (socket) => {
237098
+ const markConnected = () => {
237099
+ connected = true;
237100
+ if (bytesBeforeConnect > 0) {
237101
+ onBytes?.(bytesBeforeConnect);
237102
+ bytesBeforeConnect = 0;
237103
+ }
237104
+ };
237105
+ if (socket.connecting) {
237106
+ socket.once(
237107
+ socket.encrypted ? "secureConnect" : "connect",
237108
+ markConnected
237109
+ );
237110
+ } else {
237111
+ markConnected();
237112
+ }
237067
237113
  });
237068
237114
  stream.on("data", (chunk2) => {
237069
- onBytes?.(chunk2.length);
237115
+ if (connected) {
237116
+ onBytes?.(chunk2.length);
237117
+ } else {
237118
+ bytesBeforeConnect += chunk2.length;
237119
+ }
237070
237120
  });
237071
237121
  stream.on("error", (error55) => {
237072
237122
  request2.destroy(error55);
@@ -237079,10 +237129,73 @@ var init_bundleUploadTransport = __esm({
237079
237129
  });
237080
237130
  }
237081
237131
  };
237132
+ putFileRangeWithRetries = async ({
237133
+ endByteExclusive,
237134
+ filePath,
237135
+ headers = {},
237136
+ onAttemptBytes,
237137
+ onRecovered,
237138
+ onRetry,
237139
+ refreshUploadUrl,
237140
+ signal,
237141
+ startByte,
237142
+ uploadUrl: initialUploadUrl
237143
+ }) => {
237144
+ let lastError = null;
237145
+ let refreshedAfterRejection = false;
237146
+ let retried = false;
237147
+ let uploadUrl = initialUploadUrl;
237148
+ for (let attempt = 1; attempt <= UPLOAD_RETRY_COUNT; attempt += 1) {
237149
+ let attemptUploadedBytes = 0;
237150
+ try {
237151
+ const result = await putFileRange({
237152
+ endByteExclusive,
237153
+ filePath,
237154
+ headers,
237155
+ onBytes: (bytes) => {
237156
+ attemptUploadedBytes += bytes;
237157
+ onAttemptBytes?.(attemptUploadedBytes);
237158
+ },
237159
+ signal,
237160
+ startByte,
237161
+ uploadUrl
237162
+ });
237163
+ if (retried) {
237164
+ await onRecovered?.();
237165
+ }
237166
+ return result;
237167
+ } catch (error55) {
237168
+ onAttemptBytes?.(0);
237169
+ lastError = error55;
237170
+ if (signal?.aborted) {
237171
+ throw signal.reason ?? createUploadAbortError();
237172
+ }
237173
+ if (isDesktopInitUploadRejectedError(error55) && !refreshedAfterRejection && typeof refreshUploadUrl === "function") {
237174
+ uploadUrl = await refreshUploadUrl();
237175
+ refreshedAfterRejection = true;
237176
+ retried = true;
237177
+ attempt -= 1;
237178
+ continue;
237179
+ }
237180
+ if (!isRetryableDesktopInitUploadError(error55)) {
237181
+ throw error55;
237182
+ }
237183
+ if (attempt < UPLOAD_RETRY_COUNT) {
237184
+ const delayMs = calculateRetryDelayMs(attempt);
237185
+ retried = true;
237186
+ await onRetry?.({ attempt, delayMs, error: error55 });
237187
+ await sleepWithSignal(delayMs, signal);
237188
+ }
237189
+ }
237190
+ }
237191
+ throw lastError;
237192
+ };
237082
237193
  uploadFileWithProgress = async ({
237083
237194
  filePath,
237084
237195
  headers,
237085
237196
  onProgress,
237197
+ onRecovered = null,
237198
+ onRetry = null,
237086
237199
  uploadUrl
237087
237200
  }) => {
237088
237201
  if (!uploadUrl) {
@@ -237093,14 +237206,26 @@ var init_bundleUploadTransport = __esm({
237093
237206
  onProgress,
237094
237207
  totalBytes: stat4.size
237095
237208
  });
237096
- const result = await putFileRange({
237097
- endByteExclusive: stat4.size,
237098
- filePath,
237099
- headers,
237100
- onBytes: (bytes) => reporter.addTransferringBytes(bytes),
237101
- startByte: 0,
237102
- uploadUrl
237103
- });
237209
+ let result;
237210
+ try {
237211
+ result = await putFileRangeWithRetries({
237212
+ endByteExclusive: stat4.size,
237213
+ filePath,
237214
+ headers,
237215
+ onAttemptBytes: (bytes) => reporter.setProgress(
237216
+ { confirmedBytes: 0, transferringBytes: bytes },
237217
+ bytes === 0
237218
+ ),
237219
+ onRecovered: typeof onRecovered === "function" ? async () => await reporter.enqueue(() => onRecovered()) : null,
237220
+ onRetry: typeof onRetry === "function" ? async (event) => await reporter.enqueue(() => onRetry(event)) : null,
237221
+ signal: null,
237222
+ startByte: 0,
237223
+ uploadUrl
237224
+ });
237225
+ } catch (error55) {
237226
+ await reporter.flush();
237227
+ throw error55;
237228
+ }
237104
237229
  reporter.setProgress(
237105
237230
  { confirmedBytes: stat4.size, transferringBytes: 0 },
237106
237231
  true
@@ -237154,61 +237279,26 @@ var init_bundleUploadTransport = __esm({
237154
237279
  refreshPartUploadUrl,
237155
237280
  signal
237156
237281
  }) => {
237157
- let lastError = null;
237158
- let refreshedAfterRejection = false;
237159
- let retried = false;
237160
- let uploadUrl = part.uploadUrl;
237161
- for (let attempt = 1; attempt <= UPLOAD_PART_RETRY_COUNT; attempt += 1) {
237162
- let attemptUploadedBytes = 0;
237163
- try {
237164
- const result = await putFileRange({
237165
- endByteExclusive: part.endByteExclusive,
237166
- filePath,
237167
- onBytes: (bytes) => {
237168
- attemptUploadedBytes += bytes;
237169
- onPartBytes?.(part.partNumber, attemptUploadedBytes);
237170
- },
237171
- signal,
237172
- startByte: part.startByte,
237173
- uploadUrl
237174
- });
237175
- if (!result.etag) {
237176
- throw new Error("S3 multipart upload part did not return an ETag.");
237177
- }
237178
- if (retried) {
237179
- await onRecovered?.({ partNumber: part.partNumber });
237180
- }
237181
- return { etag: result.etag, partNumber: part.partNumber };
237182
- } catch (error55) {
237183
- onPartBytes?.(part.partNumber, 0);
237184
- lastError = error55;
237185
- if (signal.aborted) {
237186
- throw signal.reason ?? createUploadAbortError();
237187
- }
237188
- if (isDesktopInitUploadRejectedError(error55) && !refreshedAfterRejection && typeof refreshPartUploadUrl === "function") {
237189
- uploadUrl = await refreshPartUploadUrl(part.partNumber);
237190
- refreshedAfterRejection = true;
237191
- retried = true;
237192
- attempt -= 1;
237193
- continue;
237194
- }
237195
- if (!isRetryableDesktopInitUploadError(error55)) {
237196
- throw error55;
237197
- }
237198
- if (attempt < UPLOAD_PART_RETRY_COUNT) {
237199
- const delayMs = calculateRetryDelayMs(attempt);
237200
- retried = true;
237201
- await onRetry?.({
237202
- attempt,
237203
- delayMs,
237204
- error: error55,
237205
- partNumber: part.partNumber
237206
- });
237207
- await sleepWithSignal(delayMs, signal);
237208
- }
237209
- }
237282
+ let result;
237283
+ try {
237284
+ result = await putFileRangeWithRetries({
237285
+ endByteExclusive: part.endByteExclusive,
237286
+ filePath,
237287
+ onAttemptBytes: (bytes) => onPartBytes?.(part.partNumber, bytes),
237288
+ onRecovered: typeof onRecovered === "function" ? async () => await onRecovered({ partNumber: part.partNumber }) : null,
237289
+ onRetry: typeof onRetry === "function" ? async (event) => await onRetry({ ...event, partNumber: part.partNumber }) : null,
237290
+ refreshUploadUrl: typeof refreshPartUploadUrl === "function" ? async () => await refreshPartUploadUrl(part.partNumber) : null,
237291
+ signal,
237292
+ startByte: part.startByte,
237293
+ uploadUrl: part.uploadUrl
237294
+ });
237295
+ } catch (error55) {
237296
+ throw isRetryableDesktopInitUploadError(error55) ? createDesktopInitBundleUploadInterruptedError(error55) : error55;
237297
+ }
237298
+ if (!result.etag) {
237299
+ throw new Error("S3 multipart upload part did not return an ETag.");
237210
237300
  }
237211
- throw createDesktopInitBundleUploadInterruptedError(lastError);
237301
+ return { etag: result.etag, partNumber: part.partNumber };
237212
237302
  };
237213
237303
  uploadMultipartFileWithProgress = async ({
237214
237304
  allParts = null,
@@ -249940,6 +250030,22 @@ var init_localPrepService = __esm({
249940
250030
  await saveState(state);
249941
250031
  return emit(createSnapshotFromState(state));
249942
250032
  };
250033
+ const createUploadRetryHandlers = ({ state, uploadingMessage }) => ({
250034
+ onRecovered: async () => {
250035
+ if (state.currentMessage === "Connection interrupted. Reconnecting\u2026") {
250036
+ state.currentMessage = uploadingMessage;
250037
+ await saveState(state);
250038
+ emit(createSnapshotFromState(state));
250039
+ }
250040
+ },
250041
+ onRetry: async () => {
250042
+ if (state.currentMessage !== "Connection interrupted. Reconnecting\u2026") {
250043
+ state.currentMessage = "Connection interrupted. Reconnecting\u2026";
250044
+ await saveState(state);
250045
+ emit(createSnapshotFromState(state));
250046
+ }
250047
+ }
250048
+ });
249943
250049
  const uploadMissingMultipartParts = async ({
249944
250050
  completedParts,
249945
250051
  encryptedPath,
@@ -249977,20 +250083,10 @@ var init_localPrepService = __esm({
249977
250083
  await saveState(state);
249978
250084
  emit(createSnapshotFromState(state));
249979
250085
  },
249980
- onRecovered: async () => {
249981
- if (state.currentMessage === "Connection interrupted. Reconnecting\u2026") {
249982
- state.currentMessage = "Uploading encrypted bundle parts.";
249983
- await saveState(state);
249984
- emit(createSnapshotFromState(state));
249985
- }
249986
- },
249987
- onRetry: async () => {
249988
- if (state.currentMessage !== "Connection interrupted. Reconnecting\u2026") {
249989
- state.currentMessage = "Connection interrupted. Reconnecting\u2026";
249990
- await saveState(state);
249991
- emit(createSnapshotFromState(state));
249992
- }
249993
- },
250086
+ ...createUploadRetryHandlers({
250087
+ state,
250088
+ uploadingMessage: "Uploading encrypted bundle parts."
250089
+ }),
249994
250090
  parts: currentPartsToUpload,
249995
250091
  refreshPartUploadUrl: async (partNumber) => {
249996
250092
  const refreshedUrls = await refreshMultipartUploadPartUrls({
@@ -250492,7 +250588,11 @@ var init_localPrepService = __esm({
250492
250588
  filePath: encryptedPath,
250493
250589
  headers: session.requiredHeaders,
250494
250590
  uploadUrl: session.uploadUrl,
250495
- onProgress: onUploadProgress
250591
+ onProgress: onUploadProgress,
250592
+ ...createUploadRetryHandlers({
250593
+ state,
250594
+ uploadingMessage: "Uploading encrypted bundle."
250595
+ })
250496
250596
  });
250497
250597
  }
250498
250598
  state.upload.status = "uploaded";
@@ -252133,11 +252233,14 @@ var init_controlPlane2 = __esm({
252133
252233
  });
252134
252234
 
252135
252235
  // src/devbox/agentInit/remoteSession.ts
252136
- var isRemoteShellSession;
252236
+ var isRemoteSession;
252137
252237
  var init_remoteSession = __esm({
252138
252238
  "src/devbox/agentInit/remoteSession.ts"() {
252139
252239
  "use strict";
252140
- isRemoteShellSession = (env3 = process.env) => Boolean(env3["SSH_CONNECTION"] || env3["SSH_CLIENT"]);
252240
+ isRemoteSession = ({
252241
+ platform: platform3 = process.platform,
252242
+ env: env3 = process.env
252243
+ } = {}) => Boolean(env3["SSH_CONNECTION"] || env3["SSH_CLIENT"]) || platform3 === "linux" && !env3["DISPLAY"] && !env3["WAYLAND_DISPLAY"];
252141
252244
  }
252142
252245
  });
252143
252246
 
@@ -252239,9 +252342,9 @@ var init_service = __esm({
252239
252342
  buildAgentInitSignInAction = ({
252240
252343
  remote,
252241
252344
  siteUrl
252242
- }) => remote ? `Browser sign-in can't reach this machine over SSH, so ask the user to copy a fresh setup prompt from ${siteUrl}/app and send it to you.` : "Run `dvb agent-init login` in the background, and give the user the sign-in link it prints in case the browser didn't open. It waits until they finish signing in.";
252345
+ }) => remote ? `Browser sign-in can't reach this machine, so ask the user to copy a fresh setup prompt from ${siteUrl}/app and send it to you.` : "Run `dvb agent-init login` in the background, and give the user the sign-in link it prints in case the browser didn't open. It waits until they finish signing in.";
252243
252346
  buildAgentInitLoginRequiredMessage = () => `Not logged in to boxes.dev. ${buildAgentInitSignInAction({
252244
- remote: isRemoteShellSession(),
252347
+ remote: isRemoteSession(),
252245
252348
  siteUrl: resolveSiteUrl()
252246
252349
  })}`;
252247
252350
  openAgentInitSecretStore = async (homeDir2) => {
@@ -252508,7 +252611,7 @@ var init_signIn = __esm({
252508
252611
  const storedToken = await resolveStoredControlPlaneToken(store);
252509
252612
  const outcome = describeLoginCodeRejection({
252510
252613
  reason: result.reason,
252511
- remote: isRemoteShellSession(),
252614
+ remote: isRemoteSession(),
252512
252615
  siteUrl: resolveSiteUrl(),
252513
252616
  storedEmail: storedToken ? await readViewerEmail(storedToken) : null
252514
252617
  });
@@ -252524,7 +252627,7 @@ var init_signIn = __esm({
252524
252627
  `Unknown agent-init login argument: ${args[0]}`
252525
252628
  );
252526
252629
  }
252527
- if (isRemoteShellSession()) {
252630
+ if (isRemoteSession()) {
252528
252631
  throw new Error(
252529
252632
  buildAgentInitSignInAction({ remote: true, siteUrl: resolveSiteUrl() })
252530
252633
  );
@@ -253925,9 +254028,9 @@ var init_accounts = __esm({
253925
254028
  controlPlaneToken
253926
254029
  });
253927
254030
  const siteUrl = resolveSiteUrl();
253928
- if (isRemoteShellSession()) {
254031
+ if (isRemoteSession()) {
253929
254032
  console.log(
253930
- "Sign-ins can't reach this machine over SSH, so ask the user to open this link in their browser, connect an agent account or add a Codex model provider, and click Done:"
254033
+ "Sign-ins can't reach this machine from the user's computer, so ask the user to open this link in their browser, connect an agent account or add a Codex model provider, and click Done:"
253931
254034
  );
253932
254035
  console.log(
253933
254036
  ` ${buildAccountsRemotePageUrl({ email: viewer.email ?? null, siteUrl, userId: viewer.userId })}`
@@ -265318,7 +265421,7 @@ var init_desktopHandoff = __esm({
265318
265421
  detectDesktopHandoff = async () => resolveDesktopHandoff({
265319
265422
  installedApp: await findInstalledDesktopApp(),
265320
265423
  platform: process.platform,
265321
- remote: isRemoteShellSession(),
265424
+ remote: isRemoteSession(),
265322
265425
  readMacArch: readMacHardwareArch
265323
265426
  });
265324
265427
  buildSetupThreadHandoffMessage = (handoff, siteUrl) => {
@@ -265848,10 +265951,8 @@ var init_github = __esm({
265848
265951
  throw new Error("GitHub connection returned an invalid authorization URL.");
265849
265952
  }
265850
265953
  const authorizeUrl = result["authorizeUrl"];
265851
- if (isRemoteShellSession()) {
265852
- print(
265853
- "You're connected over SSH. Ask the user to open this link in their browser to connect GitHub:"
265854
- );
265954
+ if (isRemoteSession()) {
265955
+ print("Ask the user to open this link in their browser to connect GitHub:");
265855
265956
  print(authorizeUrl);
265856
265957
  } else if (!openBrowserFn(authorizeUrl)) {
265857
265958
  print("The browser did not open. Complete GitHub connection at:");
@@ -266017,9 +266118,9 @@ var init_github = __esm({
266017
266118
  print(instruction);
266018
266119
  return null;
266019
266120
  }
266020
- if (isRemoteShellSession()) {
266121
+ if (isRemoteSession()) {
266021
266122
  print(
266022
- "You're connected over SSH. Ask the user to open this link in their browser to continue on GitHub:"
266123
+ "Ask the user to open this link in their browser to continue on GitHub:"
266023
266124
  );
266024
266125
  print(url3);
266025
266126
  } else if (openBrowserFn(url3)) {
@@ -284247,7 +284348,7 @@ var init_setup = __esm({
284247
284348
  shouldShowLinuxDesktopAppDownload = ({
284248
284349
  platform: platform3 = process.platform,
284249
284350
  stdoutIsTTY = Boolean(process.stdout.isTTY),
284250
- remote = isRemoteShellSession(),
284351
+ remote = isRemoteSession(),
284251
284352
  installed
284252
284353
  }) => platform3 === "linux" && stdoutIsTTY && !remote && !installed;
284253
284354
  firstSetupCompleteMessage = {
@@ -287992,7 +288093,7 @@ var init_finalizeFlow = __esm({
287992
288093
  findLinuxDesktopAppEntryFn = findLinuxDesktopAppEntry,
287993
288094
  maybeOfferLinuxDesktopAppLaunchFn = maybeOfferLinuxDesktopAppLaunch,
287994
288095
  platform: platform3 = process.platform,
287995
- remote = isRemoteShellSession(),
288096
+ remote = isRemoteSession(),
287996
288097
  stdinIsTTY = Boolean(process.stdin.isTTY),
287997
288098
  stdoutIsTTY = Boolean(process.stdout.isTTY)
287998
288099
  }) => {
@@ -301511,4 +301612,4 @@ react/cjs/react-jsx-runtime.development.js:
301511
301612
  *)
301512
301613
  */
301513
301614
 
301514
- //# debugId=a9a5ab0a-d34f-5b1c-afa5-ae1d2d484362
301615
+ //# debugId=80505d4d-509b-54e0-9465-02dc4ecd0ba7
package/dist/bin/dvbd.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="80f22470-780a-5a8c-b11c-7df3703ba490")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="49e43ad2-daea-5188-8687-f5d818219194")}catch(e){}}();
4
4
  import { createRequire as __dvbCreateRequire } from "node:module";
5
5
  import { dirname as __dvbDirname } from "node:path";
6
6
  import { fileURLToPath as __dvbFileURLToPath } from "node:url";
@@ -64830,9 +64830,9 @@ var init_sentry = __esm({
64830
64830
  uncaughtExceptionMonitorInstalled = false;
64831
64831
  currentDevboxSentryUser = null;
64832
64832
  readBuildMetadata = () => {
64833
- const rawPackageVersion = "1.0.1111";
64834
- const rawGitSha = "5759d9e04c92cddf2fd051b9c9be0d4fb20b7ce9";
64835
- const rawSentryRelease = "boxes-dev-dvb@1.0.1111+5759d9e04c92cddf2fd051b9c9be0d4fb20b7ce9";
64833
+ const rawPackageVersion = "1.0.1113";
64834
+ const rawGitSha = "5c92512300006a85ac7be2bd93af7c9f48fb2799";
64835
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1113+5c92512300006a85ac7be2bd93af7c9f48fb2799";
64836
64836
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
64837
64837
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
64838
64838
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -67383,7 +67383,7 @@ var init_packageVersion = __esm({
67383
67383
  return path8.join(process.cwd(), "dvb");
67384
67384
  };
67385
67385
  readEmbeddedPackageVersion = () => {
67386
- const raw = "1.0.1111";
67386
+ const raw = "1.0.1113";
67387
67387
  return trimVersion(raw);
67388
67388
  };
67389
67389
  readNearestPackageMetadata = (basePath) => {
@@ -84340,4 +84340,4 @@ smol-toml/dist/index.js:
84340
84340
  *)
84341
84341
  */
84342
84342
 
84343
- //# debugId=80f22470-780a-5a8c-b11c-7df3703ba490
84343
+ //# debugId=49e43ad2-daea-5188-8687-f5d818219194
@@ -8,13 +8,13 @@
8
8
  "name": "@boxes-dev/managed-codex-install",
9
9
  "version": "0.0.0",
10
10
  "dependencies": {
11
- "@openai/codex": "0.159.0"
11
+ "@openai/codex": "0.166.0"
12
12
  }
13
13
  },
14
14
  "node_modules/@openai/codex": {
15
- "version": "0.159.0",
16
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0.tgz",
17
- "integrity": "sha512-nQWxAkzn+Rhr8TgtIhVhSlqvCytrMoqe+P8xoo4xxhCIBnzOfRs6SEmkMJfTPjkU3BYlsplwDOY2dbSp4+514g==",
15
+ "version": "0.166.0",
16
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0.tgz",
17
+ "integrity": "sha512-2Szlp1l1cz5TX1ccpX4Zok3DZrot9xeZe0km+6/1v8JmqxADwyJxKBJah4dBymkwtS25j/u6dipJusTOI97Z8Q==",
18
18
  "license": "Apache-2.0",
19
19
  "bin": {
20
20
  "codex": "bin/codex.js"
@@ -23,19 +23,19 @@
23
23
  "node": ">=16"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@openai/codex-darwin-arm64": "npm:@openai/codex@0.159.0-darwin-arm64",
27
- "@openai/codex-darwin-x64": "npm:@openai/codex@0.159.0-darwin-x64",
28
- "@openai/codex-linux-arm64": "npm:@openai/codex@0.159.0-linux-arm64",
29
- "@openai/codex-linux-x64": "npm:@openai/codex@0.159.0-linux-x64",
30
- "@openai/codex-win32-arm64": "npm:@openai/codex@0.159.0-win32-arm64",
31
- "@openai/codex-win32-x64": "npm:@openai/codex@0.159.0-win32-x64"
26
+ "@openai/codex-darwin-arm64": "npm:@openai/codex@0.166.0-darwin-arm64",
27
+ "@openai/codex-darwin-x64": "npm:@openai/codex@0.166.0-darwin-x64",
28
+ "@openai/codex-linux-arm64": "npm:@openai/codex@0.166.0-linux-arm64",
29
+ "@openai/codex-linux-x64": "npm:@openai/codex@0.166.0-linux-x64",
30
+ "@openai/codex-win32-arm64": "npm:@openai/codex@0.166.0-win32-arm64",
31
+ "@openai/codex-win32-x64": "npm:@openai/codex@0.166.0-win32-x64"
32
32
  }
33
33
  },
34
34
  "node_modules/@openai/codex-darwin-arm64": {
35
35
  "name": "@openai/codex",
36
- "version": "0.159.0-darwin-arm64",
37
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-darwin-arm64.tgz",
38
- "integrity": "sha512-D1x+5n2y0TE43ERJs3CbBDRPLQl968hpqsInOwYNhfnTOTT53McpfFa6+VfPWwmPi0zW0aJ0C97K+6MhNHYe6A==",
36
+ "version": "0.166.0-darwin-arm64",
37
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-darwin-arm64.tgz",
38
+ "integrity": "sha512-5fWH6qqUInACcRADIewjlnRxDb4QLe0uriwehiZz0+viuAAB8I+WWefqw4xwHvyKaxeiGX4uK56+vrgfvFk3FQ==",
39
39
  "cpu": [
40
40
  "arm64"
41
41
  ],
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "node_modules/@openai/codex-darwin-x64": {
52
52
  "name": "@openai/codex",
53
- "version": "0.159.0-darwin-x64",
54
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-darwin-x64.tgz",
55
- "integrity": "sha512-uNsvmDAYH2H7/uJi3NYtn0d+bpMHgovZyZwm62Q8q/cdd1rp5oEbk2Axe5pbyiWFwSpjdT6fbuY8gTdX2i7zjg==",
53
+ "version": "0.166.0-darwin-x64",
54
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-darwin-x64.tgz",
55
+ "integrity": "sha512-Vj5wXJPizKmrzNtnRNQf9PP6FJkG3iJU/UO3NE4WvkENZGoQfmImdwf4MVRI5NgwjSuC6LT0HbBRHPVVnwGHuw==",
56
56
  "cpu": [
57
57
  "x64"
58
58
  ],
@@ -67,9 +67,9 @@
67
67
  },
68
68
  "node_modules/@openai/codex-linux-arm64": {
69
69
  "name": "@openai/codex",
70
- "version": "0.159.0-linux-arm64",
71
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-linux-arm64.tgz",
72
- "integrity": "sha512-cm7ihiXIZILGQPWgak3ApOcRZ6beupDNPHVAJ9CyHxZSQPsTy6CSYg1GYLVe2DlRUQYprnXHZceOgheXo0PvHA==",
70
+ "version": "0.166.0-linux-arm64",
71
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-linux-arm64.tgz",
72
+ "integrity": "sha512-w0ScAsBr9aZKtIFrh6HN6KU2yjKKeSCzYfbb7DB0Ccj4BYPzeZtUeQprbycLCwuX3AFQdbdjapmLho2iot74jQ==",
73
73
  "cpu": [
74
74
  "arm64"
75
75
  ],
@@ -84,9 +84,9 @@
84
84
  },
85
85
  "node_modules/@openai/codex-linux-x64": {
86
86
  "name": "@openai/codex",
87
- "version": "0.159.0-linux-x64",
88
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-linux-x64.tgz",
89
- "integrity": "sha512-7ks+EeQjX33wfJXbggseyF0CJRFVgzDHA6BzC7mJjFsJKmdAuOFWMFeMeZe8vL/G6xEpL29wOdwR85sK49F0iA==",
87
+ "version": "0.166.0-linux-x64",
88
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-linux-x64.tgz",
89
+ "integrity": "sha512-CxDm3+D1cpbGJeHrdzINoG+3wn9BVncP4qpZaaNYkxe8iPtRJOYyCJnnPoVjWRIBvI9vPKbRoifsMSA5xDaUpw==",
90
90
  "cpu": [
91
91
  "x64"
92
92
  ],
@@ -101,9 +101,9 @@
101
101
  },
102
102
  "node_modules/@openai/codex-win32-arm64": {
103
103
  "name": "@openai/codex",
104
- "version": "0.159.0-win32-arm64",
105
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-win32-arm64.tgz",
106
- "integrity": "sha512-o4oHXi4IONlLyMRHOIxXTPG1OdbD7Pxmqd2AcYRWHXP1YjrdqdEQozqQLU05rdYGcfrwBwcBqPpGO9LLVHd0fg==",
104
+ "version": "0.166.0-win32-arm64",
105
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-win32-arm64.tgz",
106
+ "integrity": "sha512-LWO1cyGlxbKgeUM7QJ1a6QMSsJi++3PqgIi6BmIUBoj/kzZqRIR69UDMQgeU/9izzJFYMSbwt++lHnUFyjQXlA==",
107
107
  "cpu": [
108
108
  "arm64"
109
109
  ],
@@ -118,9 +118,9 @@
118
118
  },
119
119
  "node_modules/@openai/codex-win32-x64": {
120
120
  "name": "@openai/codex",
121
- "version": "0.159.0-win32-x64",
122
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.159.0-win32-x64.tgz",
123
- "integrity": "sha512-Fp+TghoUzxOguHj/WAxOIZCIJpTOb4pB9p90tf6+g2PSTWSCvqpawwxPmDuCMxKs8Sn1gO5zP621PoCkBt5cuQ==",
121
+ "version": "0.166.0-win32-x64",
122
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-win32-x64.tgz",
123
+ "integrity": "sha512-NS8Ps5oG5r19pCrMCUXwUqOui6odnUIoBlQkrjCJ+h1k6KiwCzC/+mI9d3nSZCqFoVONPBTmqyq8NYq3YaFGyA==",
124
124
  "cpu": [
125
125
  "x64"
126
126
  ],
@@ -3,6 +3,6 @@
3
3
  "private": true,
4
4
  "version": "0.0.0",
5
5
  "dependencies": {
6
- "@openai/codex": "0.159.0"
6
+ "@openai/codex": "0.166.0"
7
7
  }
8
8
  }
@@ -11,17 +11,17 @@ the free trial or subscribe to a paid plan.
11
11
 
12
12
  Current self-serve plans are:
13
13
 
14
- - Trial: $0, 20 free box-hours, Template box plus 2 awake devboxes, up to 2
14
+ - Trial: $0, 20 free box-hours, Template box plus 3 awake devboxes, up to 2
15
15
  projects.
16
16
  - Starter: $19 per paid seat per month, 50 included box-hours per user,
17
- Template box plus 4 awake devboxes, up to 5 projects, prepaid overage at $0.60
17
+ Template box plus 5 awake devboxes, up to 5 projects, prepaid overage at $0.40
18
18
  per extra box-hour.
19
- - Pro: $99 per paid seat per month, 250 included box-hours per user,
20
- Template box plus 10 awake devboxes, up to 10 projects, prepaid overage at
21
- $0.60 per extra box-hour.
22
- - Max: $249 per paid seat per month, 600 included box-hours per user,
23
- Template box plus 20 awake devboxes, up to 20 projects, prepaid overage at
24
- $0.60 per extra box-hour.
19
+ - Pro: $99 per paid seat per month, 300 included box-hours per user,
20
+ Template box plus 12 awake devboxes, up to 10 projects, prepaid overage at
21
+ $0.40 per extra box-hour.
22
+ - Max: $249 per paid seat per month, 750 included box-hours per user,
23
+ Template box plus 25 awake devboxes, up to 20 projects, prepaid overage at
24
+ $0.40 per extra box-hour.
25
25
 
26
26
  Team and enterprise arrangements may differ from these self-serve limits.
27
27
  Included box-hours, project limits, and awake-devbox limits apply per user;
@@ -103,15 +103,20 @@ cancellation.
103
103
 
104
104
  Paid seats receive the plan's included box-hours each billing period. If usage
105
105
  goes beyond the included amount, boxes.dev uses prepaid overage credits when
106
- available.
106
+ available. When boxes.dev lowers the overage rate, existing seats pay the new
107
+ rate for usage from then on, and box-hours already charged keep their price. If
108
+ usage is later corrected down, the removed box-hours are credited at the
109
+ current rate. A change to a plan's included box-hours takes effect at each
110
+ seat's next billing period.
107
111
 
108
112
  If a team member is not a team admin, billing controls usually show status and
109
113
  tell the member to contact a team admin.
110
114
 
111
- New teams that sign up at boxes.dev/alien will receive three months of Pro
112
- free. The account that creates the team will get the first Pro seat, including
113
- 250 box-hours each month. Extra usage will require prepaid credits. No card is
114
- required for the offer. Pro will end after three months unless a team admin
115
+ New teams that sign up at boxes.dev/conductor will receive one month of Pro
116
+ free, and new teams that sign up at boxes.dev/alien will receive three months.
117
+ The account that creates the team will get the first Pro seat, including 300
118
+ box-hours each month. Extra usage will require prepaid credits. No card is
119
+ required for the offer. Pro will end when the offer does unless a team admin
115
120
  chooses **Keep plan** in Billing; continuing will use the normal Pro price.
116
121
  The offer does not replace an existing account's or team's billing.
117
122
 
@@ -75,10 +75,12 @@ dvb-onbox whoami --json
75
75
 
76
76
  The JSON result contains the account's `userId`, `email`, and `name`. `email`
77
77
  and `name` are `null` when the account has none. `userId` is the account's
78
- stable ID and stays the same if its email address changes. The command needs no
79
- permission and works on a Template box, a devbox, and a Team Template editing
80
- machine. Use it when a script or tool needs to attribute work to the person who
81
- owns the box; it does not identify who sent a particular message.
78
+ stable ID and stays the same if its email address changes. On a devbox, the
79
+ result also includes the devbox's instance ID as `devboxId`; it is `null` on
80
+ any other box. The command needs no permission and works on a Template box, a
81
+ devbox, and a Team Template editing machine. Use it when a script or tool needs
82
+ to attribute work to the person who owns the box; it does not identify who sent
83
+ a particular message.
82
84
 
83
85
  ## Plan And Usage
84
86
 
@@ -19,6 +19,17 @@ preference. When auto-wake is off, passive navigation leaves the box
19
19
  asleep. Explicitly sending a message to a Codex or Claude thread will still
20
20
  wake its machine through the normal wake flow, even with auto-wake off.
21
21
 
22
+ The running box's status menu also has **Keep awake**, which keeps the box
23
+ awake for 1, 2, or 4 hours even when idle. Users turn it on while testing an
24
+ app through desktop localhost forwarding, which doesn't count as activity.
25
+ While it's on, a lightning icon shows next to the box name in the status pill,
26
+ and the pill's tooltip and the menu show the deadline. The box uses box-hours
27
+ the whole time, and billing limits still apply. **Turn off** in the same
28
+ submenu, or sleeping, resetting or rebooting the box, ends it. Then normal idle
29
+ sleep resumes unless other work keeps the box awake. Only the user can turn it
30
+ on, from the desktop app; it isn't offered on Team Template editing boxes.
31
+ Agents use keep-awake requests instead (below).
32
+
22
33
  When the box is sleeping, use Wake from the status pill, Terminal, Files,
23
34
  Git, or Ports. If a devbox is sleeping because the awake devbox limit is full,
24
35
  boxes.dev asks you to sleep another devbox before continuing.
@@ -210,10 +221,11 @@ again. Choosing the computer icon on a different box will move localhost there.
210
221
  On a new-thread draft, **Ports** remains available to inspect or release the
211
222
  chosen box.
212
223
 
213
- Keeping localhost does not freeze a branch, start an app, or keep the box awake.
214
- If it sleeps, select it and use the existing wake control. If it is removed or
215
- becomes unavailable, localhost stays assigned until you release it or choose
216
- another box. Other tools, including Terminal and Git, still follow selection.
224
+ Keeping localhost does not freeze a branch, start an app, or keep the box awake;
225
+ use **Keep awake** in the status menu for that. If it sleeps, select it and use
226
+ the existing wake control. If it is removed or becomes unavailable, localhost
227
+ stays assigned until you release it or choose another box. Other tools,
228
+ including Terminal and Git, still follow selection.
217
229
 
218
230
  Signing in to a Template box MCP temporarily forwards only its sign-in callback
219
231
  port. Your app's other ports stay on the box you chose. If that callback port is
@@ -286,8 +286,12 @@ project's setup page. The page lists five stages: planning the setup with the
286
286
  coding agent, uploading the project files (with a percentage), creating the
287
287
  Template box, unpacking the files on the Template box, and starting setup on
288
288
  the Template box. While the agent plans, the page shows when it prepares the
289
- project, when the user needs to act, when a check found issues in the plan,
290
- when a setup command fails, and when the setup plan is ready for approval.
289
+ project, when the user needs to act, when the plan still has unfinished parts,
290
+ when a check found other issues in the plan, when a setup command fails, and
291
+ when the setup plan is ready for approval. If a check finds no connected
292
+ account or available Codex model provider for the plan's coding agents, the
293
+ page asks the user to add one through `dvb agent-init accounts`, or to have the
294
+ agent switch the plan to a coding agent they've already connected.
291
295
  The planning stage spins only while the agent prepares the project. When setup
292
296
  can't continue until the user checks the coding agent, such as for a check
293
297
  that found issues or a plan ready for approval, the stage stops spinning and
@@ -427,15 +431,22 @@ client remains preferred. Missing database variables, authentication problems,
427
431
  missing MySQL clients, and PostgreSQL servers newer than the available client
428
432
  are reported before the full bundle is built.
429
433
 
434
+ The agent should run on the computer where the user develops the app. If it
435
+ runs somewhere else, such as Codex cloud, it should tell the user before
436
+ continuing. Setup will copy the project from that environment, so the
437
+ environment needs to run the app with its configuration and services. Files
438
+ and agent settings on the user's own computer won't be included.
439
+
430
440
  The prompt from **Get started**, the website's **New project** page, or the
431
441
  desktop app's **Set up with your coding agent** card has the agent run `dvb
432
442
  agent-init --login-code <code>`, which signs the CLI in without another
433
443
  browser sign-in. If the code has expired or was already used, the CLI keeps an
434
444
  existing CLI sign-in when it has one. Otherwise, `dvb agent-init login` opens
435
445
  Google sign-in in the browser, prints the link, and waits for the user to
436
- finish. Over SSH,
437
- the browser can't reach the CLI, so the agent asks the user to copy a fresh
438
- prompt instead.
446
+ finish. When the agent runs on another computer, the browser can't reach the
447
+ CLI, so the agent asks the user to copy a fresh prompt instead. The CLI
448
+ assumes another computer over SSH and on Linux without a display, which
449
+ includes cloud agent environments such as Codex cloud.
439
450
 
440
451
  Next, `dvb agent-init accounts` opens **Connect your accounts** in the
441
452
  browser. There the user connects Codex, Claude Code, or both, and can connect
@@ -448,8 +459,8 @@ connection allows Codex setup without an OpenAI account. **Done** becomes
448
459
  available once a coding agent is connected,
449
460
  and the command waits until the user chooses it. If an agent is already
450
461
  connected to boxes.dev, no new sign-in is needed; choose **Done** to continue
451
- setup with that account. Over SSH, the command prints
452
- a link for the user to open and exits: on that page, Codex shows a one-time
462
+ setup with that account. When the agent runs on another computer, the
463
+ command prints a link for the user to open and exits: on that page, Codex shows a one-time
453
464
  code to enter on ChatGPT, Claude Code asks for the code Claude shows, and the
454
465
  user tells the agent when they're done. **Use a code instead** switches a
455
466
  local page to the same code flows for setups where browser sign-in can't
@@ -464,8 +475,9 @@ the agent where the user can follow it. On a Mac or Linux computer with the
464
475
  desktop app installed, the agent offers to open it with
465
476
  `dvb agent-init open-desktop`, which opens the Template box on the setup
466
477
  thread. Without the app, the agent gives the download link for that computer
467
- (`https://boxes.dev/mac` or `https://boxes.dev/linux`), and on other
468
- computers or over SSH, it points to the mobile app. When setup finishes on a
478
+ (`https://boxes.dev/mac` or `https://boxes.dev/linux`). On other operating
479
+ systems, or when the agent runs on another computer, it points to the mobile
480
+ app. When setup finishes on a
469
481
  Mac or Linux computer with the desktop app installed, `dvb agent-init` opens the app on the setup thread, where the user
470
482
  can read the setup agent's summary. Otherwise, the agent lists the same
471
483
  choices. Either way, the agent also mentions `dvb agents <project>`, which
@@ -532,7 +544,9 @@ Each saved subscription row in desktop Configure agents shows a small bar for
532
544
  the weekly limit's remaining usage. A 5-hour bar appears below it only when
533
545
  that limit is low (below 20% left) or the account has no weekly limit. Hovering
534
546
  over the bars shows the same quota details as the thread composer, plus when
535
- the reading was taken if it is more than 15 minutes old. Opening Configure
547
+ the reading was taken if it is more than 15 minutes old. A Claude subscription
548
+ that has run out of a limit and is still working on extra usage shows **Using
549
+ extra usage** beside its name. Opening Configure
536
550
  agents asks the providers for fresh readings of saved subscriptions; an
537
551
  account whose saved sign-in has expired keeps its last reading until an agent
538
552
  uses it again. API key rows show when the key was last used and today's tokens,
@@ -191,6 +191,13 @@ has actually stopped. A canceled run does not snapshot, and changes it made
191
191
  before cancellation remain on the live Template box. Snapshot creation cannot
192
192
  be canceled after a script has completed successfully.
193
193
 
194
+ boxes.dev keeps the Template box awake for the whole run, through the
195
+ snapshot, even when nobody is connected, so a script can use its full timeout.
196
+ If a run stops before the script reports a result, for example because someone
197
+ put the Template box to sleep, it takes no snapshot, records the reason, and
198
+ keeps the output captured so far. Changes the script made may remain on the
199
+ Template box, so review them before running the script again.
200
+
194
201
  The Template page retains bounded diagnostics and recent run history, including
195
202
  the final output of a canceled run behind a collapsed **Show output** control.
196
203
  It offers the appropriate script or snapshot retry and lets the user dismiss a
@@ -309,6 +309,9 @@ start selected under **Add to**; a pasted Codex or Claude setup command selects
309
309
  only its agent. Adjust the selection, then choose **Add MCP** to save and
310
310
  authorize the connection.
311
311
 
312
+ Large MCP results in Codex may appear as shortened raw data when you reopen a
313
+ thread. Keep a separate copy of any result you need in full.
314
+
312
315
  Slack's official MCP server, `https://mcp.slack.com/mcp`, accepts OAuth sign-in
313
316
  only from apps registered with Slack, so boxes.dev can't sign in to it. Pasting
314
317
  that exact URL in **Add MCP** skips detection, opens **Advanced** with an
@@ -726,6 +729,17 @@ prepares. Free space is checked again before the files are copied onto the
726
729
  box. If the files will not fit, free up space or choose fewer files and retry;
727
730
  the warning keeps the existing draft intact.
728
731
 
732
+ When a Codex or Claude response finishes on desktop, the empty composer may show
733
+ a suggested next message in gray. Tab or Right Arrow moves it into the composer
734
+ for editing, Escape dismisses it, and typing replaces it. Enter does not send
735
+ it. Suggestions do not appear on mobile, and not every response gets one: some
736
+ Codex models and custom model providers do not support them, and Claude can skip
737
+ any response, including every response while the plan is close to a usage limit.
738
+ Suggestions use the person's agent plan or API credits. **Suggest
739
+ next messages** in **Settings → Agents → Agent replies** on desktop turns them
740
+ off. They disappear right away, though active Claude threads may keep generating
741
+ them.
742
+
729
743
  When the agent is working, the composer may stay available for follow-ups. Some
730
744
  follow-ups are queued and delivered after the current turn. They stay in the
731
745
  same user-bubble queue used during startup and reconnect. Queued follow-ups can
@@ -733,8 +747,12 @@ be edited, deleted, or restored. During an active Codex turn, `Steer now`
733
747
  interrupts the current turn and starts the oldest queued follow-up. Remaining
734
748
  messages stay queued in order.
735
749
 
750
+ A **Steer** message joins Codex's current response and may discard text it was
751
+ still writing. Completed messages will stay in the conversation, and running
752
+ commands may continue while Codex changes direction.
753
+
736
754
  Choose the default for both Codex and Claude in **Account → Agent replies** on
737
- desktop or **Settings → Coding agents → While an agent is working** on mobile.
755
+ desktop or **Settings → Coding agents → Follow-up messages** on mobile.
738
756
  **Queue** or **Steer** applies the same default across both apps. **App
739
757
  defaults** preserves each app's existing preference. Desktop Enter and the
740
758
  send button use that default; Cmd+Enter (Ctrl+Enter on Windows and Linux) uses
@@ -747,11 +765,13 @@ steer at its next available opportunity; a message sent during a final response
747
765
  may get a separate response afterward. Both actions support Claude's existing
748
766
  attachments.
749
767
 
750
- With **App defaults**, desktop Claude uses Steer for Enter and the send button,
751
- and Queue for Cmd+Enter (Ctrl+Enter on Windows and Linux). The send button's
752
- tooltip shows both shortcuts. Slash commands always wait for the current
753
- response. An idle thread starts normally either way. Once Claude accepts a
754
- steer, it cannot be edited or deleted as a waiting Queue message. If a thread
768
+ With **App defaults**, Claude uses Steer on desktop and mobile, unless the
769
+ user chose **Queue** with the mobile composer control on that phone. On
770
+ desktop, Enter and the send button steer, and Cmd+Enter (Ctrl+Enter on Windows
771
+ and Linux) queues. The send button's tooltip shows both shortcuts. Slash
772
+ commands always wait for the current response. An idle thread starts normally
773
+ either way. Once Claude accepts a steer, it cannot be edited or deleted as a
774
+ waiting Queue message. If a thread
755
775
  can't accept a steer, such as while Claude waits for an answer to its question,
756
776
  the message will show **Message send failed** instead of being queued.
757
777
  **Edit message** will return it to the composer and show the reason; then queue
@@ -1110,7 +1130,26 @@ question also includes **Type something else...** for a custom answer and
1110
1130
  the current partial selections or custom text back as context so Claude can
1111
1131
  reformulate the question; it does not record a completed answer. Some
1112
1132
  single-choice answers submit immediately, while multi-select and custom
1113
- answers use a Submit action.
1133
+ answers use a Submit action. Answering a question on a sleeping box wakes the
1134
+ box and sends the answer once the app reconnects.
1135
+
1136
+ To let Claude continue without an answer, choose **Question auto-continue
1137
+ timeout** under **Settings → Agents → Agent replies** on desktop or
1138
+ **Settings → Coding agents** on mobile. The account-wide choices are **Never**
1139
+ (the default), **60s**, **5m**, and **10m**. After the selected interval, Claude
1140
+ will receive a message explaining that you have not responded and asking it
1141
+ to proceed using its best judgment. This applies to Claude question cards,
1142
+ not permission requests or plan approvals.
1143
+
1144
+ The timer starts when each question appears and will restart when you interact
1145
+ with its card. When time runs out, Claude will receive any partial selections
1146
+ or custom text that reached the box. It will keep running with the app closed
1147
+ while the box is awake. Changing the setting will affect subsequent
1148
+ questions. A sleeping box must wake before Claude can continue. A box running
1149
+ an older version of boxes.dev will keep waiting until its software updates.
1150
+ Older apps cannot report card interaction or partial answers; update the app
1151
+ to use those behaviors. Claude's own terminal setting applies separately in
1152
+ the CLI view.
1114
1153
 
1115
1154
  Claude Code turns can usually be stopped while Claude Code is working or
1116
1155
  streaming. The composer and transcript show queued prompts that Claude Code
@@ -1121,9 +1160,12 @@ session and weekly quota with reset times. That quota is shared across
1121
1160
  Template boxes and devboxes using the same Anthropic organization and account.
1122
1161
  If a thread is still connected with credentials from before a re-authentication,
1123
1162
  it continues to show the quota for the account scope that thread is actually
1124
- using. The quota details name that account. When Claude Code is using an API
1125
- key, the composer shows a key icon instead, with today's token usage for that
1126
- key when available.
1163
+ using. The quota details name that account. If the account has extra usage
1164
+ turned on, Claude Code keeps working after a session or weekly limit runs out,
1165
+ and Anthropic bills that work as extra usage. The limit still shows red at 0%,
1166
+ and the quota details add **Using extra usage** in amber. When Claude Code is
1167
+ using an API key, the composer shows a key icon instead, with today's token
1168
+ usage for that key when available.
1127
1169
 
1128
1170
  On desktop, boxes.dev folds intermediate activity for an older Claude Code turn
1129
1171
  after the user prompt and final agent reply are both available. The current
@@ -1173,6 +1215,15 @@ editing. Desktop and mobile drop the rewound turns; file changes those turns
1173
1215
  made stay on the machine. Codex refuses the rewind while a turn is running, so
1174
1216
  stop the turn first.
1175
1217
 
1218
+ In Codex's managed terminal, the default `/plugins` list includes local
1219
+ marketplaces and plugins already installed for the signed-in ChatGPT account.
1220
+ Installed plugins remain available to mention in prompts when enabled and
1221
+ allowed by the account's admin. The default list omits uninstalled global
1222
+ ChatGPT catalog entries and their featured
1223
+ recommendations. Other plugin discovery and installation options are described
1224
+ under **Plugins** above. This applies to both the desktop CLI view and the
1225
+ boxes.dev CLI on the user's computer.
1226
+
1176
1227
  A managed Claude Code CLI stays bound to the boxes.dev thread and working
1177
1228
  directory it opened. Claude's Agent View and Remote Control are unavailable in
1178
1229
  that CLI. Commands that would replace or move its session—`/clear`, `/new`,
@@ -1299,6 +1350,16 @@ without the row.
1299
1350
  Devboxes nest under the devbox that started them at every level, and in the
1300
1351
  main list a group moves up with its newest thread.
1301
1352
 
1353
+ On desktop, an open group lists its first 5 devboxes, and **Load more
1354
+ devboxes** adds 15 at a time. A devbox folds into an **N muted devboxes** row
1355
+ at the end of its group when all of its threads are muted, none is unread or
1356
+ waiting for input, and it hasn't started devboxes of its own. The row appears
1357
+ only when at least two devboxes fold and at least one stays listed. It shows
1358
+ how many muted devboxes are working, starts closed, remembers whether it was
1359
+ left open, and lists 15 muted devboxes at a time. While the row is closed, the
1360
+ devbox with the open thread stays listed. On a phone, groups don't page and
1361
+ don't fold muted devboxes.
1362
+
1302
1363
  A pinned devbox stays under **Pinned**, and a devbox in a different folder from
1303
1364
  its parent stays in its folder. A devbox in the same folder as its parent nests
1304
1365
  under it there. Threads an agent starts on an existing devbox stay on that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxes-dev/dvb-runtime",
3
- "version": "1.0.1111",
3
+ "version": "1.0.1113",
4
4
  "description": "Runtime for the boxes.dev CLI. Install @boxes-dev/dvb to use the CLI.",
5
5
  "homepage": "https://boxes.dev",
6
6
  "type": "module",
@@ -77,5 +77,5 @@
77
77
  "e2b": "^2.18.0",
78
78
  "ink-testing-library": "^4.0.0"
79
79
  },
80
- "devboxReleasedAt": "2026-11-03T05:30:51Z"
80
+ "devboxReleasedAt": "2026-11-05T04:30:52Z"
81
81
  }