@adhdev/daemon-standalone 0.9.14 → 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 +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{index-CJgCVayH.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
|
@@ -29832,6 +29832,14 @@ var require_dist2 = __commonJS({
|
|
|
29832
29832
|
function normalizeComparableTranscriptText(value) {
|
|
29833
29833
|
return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
|
|
29834
29834
|
}
|
|
29835
|
+
function hasVisibleInterruptPrompt(text) {
|
|
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
|
+
});
|
|
29842
|
+
}
|
|
29835
29843
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
29836
29844
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|
|
29837
29845
|
if (parsedMessages.length > committedMessages.length) return true;
|
|
@@ -31152,7 +31160,7 @@ var require_dist2 = __commonJS({
|
|
|
31152
31160
|
};
|
|
31153
31161
|
}
|
|
31154
31162
|
const hasVisibleAssistantMessage = Array.isArray(result?.messages) && result.messages.some((message) => message?.role === "assistant" && typeof message?.content === "string" && message.content.trim());
|
|
31155
|
-
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage;
|
|
31163
|
+
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage && !hasVisibleInterruptPrompt(screenText);
|
|
31156
31164
|
if (shouldClampStaleGeneratingToIdle) {
|
|
31157
31165
|
result = {
|
|
31158
31166
|
...result,
|