@adhdev/daemon-standalone 1.0.28-rc.17 → 1.0.28-rc.18

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": "1.0.28-rc.17",
3
+ "version": "1.0.28-rc.18",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -37,7 +37,7 @@
37
37
  "license": "AGPL-3.0-or-later",
38
38
  "dependencies": {
39
39
  "@adhdev/ghostty-vt-node": "*",
40
- "@adhdev/session-host-core": "1.0.28-rc.17",
40
+ "@adhdev/session-host-core": "1.0.28-rc.18",
41
41
  "@xterm/addon-serialize": "^0.14.0",
42
42
  "@xterm/xterm": "^6.0.0",
43
43
  "chalk": "^5.3.0",
@@ -6679,30 +6679,29 @@ async function meshSendTask(ctx, args) {
6679
6679
  }
6680
6680
  if (explicitTargetSession && !isIdleSessionRecord(explicitTargetSession) && !isTerminalSessionRecord(explicitTargetSession)) {
6681
6681
  const sessionStatus = typeof explicitTargetSession?.status === "string" ? explicitTargetSession.status : "unknown";
6682
- const { createSessionDelivery: createDelivery, resolveDeliveryDecision } = await import("@adhdev/daemon-core");
6682
+ const { resolveDeliveryDecision } = await import("@adhdev/daemon-core");
6683
6683
  const policyResult = resolveDeliveryDecision(sessionStatus, { kind: "task" });
6684
6684
  if (policyResult.decision === "queued") {
6685
- const delivery = createDelivery({
6686
- meshId: ctx.mesh.id,
6687
- nodeId: args.node_id,
6688
- sessionId: args.session_id,
6689
- providerType: resolvedProviderType,
6690
- kind: "task",
6691
- message,
6692
- status: "queued"
6685
+ const queuedTask = (0, import_daemon_core4.enqueueTask)(ctx.mesh.id, message, {
6686
+ targetNodeId: args.node_id,
6687
+ targetSessionId: args.session_id,
6688
+ taskMode,
6689
+ ...readonly ? { readonly: true } : {},
6690
+ ...missionId ? { missionId } : {},
6691
+ ...ctx.coordinatorSessionId ? { sourceCoordinatorSessionId: ctx.coordinatorSessionId } : {}
6693
6692
  });
6694
6693
  return JSON.stringify({
6695
6694
  success: true,
6696
6695
  dispatched: false,
6697
6696
  decision: "queued_delivery",
6698
- deliveryId: delivery.id,
6697
+ taskId: queuedTask.id,
6699
6698
  reason: policyResult.reason,
6700
6699
  nodeId: args.node_id,
6701
6700
  sessionId: args.session_id,
6702
6701
  sessionStatus,
6703
6702
  taskMode: taskMode || void 0,
6704
6703
  message: policyResult.message,
6705
- nextAction: `Use mesh_status to watch for session idle transition, or use mesh_enqueue_task for queue-based assignment. Check deliveryId '${delivery.id}' to track queued delivery.`
6704
+ nextAction: `Task '${queuedTask.id}' is queued and pinned to session '${args.session_id}' \u2014 it auto-delivers the moment the session goes idle. Use mesh_status or mesh_task_history to track it; no manual resend needed.`
6706
6705
  });
6707
6706
  }
6708
6707
  }