@adhdev/daemon-standalone 0.9.82-rc.412 → 0.9.82-rc.413
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 +446 -387
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +3 -2
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -496,12 +496,13 @@ function resolveCoordinatorNode(ctx) {
|
|
|
496
496
|
if (byMachine) return byMachine;
|
|
497
497
|
}
|
|
498
498
|
if (ctx.localDaemonId) {
|
|
499
|
-
return ctx.mesh.nodes.find((n) => readNodeDaemonId(n)
|
|
499
|
+
return ctx.mesh.nodes.find((n) => (0, import_daemon_core2.daemonIdsEquivalent)(readNodeDaemonId(n), ctx.localDaemonId));
|
|
500
500
|
}
|
|
501
501
|
return void 0;
|
|
502
502
|
}
|
|
503
503
|
function resolveCoordinatorDaemonId(ctx) {
|
|
504
|
-
|
|
504
|
+
const resolved = readString(resolveCoordinatorNode(ctx)?.daemonId) || readString(ctx.localDaemonId) || readString(ctx.localMachineId);
|
|
505
|
+
return (0, import_daemon_core2.canonicalDaemonId)(resolved) ?? readString(resolved);
|
|
505
506
|
}
|
|
506
507
|
function readNodeMachineId(node) {
|
|
507
508
|
return readString(node.machineId) || readString(node.machine_id) || readString(node.machine?.id) || readString(node.machine?.machineId) || readString(node.lastProbe?.machineId) || readString(node.last_probe?.machine_id) || readString(node.lastProbe?.machine?.id) || readString(node.lastProbe?.machine?.machineId) || readString(node.last_probe?.machine?.id) || readString(node.last_probe?.machine?.machine_id);
|