adhdev 0.9.82-rc.16 → 0.9.82-rc.18

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",
3
- "version": "0.9.82-rc.16",
3
+ "version": "0.9.82-rc.18",
4
4
  "description": "ADHDev — Agent Dashboard Hub for Dev. Remote-control AI coding agents from anywhere.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  "node": ">=18"
48
48
  },
49
49
  "dependencies": {
50
- "@adhdev/daemon-core": "0.9.82-rc.16",
50
+ "@adhdev/daemon-core": "0.9.82-rc.18",
51
51
  "@adhdev/ghostty-vt-node": "*",
52
52
  "@modelcontextprotocol/sdk": "^1.0.0",
53
53
  "@xterm/addon-serialize": "^0.14.0",
@@ -256,7 +256,6 @@ async function refreshMeshFromDaemon(ctx) {
256
256
  const result = await ctx.transport.command("get_mesh", { meshId: ctx.mesh.id });
257
257
  if (!result?.success || !Array.isArray(result.mesh?.nodes)) return;
258
258
  const refreshedNodes = result.mesh.nodes.filter((n) => n?.id).map((n) => n);
259
- if (!refreshedNodes.length) return;
260
259
  ctx.mesh.nodes.splice(0, ctx.mesh.nodes.length, ...refreshedNodes);
261
260
  ctx.mesh.updatedAt = result.mesh.updatedAt ?? ctx.mesh.updatedAt;
262
261
  } catch {
@@ -274,7 +273,7 @@ async function syncCoordinatorDaemonMeshCache(ctx) {
274
273
  }
275
274
  async function findNodeWithRefresh(ctx, nodeId) {
276
275
  const hit = ctx.mesh.nodes.find((n) => n.id === nodeId);
277
- if (hit) return hit;
276
+ if (hit && !hit.isLocalWorktree) return hit;
278
277
  await refreshMeshFromDaemon(ctx);
279
278
  const refreshed = ctx.mesh.nodes.find((n) => n.id === nodeId);
280
279
  if (!refreshed) throw new Error(`Node '${nodeId}' is not a member of mesh '${ctx.mesh.name}'`);
@@ -282,7 +281,7 @@ async function findNodeWithRefresh(ctx, nodeId) {
282
281
  }
283
282
  async function findOptionalNodeWithRefresh(ctx, nodeId) {
284
283
  const hit = ctx.mesh.nodes.find((n) => n.id === nodeId);
285
- if (hit) return hit;
284
+ if (hit && !hit.isLocalWorktree) return hit;
286
285
  await refreshMeshFromDaemon(ctx);
287
286
  return ctx.mesh.nodes.find((n) => n.id === nodeId) ?? null;
288
287
  }