@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.mjs CHANGED
@@ -15887,7 +15887,7 @@ function buildNativeHistoryFallbackReason(args) {
15887
15887
  }
15888
15888
  function supportsCliNativeTranscript(providerType, provider) {
15889
15889
  if (CLI_NATIVE_TRANSCRIPT_PROVIDERS.has(providerType)) return true;
15890
- return provider?.category === "cli" && provider?.canonicalHistory?.mode === "native-source";
15890
+ return provider?.category === "cli" && isNativeSourceCanonicalHistory(provider?.canonicalHistory);
15891
15891
  }
15892
15892
  function hasSafeNativeHistoryMapping(args) {
15893
15893
  const explicitSessionId = String(args.historySessionId || args.providerSessionId || "").trim();
@@ -16499,7 +16499,7 @@ async function handleReadChat(h, args) {
16499
16499
  returnedMessages,
16500
16500
  ptyStatusApprovalOnly: false
16501
16501
  });
16502
- if (supportsCliNativeTranscript(providerType, provider) && provider?.canonicalHistory?.mode === "native-source") {
16502
+ if (supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory)) {
16503
16503
  const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
16504
16504
  const workspace = typeof args?.workspace === "string" ? args.workspace : typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
16505
16505
  const nativeHistoryLimit = Math.max(
@@ -16660,7 +16660,7 @@ async function handleReadChat(h, args) {
16660
16660
  freshEnough: true,
16661
16661
  ptyStatusApprovalOnly: false
16662
16662
  });
16663
- const requiresNativeSource = supportsCliNativeTranscript(agentStr, provider) && provider?.canonicalHistory?.mode === "native-source";
16663
+ const requiresNativeSource = supportsCliNativeTranscript(agentStr, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory);
16664
16664
  if (requiresNativeSource && !nativeSelected) {
16665
16665
  return {
16666
16666
  success: false,