@adhdev/daemon-standalone 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 +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{index-Ev_9FKNG.js → index-BYtAw8dq.js} +4 -4
- package/public/index.html +1 -1
- package/vendor/session-host-daemon/index.js +8 -5
- package/vendor/session-host-daemon/index.js.map +1 -1
- package/vendor/session-host-daemon/index.mjs +8 -5
- package/vendor/session-host-daemon/index.mjs.map +1 -1
package/dist/index.js
CHANGED
|
@@ -29833,9 +29833,12 @@ var require_dist2 = __commonJS({
|
|
|
29833
29833
|
return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
|
|
29834
29834
|
}
|
|
29835
29835
|
function hasVisibleInterruptPrompt(text) {
|
|
29836
|
-
|
|
29837
|
-
|
|
29838
|
-
|
|
29836
|
+
const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
|
|
29837
|
+
return sanitizeTerminalText(text || "").split(/\r?\n/g).some((line) => {
|
|
29838
|
+
const trimmed = line.trim();
|
|
29839
|
+
if (!interruptCopyPattern.test(trimmed)) return false;
|
|
29840
|
+
return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
|
|
29841
|
+
});
|
|
29839
29842
|
}
|
|
29840
29843
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
29841
29844
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|