@adhdev/daemon-core 0.9.82-rc.86 → 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 CHANGED
@@ -16146,7 +16146,7 @@ function buildNativeHistoryFallbackReason(args) {
16146
16146
  }
16147
16147
  function supportsCliNativeTranscript(providerType, provider) {
16148
16148
  if (CLI_NATIVE_TRANSCRIPT_PROVIDERS.has(providerType)) return true;
16149
- return provider?.category === "cli" && provider?.canonicalHistory?.mode === "native-source";
16149
+ return provider?.category === "cli" && isNativeSourceCanonicalHistory(provider?.canonicalHistory);
16150
16150
  }
16151
16151
  function hasSafeNativeHistoryMapping(args) {
16152
16152
  const explicitSessionId = String(args.historySessionId || args.providerSessionId || "").trim();
@@ -16758,7 +16758,7 @@ async function handleReadChat(h, args) {
16758
16758
  returnedMessages,
16759
16759
  ptyStatusApprovalOnly: false
16760
16760
  });
16761
- if (supportsCliNativeTranscript(providerType, provider) && provider?.canonicalHistory?.mode === "native-source") {
16761
+ if (supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory)) {
16762
16762
  const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
16763
16763
  const workspace = typeof args?.workspace === "string" ? args.workspace : typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
16764
16764
  const nativeHistoryLimit = Math.max(
@@ -16919,7 +16919,7 @@ async function handleReadChat(h, args) {
16919
16919
  freshEnough: true,
16920
16920
  ptyStatusApprovalOnly: false
16921
16921
  });
16922
- const requiresNativeSource = supportsCliNativeTranscript(agentStr, provider) && provider?.canonicalHistory?.mode === "native-source";
16922
+ const requiresNativeSource = supportsCliNativeTranscript(agentStr, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory);
16923
16923
  if (requiresNativeSource && !nativeSelected) {
16924
16924
  return {
16925
16925
  success: false,