@adhdev/daemon-core 0.9.82-rc.546 → 0.9.82-rc.548
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 +30 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/commands/med-family/cli-agent.ts +55 -1
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 ? "dfd771e772756bbf5b5e28e0dcfd1cd39ff424bd" : void 0) ?? "unknown";
|
|
418
|
+
const commitShort = readInjected(true ? "dfd771e7" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
419
|
+
const version = readInjected(true ? "0.9.82-rc.548" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
420
|
+
const builtAt = readInjected(true ? "2026-07-16T15:00:45.176Z" : void 0);
|
|
421
421
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
422
422
|
return cached;
|
|
423
423
|
}
|
|
@@ -52004,6 +52004,31 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
52004
52004
|
init_state_store();
|
|
52005
52005
|
init_recent_activity();
|
|
52006
52006
|
init_mesh_events_utils();
|
|
52007
|
+
init_logger();
|
|
52008
|
+
function forwardConversationPrefsToCoordinator(ctx, sessionId, patch) {
|
|
52009
|
+
const dispatch = ctx.deps.dispatchMeshCommand;
|
|
52010
|
+
if (!dispatch) return;
|
|
52011
|
+
let settings = {};
|
|
52012
|
+
try {
|
|
52013
|
+
const state = ctx.deps.instanceManager.getInstance(sessionId)?.getState?.();
|
|
52014
|
+
if (state?.settings && typeof state.settings === "object") {
|
|
52015
|
+
settings = state.settings;
|
|
52016
|
+
}
|
|
52017
|
+
} catch {
|
|
52018
|
+
}
|
|
52019
|
+
const coordinatorDaemonId = readNonEmptyString2(settings.meshCoordinatorDaemonId);
|
|
52020
|
+
const meshId = readNonEmptyString2(settings.meshNodeFor);
|
|
52021
|
+
if (!coordinatorDaemonId || !meshId) return;
|
|
52022
|
+
const nodeId = readNonEmptyString2(settings.meshNodeId) || readNonEmptyString2(settings.meshLastNodeId);
|
|
52023
|
+
const payload = {
|
|
52024
|
+
event: "session:settings_changed",
|
|
52025
|
+
meshId,
|
|
52026
|
+
targetSessionId: sessionId,
|
|
52027
|
+
...nodeId ? { nodeId } : {},
|
|
52028
|
+
sessionSettings: { ...patch }
|
|
52029
|
+
};
|
|
52030
|
+
Promise.resolve(dispatch(coordinatorDaemonId, "mesh_forward_event", payload)).catch((e) => LOG.warn("Mesh", `[Mesh] set_conversation_prefs mirror forward to coordinator ${coordinatorDaemonId.slice(0, 12)} failed: ${e?.message || e}`));
|
|
52031
|
+
}
|
|
52007
52032
|
var cliAgentHandlers = {
|
|
52008
52033
|
launch_cli: async (ctx, args) => {
|
|
52009
52034
|
const launchResult = await ctx.deps.cliManager.handleCliCommand("launch_cli", args);
|
|
@@ -52055,6 +52080,7 @@ var cliAgentHandlers = {
|
|
|
52055
52080
|
if (!Object.keys(patch).length) return { success: false, error: "Nothing to update (hidden and/or muted required)" };
|
|
52056
52081
|
inst.updateSettings(patch);
|
|
52057
52082
|
ctx.deps.onStatusChange?.();
|
|
52083
|
+
forwardConversationPrefsToCoordinator(ctx, sessionId, patch);
|
|
52058
52084
|
return { success: true, sessionId, ...patch };
|
|
52059
52085
|
},
|
|
52060
52086
|
agent_command: async (ctx, args) => {
|