@adhdev/daemon-core 0.9.82-rc.439 → 0.9.82-rc.440

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
@@ -404,10 +404,10 @@ function readInjected(value) {
404
404
  }
405
405
  function getDaemonBuildInfo() {
406
406
  if (cached) return cached;
407
- const commit = readInjected(true ? "065287032ac520cf8950f90025e1758b873723b1" : void 0) ?? "unknown";
408
- const commitShort = readInjected(true ? "06528703" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
409
- const version = readInjected(true ? "0.9.82-rc.439" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
410
- const builtAt = readInjected(true ? "2026-07-01T04:55:17.522Z" : void 0);
407
+ const commit = readInjected(true ? "c3062ac83f65cfbd83e0bc4236972b64a80435cc" : void 0) ?? "unknown";
408
+ const commitShort = readInjected(true ? "c3062ac8" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
409
+ const version = readInjected(true ? "0.9.82-rc.440" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
410
+ const builtAt = readInjected(true ? "2026-07-01T05:56:51.525Z" : void 0);
411
411
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
412
412
  return cached;
413
413
  }
@@ -46357,9 +46357,10 @@ function openDb() {
46357
46357
  }
46358
46358
  function loadMessagesForSession(db, sessionId) {
46359
46359
  const rows = db.prepare(
46360
- `SELECT id, role, content, timestamp
46360
+ `SELECT id, role, COALESCE(NULLIF(content, ''), tool_calls) AS content, timestamp
46361
46361
  FROM messages
46362
- WHERE session_id = ? AND content IS NOT NULL AND content != ''
46362
+ WHERE session_id = ?
46363
+ AND ((content IS NOT NULL AND content != '') OR (tool_calls IS NOT NULL AND tool_calls != ''))
46363
46364
  ORDER BY timestamp ASC, id ASC`
46364
46365
  ).all(sessionId);
46365
46366
  const out = [];
@@ -46388,7 +46389,8 @@ function readSession4(sessionPath, requestedSessionId) {
46388
46389
  } else {
46389
46390
  const row = db.prepare(
46390
46391
  `SELECT id, started_at FROM sessions
46391
- WHERE source = 'cli' AND message_count > 0
46392
+ WHERE source = 'cli'
46393
+ AND EXISTS (SELECT 1 FROM messages m WHERE m.session_id = sessions.id)
46392
46394
  ORDER BY started_at DESC LIMIT 1`
46393
46395
  ).get();
46394
46396
  if (!row) return null;
@@ -49717,6 +49719,19 @@ var meshCrudHandlers = {
49717
49719
  if (meshRecord?.inline) {
49718
49720
  removed = ctx.removeInlineMeshNode(meshId, mesh, nodeId);
49719
49721
  if (removed) ctx.invalidateAggregateMeshStatus(meshId);
49722
+ try {
49723
+ const { getMesh: getMesh2, removeNode: removeNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
49724
+ const fileMesh = getMesh2(meshId);
49725
+ const fileNode = fileMesh?.nodes?.find((n) => meshNodeIdMatches(n, nodeId));
49726
+ if (fileNode?.id) {
49727
+ const fileRemoved = removeNode2(meshId, fileNode.id);
49728
+ if (fileRemoved) {
49729
+ removed = true;
49730
+ ctx.invalidateAggregateMeshStatus(meshId);
49731
+ }
49732
+ }
49733
+ } catch {
49734
+ }
49720
49735
  if (!removed && !node) removed = true;
49721
49736
  } else {
49722
49737
  const { removeNode: removeNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));