@adhdev/daemon-standalone 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/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-BOMJ4FAL.js +72 -0
- package/public/index.html +1 -1
- package/public/assets/index-C772_8TV.js +0 -72
package/dist/index.js
CHANGED
|
@@ -29019,6 +29019,7 @@ var require_dist2 = __commonJS({
|
|
|
29019
29019
|
terminalScreenText,
|
|
29020
29020
|
baseMessages,
|
|
29021
29021
|
partialResponse,
|
|
29022
|
+
isWaitingForResponse,
|
|
29022
29023
|
scope,
|
|
29023
29024
|
runtimeSettings
|
|
29024
29025
|
} = options;
|
|
@@ -29036,6 +29037,7 @@ var require_dist2 = __commonJS({
|
|
|
29036
29037
|
recentScreen: buildCliScreenSnapshot(recentBuffer),
|
|
29037
29038
|
messages: [...baseMessages],
|
|
29038
29039
|
partialResponse,
|
|
29040
|
+
isWaitingForResponse,
|
|
29039
29041
|
promptText: scope?.prompt || "",
|
|
29040
29042
|
settings: { ...runtimeSettings }
|
|
29041
29043
|
};
|
|
@@ -29770,6 +29772,18 @@ var require_dist2 = __commonJS({
|
|
|
29770
29772
|
const holdMs = this.getStatusActivityHoldMs();
|
|
29771
29773
|
return quietForMs < holdMs || screenStableMs < holdMs;
|
|
29772
29774
|
}
|
|
29775
|
+
shouldDeferIdleTimeoutFinish() {
|
|
29776
|
+
if (!this.isWaitingForResponse || this.currentStatus === "waiting_approval") {
|
|
29777
|
+
return false;
|
|
29778
|
+
}
|
|
29779
|
+
const latestStatus = this.runDetectStatus(this.recentOutputBuffer) || this.currentStatus;
|
|
29780
|
+
if (latestStatus === "generating") {
|
|
29781
|
+
this.settledBuffer = this.recentOutputBuffer;
|
|
29782
|
+
this.evaluateSettled();
|
|
29783
|
+
return true;
|
|
29784
|
+
}
|
|
29785
|
+
return false;
|
|
29786
|
+
}
|
|
29773
29787
|
getStartupConfirmationModal(screenText) {
|
|
29774
29788
|
const text = sanitizeTerminalText(String(screenText || ""));
|
|
29775
29789
|
if (!text.trim()) return null;
|
|
@@ -29928,6 +29942,7 @@ var require_dist2 = __commonJS({
|
|
|
29928
29942
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
29929
29943
|
this.idleTimeout = setTimeout(() => {
|
|
29930
29944
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
29945
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
29931
29946
|
this.finishResponse();
|
|
29932
29947
|
}
|
|
29933
29948
|
}, this.timeouts.generatingIdle);
|
|
@@ -29963,6 +29978,7 @@ var require_dist2 = __commonJS({
|
|
|
29963
29978
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
29964
29979
|
this.idleTimeout = setTimeout(() => {
|
|
29965
29980
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
29981
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
29966
29982
|
this.finishResponse();
|
|
29967
29983
|
}
|
|
29968
29984
|
}, this.timeouts.generatingIdle);
|
|
@@ -30005,7 +30021,10 @@ var require_dist2 = __commonJS({
|
|
|
30005
30021
|
this.setStatus("generating", "script_detect");
|
|
30006
30022
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
30007
30023
|
this.idleTimeout = setTimeout(() => {
|
|
30008
|
-
if (this.isWaitingForResponse)
|
|
30024
|
+
if (this.isWaitingForResponse) {
|
|
30025
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
30026
|
+
this.finishResponse();
|
|
30027
|
+
}
|
|
30009
30028
|
}, this.timeouts.generatingIdle);
|
|
30010
30029
|
this.onStatusChange?.();
|
|
30011
30030
|
return;
|
|
@@ -30073,6 +30092,7 @@ var require_dist2 = __commonJS({
|
|
|
30073
30092
|
if (this.idleTimeout) clearTimeout(this.idleTimeout);
|
|
30074
30093
|
this.idleTimeout = setTimeout(() => {
|
|
30075
30094
|
if (this.isWaitingForResponse && this.currentStatus !== "waiting_approval") {
|
|
30095
|
+
if (this.shouldDeferIdleTimeoutFinish()) return;
|
|
30076
30096
|
this.clearIdleFinishCandidate("idle_timeout_finish");
|
|
30077
30097
|
this.finishResponse();
|
|
30078
30098
|
}
|
|
@@ -30211,6 +30231,7 @@ var require_dist2 = __commonJS({
|
|
|
30211
30231
|
tail: text.slice(-500),
|
|
30212
30232
|
screenText,
|
|
30213
30233
|
rawBuffer: this.accumulatedRawBuffer,
|
|
30234
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
30214
30235
|
screen: buildCliScreenSnapshot(screenText),
|
|
30215
30236
|
tailScreen: buildCliScreenSnapshot(text.slice(-500))
|
|
30216
30237
|
});
|
|
@@ -30320,6 +30341,7 @@ var require_dist2 = __commonJS({
|
|
|
30320
30341
|
terminalScreenText: this.terminalScreen.getText(),
|
|
30321
30342
|
baseMessages: this.committedMessages,
|
|
30322
30343
|
partialResponse: this.responseBuffer,
|
|
30344
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
30323
30345
|
scope: this.currentTurnScope,
|
|
30324
30346
|
runtimeSettings: this.runtimeSettings
|
|
30325
30347
|
});
|
|
@@ -30338,6 +30360,7 @@ var require_dist2 = __commonJS({
|
|
|
30338
30360
|
terminalScreenText: this.terminalScreen.getText(),
|
|
30339
30361
|
baseMessages,
|
|
30340
30362
|
partialResponse,
|
|
30363
|
+
isWaitingForResponse: this.isWaitingForResponse,
|
|
30341
30364
|
scope,
|
|
30342
30365
|
runtimeSettings: this.runtimeSettings
|
|
30343
30366
|
});
|