@adhdev/daemon-standalone 0.9.82-rc.231 → 0.9.82-rc.233
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 +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +296 -1234
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -36437,11 +36437,18 @@ Next step: ${nextStep}`;
|
|
|
36437
36437
|
message: task.message,
|
|
36438
36438
|
status: "delivering"
|
|
36439
36439
|
});
|
|
36440
|
+
const localDaemonIdForDispatch = readNonEmptyString2(loadConfig2().machineId) || void 0;
|
|
36440
36441
|
components.dispatchMeshCommand(node.daemonId, "agent_command", {
|
|
36441
36442
|
targetSessionId: sessionId,
|
|
36442
36443
|
cliType: providerType,
|
|
36443
36444
|
action: "send_chat",
|
|
36444
|
-
message: task.message
|
|
36445
|
+
message: task.message,
|
|
36446
|
+
meshContext: {
|
|
36447
|
+
meshId,
|
|
36448
|
+
nodeId,
|
|
36449
|
+
taskId: task.id,
|
|
36450
|
+
...localDaemonIdForDispatch ? { coordinatorDaemonId: localDaemonIdForDispatch } : {}
|
|
36451
|
+
}
|
|
36445
36452
|
}).then(() => {
|
|
36446
36453
|
updateSessionDeliveryStatus(delivery2.id, "delivered");
|
|
36447
36454
|
}).catch((e) => {
|
|
@@ -73389,10 +73396,11 @@ ${tail}` : ""
|
|
|
73389
73396
|
}
|
|
73390
73397
|
const selfDaemonId = this.deps.statusInstanceId;
|
|
73391
73398
|
const isRemote = nodeDaemonId && selfDaemonId && nodeDaemonId !== selfDaemonId;
|
|
73392
|
-
if (isRemote && this.deps.dispatchMeshCommand) {
|
|
73399
|
+
if (isRemote && this.deps.dispatchMeshCommand && !args?._meshDirectDispatch) {
|
|
73393
73400
|
const forwarded = await this.deps.dispatchMeshCommand(nodeDaemonId, "fast_forward_mesh_node", {
|
|
73394
73401
|
...typeof args === "object" && args !== null ? args : {},
|
|
73395
|
-
workspace
|
|
73402
|
+
workspace,
|
|
73403
|
+
_meshDirectDispatch: true
|
|
73396
73404
|
});
|
|
73397
73405
|
return forwarded ?? { success: false, error: "no response from remote node" };
|
|
73398
73406
|
}
|