@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.js CHANGED
@@ -409,10 +409,10 @@ function readInjected(value) {
409
409
  }
410
410
  function getDaemonBuildInfo() {
411
411
  if (cached) return cached;
412
- const commit = readInjected(true ? "065287032ac520cf8950f90025e1758b873723b1" : void 0) ?? "unknown";
413
- const commitShort = readInjected(true ? "06528703" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
414
- const version = readInjected(true ? "0.9.82-rc.439" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
415
- const builtAt = readInjected(true ? "2026-07-01T04:55:17.522Z" : void 0);
412
+ const commit = readInjected(true ? "c3062ac83f65cfbd83e0bc4236972b64a80435cc" : void 0) ?? "unknown";
413
+ const commitShort = readInjected(true ? "c3062ac8" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
414
+ const version = readInjected(true ? "0.9.82-rc.440" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
415
+ const builtAt = readInjected(true ? "2026-07-01T05:56:51.525Z" : void 0);
416
416
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
417
417
  return cached;
418
418
  }
@@ -46756,9 +46756,10 @@ function openDb() {
46756
46756
  }
46757
46757
  function loadMessagesForSession(db, sessionId) {
46758
46758
  const rows = db.prepare(
46759
- `SELECT id, role, content, timestamp
46759
+ `SELECT id, role, COALESCE(NULLIF(content, ''), tool_calls) AS content, timestamp
46760
46760
  FROM messages
46761
- WHERE session_id = ? AND content IS NOT NULL AND content != ''
46761
+ WHERE session_id = ?
46762
+ AND ((content IS NOT NULL AND content != '') OR (tool_calls IS NOT NULL AND tool_calls != ''))
46762
46763
  ORDER BY timestamp ASC, id ASC`
46763
46764
  ).all(sessionId);
46764
46765
  const out = [];
@@ -46787,7 +46788,8 @@ function readSession4(sessionPath, requestedSessionId) {
46787
46788
  } else {
46788
46789
  const row = db.prepare(
46789
46790
  `SELECT id, started_at FROM sessions
46790
- WHERE source = 'cli' AND message_count > 0
46791
+ WHERE source = 'cli'
46792
+ AND EXISTS (SELECT 1 FROM messages m WHERE m.session_id = sessions.id)
46791
46793
  ORDER BY started_at DESC LIMIT 1`
46792
46794
  ).get();
46793
46795
  if (!row) return null;
@@ -50116,6 +50118,19 @@ var meshCrudHandlers = {
50116
50118
  if (meshRecord?.inline) {
50117
50119
  removed = ctx.removeInlineMeshNode(meshId, mesh, nodeId);
50118
50120
  if (removed) ctx.invalidateAggregateMeshStatus(meshId);
50121
+ try {
50122
+ const { getMesh: getMesh2, removeNode: removeNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
50123
+ const fileMesh = getMesh2(meshId);
50124
+ const fileNode = fileMesh?.nodes?.find((n) => meshNodeIdMatches(n, nodeId));
50125
+ if (fileNode?.id) {
50126
+ const fileRemoved = removeNode2(meshId, fileNode.id);
50127
+ if (fileRemoved) {
50128
+ removed = true;
50129
+ ctx.invalidateAggregateMeshStatus(meshId);
50130
+ }
50131
+ }
50132
+ } catch {
50133
+ }
50119
50134
  if (!removed && !node) removed = true;
50120
50135
  } else {
50121
50136
  const { removeNode: removeNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));