@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/package.json
CHANGED
|
@@ -112,9 +112,14 @@ function normalizeComparableTranscriptText(value: unknown): string {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
function hasVisibleInterruptPrompt(text: string): boolean {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
|
|
116
|
+
return sanitizeTerminalText(text || '')
|
|
117
|
+
.split(/\r?\n/g)
|
|
118
|
+
.some((line) => {
|
|
119
|
+
const trimmed = line.trim();
|
|
120
|
+
if (!interruptCopyPattern.test(trimmed)) return false;
|
|
121
|
+
return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
|
|
122
|
+
});
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
function parsedTranscriptIsRicherThanCommitted(
|