adhdev 0.9.73 → 0.9.75

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.73",
3
+ "version": "0.9.75",
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": {
@@ -1523,7 +1523,17 @@ async function startMcpServer(opts) {
1523
1523
  const isLocal = opts.mode === "local";
1524
1524
  if (opts.meshId) {
1525
1525
  let mesh;
1526
- if (opts.mode === "cloud" && opts.apiKey) {
1526
+ if (!mesh && process.env.ADHDEV_INLINE_MESH) {
1527
+ try {
1528
+ mesh = JSON.parse(process.env.ADHDEV_INLINE_MESH);
1529
+ process.stderr.write(`[adhdev-mcp] Loaded mesh config from ADHDEV_INLINE_MESH env
1530
+ `);
1531
+ } catch (e) {
1532
+ process.stderr.write(`[adhdev-mcp] Failed to parse ADHDEV_INLINE_MESH: ${e.message}
1533
+ `);
1534
+ }
1535
+ }
1536
+ if (!mesh && opts.mode === "cloud" && opts.apiKey) {
1527
1537
  try {
1528
1538
  const base = opts.baseUrl || "https://api.adhf.dev";
1529
1539
  const res = await fetch(`${base}/api/v1/repo-meshes/${opts.meshId}`, {
@@ -1583,9 +1593,21 @@ async function startMcpServer(opts) {
1583
1593
  const { getMesh } = await import("@adhdev/daemon-core");
1584
1594
  mesh = getMesh(opts.meshId);
1585
1595
  } catch (e) {
1586
- process.stderr.write(`[adhdev-mcp] Failed to load mesh config: ${e.message}
1596
+ process.stderr.write(`[adhdev-mcp] Local meshes.json lookup failed: ${e.message}
1597
+ `);
1598
+ }
1599
+ }
1600
+ if (!mesh && transport instanceof LocalTransport) {
1601
+ try {
1602
+ const result = await transport.command("get_mesh", { meshId: opts.meshId });
1603
+ if (result?.success && result.mesh) {
1604
+ mesh = result.mesh;
1605
+ process.stderr.write(`[adhdev-mcp] Loaded mesh config from daemon
1606
+ `);
1607
+ }
1608
+ } catch (e) {
1609
+ process.stderr.write(`[adhdev-mcp] Daemon mesh query failed: ${e.message}
1587
1610
  `);
1588
- process.exit(1);
1589
1611
  }
1590
1612
  }
1591
1613
  if (!mesh) {
@@ -1602,7 +1624,7 @@ async function startMcpServer(opts) {
1602
1624
  coordinatorPrompt = `You are a Repo Mesh Coordinator for "${mesh.name}" (${mesh.repoIdentity}). Use mesh_* tools to orchestrate work.`;
1603
1625
  }
1604
1626
  const server2 = new import_server.Server(
1605
- { name: "adhdev-mcp-server", version: "0.9.73" },
1627
+ { name: "adhdev-mcp-server", version: "0.9.75" },
1606
1628
  { capabilities: { tools: {}, resources: {} } }
1607
1629
  );
1608
1630
  const { ListResourcesRequestSchema, ReadResourceRequestSchema } = await import("@modelcontextprotocol/sdk/types.js");