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/cli/index.js
CHANGED
|
@@ -12541,6 +12541,11 @@ __export(provider_cli_adapter_exports, {
|
|
|
12541
12541
|
function normalizeComparableTranscriptText(value) {
|
|
12542
12542
|
return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
|
|
12543
12543
|
}
|
|
12544
|
+
function hasVisibleInterruptPrompt(text) {
|
|
12545
|
+
return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
|
|
12546
|
+
sanitizeTerminalText(text || "")
|
|
12547
|
+
);
|
|
12548
|
+
}
|
|
12544
12549
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
12545
12550
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|
|
12546
12551
|
if (parsedMessages.length > committedMessages.length) return true;
|
|
@@ -13860,7 +13865,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
13860
13865
|
};
|
|
13861
13866
|
}
|
|
13862
13867
|
const hasVisibleAssistantMessage = Array.isArray(result?.messages) && result.messages.some((message) => message?.role === "assistant" && typeof message?.content === "string" && message.content.trim());
|
|
13863
|
-
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage;
|
|
13868
|
+
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage && !hasVisibleInterruptPrompt(screenText);
|
|
13864
13869
|
if (shouldClampStaleGeneratingToIdle) {
|
|
13865
13870
|
result = {
|
|
13866
13871
|
...result,
|
|
@@ -87228,7 +87233,7 @@ var init_adhdev_daemon = __esm({
|
|
|
87228
87233
|
init_version();
|
|
87229
87234
|
init_src();
|
|
87230
87235
|
init_runtime_defaults();
|
|
87231
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
87236
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.15" });
|
|
87232
87237
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
87233
87238
|
localHttpServer = null;
|
|
87234
87239
|
localWss = null;
|