@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-standalone",
3
- "version": "0.9.82-rc.352",
3
+ "version": "0.9.82-rc.353",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -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 === ctx.localMachineId || ctx.localDaemonId && daemonId === ctx.localDaemonId || nodeHasLocalDaemonEvidence(ctx, node)
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 !== ctx.localDaemonId) return false;
1708
- if (nodeMachineId && ctx.localMachineId && nodeMachineId !== ctx.localMachineId) return false;
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];