@adhdev/daemon-core 0.9.82-rc.232 → 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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/mesh/mesh-events-coordinator.ts +7 -0
package/package.json
CHANGED
|
@@ -258,11 +258,18 @@ export function tryAssignQueueTask(
|
|
|
258
258
|
message: task.message,
|
|
259
259
|
status: 'delivering',
|
|
260
260
|
});
|
|
261
|
+
const localDaemonIdForDispatch = readNonEmptyString(loadConfig().machineId) || undefined;
|
|
261
262
|
components.dispatchMeshCommand(node.daemonId, 'agent_command', {
|
|
262
263
|
targetSessionId: sessionId,
|
|
263
264
|
cliType: providerType,
|
|
264
265
|
action: 'send_chat',
|
|
265
266
|
message: task.message,
|
|
267
|
+
meshContext: {
|
|
268
|
+
meshId,
|
|
269
|
+
nodeId,
|
|
270
|
+
taskId: task.id,
|
|
271
|
+
...(localDaemonIdForDispatch ? { coordinatorDaemonId: localDaemonIdForDispatch } : {}),
|
|
272
|
+
},
|
|
266
273
|
}).then(() => {
|
|
267
274
|
updateSessionDeliveryStatus(delivery.id, 'delivered');
|
|
268
275
|
}).catch((e: any) => {
|