adhdev 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/cli/index.js +10 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +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
|
@@ -11585,6 +11585,14 @@ __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
|
+
const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
|
|
11590
|
+
return sanitizeTerminalText(text || "").split(/\r?\n/g).some((line) => {
|
|
11591
|
+
const trimmed = line.trim();
|
|
11592
|
+
if (!interruptCopyPattern.test(trimmed)) return false;
|
|
11593
|
+
return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
|
|
11594
|
+
});
|
|
11595
|
+
}
|
|
11588
11596
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
11589
11597
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|
|
11590
11598
|
if (parsedMessages.length > committedMessages.length) return true;
|
|
@@ -12904,7 +12912,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
12904
12912
|
};
|
|
12905
12913
|
}
|
|
12906
12914
|
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;
|
|
12915
|
+
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage && !hasVisibleInterruptPrompt(screenText);
|
|
12908
12916
|
if (shouldClampStaleGeneratingToIdle) {
|
|
12909
12917
|
result = {
|
|
12910
12918
|
...result,
|
|
@@ -55508,7 +55516,7 @@ var init_adhdev_daemon = __esm({
|
|
|
55508
55516
|
init_version();
|
|
55509
55517
|
init_src();
|
|
55510
55518
|
init_runtime_defaults();
|
|
55511
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
55519
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.16" });
|
|
55512
55520
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
55513
55521
|
localHttpServer = null;
|
|
55514
55522
|
localWss = null;
|