@adhdev/daemon-standalone 0.9.82-rc.234 → 0.9.82-rc.235

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/daemon-standalone",
3
- "version": "0.9.82-rc.234",
3
+ "version": "0.9.82-rc.235",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -3103,6 +3103,7 @@ async function meshSendTask(ctx, args) {
3103
3103
  const sessionWasIdle = explicitTargetSession ? isIdleSessionRecord(explicitTargetSession) : false;
3104
3104
  const taskId = (0, import_node_crypto.randomUUID)();
3105
3105
  const dispatchedAt = (/* @__PURE__ */ new Date()).toISOString();
3106
+ const coordinatorDaemonId = resolveCoordinatorNode(ctx)?.daemonId || ctx.localDaemonId;
3106
3107
  const dispatchResult = await commandForNode(ctx, node, "agent_command", {
3107
3108
  targetSessionId: args.session_id,
3108
3109
  agentType: resolvedProviderType,
@@ -3113,7 +3114,8 @@ async function meshSendTask(ctx, args) {
3113
3114
  meshContext: {
3114
3115
  meshId: ctx.mesh.id,
3115
3116
  nodeId: args.node_id,
3116
- taskId
3117
+ taskId,
3118
+ ...coordinatorDaemonId ? { coordinatorDaemonId } : {}
3117
3119
  }
3118
3120
  });
3119
3121
  const dispatchPayload = unwrapCommandPayload(dispatchResult);