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