@adhdev/daemon-core 0.9.38 → 0.9.39
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 +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +11 -0
- package/src/providers/cli-provider-instance.ts +6 -3
package/dist/index.mjs
CHANGED
|
@@ -2848,6 +2848,14 @@ var init_provider_cli_adapter = __esm({
|
|
|
2848
2848
|
}
|
|
2849
2849
|
this.resolveStartupState("settled");
|
|
2850
2850
|
if (this.startupParseGate) return;
|
|
2851
|
+
if (!this.isWaitingForResponse && !this.currentTurnScope && !this.activeModal && !this.parseErrorMessage) {
|
|
2852
|
+
const tail = this.settledBuffer || this.recentOutputBuffer;
|
|
2853
|
+
const modal2 = this.runParseApproval(tail);
|
|
2854
|
+
const lightweightStatus = this.cliScripts?.detectStatus ? this.runDetectStatus(tail) : null;
|
|
2855
|
+
if (!modal2 && lightweightStatus === "idle" && this.currentStatus === "idle") {
|
|
2856
|
+
return;
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2851
2859
|
const session = this.runParseSession();
|
|
2852
2860
|
if (!session) return;
|
|
2853
2861
|
const { status, messages, modal, parsedStatus } = session;
|
|
@@ -13543,8 +13551,8 @@ var CliProviderInstance = class {
|
|
|
13543
13551
|
}
|
|
13544
13552
|
detectStatusTransition() {
|
|
13545
13553
|
const now = Date.now();
|
|
13546
|
-
const adapterStatus = this.adapter.getStatus();
|
|
13547
|
-
const parsedStatus =
|
|
13554
|
+
const adapterStatus = this.adapter.getStatus({ allowParse: false });
|
|
13555
|
+
const parsedStatus = null;
|
|
13548
13556
|
const rawStatus = adapterStatus.status;
|
|
13549
13557
|
const autoApproveActive = rawStatus === "waiting_approval" && this.shouldAutoApprove();
|
|
13550
13558
|
if (autoApproveActive && !this.autoApproveBusy) {
|
|
@@ -13637,7 +13645,7 @@ var CliProviderInstance = class {
|
|
|
13637
13645
|
this.completedDebouncePending = { chatTitle, duration, timestamp: now };
|
|
13638
13646
|
this.completedDebounceTimer = setTimeout(() => {
|
|
13639
13647
|
if (this.completedDebouncePending) {
|
|
13640
|
-
const latestStatus = this.adapter.getStatus();
|
|
13648
|
+
const latestStatus = this.adapter.getStatus({ allowParse: false });
|
|
13641
13649
|
const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
|
|
13642
13650
|
const latestVisibleStatus = latestAutoApproveActive ? "generating" : latestStatus.status;
|
|
13643
13651
|
if (latestVisibleStatus !== "idle") {
|