@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.543",
3
+ "version": "0.9.82-rc.545",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "author": "vilmire",
48
48
  "license": "AGPL-3.0-or-later",
49
49
  "dependencies": {
50
- "@adhdev/mesh-shared": "0.9.82-rc.543",
51
- "@adhdev/session-host-core": "0.9.82-rc.543",
50
+ "@adhdev/mesh-shared": "0.9.82-rc.545",
51
+ "@adhdev/session-host-core": "0.9.82-rc.545",
52
52
  "@agentclientprotocol/sdk": "^0.16.1",
53
53
  "ajv": "^8.20.0",
54
54
  "ajv-formats": "^3.0.1",
@@ -1205,6 +1205,21 @@ export function readCachedInlineMeshActiveSessionDetails(node: any): Array<Recor
1205
1205
  ? { lastMessageRole: readStringValue(fallbackSession.lastMessageRole, fallbackSession.last_message_role) } : {}),
1206
1206
  ...(readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) !== undefined
1207
1207
  ? { lastMessageAt: readNumberValue(fallbackSession.lastMessageAt, fallbackSession.last_message_at) } : {}),
1208
+ // RESTORE-STICK: carry the worker's AUTHORITATIVE dashboard hide/mute state and the
1209
+ // raw per-session user override (userHidden/userMuted) through the cached inline-mesh
1210
+ // active-session entry. The worker's mesh_status slim (mcp-server mesh-tools-status.ts)
1211
+ // now ships these from its own status/builders resolution, which already honors a
1212
+ // manual restore/un-mute. Without carrying them here, the coordinator's cloud snapshot
1213
+ // append re-derives hide/mute purely from mesh policy and overwrites the user's manual
1214
+ // un-hide every snapshot — the restore flickered visible then re-hid.
1215
+ ...(readBooleanValue(fallbackSession.surfaceHidden) !== undefined
1216
+ ? { surfaceHidden: readBooleanValue(fallbackSession.surfaceHidden) } : {}),
1217
+ ...(readBooleanValue(fallbackSession.muted) !== undefined
1218
+ ? { muted: readBooleanValue(fallbackSession.muted) } : {}),
1219
+ ...(readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) !== undefined
1220
+ ? { userHidden: readBooleanValue(fallbackSession.userHidden, fallbackSession.user_hidden) } : {}),
1221
+ ...(readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) !== undefined
1222
+ ? { userMuted: readBooleanValue(fallbackSession.userMuted, fallbackSession.user_muted) } : {}),
1208
1223
  isCached: true,
1209
1224
  }];
1210
1225
  }
@@ -1417,7 +1417,18 @@ export class MeshRuntimeStore {
1417
1417
  taskId: entry.taskId ?? null,
1418
1418
  kind: entry.kind,
1419
1419
  priority: entry.priority ?? 0,
1420
- message: entry.message,
1420
+ // MESH-DELIVERY-MESSAGE-NOTNULL: the `message` column is NOT NULL, but a
1421
+ // re-dispatch / reclaim / idle-assign path can reach here with an undefined
1422
+ // message (a claimed task whose payload predates the message field, or a
1423
+ // slimmed re-drive entry). better-sqlite3 binds undefined as NULL, so the
1424
+ // bare `entry.message` threw 'NOT NULL constraint failed' and — because this
1425
+ // insert runs inside triggerMeshQueue — took down the ENTIRE queue drain
1426
+ // (fresh enqueue, pending-claim recovery, idle-assign, MAGI replica launch),
1427
+ // stranding all delegation. A delivery record's message is informational
1428
+ // ack-tracking, so coercing an absent message to '' preserves the row and the
1429
+ // drain instead of crashing. Matches the `?? null` defensive coercion every
1430
+ // other optional column here already uses.
1431
+ message: entry.message ?? '',
1421
1432
  status: entry.status,
1422
1433
  deliverAfter: entry.deliverAfter ?? null,
1423
1434
  expiresAt: entry.expiresAt ?? null,