@adhdev/daemon-standalone 0.9.82-rc.369 → 0.9.82-rc.370

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/public/index.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
8
8
  <link rel="icon" href="/otter-logo.png" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
- <script type="module" crossorigin src="/assets/index-DqCY6Aye.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-DZWOjMlg.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-BHUMCOj6.js">
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-CSQu5pix.css">
13
13
  </head>
@@ -430,7 +430,7 @@ function buildDirectTaskPayload(message, via, opts) {
430
430
  };
431
431
  }
432
432
  function findNode(mesh, nodeId) {
433
- const node = mesh.nodes.find((n) => n.id === nodeId);
433
+ const node = mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, nodeId));
434
434
  if (!node) throw new Error(`Node '${nodeId}' is not a member of mesh '${mesh.name}'`);
435
435
  return node;
436
436
  }
@@ -460,18 +460,18 @@ async function syncCoordinatorDaemonMeshCache(ctx) {
460
460
  }
461
461
  }
462
462
  async function findNodeWithRefresh(ctx, nodeId) {
463
- const hit = ctx.mesh.nodes.find((n) => n.id === nodeId);
463
+ const hit = ctx.mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, nodeId));
464
464
  if (hit && !hit.isLocalWorktree) return hit;
465
465
  await refreshMeshFromDaemon(ctx);
466
- const refreshed = ctx.mesh.nodes.find((n) => n.id === nodeId);
466
+ const refreshed = ctx.mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, nodeId));
467
467
  if (!refreshed) throw new Error(`Node '${nodeId}' is not a member of mesh '${ctx.mesh.name}'`);
468
468
  return refreshed;
469
469
  }
470
470
  async function findOptionalNodeWithRefresh(ctx, nodeId) {
471
- const hit = ctx.mesh.nodes.find((n) => n.id === nodeId);
471
+ const hit = ctx.mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, nodeId));
472
472
  if (hit && !hit.isLocalWorktree) return hit;
473
473
  await refreshMeshFromDaemon(ctx);
474
- return ctx.mesh.nodes.find((n) => n.id === nodeId) ?? null;
474
+ return ctx.mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, nodeId)) ?? null;
475
475
  }
476
476
  function hasRecentDuplicateDispatch(ctx, args) {
477
477
  const now = Date.now();
@@ -930,7 +930,7 @@ function readFinalAssistantTranscriptEvidence(payload) {
930
930
  }
931
931
  function findNodeSession(nodes, nodeId, sessionId) {
932
932
  if (!nodeId || !sessionId) return {};
933
- const node = nodes.find((candidate) => readString(candidate?.id) === nodeId || readString(candidate?.nodeId) === nodeId);
933
+ const node = nodes.find((candidate) => (0, import_daemon_core.meshNodeIdMatches)(candidate, nodeId));
934
934
  if (!node) return {};
935
935
  const sessions = Array.isArray(node.sessions) ? node.sessions : [];
936
936
  const session = sessions.find((candidate) => readSessionRecordId(candidate) === sessionId);
@@ -1742,7 +1742,7 @@ function getLocalControlPlaneMatchReason(ctx, node) {
1742
1742
  function findClonedFromNode(ctx, node) {
1743
1743
  const clonedFromNodeId = readString(node.clonedFromNodeId) || readString(node.cloned_from_node_id);
1744
1744
  if (!clonedFromNodeId) return void 0;
1745
- return ctx.mesh.nodes.find((n) => n.id === clonedFromNodeId || n.nodeId === clonedFromNodeId || n.node_id === clonedFromNodeId);
1745
+ return ctx.mesh.nodes.find((n) => (0, import_daemon_core.meshNodeIdMatches)(n, clonedFromNodeId));
1746
1746
  }
1747
1747
  function resolvePreferredWorktreeNodeId(ctx) {
1748
1748
  const worktreeNodes = (ctx.mesh.nodes || []).filter((n) => n.isLocalWorktree === true);