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