@adhdev/daemon-standalone 0.9.82-rc.550 → 0.9.82-rc.552

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
@@ -30208,10 +30208,10 @@ var require_dist3 = __commonJS({
30208
30208
  }
30209
30209
  function getDaemonBuildInfo() {
30210
30210
  if (cached2) return cached2;
30211
- const commit = readInjected(true ? "39d3a400837f7a6be60744fa195a2db10b5096cc" : void 0) ?? "unknown";
30212
- const commitShort = readInjected(true ? "39d3a400" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
- const version2 = readInjected(true ? "0.9.82-rc.550" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
- const builtAt = readInjected(true ? "2026-07-16T17:40:33.757Z" : void 0);
30211
+ const commit = readInjected(true ? "178a437592e2f9544675a54768b48281804bdddb" : void 0) ?? "unknown";
30212
+ const commitShort = readInjected(true ? "178a4375" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30213
+ const version2 = readInjected(true ? "0.9.82-rc.552" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30214
+ const builtAt = readInjected(true ? "2026-07-17T04:27:07.205Z" : void 0);
30215
30215
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30216
30216
  return cached2;
30217
30217
  }
@@ -82186,6 +82186,20 @@ Run 'adhdev doctor' for detailed diagnostics.`
82186
82186
  ...nodeId ? { nodeId } : {},
82187
82187
  sessionSettings: { ...patch }
82188
82188
  };
82189
+ const selfDaemonId = readNonEmptyString2(ctx.deps.statusInstanceId);
82190
+ if (selfDaemonId && daemonIdsEquivalent(coordinatorDaemonId, selfDaemonId)) {
82191
+ const refreshLocal = ctx.deps.updateLocalMeshOwnedSession;
82192
+ if (refreshLocal) {
82193
+ try {
82194
+ refreshLocal(payload);
82195
+ return "refreshed-local";
82196
+ } catch (e) {
82197
+ LOG2.warn("Mesh", `[Mesh] set_conversation_prefs local coordinator-mirror refresh failed: ${e?.message || e}`);
82198
+ return "failed";
82199
+ }
82200
+ }
82201
+ return "refreshed-local";
82202
+ }
82189
82203
  for (let attempt = 0; attempt < 2; attempt++) {
82190
82204
  try {
82191
82205
  await dispatch(coordinatorDaemonId, "mesh_forward_event", payload);
@@ -82254,10 +82268,12 @@ Run 'adhdev doctor' for detailed diagnostics.`
82254
82268
  success: true,
82255
82269
  sessionId,
82256
82270
  ...patch,
82257
- // Only surface the mirror status for a genuine mesh worker session (refreshed/failed);
82271
+ // Only surface the mirror status for a genuine mesh session (refreshed/failed);
82258
82272
  // a non-mesh session ('skipped') carries no mirror field, so nothing changes for it.
82273
+ // A self-hosted session ('refreshed-local' — coordinator == this daemon) refreshed its
82274
+ // own mirror in-process and is reported as fresh so the dashboard never rolls back.
82259
82275
  ...mirror === "failed" ? { mirrorStale: true } : {},
82260
- ...mirror === "refreshed" ? { mirrorRefreshed: true } : {}
82276
+ ...mirror === "refreshed" || mirror === "refreshed-local" ? { mirrorRefreshed: true } : {}
82261
82277
  };
82262
82278
  },
82263
82279
  agent_command: async (ctx, args) => {
@@ -102183,6 +102199,7 @@ data: ${JSON.stringify(msg.data)}
102183
102199
  statusVersion: config2.statusVersion,
102184
102200
  getMeshPeerConnectionStatus: config2.getMeshPeerConnectionStatus,
102185
102201
  dispatchMeshCommand: config2.dispatchMeshCommand,
102202
+ updateLocalMeshOwnedSession: config2.updateLocalMeshOwnedSession,
102186
102203
  getCdpLogFn: config2.getCdpLogFn || ((ideType) => LOG2.forComponent(`CDP:${ideType}`).asLogFn())
102187
102204
  });
102188
102205
  poller = new AgentStreamPoller({