@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 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
- return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
29837
- sanitizeTerminalText(text || "")
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;