adhdev 0.8.61 → 0.8.63
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 +25 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +25 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9567,6 +9567,7 @@ function buildCliParseInput(options) {
|
|
|
9567
9567
|
terminalScreenText,
|
|
9568
9568
|
baseMessages,
|
|
9569
9569
|
partialResponse,
|
|
9570
|
+
isWaitingForResponse,
|
|
9570
9571
|
scope,
|
|
9571
9572
|
runtimeSettings
|
|
9572
9573
|
} = options;
|
|
@@ -9584,6 +9585,7 @@ function buildCliParseInput(options) {
|
|
|
9584
9585
|
recentScreen: buildCliScreenSnapshot(recentBuffer),
|
|
9585
9586
|
messages: [...baseMessages],
|
|
9586
9587
|
partialResponse,
|
|
9588
|
+
isWaitingForResponse,
|
|
9587
9589
|
promptText: scope?.prompt || "",
|
|
9588
9590
|
settings: { ...runtimeSettings }
|
|
9589
9591
|
};
|
|
@@ -10322,6 +10324,18 @@ var init_provider_cli_adapter = __esm({
|
|
|
10322
10324
|
const holdMs = this.getStatusActivityHoldMs();
|
|
10323
10325
|
return quietForMs < holdMs || screenStableMs < holdMs;
|
|
10324
10326
|
}
|
|
10327
|
+
shouldDeferIdleTimeoutFinish() {
|
|
10328
|
+
if (!this.isWaitingForResponse || this.currentStatus === "waiting_approval") {
|
|
10329
|
+
return false;
|
|
10330
|
+
}
|
|
10331
|
+
const latestStatus = this.runDetectStatus(this.recentOutputBuffer) || this.currentStatus;
|
|
10332
|
+
if (latestStatus === "generating") {
|
|
10333
|
+
this.settledBuffer = this.recentOutputBuffer;
|
|
10334
|
+
this.evaluateSettled();
|
|
10335
|
+
return true;
|
|
10336
|
+
}
|
|
10337
|
+
return false;
|
|
10338
|
+
}
|
|
10325
10339
|
getStartupConfirmationModal(screenText) {
|
|
10326
10340
|
const text = sanitizeTerminalText(String(screenText || ""));
|
|
10327
10341
|
if (!text.trim()) return null;
|
|
@@ -10480,6 +10494,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10480
10494
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
10481
10495
|
this.idleTimeout = setTimeout(() => {
|
|
10482
10496
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
10497
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
10483
10498
|
this.finishResponse();
|
|
10484
10499
|
}
|
|
10485
10500
|
}, this.timeouts.generatingIdle);
|
|
@@ -10515,6 +10530,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10515
10530
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
10516
10531
|
this.idleTimeout = setTimeout(() => {
|
|
10517
10532
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
10533
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
10518
10534
|
this.finishResponse();
|
|
10519
10535
|
}
|
|
10520
10536
|
}, this.timeouts.generatingIdle);
|
|
@@ -10557,7 +10573,10 @@ var init_provider_cli_adapter = __esm({
|
|
|
10557
10573
|
this.setStatus("generating", "script_detect");
|
|
10558
10574
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
10559
10575
|
this.idleTimeout = setTimeout(() => {
|
|
10560
|
-
if (this.isWaitingForResponse)
|
|
10576
|
+
if (this.isWaitingForResponse) {
|
|
10577
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
10578
|
+
this.finishResponse();
|
|
10579
|
+
}
|
|
10561
10580
|
}, this.timeouts.generatingIdle);
|
|
10562
10581
|
this.onStatusChange?.();
|
|
10563
10582
|
return;
|
|
@@ -10625,6 +10644,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10625
10644
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
10626
10645
|
this.idleTimeout = setTimeout(() => {
|
|
10627
10646
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
10647
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
10628
10648
|
this.clearIdleFinishCandidate("idle_timeout_finish");
|
|
10629
10649
|
this.finishResponse();
|
|
10630
10650
|
}
|
|
@@ -10763,6 +10783,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10763
10783
|
tail: text.slice(-500),
|
|
10764
10784
|
screenText,
|
|
10765
10785
|
rawBuffer: this.accumulatedRawBuffer,
|
|
10786
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
10766
10787
|
screen: buildCliScreenSnapshot(screenText),
|
|
10767
10788
|
tailScreen: buildCliScreenSnapshot(text.slice(-500))
|
|
10768
10789
|
});
|
|
@@ -10872,6 +10893,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10872
10893
|
terminalScreenText: this.terminalScreen.getText(),
|
|
10873
10894
|
baseMessages: this.committedMessages,
|
|
10874
10895
|
partialResponse: this.responseBuffer,
|
|
10896
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
10875
10897
|
scope: this.currentTurnScope,
|
|
10876
10898
|
runtimeSettings: this.runtimeSettings
|
|
10877
10899
|
});
|
|
@@ -10890,6 +10912,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
10890
10912
|
terminalScreenText: this.terminalScreen.getText(),
|
|
10891
10913
|
baseMessages,
|
|
10892
10914
|
partialResponse,
|
|
10915
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
10893
10916
|
scope,
|
|
10894
10917
|
runtimeSettings: this.runtimeSettings
|
|
10895
10918
|
});
|
|
@@ -52399,7 +52422,7 @@ var init_adhdev_daemon = __esm({
|
|
|
52399
52422
|
import_ws3 = require("ws");
|
|
52400
52423
|
init_source2();
|
|
52401
52424
|
init_version();
|
|
52402
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.
|
|
52425
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.63" });
|
|
52403
52426
|
ACTIVE_CHAT_POLL_STATUSES = /* @__PURE__ */ new Set([
|
|
52404
52427
|
"generating",
|
|
52405
52428
|
"waiting_approval",
|