@adhdev/daemon-standalone 0.9.76-rc.28 → 0.9.76-rc.29

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.76-rc.28",
3
+ "version": "0.9.76-rc.29",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -46043,9 +46043,11 @@ ${effect.notification.body || ""}`.trim();
46043
46043
  }
46044
46044
  const sessionLookupFailed = !!targetSessionId && !session;
46045
46045
  const managerKey = this.extractIdeType(args, sessionLookupFailed);
46046
- let providerType;
46046
+ let providerType = args?.agentType || args?.providerType;
46047
46047
  if (!sessionLookupFailed) {
46048
- providerType = session?.providerType || args?.agentType || args?.providerType || this.inferProviderType(managerKey);
46048
+ providerType = session?.providerType || providerType || this.inferProviderType(managerKey);
46049
+ } else if (!providerType) {
46050
+ providerType = this.inferProviderType(managerKey);
46049
46051
  }
46050
46052
  return { session, managerKey, providerType, sessionLookupFailed };
46051
46053
  }
@@ -46125,7 +46127,8 @@ ${effect.notification.body || ""}`.trim();
46125
46127
  "pty_resize",
46126
46128
  "invoke_provider_script"
46127
46129
  ]);
46128
- if (this._currentRoute.sessionLookupFailed && sessionScopedCommands.has(cmd)) {
46130
+ const allowsInactiveReadChatFallback = cmd === "read_chat" && !!this._currentRoute.providerType && (typeof args?.providerSessionId === "string" && args.providerSessionId.trim().length > 0 || typeof args?.historySessionId === "string" && args.historySessionId.trim().length > 0);
46131
+ if (this._currentRoute.sessionLookupFailed && sessionScopedCommands.has(cmd) && !allowsInactiveReadChatFallback) {
46129
46132
  const result2 = {
46130
46133
  success: false,
46131
46134
  error: `Live session not found for targetSessionId: ${String(args?.targetSessionId || "").trim() || "unknown"}`
@@ -56877,7 +56880,7 @@ async function meshLaunchSession(ctx, args) {
56877
56880
  const rawProviderPriority = node.policy?.providerPriority;
56878
56881
  const providerPriority = Array.isArray(rawProviderPriority) ? rawProviderPriority.map((type2) => typeof type2 === "string" ? type2.trim() : "").filter(Boolean) : [];
56879
56882
  if (!providerPriority.length) {
56880
- return JSON.stringify({ error: `Node '${args.node_id}' has no providerPriority policy; pass type explicitly or configure node.policy.providerPriority` });
56883
+ return JSON.stringify({ success: false, error: `Node '${args.node_id}' has no providerPriority policy; pass type explicitly or configure node.policy.providerPriority` });
56881
56884
  }
56882
56885
  const failed = [];
56883
56886
  for (const providerType of providerPriority) {
@@ -56890,7 +56893,7 @@ async function meshLaunchSession(ctx, args) {
56890
56893
  failed.push(`${providerType}: ${detectedPayload?.error || "not detected"}`);
56891
56894
  }
56892
56895
  if (!resolvedProviderType) {
56893
- return JSON.stringify({ error: `No usable provider detected for node '${args.node_id}' from providerPriority: ${failed.join("; ")}` });
56896
+ return JSON.stringify({ success: false, error: `No usable provider detected for node '${args.node_id}' from providerPriority: ${failed.join("; ")}` });
56894
56897
  }
56895
56898
  }
56896
56899
  const result = await commandForNode(ctx, node, "launch_cli", {