@adhdev/daemon-core 0.9.82-rc.94 → 0.9.82-rc.95
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 +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +7 -1
- package/src/commands/cli-manager.ts +10 -0
package/dist/index.mjs
CHANGED
|
@@ -16920,7 +16920,7 @@ async function handleReadChat(h, args) {
|
|
|
16920
16920
|
returnedStatus: String(returnedStatus || ""),
|
|
16921
16921
|
selectedMessageSource: messageSource.selected,
|
|
16922
16922
|
messageSource,
|
|
16923
|
-
shouldPreferAdapterMessages: supportsCliNativeTranscript(providerType, provider) && messageSource.selected !== "native-history",
|
|
16923
|
+
shouldPreferAdapterMessages: supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory) && messageSource.selected !== "native-history" && typeof messageSource.fallbackReason === "string" && messageSource.fallbackReason.startsWith("native_history_") && messageSource.fallbackReason !== "native_history_not_checked" && !(selectedTranscriptAuthority === "provider" && selectedCoverage === "full"),
|
|
16924
16924
|
parsedMsgCount: parsedRecord.messages.length,
|
|
16925
16925
|
returnedMsgCount: selectedMessages.length
|
|
16926
16926
|
},
|
|
@@ -22059,10 +22059,14 @@ function detectExplicitProviderSessionId(provider, args) {
|
|
|
22059
22059
|
}
|
|
22060
22060
|
const subcommands = resume?.sessionIdFromSubcommand;
|
|
22061
22061
|
if (Array.isArray(subcommands) && subcommands.length > 0) {
|
|
22062
|
+
const hasResumeSubcommand = args.some((arg) => subcommands.includes(arg));
|
|
22062
22063
|
const subcommandSessionId = readSubcommandSessionId(args, subcommands);
|
|
22063
22064
|
if (subcommandSessionId) {
|
|
22064
22065
|
return { providerSessionId: subcommandSessionId, launchMode: "resume" };
|
|
22065
22066
|
}
|
|
22067
|
+
if (hasResumeSubcommand) {
|
|
22068
|
+
return { launchMode: "resume" };
|
|
22069
|
+
}
|
|
22066
22070
|
}
|
|
22067
22071
|
return { launchMode: "manual" };
|
|
22068
22072
|
}
|
|
@@ -22086,6 +22090,12 @@ function resolveCliSessionBinding(provider, normalizedType, cliArgs, requestedRe
|
|
|
22086
22090
|
launchMode: explicit.launchMode
|
|
22087
22091
|
};
|
|
22088
22092
|
}
|
|
22093
|
+
if (explicit.launchMode === "resume") {
|
|
22094
|
+
return {
|
|
22095
|
+
cliArgs: baseArgs,
|
|
22096
|
+
launchMode: "resume"
|
|
22097
|
+
};
|
|
22098
|
+
}
|
|
22089
22099
|
if (explicit.launchMode === "manual" && hasArg(baseArgs || [], ["--session-id"])) {
|
|
22090
22100
|
return {
|
|
22091
22101
|
cliArgs: baseArgs,
|