@adhdev/daemon-core 0.9.82-rc.85 → 0.9.82-rc.87
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +4 -4
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import { flattenContent, normalizeInputEnvelope, type InputEnvelope, type Provid
|
|
|
13
13
|
import { assertProviderSupportsDeclaredInput, assertTextOnlyInput } from '../providers/provider-input-support.js';
|
|
14
14
|
import { validateReadChatResultPayload } from '../providers/read-chat-contract.js';
|
|
15
15
|
import type { ProviderInstance } from '../providers/provider-instance.js';
|
|
16
|
-
import { readProviderChatHistory } from '../config/chat-history.js';
|
|
16
|
+
import { isNativeSourceCanonicalHistory, readProviderChatHistory } from '../config/chat-history.js';
|
|
17
17
|
import { LOG, getRecentLogs } from '../logging/logger.js';
|
|
18
18
|
import { getRecentDebugTrace, recordDebugTrace } from '../logging/debug-trace.js';
|
|
19
19
|
import { buildChatMessageSignature, hashSignatureParts } from '../chat/chat-signatures.js';
|
|
@@ -307,7 +307,7 @@ function buildNativeHistoryFallbackReason(args: {
|
|
|
307
307
|
|
|
308
308
|
function supportsCliNativeTranscript(providerType: string, provider?: ProviderModule): boolean {
|
|
309
309
|
if (CLI_NATIVE_TRANSCRIPT_PROVIDERS.has(providerType)) return true;
|
|
310
|
-
return provider?.category === 'cli' && (provider?.canonicalHistory
|
|
310
|
+
return provider?.category === 'cli' && isNativeSourceCanonicalHistory(provider?.canonicalHistory);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
function hasSafeNativeHistoryMapping(args: {
|
|
@@ -1055,7 +1055,7 @@ export async function handleReadChat(h: CommandHelpers, args: any): Promise<Comm
|
|
|
1055
1055
|
ptyStatusApprovalOnly: false,
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
|
-
if (supportsCliNativeTranscript(providerType, provider) && (provider?.canonicalHistory
|
|
1058
|
+
if (supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory)) {
|
|
1059
1059
|
const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
|
|
1060
1060
|
const workspace = typeof args?.workspace === 'string'
|
|
1061
1061
|
? args.workspace
|
|
@@ -1243,7 +1243,7 @@ export async function handleReadChat(h: CommandHelpers, args: any): Promise<Comm
|
|
|
1243
1243
|
ptyStatusApprovalOnly: false,
|
|
1244
1244
|
});
|
|
1245
1245
|
const requiresNativeSource = supportsCliNativeTranscript(agentStr, provider)
|
|
1246
|
-
&& (provider?.canonicalHistory
|
|
1246
|
+
&& isNativeSourceCanonicalHistory(provider?.canonicalHistory);
|
|
1247
1247
|
if (requiresNativeSource && !nativeSelected) {
|
|
1248
1248
|
return {
|
|
1249
1249
|
success: false,
|