@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.js
CHANGED
|
@@ -17179,7 +17179,7 @@ async function handleReadChat(h, args) {
|
|
|
17179
17179
|
returnedStatus: String(returnedStatus || ""),
|
|
17180
17180
|
selectedMessageSource: messageSource.selected,
|
|
17181
17181
|
messageSource,
|
|
17182
|
-
shouldPreferAdapterMessages: supportsCliNativeTranscript(providerType, provider) && messageSource.selected !== "native-history",
|
|
17182
|
+
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"),
|
|
17183
17183
|
parsedMsgCount: parsedRecord.messages.length,
|
|
17184
17184
|
returnedMsgCount: selectedMessages.length
|
|
17185
17185
|
},
|
|
@@ -22313,10 +22313,14 @@ function detectExplicitProviderSessionId(provider, args) {
|
|
|
22313
22313
|
}
|
|
22314
22314
|
const subcommands = resume?.sessionIdFromSubcommand;
|
|
22315
22315
|
if (Array.isArray(subcommands) && subcommands.length > 0) {
|
|
22316
|
+
const hasResumeSubcommand = args.some((arg) => subcommands.includes(arg));
|
|
22316
22317
|
const subcommandSessionId = readSubcommandSessionId(args, subcommands);
|
|
22317
22318
|
if (subcommandSessionId) {
|
|
22318
22319
|
return { providerSessionId: subcommandSessionId, launchMode: "resume" };
|
|
22319
22320
|
}
|
|
22321
|
+
if (hasResumeSubcommand) {
|
|
22322
|
+
return { launchMode: "resume" };
|
|
22323
|
+
}
|
|
22320
22324
|
}
|
|
22321
22325
|
return { launchMode: "manual" };
|
|
22322
22326
|
}
|
|
@@ -22340,6 +22344,12 @@ function resolveCliSessionBinding(provider, normalizedType, cliArgs, requestedRe
|
|
|
22340
22344
|
launchMode: explicit.launchMode
|
|
22341
22345
|
};
|
|
22342
22346
|
}
|
|
22347
|
+
if (explicit.launchMode === "resume") {
|
|
22348
|
+
return {
|
|
22349
|
+
cliArgs: baseArgs,
|
|
22350
|
+
launchMode: "resume"
|
|
22351
|
+
};
|
|
22352
|
+
}
|
|
22343
22353
|
if (explicit.launchMode === "manual" && hasArg(baseArgs || [], ["--session-id"])) {
|
|
22344
22354
|
return {
|
|
22345
22355
|
cliArgs: baseArgs,
|