@adhdev/daemon-standalone 0.9.77-rc.21 → 0.9.77-rc.22
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/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +21 -2
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -32536,13 +32536,31 @@ Follow these recovery rules:
|
|
|
32536
32536
|
return false;
|
|
32537
32537
|
}
|
|
32538
32538
|
LOG2.info("MeshQueue", `Node ${nodeId} (${sessionId}) pulled task ${task.id}`);
|
|
32539
|
+
const mesh = getMesh(meshId);
|
|
32540
|
+
const node = mesh?.nodes.find((n) => n.id === nodeId);
|
|
32541
|
+
if (node?.daemonId && components.dispatchMeshCommand) {
|
|
32542
|
+
const isLocalNode = components.cliManager.adapters.has(sessionId);
|
|
32543
|
+
if (!isLocalNode) {
|
|
32544
|
+
components.dispatchMeshCommand(node.daemonId, "agent_command", {
|
|
32545
|
+
targetSessionId: sessionId,
|
|
32546
|
+
cliType: providerType,
|
|
32547
|
+
action: "send_chat",
|
|
32548
|
+
message: task.message
|
|
32549
|
+
}).catch((e) => {
|
|
32550
|
+
LOG2.error("MeshQueue", `Failed to dispatch task via P2P to remote node ${nodeId}: ${e?.message}`);
|
|
32551
|
+
updateTaskStatus(meshId, task.id, "failed");
|
|
32552
|
+
});
|
|
32553
|
+
return true;
|
|
32554
|
+
}
|
|
32555
|
+
}
|
|
32539
32556
|
components.cliManager.handleCliCommand("agent_command", {
|
|
32540
32557
|
targetSessionId: sessionId,
|
|
32541
32558
|
cliType: providerType,
|
|
32542
32559
|
action: "send_chat",
|
|
32543
32560
|
message: task.message
|
|
32544
32561
|
}).catch((e) => {
|
|
32545
|
-
LOG2.error("MeshQueue", `Failed to dispatch task to node ${nodeId}: ${e?.message}`);
|
|
32562
|
+
LOG2.error("MeshQueue", `Failed to dispatch task locally to node ${nodeId}: ${e?.message}`);
|
|
32563
|
+
updateTaskStatus(meshId, task.id, "failed");
|
|
32546
32564
|
});
|
|
32547
32565
|
return true;
|
|
32548
32566
|
}
|
|
@@ -63320,7 +63338,8 @@ data: ${JSON.stringify(msg.data)}
|
|
|
63320
63338
|
cdpManagers,
|
|
63321
63339
|
sessionRegistry,
|
|
63322
63340
|
detectedIdes: detectedIdesRef,
|
|
63323
|
-
refreshProviderAvailability
|
|
63341
|
+
refreshProviderAvailability,
|
|
63342
|
+
dispatchMeshCommand: config2.dispatchMeshCommand
|
|
63324
63343
|
};
|
|
63325
63344
|
setupMeshEventForwarding(components);
|
|
63326
63345
|
return components;
|