@mu-crew/mu 3.5.0 → 3.6.1

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
@@ -5541,6 +5541,7 @@ async function claimSelf(db, localId, opts) {
5541
5541
  // src/tasks/wait.ts
5542
5542
  var currentWaitSleep = (ms) => new Promise((resolve7) => setTimeout(resolve7, ms));
5543
5543
  var pollCount = 0;
5544
+ var DEFAULT_STUCK_AFTER_MS = 12e4;
5544
5545
  var defaultStuckWarn = (msg) => {
5545
5546
  process.stderr.write(msg);
5546
5547
  };
@@ -5586,7 +5587,7 @@ async function waitForTasks(db, input, opts) {
5586
5587
  const wantAny = opts.any === true;
5587
5588
  const timeoutMs = opts.timeoutMs ?? 6e5;
5588
5589
  const pollMs = opts.pollMs ?? 1e3;
5589
- const stuckAfterMs = opts.stuckAfterMs ?? 3e5;
5590
+ const stuckAfterMs = opts.stuckAfterMs ?? DEFAULT_STUCK_AFTER_MS;
5590
5591
  const onStall = opts.onStall ?? "warn";
5591
5592
  const deadline = timeoutMs > 0 ? Date.now() + timeoutMs : Number.POSITIVE_INFINITY;
5592
5593
  for (const ref of refs) {
@@ -7309,6 +7310,7 @@ function mapMurmurState(token, since) {
7309
7310
  break;
7310
7311
  case "idle":
7311
7312
  case "done":
7313
+ case "error":
7312
7314
  case "crashed":
7313
7315
  state = "needs_input";
7314
7316
  break;
@@ -7362,7 +7364,7 @@ function remoteReading(agent, panes) {
7362
7364
  (entry) => typeof entry === "object" && entry !== null && "kind" in entry && typeof entry.kind === "string" ? [entry.kind] : []
7363
7365
  )
7364
7366
  ) : /* @__PURE__ */ new Set();
7365
- const state = kinds.has("crashed") ? "needs_input" : kinds.has("blocked") ? "needs_permission" : kinds.has("done") ? "needs_input" : row.activity === "running" ? "busy" : "needs_input";
7367
+ const state = kinds.has("crashed") || kinds.has("error") ? "needs_input" : kinds.has("blocked") ? "needs_permission" : kinds.has("done") ? "needs_input" : row.activity === "running" ? "busy" : "needs_input";
7366
7368
  return {
7367
7369
  state,
7368
7370
  source: "murmur",