adhdev 0.9.14 → 0.9.15
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/cli/index.js +7 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11585,6 +11585,11 @@ __export(provider_cli_adapter_exports, {
|
|
|
11585
11585
|
function normalizeComparableTranscriptText(value) {
|
|
11586
11586
|
return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
|
|
11587
11587
|
}
|
|
11588
|
+
function hasVisibleInterruptPrompt(text) {
|
|
11589
|
+
return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
|
|
11590
|
+
sanitizeTerminalText(text || "")
|
|
11591
|
+
);
|
|
11592
|
+
}
|
|
11588
11593
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
11589
11594
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|
|
11590
11595
|
if (parsedMessages.length > committedMessages.length) return true;
|
|
@@ -12904,7 +12909,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
12904
12909
|
};
|
|
12905
12910
|
}
|
|
12906
12911
|
const hasVisibleAssistantMessage = Array.isArray(result?.messages) && result.messages.some((message) => message?.role === "assistant" && typeof message?.content === "string" && message.content.trim());
|
|
12907
|
-
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage;
|
|
12912
|
+
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage && !hasVisibleInterruptPrompt(screenText);
|
|
12908
12913
|
if (shouldClampStaleGeneratingToIdle) {
|
|
12909
12914
|
result = {
|
|
12910
12915
|
...result,
|
|
@@ -55508,7 +55513,7 @@ var init_adhdev_daemon = __esm({
|
|
|
55508
55513
|
init_version();
|
|
55509
55514
|
init_src();
|
|
55510
55515
|
init_runtime_defaults();
|
|
55511
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
55516
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.15" });
|
|
55512
55517
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
55513
55518
|
localHttpServer = null;
|
|
55514
55519
|
localWss = null;
|