nightralph 0.0.31 → 0.0.32

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/index.js CHANGED
@@ -2220,10 +2220,17 @@ async function runWaves(tickets, specBody, agentCmd, model, timeout, logsDir, di
2220
2220
  );
2221
2221
  }
2222
2222
  if (waveCompleted === 0) {
2223
+ const remaining3 = findReadyTickets(tickets).filter((t) => !failedNums.has(t.num));
2224
+ if (remaining3.length === 0) {
2225
+ d.log(
2226
+ "\nNo tickets completed this wave and no ready tickets remain. Stopping."
2227
+ );
2228
+ break;
2229
+ }
2223
2230
  d.log(
2224
- "\nNo tickets completed this wave. Stopping."
2231
+ `
2232
+ No tickets completed this wave. ${remaining3.length} ready ticket${remaining3.length === 1 ? "" : "s"} remain; continuing.`
2225
2233
  );
2226
- break;
2227
2234
  }
2228
2235
  }
2229
2236
  const remaining = tickets.filter(
@@ -2554,10 +2561,19 @@ Merge stopped at ${mergeResult.stoppedAt.branch}`
2554
2561
  }
2555
2562
  }
2556
2563
  if (waveCompleted === 0) {
2564
+ const remaining3 = findReadyTickets(
2565
+ opts.tickets
2566
+ ).filter((t) => !failedNums.has(t.num));
2567
+ if (remaining3.length === 0) {
2568
+ d.log(
2569
+ "\nNo tickets completed this wave and no ready tickets remain. Stopping."
2570
+ );
2571
+ break;
2572
+ }
2557
2573
  d.log(
2558
- "\nNo tickets completed this wave. Stopping."
2574
+ `
2575
+ No tickets completed this wave. ${remaining3.length} ready ticket${remaining3.length === 1 ? "" : "s"} remain; continuing.`
2559
2576
  );
2560
- break;
2561
2577
  }
2562
2578
  }
2563
2579
  const remaining = opts.tickets.filter(