@adhdev/daemon-core 0.9.15 → 0.9.16

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
@@ -1965,9 +1965,12 @@ function normalizeComparableTranscriptText(value) {
1965
1965
  return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
1966
1966
  }
1967
1967
  function hasVisibleInterruptPrompt(text) {
1968
- return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
1969
- sanitizeTerminalText(text || "")
1970
- );
1968
+ const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
1969
+ return sanitizeTerminalText(text || "").split(/\r?\n/g).some((line) => {
1970
+ const trimmed = line.trim();
1971
+ if (!interruptCopyPattern.test(trimmed)) return false;
1972
+ return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
1973
+ });
1971
1974
  }
1972
1975
  function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
1973
1976
  if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;