@boxes-dev/dvb-runtime 1.0.1011 → 1.0.1012

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.
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]="e530aef8-c7ef-53e3-8c2f-a43f0c6105a0")}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]="3dbf8e13-553c-5967-93e4-8060030a06c8")}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";
@@ -101146,8 +101146,8 @@ var init_otel = __esm({
101146
101146
  return trimmed && trimmed.length > 0 ? trimmed : void 0;
101147
101147
  };
101148
101148
  readBuildMetadata = () => {
101149
- const rawPackageVersion = "1.0.1011";
101150
- const rawGitSha = "c2ead907afbababb4304adca09a2b34ac9bcabdf";
101149
+ const rawPackageVersion = "1.0.1012";
101150
+ const rawGitSha = "184a335b89e66a5c47fdc4b334d88b2aff043dbb";
101151
101151
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
101152
101152
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
101153
101153
  return { packageVersion, gitSha };
@@ -133553,9 +133553,9 @@ var init_sentry = __esm({
133553
133553
  uncaughtExceptionMonitorInstalled = false;
133554
133554
  currentDevboxSentryUser = null;
133555
133555
  readBuildMetadata2 = () => {
133556
- const rawPackageVersion = "1.0.1011";
133557
- const rawGitSha = "c2ead907afbababb4304adca09a2b34ac9bcabdf";
133558
- const rawSentryRelease = "boxes-dev-dvb@1.0.1011+c2ead907afbababb4304adca09a2b34ac9bcabdf";
133556
+ const rawPackageVersion = "1.0.1012";
133557
+ const rawGitSha = "184a335b89e66a5c47fdc4b334d88b2aff043dbb";
133558
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1012+184a335b89e66a5c47fdc4b334d88b2aff043dbb";
133559
133559
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
133560
133560
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
133561
133561
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -138757,7 +138757,7 @@ var init_packageVersion = __esm({
138757
138757
  return path17.join(process.cwd(), "dvb");
138758
138758
  };
138759
138759
  readEmbeddedPackageVersion = () => {
138760
- const raw = "1.0.1011";
138760
+ const raw = "1.0.1012";
138761
138761
  return trimVersion(raw);
138762
138762
  };
138763
138763
  readNearestPackageMetadata = (basePath) => {
@@ -299431,6 +299431,57 @@ var init_databaseDumpTools = __esm({
299431
299431
  }
299432
299432
  });
299433
299433
 
299434
+ // ../../../../shared/initPrep/src/localScanRecovery.mjs
299435
+ var recoverAbandonedLocalScanState;
299436
+ var init_localScanRecovery = __esm({
299437
+ "../../../../shared/initPrep/src/localScanRecovery.mjs"() {
299438
+ "use strict";
299439
+ init_devboxCore2();
299440
+ recoverAbandonedLocalScanState = (state) => {
299441
+ const message = "This scan stopped when the app closed. Retry it to finish reviewing this section.";
299442
+ const stopped = /* @__PURE__ */ new Set();
299443
+ for (const category of DESKTOP_INIT_SCAN_CATEGORIES) {
299444
+ const scan = state.scanState[category];
299445
+ if (scan.status !== "running" && scan.status !== "rescanning") continue;
299446
+ stopped.add(category);
299447
+ state.scanState[category] = {
299448
+ ...scan,
299449
+ status: "failed",
299450
+ latestMessage: message,
299451
+ error: {
299452
+ code: DESKTOP_LOCAL_CODEX_SCAN_STOPPED_ERROR_CODE,
299453
+ message,
299454
+ retryable: true,
299455
+ requestId: null
299456
+ },
299457
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString()
299458
+ };
299459
+ }
299460
+ if (state.setupReviewState) {
299461
+ state.setupReviewState.sections = state.setupReviewState.sections.map(
299462
+ (section) => stopped.has(section.scanCategory) ? {
299463
+ ...section,
299464
+ status: "failed",
299465
+ scanFullyCompleted: false,
299466
+ approvedAt: null,
299467
+ feedbackOpen: false,
299468
+ errorCode: DESKTOP_LOCAL_CODEX_SCAN_STOPPED_ERROR_CODE,
299469
+ errorMessage: message,
299470
+ errorReason: null,
299471
+ errorRetryable: true
299472
+ } : section
299473
+ );
299474
+ }
299475
+ state.phase = DESKTOP_INIT_SCAN_CATEGORIES.some(
299476
+ (category) => state.scanState[category].status === "queued"
299477
+ ) ? "local_scan_pending" : "awaiting_setup_review";
299478
+ state.currentMessage = "Continue reviewing your setup scans.";
299479
+ state.latestError = null;
299480
+ return state;
299481
+ };
299482
+ }
299483
+ });
299484
+
299434
299485
  // ../../../../shared/initPrep/src/shallowGit.mjs
299435
299486
  import { execFile as execFile4 } from "node:child_process";
299436
299487
  import fs33 from "node:fs/promises";
@@ -304362,6 +304413,7 @@ var SNAPSHOT_VERSION, X25519_SPKI_DER_PREFIX, DATABASE_DUMP_TIMEOUT_MS, DATABASE
304362
304413
  var init_localPrepService = __esm({
304363
304414
  "../../../../shared/initPrep/src/localPrepService.mjs"() {
304364
304415
  "use strict";
304416
+ init_localScanRecovery();
304365
304417
  init_shallowGit();
304366
304418
  init_repoSshSetup();
304367
304419
  init_devboxCore2();
@@ -306058,7 +306110,8 @@ var init_localPrepService = __esm({
306058
306110
  accountScope,
306059
306111
  homeDir: homeDir2,
306060
306112
  projectId,
306061
- repoRoot
306113
+ repoRoot,
306114
+ skipIfHeld = false
306062
306115
  }) => {
306063
306116
  const lockPath = resolveDesktopInitLocalLockPath({
306064
306117
  accountScope,
@@ -306070,12 +306123,14 @@ var init_localPrepService = __esm({
306070
306123
  if (existing && Number.isInteger(existing.pid) && existing.pid > 0) {
306071
306124
  try {
306072
306125
  process25.kill(existing.pid, 0);
306126
+ if (skipIfHeld) return null;
306073
306127
  if (existing.pid !== process25.pid) {
306074
306128
  throw new Error(
306075
306129
  `Desktop init is already running for this project (pid ${existing.pid}).`
306076
306130
  );
306077
306131
  }
306078
306132
  } catch (error55) {
306133
+ if (skipIfHeld && error55?.code === "EPERM") return null;
306079
306134
  if (!(error55 && typeof error55 === "object" && error55.code === "ESRCH")) {
306080
306135
  throw error55;
306081
306136
  }
@@ -309838,7 +309893,7 @@ var init_localPrepService = __esm({
309838
309893
  setupPlan: envEnrichedSetupPlan
309839
309894
  });
309840
309895
  await writeJsonFile4(setupPlanPath, enrichedSetupPlan, 384);
309841
- state.phase = "awaiting_setup_review";
309896
+ state.phase = areInitialScanCategoriesResolved(state.scanState) ? "awaiting_setup_review" : "local_scan_pending";
309842
309897
  state.setupReviewState = buildReviewState({
309843
309898
  accountScope: getAccountScope(),
309844
309899
  homeDir: homeDir2,
@@ -309997,7 +310052,7 @@ var init_localPrepService = __esm({
309997
310052
  userEnvFiles: state.userEnvFiles ?? []
309998
310053
  });
309999
310054
  await writeJsonFile4(setupPlanPath, enrichedSetupPlan, 384);
310000
- state.phase = "awaiting_setup_review";
310055
+ state.phase = areInitialScanCategoriesResolved(state.scanState) ? "awaiting_setup_review" : "local_scan_pending";
310001
310056
  state.setupReviewState = buildReviewState({
310002
310057
  accountScope: getAccountScope(),
310003
310058
  homeDir: homeDir2,
@@ -312176,7 +312231,33 @@ var init_localPrepService = __esm({
312176
312231
  async getSnapshot(request2) {
312177
312232
  return await withResolvedAccountScope(async () => {
312178
312233
  const repo = normalizeRepo(request2.repo);
312179
- const state = await loadState(repo.projectId);
312234
+ const state = await withStateMutation(repo.projectId, async () => {
312235
+ const saved = await loadState(repo.projectId);
312236
+ if (saved?.phase !== "local_scan_running" || activeScanWorkByProject.has(repo.projectId) || activeLocalWorkByProject.has(repo.projectId))
312237
+ return saved;
312238
+ const lock = await acquireLocalLock({
312239
+ accountScope: getAccountScope(),
312240
+ homeDir: homeDir2,
312241
+ projectId: repo.projectId,
312242
+ repoRoot: repo.repoRoot,
312243
+ skipIfHeld: true
312244
+ });
312245
+ if (!lock) return saved;
312246
+ try {
312247
+ const current = await loadState(repo.projectId);
312248
+ if (current?.phase === "local_scan_running" && !activeScanWorkByProject.has(repo.projectId) && !activeLocalWorkByProject.has(repo.projectId)) {
312249
+ recoverAbandonedLocalScanState(current);
312250
+ await saveState(current);
312251
+ }
312252
+ return current;
312253
+ } finally {
312254
+ await releaseLocalLock({
312255
+ accountScope: getAccountScope(),
312256
+ homeDir: homeDir2,
312257
+ projectId: repo.projectId
312258
+ });
312259
+ }
312260
+ });
312180
312261
  return state ? createSnapshotFromState(await ensureRepoSshPublicKeyInState(state)) : latestLocalPrepSnapshotByProject.get(repo.projectId) ?? {
312181
312262
  version: SNAPSHOT_VERSION,
312182
312263
  phase: "project_selection",
@@ -359631,4 +359712,4 @@ react/cjs/react-jsx-runtime.development.js:
359631
359712
  *)
359632
359713
  */
359633
359714
 
359634
- //# debugId=e530aef8-c7ef-53e3-8c2f-a43f0c6105a0
359715
+ //# debugId=3dbf8e13-553c-5967-93e4-8060030a06c8
package/dist/bin/dvbd.mjs CHANGED
@@ -96328,8 +96328,8 @@ var init_otel = __esm({
96328
96328
  return trimmed && trimmed.length > 0 ? trimmed : void 0;
96329
96329
  };
96330
96330
  readBuildMetadata = () => {
96331
- const rawPackageVersion = "1.0.1011";
96332
- const rawGitSha = "c2ead907afbababb4304adca09a2b34ac9bcabdf";
96331
+ const rawPackageVersion = "1.0.1012";
96332
+ const rawGitSha = "184a335b89e66a5c47fdc4b334d88b2aff043dbb";
96333
96333
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
96334
96334
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
96335
96335
  return { packageVersion, gitSha };
@@ -128624,9 +128624,9 @@ var init_sentry = __esm({
128624
128624
  uncaughtExceptionMonitorInstalled = false;
128625
128625
  currentDevboxSentryUser = null;
128626
128626
  readBuildMetadata2 = () => {
128627
- const rawPackageVersion = "1.0.1011";
128628
- const rawGitSha = "c2ead907afbababb4304adca09a2b34ac9bcabdf";
128629
- const rawSentryRelease = "boxes-dev-dvb@1.0.1011+c2ead907afbababb4304adca09a2b34ac9bcabdf";
128627
+ const rawPackageVersion = "1.0.1012";
128628
+ const rawGitSha = "184a335b89e66a5c47fdc4b334d88b2aff043dbb";
128629
+ const rawSentryRelease = "boxes-dev-dvb@1.0.1012+184a335b89e66a5c47fdc4b334d88b2aff043dbb";
128630
128630
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
128631
128631
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
128632
128632
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -130826,7 +130826,7 @@ var init_packageVersion = __esm({
130826
130826
  return path8.join(process.cwd(), "dvb");
130827
130827
  };
130828
130828
  readEmbeddedPackageVersion = () => {
130829
- const raw = "1.0.1011";
130829
+ const raw = "1.0.1012";
130830
130830
  return trimVersion(raw);
130831
130831
  };
130832
130832
  readNearestPackageMetadata = (basePath) => {
@@ -474,9 +474,11 @@ The review page groups findings into:
474
474
  Each group can be reviewed, approved, rescanned with feedback, or retried if a
475
475
  scan was interrupted or stopped. If a scan is taking too long, choose **Stop**
476
476
  in its header, then **Retry scan** when you want to try again. Stopping one scan
477
- will preserve the other scans and your completed reviews. Quiet scans can keep
478
- running until they finish or you stop them. Users can include or exclude
479
- individual items before approval. Setup cannot continue until the required
477
+ will preserve the other scans and your completed reviews. If the desktop app
478
+ closes during a scan, reopen your project under **Setups in progress** and
479
+ choose **Retry scan** for any stopped section. Completed reviews will be kept.
480
+ Quiet scans can keep running until they finish or you stop them. Users can
481
+ include or exclude individual items before approval. Setup cannot continue until the required
480
482
  review sections are approved.
481
483
  The review page also has an optional freeform note for anything the setup coding
482
484
  agent should know; that note is included in the approved setup plan for the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxes-dev/dvb-runtime",
3
- "version": "1.0.1011",
3
+ "version": "1.0.1012",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "imports": {
@@ -77,5 +77,5 @@
77
77
  "e2b": "^2.18.0",
78
78
  "ink-testing-library": "^4.0.0"
79
79
  },
80
- "devboxReleasedAt": "2026-09-17T18:42:44Z"
80
+ "devboxReleasedAt": "2026-09-18T19:55:09Z"
81
81
  }