@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.js
CHANGED
|
@@ -419,10 +419,10 @@ function readInjected(value) {
|
|
|
419
419
|
}
|
|
420
420
|
function getDaemonBuildInfo() {
|
|
421
421
|
if (cached) return cached;
|
|
422
|
-
const commit = readInjected(true ? "
|
|
423
|
-
const commitShort = readInjected(true ? "
|
|
424
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
425
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
422
|
+
const commit = readInjected(true ? "dfd771e772756bbf5b5e28e0dcfd1cd39ff424bd" : void 0) ?? "unknown";
|
|
423
|
+
const commitShort = readInjected(true ? "dfd771e7" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
424
|
+
const version = readInjected(true ? "0.9.82-rc.548" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
425
|
+
const builtAt = readInjected(true ? "2026-07-16T15:00:45.176Z" : void 0);
|
|
426
426
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
427
427
|
return cached;
|
|
428
428
|
}
|
|
@@ -52431,6 +52431,31 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
52431
52431
|
init_state_store();
|
|
52432
52432
|
init_recent_activity();
|
|
52433
52433
|
init_mesh_events_utils();
|
|
52434
|
+
init_logger();
|
|
52435
|
+
function forwardConversationPrefsToCoordinator(ctx, sessionId, patch) {
|
|
52436
|
+
const dispatch = ctx.deps.dispatchMeshCommand;
|
|
52437
|
+
if (!dispatch) return;
|
|
52438
|
+
let settings = {};
|
|
52439
|
+
try {
|
|
52440
|
+
const state = ctx.deps.instanceManager.getInstance(sessionId)?.getState?.();
|
|
52441
|
+
if (state?.settings && typeof state.settings === "object") {
|
|
52442
|
+
settings = state.settings;
|
|
52443
|
+
}
|
|
52444
|
+
} catch {
|
|
52445
|
+
}
|
|
52446
|
+
const coordinatorDaemonId = readNonEmptyString2(settings.meshCoordinatorDaemonId);
|
|
52447
|
+
const meshId = readNonEmptyString2(settings.meshNodeFor);
|
|
52448
|
+
if (!coordinatorDaemonId || !meshId) return;
|
|
52449
|
+
const nodeId = readNonEmptyString2(settings.meshNodeId) || readNonEmptyString2(settings.meshLastNodeId);
|
|
52450
|
+
const payload = {
|
|
52451
|
+
event: "session:settings_changed",
|
|
52452
|
+
meshId,
|
|
52453
|
+
targetSessionId: sessionId,
|
|
52454
|
+
...nodeId ? { nodeId } : {},
|
|
52455
|
+
sessionSettings: { ...patch }
|
|
52456
|
+
};
|
|
52457
|
+
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}`));
|
|
52458
|
+
}
|
|
52434
52459
|
var cliAgentHandlers = {
|
|
52435
52460
|
launch_cli: async (ctx, args) => {
|
|
52436
52461
|
const launchResult = await ctx.deps.cliManager.handleCliCommand("launch_cli", args);
|
|
@@ -52482,6 +52507,7 @@ var cliAgentHandlers = {
|
|
|
52482
52507
|
if (!Object.keys(patch).length) return { success: false, error: "Nothing to update (hidden and/or muted required)" };
|
|
52483
52508
|
inst.updateSettings(patch);
|
|
52484
52509
|
ctx.deps.onStatusChange?.();
|
|
52510
|
+
forwardConversationPrefsToCoordinator(ctx, sessionId, patch);
|
|
52485
52511
|
return { success: true, sessionId, ...patch };
|
|
52486
52512
|
},
|
|
52487
52513
|
agent_command: async (ctx, args) => {
|