adhdev 0.9.72 → 0.9.74

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.72",
3
+ "version": "0.9.74",
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": {
@@ -1583,9 +1583,21 @@ async function startMcpServer(opts) {
1583
1583
  const { getMesh } = await import("@adhdev/daemon-core");
1584
1584
  mesh = getMesh(opts.meshId);
1585
1585
  } catch (e) {
1586
- process.stderr.write(`[adhdev-mcp] Failed to load mesh config: ${e.message}
1586
+ process.stderr.write(`[adhdev-mcp] Local meshes.json lookup failed: ${e.message}
1587
+ `);
1588
+ }
1589
+ }
1590
+ if (!mesh && transport instanceof LocalTransport) {
1591
+ try {
1592
+ const result = await transport.command("get_mesh", { meshId: opts.meshId });
1593
+ if (result?.success && result.mesh) {
1594
+ mesh = result.mesh;
1595
+ process.stderr.write(`[adhdev-mcp] Loaded mesh config from daemon
1596
+ `);
1597
+ }
1598
+ } catch (e) {
1599
+ process.stderr.write(`[adhdev-mcp] Daemon mesh query failed: ${e.message}
1587
1600
  `);
1588
- process.exit(1);
1589
1601
  }
1590
1602
  }
1591
1603
  if (!mesh) {
@@ -1602,7 +1614,7 @@ async function startMcpServer(opts) {
1602
1614
  coordinatorPrompt = `You are a Repo Mesh Coordinator for "${mesh.name}" (${mesh.repoIdentity}). Use mesh_* tools to orchestrate work.`;
1603
1615
  }
1604
1616
  const server2 = new import_server.Server(
1605
- { name: "adhdev-mcp-server", version: "0.9.72" },
1617
+ { name: "adhdev-mcp-server", version: "0.9.74" },
1606
1618
  { capabilities: { tools: {}, resources: {} } }
1607
1619
  );
1608
1620
  const { ListResourcesRequestSchema, ReadResourceRequestSchema } = await import("@modelcontextprotocol/sdk/types.js");