@adhdev/daemon-core 0.9.76-rc.27 → 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/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/repo-mesh-types.d.ts +1 -0
- package/package.json +1 -1
- package/src/commands/handler.ts +13 -4
- package/src/repo-mesh-types.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -14326,9 +14326,11 @@ var DaemonCommandHandler = class {
|
|
|
14326
14326
|
}
|
|
14327
14327
|
const sessionLookupFailed = !!targetSessionId && !session;
|
|
14328
14328
|
const managerKey = this.extractIdeType(args, sessionLookupFailed);
|
|
14329
|
-
let providerType;
|
|
14329
|
+
let providerType = args?.agentType || args?.providerType;
|
|
14330
14330
|
if (!sessionLookupFailed) {
|
|
14331
|
-
providerType = session?.providerType ||
|
|
14331
|
+
providerType = session?.providerType || providerType || this.inferProviderType(managerKey);
|
|
14332
|
+
} else if (!providerType) {
|
|
14333
|
+
providerType = this.inferProviderType(managerKey);
|
|
14332
14334
|
}
|
|
14333
14335
|
return { session, managerKey, providerType, sessionLookupFailed };
|
|
14334
14336
|
}
|
|
@@ -14408,7 +14410,8 @@ var DaemonCommandHandler = class {
|
|
|
14408
14410
|
"pty_resize",
|
|
14409
14411
|
"invoke_provider_script"
|
|
14410
14412
|
]);
|
|
14411
|
-
|
|
14413
|
+
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);
|
|
14414
|
+
if (this._currentRoute.sessionLookupFailed && sessionScopedCommands.has(cmd) && !allowsInactiveReadChatFallback) {
|
|
14412
14415
|
const result2 = {
|
|
14413
14416
|
success: false,
|
|
14414
14417
|
error: `Live session not found for targetSessionId: ${String(args?.targetSessionId || "").trim() || "unknown"}`
|