@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/session-host-core",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "description": "ADHDev local session host core \u2014 session registry, protocol, buffers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "description": "ADHDev daemon core \u2014 CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -112,9 +112,14 @@ function normalizeComparableTranscriptText(value: unknown): string {
112
112
  }
113
113
 
114
114
  function hasVisibleInterruptPrompt(text: string): boolean {
115
- return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
116
- sanitizeTerminalText(text || ''),
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(