adhdev 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/cli/index.js +28 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -13537,6 +13537,14 @@ var init_provider_cli_adapter = __esm({
|
|
|
13537
13537
|
}
|
|
13538
13538
|
this.resolveStartupState("settled");
|
|
13539
13539
|
if (this.startupParseGate) return;
|
|
13540
|
+
if (!this.isWaitingForResponse && !this.currentTurnScope && !this.activeModal && !this.parseErrorMessage) {
|
|
13541
|
+
const tail = this.settledBuffer || this.recentOutputBuffer;
|
|
13542
|
+
const modal2 = this.runParseApproval(tail);
|
|
13543
|
+
const lightweightStatus = this.cliScripts?.detectStatus ? this.runDetectStatus(tail) : null;
|
|
13544
|
+
if (!modal2 && lightweightStatus === "idle" && this.currentStatus === "idle") {
|
|
13545
|
+
return;
|
|
13546
|
+
}
|
|
13547
|
+
}
|
|
13540
13548
|
const session = this.runParseSession();
|
|
13541
13549
|
if (!session) return;
|
|
13542
13550
|
const { status, messages, modal, parsedStatus } = session;
|
|
@@ -15477,8 +15485,8 @@ var init_cli_provider_instance = __esm({
|
|
|
15477
15485
|
}
|
|
15478
15486
|
detectStatusTransition() {
|
|
15479
15487
|
const now = Date.now();
|
|
15480
|
-
const adapterStatus = this.adapter.getStatus();
|
|
15481
|
-
const parsedStatus =
|
|
15488
|
+
const adapterStatus = this.adapter.getStatus({ allowParse: false });
|
|
15489
|
+
const parsedStatus = null;
|
|
15482
15490
|
const rawStatus = adapterStatus.status;
|
|
15483
15491
|
const autoApproveActive = rawStatus === "waiting_approval" && this.shouldAutoApprove();
|
|
15484
15492
|
if (autoApproveActive && !this.autoApproveBusy) {
|
|
@@ -15571,7 +15579,7 @@ var init_cli_provider_instance = __esm({
|
|
|
15571
15579
|
this.completedDebouncePending = { chatTitle, duration: duration3, timestamp: now };
|
|
15572
15580
|
this.completedDebounceTimer = setTimeout(() => {
|
|
15573
15581
|
if (this.completedDebouncePending) {
|
|
15574
|
-
const latestStatus = this.adapter.getStatus();
|
|
15582
|
+
const latestStatus = this.adapter.getStatus({ allowParse: false });
|
|
15575
15583
|
const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
|
|
15576
15584
|
const latestVisibleStatus = latestAutoApproveActive ? "generating" : latestStatus.status;
|
|
15577
15585
|
if (latestVisibleStatus !== "idle") {
|
|
@@ -88304,7 +88312,7 @@ var init_adhdev_daemon = __esm({
|
|
|
88304
88312
|
init_version();
|
|
88305
88313
|
init_src();
|
|
88306
88314
|
init_runtime_defaults();
|
|
88307
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
88315
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.39" });
|
|
88308
88316
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
88309
88317
|
localHttpServer = null;
|
|
88310
88318
|
localWss = null;
|
|
@@ -88622,12 +88630,24 @@ var init_adhdev_daemon = __esm({
|
|
|
88622
88630
|
}
|
|
88623
88631
|
findProviderStateBySessionId(sessionId) {
|
|
88624
88632
|
if (!this.components || !sessionId) return null;
|
|
88625
|
-
const
|
|
88626
|
-
|
|
88627
|
-
|
|
88628
|
-
|
|
88633
|
+
const directInstance = this.components.instanceManager.getInstance(sessionId);
|
|
88634
|
+
if (directInstance) {
|
|
88635
|
+
try {
|
|
88636
|
+
return directInstance.getState();
|
|
88637
|
+
} catch (error48) {
|
|
88638
|
+
LOG.warn("P2P", `Failed to collect subscribed session state for ${sessionId}: ${error48?.message || String(error48)}`);
|
|
88639
|
+
return null;
|
|
88640
|
+
}
|
|
88641
|
+
}
|
|
88642
|
+
for (const instance of this.components.instanceManager.getByCategory("ide")) {
|
|
88643
|
+
try {
|
|
88644
|
+
const state = instance.getState();
|
|
88645
|
+
if (state.instanceId === sessionId) return state;
|
|
88646
|
+
if (state.category !== "ide") continue;
|
|
88629
88647
|
const child = state.extensions.find((entry) => entry.instanceId === sessionId);
|
|
88630
88648
|
if (child) return child;
|
|
88649
|
+
} catch (error48) {
|
|
88650
|
+
LOG.warn("P2P", `Failed to collect IDE child state for ${sessionId}: ${error48?.message || String(error48)}`);
|
|
88631
88651
|
}
|
|
88632
88652
|
}
|
|
88633
88653
|
return null;
|