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/cli/index.js
CHANGED
|
@@ -12541,6 +12541,14 @@ __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
|
+
const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
|
|
12546
|
+
return sanitizeTerminalText(text || "").split(/\r?\n/g).some((line) => {
|
|
12547
|
+
const trimmed = line.trim();
|
|
12548
|
+
if (!interruptCopyPattern.test(trimmed)) return false;
|
|
12549
|
+
return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
|
|
12550
|
+
});
|
|
12551
|
+
}
|
|
12544
12552
|
function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
|
|
12545
12553
|
if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
|
|
12546
12554
|
if (parsedMessages.length > committedMessages.length) return true;
|
|
@@ -13860,7 +13868,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
13860
13868
|
};
|
|
13861
13869
|
}
|
|
13862
13870
|
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;
|
|
13871
|
+
const shouldClampStaleGeneratingToIdle = result?.status === "generating" && this.currentStatus === "idle" && !this.currentTurnScope && !result?.activeModal && hasVisibleAssistantMessage && !hasVisibleInterruptPrompt(screenText);
|
|
13864
13872
|
if (shouldClampStaleGeneratingToIdle) {
|
|
13865
13873
|
result = {
|
|
13866
13874
|
...result,
|
|
@@ -87228,7 +87236,7 @@ var init_adhdev_daemon = __esm({
|
|
|
87228
87236
|
init_version();
|
|
87229
87237
|
init_src();
|
|
87230
87238
|
init_runtime_defaults();
|
|
87231
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
87239
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.16" });
|
|
87232
87240
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
87233
87241
|
localHttpServer = null;
|
|
87234
87242
|
localWss = null;
|