@adhdev/daemon-standalone 0.9.82-rc.547 → 0.9.82-rc.549
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 ? "
|
|
30212
|
-
const commitShort = readInjected(true ? "
|
|
30213
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30214
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
30211
|
+
const commit = readInjected(true ? "e81df3dc3549e10359549fba60907e0755fc5ea3" : void 0) ?? "unknown";
|
|
30212
|
+
const commitShort = readInjected(true ? "e81df3dc" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30213
|
+
const version2 = readInjected(true ? "0.9.82-rc.549" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30214
|
+
const builtAt = readInjected(true ? "2026-07-16T16:53:56.431Z" : void 0);
|
|
30215
30215
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30216
30216
|
return cached2;
|
|
30217
30217
|
}
|
|
@@ -82163,6 +82163,41 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
82163
82163
|
init_state_store();
|
|
82164
82164
|
init_recent_activity();
|
|
82165
82165
|
init_mesh_events_utils();
|
|
82166
|
+
init_logger();
|
|
82167
|
+
async function forwardConversationPrefsToCoordinator(ctx, sessionId, patch) {
|
|
82168
|
+
const dispatch = ctx.deps.dispatchMeshCommand;
|
|
82169
|
+
if (!dispatch) return "skipped";
|
|
82170
|
+
let settings = {};
|
|
82171
|
+
try {
|
|
82172
|
+
const state = ctx.deps.instanceManager.getInstance(sessionId)?.getState?.();
|
|
82173
|
+
if (state?.settings && typeof state.settings === "object") {
|
|
82174
|
+
settings = state.settings;
|
|
82175
|
+
}
|
|
82176
|
+
} catch {
|
|
82177
|
+
}
|
|
82178
|
+
const coordinatorDaemonId = readNonEmptyString2(settings.meshCoordinatorDaemonId);
|
|
82179
|
+
const meshId = readNonEmptyString2(settings.meshNodeFor);
|
|
82180
|
+
if (!coordinatorDaemonId || !meshId) return "skipped";
|
|
82181
|
+
const nodeId = readNonEmptyString2(settings.meshNodeId) || readNonEmptyString2(settings.meshLastNodeId);
|
|
82182
|
+
const payload = {
|
|
82183
|
+
event: "session:settings_changed",
|
|
82184
|
+
meshId,
|
|
82185
|
+
targetSessionId: sessionId,
|
|
82186
|
+
...nodeId ? { nodeId } : {},
|
|
82187
|
+
sessionSettings: { ...patch }
|
|
82188
|
+
};
|
|
82189
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
82190
|
+
try {
|
|
82191
|
+
await dispatch(coordinatorDaemonId, "mesh_forward_event", payload);
|
|
82192
|
+
return "refreshed";
|
|
82193
|
+
} catch (e) {
|
|
82194
|
+
if (attempt === 0) continue;
|
|
82195
|
+
LOG2.warn("Mesh", `[Mesh] set_conversation_prefs mirror forward to coordinator ${coordinatorDaemonId.slice(0, 12)} failed after retry: ${e?.message || e}`);
|
|
82196
|
+
return "failed";
|
|
82197
|
+
}
|
|
82198
|
+
}
|
|
82199
|
+
return "failed";
|
|
82200
|
+
}
|
|
82166
82201
|
var cliAgentHandlers = {
|
|
82167
82202
|
launch_cli: async (ctx, args) => {
|
|
82168
82203
|
const launchResult = await ctx.deps.cliManager.handleCliCommand("launch_cli", args);
|
|
@@ -82214,7 +82249,16 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
82214
82249
|
if (!Object.keys(patch).length) return { success: false, error: "Nothing to update (hidden and/or muted required)" };
|
|
82215
82250
|
inst.updateSettings(patch);
|
|
82216
82251
|
ctx.deps.onStatusChange?.();
|
|
82217
|
-
|
|
82252
|
+
const mirror = await forwardConversationPrefsToCoordinator(ctx, sessionId, patch);
|
|
82253
|
+
return {
|
|
82254
|
+
success: true,
|
|
82255
|
+
sessionId,
|
|
82256
|
+
...patch,
|
|
82257
|
+
// Only surface the mirror status for a genuine mesh worker session (refreshed/failed);
|
|
82258
|
+
// a non-mesh session ('skipped') carries no mirror field, so nothing changes for it.
|
|
82259
|
+
...mirror === "failed" ? { mirrorStale: true } : {},
|
|
82260
|
+
...mirror === "refreshed" ? { mirrorRefreshed: true } : {}
|
|
82261
|
+
};
|
|
82218
82262
|
},
|
|
82219
82263
|
agent_command: async (ctx, args) => {
|
|
82220
82264
|
{
|