@adhdev/daemon-core 0.9.82-rc.543 → 0.9.82-rc.545

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.mjs CHANGED
@@ -414,10 +414,10 @@ function readInjected(value) {
414
414
  }
415
415
  function getDaemonBuildInfo() {
416
416
  if (cached) return cached;
417
- const commit = readInjected(true ? "ae5a5c1199ad4270aa45c5f938ad931e3bdc7a7d" : void 0) ?? "unknown";
418
- const commitShort = readInjected(true ? "ae5a5c11" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
- const version = readInjected(true ? "0.9.82-rc.543" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
- const builtAt = readInjected(true ? "2026-07-16T07:10:31.955Z" : void 0);
417
+ const commit = readInjected(true ? "df29d26241184dffe55023c30bc471ad6c68001f" : void 0) ?? "unknown";
418
+ const commitShort = readInjected(true ? "df29d262" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
419
+ const version = readInjected(true ? "0.9.82-rc.545" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
420
+ const builtAt = readInjected(true ? "2026-07-16T10:55:57.323Z" : void 0);
421
421
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
422
422
  return cached;
423
423
  }
@@ -7692,7 +7692,18 @@ var init_mesh_runtime_store = __esm({
7692
7692
  taskId: entry.taskId ?? null,
7693
7693
  kind: entry.kind,
7694
7694
  priority: entry.priority ?? 0,
7695
- message: entry.message,
7695
+ // MESH-DELIVERY-MESSAGE-NOTNULL: the `message` column is NOT NULL, but a
7696
+ // re-dispatch / reclaim / idle-assign path can reach here with an undefined
7697
+ // message (a claimed task whose payload predates the message field, or a
7698
+ // slimmed re-drive entry). better-sqlite3 binds undefined as NULL, so the
7699
+ // bare `entry.message` threw 'NOT NULL constraint failed' and — because this
7700
+ // insert runs inside triggerMeshQueue — took down the ENTIRE queue drain
7701
+ // (fresh enqueue, pending-claim recovery, idle-assign, MAGI replica launch),
7702
+ // stranding all delegation. A delivery record's message is informational
7703
+ // ack-tracking, so coercing an absent message to '' preserves the row and the
7704
+ // drain instead of crashing. Matches the `?? null` defensive coercion every
7705
+ // other optional column here already uses.
7706
+ message: entry.message ?? "",
7696
7707
  status: entry.status,
7697
7708
  deliverAfter: entry.deliverAfter ?? null,
7698
7709
  expiresAt: entry.expiresAt ?? null,
@@ -14062,6 +14073,17 @@ function readCachedInlineMeshActiveSessionDetails(node) {
14062
14073
  ...readStringValue(fallbackSession.lastMessagePreview, fallbackSession.last_message_preview) ? { lastMessagePreview: readStringValue(fallbackSession.lastMessagePreview, fallbackSession.last_message_preview) } : {},
14063
14074
  ...readStringValue(fallbackSession.lastMessageRole, fallbackSession.last_message_role) ? { lastMessageRole: readStringValue(fallbackSession.lastMessageRole, fallbackSession.last_message_role) } : {},
14064
14075
  ...readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) !== void 0 ? { lastMessageAt: readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) } : {},
14076
+ // RESTORE-STICK: carry the worker's AUTHORITATIVE dashboard hide/mute state and the
14077
+ // raw per-session user override (userHidden/userMuted) through the cached inline-mesh
14078
+ // active-session entry. The worker's mesh_status slim (mcp-server mesh-tools-status.ts)
14079
+ // now ships these from its own status/builders resolution, which already honors a
14080
+ // manual restore/un-mute. Without carrying them here, the coordinator's cloud snapshot
14081
+ // append re-derives hide/mute purely from mesh policy and overwrites the user's manual
14082
+ // un-hide every snapshot — the restore flickered visible then re-hid.
14083
+ ...readBooleanValue(fallbackSession.surfaceHidden) !== void 0 ? { surfaceHidden: readBooleanValue(fallbackSession.surfaceHidden) } : {},
14084
+ ...readBooleanValue(fallbackSession.muted) !== void 0 ? { muted: readBooleanValue(fallbackSession.muted) } : {},
14085
+ ...readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) !== void 0 ? { userHidden: readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) } : {},
14086
+ ...readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) !== void 0 ? { userMuted: readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) } : {},
14065
14087
  isCached: true
14066
14088
  }];
14067
14089
  }