@adhdev/daemon-core 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/boot/daemon-lifecycle.d.ts +8 -0
- package/dist/commands/router.d.ts +10 -0
- package/dist/index.js +23 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/boot/daemon-lifecycle.ts +9 -0
- package/src/commands/med-family/cli-agent.ts +46 -5
- package/src/commands/router.ts +10 -0
package/dist/index.mjs
CHANGED
|
@@ -414,10 +414,10 @@ function readInjected(value) {
|
|
|
414
414
|
}
|
|
415
415
|
function getDaemonBuildInfo() {
|
|
416
416
|
if (cached) return cached;
|
|
417
|
-
const commit = readInjected(true ? "
|
|
418
|
-
const commitShort = readInjected(true ? "
|
|
419
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
420
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
417
|
+
const commit = readInjected(true ? "178a437592e2f9544675a54768b48281804bdddb" : void 0) ?? "unknown";
|
|
418
|
+
const commitShort = readInjected(true ? "178a4375" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
419
|
+
const version = readInjected(true ? "0.9.82-rc.552" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
420
|
+
const builtAt = readInjected(true ? "2026-07-17T04:25:41.391Z" : void 0);
|
|
421
421
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
422
422
|
return cached;
|
|
423
423
|
}
|
|
@@ -52027,6 +52027,20 @@ async function forwardConversationPrefsToCoordinator(ctx, sessionId, patch) {
|
|
|
52027
52027
|
...nodeId ? { nodeId } : {},
|
|
52028
52028
|
sessionSettings: { ...patch }
|
|
52029
52029
|
};
|
|
52030
|
+
const selfDaemonId = readNonEmptyString2(ctx.deps.statusInstanceId);
|
|
52031
|
+
if (selfDaemonId && daemonIdsEquivalent(coordinatorDaemonId, selfDaemonId)) {
|
|
52032
|
+
const refreshLocal = ctx.deps.updateLocalMeshOwnedSession;
|
|
52033
|
+
if (refreshLocal) {
|
|
52034
|
+
try {
|
|
52035
|
+
refreshLocal(payload);
|
|
52036
|
+
return "refreshed-local";
|
|
52037
|
+
} catch (e) {
|
|
52038
|
+
LOG.warn("Mesh", `[Mesh] set_conversation_prefs local coordinator-mirror refresh failed: ${e?.message || e}`);
|
|
52039
|
+
return "failed";
|
|
52040
|
+
}
|
|
52041
|
+
}
|
|
52042
|
+
return "refreshed-local";
|
|
52043
|
+
}
|
|
52030
52044
|
for (let attempt = 0; attempt < 2; attempt++) {
|
|
52031
52045
|
try {
|
|
52032
52046
|
await dispatch(coordinatorDaemonId, "mesh_forward_event", payload);
|
|
@@ -52095,10 +52109,12 @@ var cliAgentHandlers = {
|
|
|
52095
52109
|
success: true,
|
|
52096
52110
|
sessionId,
|
|
52097
52111
|
...patch,
|
|
52098
|
-
// Only surface the mirror status for a genuine mesh
|
|
52112
|
+
// Only surface the mirror status for a genuine mesh session (refreshed/failed);
|
|
52099
52113
|
// a non-mesh session ('skipped') carries no mirror field, so nothing changes for it.
|
|
52114
|
+
// A self-hosted session ('refreshed-local' — coordinator == this daemon) refreshed its
|
|
52115
|
+
// own mirror in-process and is reported as fresh so the dashboard never rolls back.
|
|
52100
52116
|
...mirror === "failed" ? { mirrorStale: true } : {},
|
|
52101
|
-
...mirror === "refreshed" ? { mirrorRefreshed: true } : {}
|
|
52117
|
+
...mirror === "refreshed" || mirror === "refreshed-local" ? { mirrorRefreshed: true } : {}
|
|
52102
52118
|
};
|
|
52103
52119
|
},
|
|
52104
52120
|
agent_command: async (ctx, args) => {
|
|
@@ -72186,6 +72202,7 @@ async function initDaemonComponents(config) {
|
|
|
72186
72202
|
statusVersion: config.statusVersion,
|
|
72187
72203
|
getMeshPeerConnectionStatus: config.getMeshPeerConnectionStatus,
|
|
72188
72204
|
dispatchMeshCommand: config.dispatchMeshCommand,
|
|
72205
|
+
updateLocalMeshOwnedSession: config.updateLocalMeshOwnedSession,
|
|
72189
72206
|
getCdpLogFn: config.getCdpLogFn || ((ideType) => LOG.forComponent(`CDP:${ideType}`).asLogFn())
|
|
72190
72207
|
});
|
|
72191
72208
|
poller = new AgentStreamPoller({
|