@adhdev/daemon-standalone 0.9.82-rc.352 → 0.9.82-rc.353
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 +421 -344
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +3 -3
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1695,7 +1695,7 @@ function isDirectLocalNode(ctx, node) {
|
|
|
1695
1695
|
const machineId = readNodeMachineId(node);
|
|
1696
1696
|
const daemonId = readNodeDaemonId(node);
|
|
1697
1697
|
return Boolean(
|
|
1698
|
-
ctx.localMachineId && machineId
|
|
1698
|
+
ctx.localMachineId && (0, import_daemon_core.daemonIdsEquivalent)(machineId, ctx.localMachineId) || ctx.localDaemonId && (0, import_daemon_core.daemonIdsEquivalent)(daemonId, ctx.localDaemonId) || nodeHasLocalDaemonEvidence(ctx, node)
|
|
1699
1699
|
);
|
|
1700
1700
|
}
|
|
1701
1701
|
function isConfiguredCoordinatorNode(ctx, node) {
|
|
@@ -1704,8 +1704,8 @@ function isConfiguredCoordinatorNode(ctx, node) {
|
|
|
1704
1704
|
if (!nodeId) return false;
|
|
1705
1705
|
const nodeDaemonId = readNodeDaemonId(node);
|
|
1706
1706
|
const nodeMachineId = readNodeMachineId(node);
|
|
1707
|
-
if (nodeDaemonId && ctx.localDaemonId && nodeDaemonId
|
|
1708
|
-
if (nodeMachineId && ctx.localMachineId && nodeMachineId
|
|
1707
|
+
if (nodeDaemonId && ctx.localDaemonId && !(0, import_daemon_core.daemonIdsEquivalent)(nodeDaemonId, ctx.localDaemonId)) return false;
|
|
1708
|
+
if (nodeMachineId && ctx.localMachineId && !(0, import_daemon_core.daemonIdsEquivalent)(nodeMachineId, ctx.localMachineId)) return false;
|
|
1709
1709
|
const preferredNodeId = readString(ctx.mesh.coordinator?.preferredNodeId) || readString(ctx.mesh.coordinator?.preferred_node_id);
|
|
1710
1710
|
if (preferredNodeId) return nodeId === preferredNodeId;
|
|
1711
1711
|
const first = ctx.mesh.nodes?.[0];
|