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/index.js
CHANGED
|
@@ -12581,6 +12581,14 @@ var init_provider_cli_adapter = __esm({
|
|
|
12581
12581
|
}
|
|
12582
12582
|
this.resolveStartupState("settled");
|
|
12583
12583
|
if (this.startupParseGate) return;
|
|
12584
|
+
if (!this.isWaitingForResponse && !this.currentTurnScope && !this.activeModal && !this.parseErrorMessage) {
|
|
12585
|
+
const tail = this.settledBuffer || this.recentOutputBuffer;
|
|
12586
|
+
const modal2 = this.runParseApproval(tail);
|
|
12587
|
+
const lightweightStatus = this.cliScripts?.detectStatus ? this.runDetectStatus(tail) : null;
|
|
12588
|
+
if (!modal2 && lightweightStatus === "idle" && this.currentStatus === "idle") {
|
|
12589
|
+
return;
|
|
12590
|
+
}
|
|
12591
|
+
}
|
|
12584
12592
|
const session = this.runParseSession();
|
|
12585
12593
|
if (!session) return;
|
|
12586
12594
|
const { status, messages, modal, parsedStatus } = session;
|
|
@@ -14521,8 +14529,8 @@ var init_cli_provider_instance = __esm({
|
|
|
14521
14529
|
}
|
|
14522
14530
|
detectStatusTransition() {
|
|
14523
14531
|
const now = Date.now();
|
|
14524
|
-
const adapterStatus = this.adapter.getStatus();
|
|
14525
|
-
const parsedStatus =
|
|
14532
|
+
const adapterStatus = this.adapter.getStatus({ allowParse: false });
|
|
14533
|
+
const parsedStatus = null;
|
|
14526
14534
|
const rawStatus = adapterStatus.status;
|
|
14527
14535
|
const autoApproveActive = rawStatus === "waiting_approval" && this.shouldAutoApprove();
|
|
14528
14536
|
if (autoApproveActive && !this.autoApproveBusy) {
|
|
@@ -14615,7 +14623,7 @@ var init_cli_provider_instance = __esm({
|
|
|
14615
14623
|
this.completedDebouncePending = { chatTitle, duration: duration3, timestamp: now };
|
|
14616
14624
|
this.completedDebounceTimer = setTimeout(() => {
|
|
14617
14625
|
if (this.completedDebouncePending) {
|
|
14618
|
-
const latestStatus = this.adapter.getStatus();
|
|
14626
|
+
const latestStatus = this.adapter.getStatus({ allowParse: false });
|
|
14619
14627
|
const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
|
|
14620
14628
|
const latestVisibleStatus = latestAutoApproveActive ? "generating" : latestStatus.status;
|
|
14621
14629
|
if (latestVisibleStatus !== "idle") {
|
|
@@ -56584,7 +56592,7 @@ var init_adhdev_daemon = __esm({
|
|
|
56584
56592
|
init_version();
|
|
56585
56593
|
init_src();
|
|
56586
56594
|
init_runtime_defaults();
|
|
56587
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
56595
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.39" });
|
|
56588
56596
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
56589
56597
|
localHttpServer = null;
|
|
56590
56598
|
localWss = null;
|
|
@@ -56902,12 +56910,24 @@ var init_adhdev_daemon = __esm({
|
|
|
56902
56910
|
}
|
|
56903
56911
|
findProviderStateBySessionId(sessionId) {
|
|
56904
56912
|
if (!this.components || !sessionId) return null;
|
|
56905
|
-
const
|
|
56906
|
-
|
|
56907
|
-
|
|
56908
|
-
|
|
56913
|
+
const directInstance = this.components.instanceManager.getInstance(sessionId);
|
|
56914
|
+
if (directInstance) {
|
|
56915
|
+
try {
|
|
56916
|
+
return directInstance.getState();
|
|
56917
|
+
} catch (error48) {
|
|
56918
|
+
LOG.warn("P2P", `Failed to collect subscribed session state for ${sessionId}: ${error48?.message || String(error48)}`);
|
|
56919
|
+
return null;
|
|
56920
|
+
}
|
|
56921
|
+
}
|
|
56922
|
+
for (const instance of this.components.instanceManager.getByCategory("ide")) {
|
|
56923
|
+
try {
|
|
56924
|
+
const state = instance.getState();
|
|
56925
|
+
if (state.instanceId === sessionId) return state;
|
|
56926
|
+
if (state.category !== "ide") continue;
|
|
56909
56927
|
const child = state.extensions.find((entry) => entry.instanceId === sessionId);
|
|
56910
56928
|
if (child) return child;
|
|
56929
|
+
} catch (error48) {
|
|
56930
|
+
LOG.warn("P2P", `Failed to collect IDE child state for ${sessionId}: ${error48?.message || String(error48)}`);
|
|
56911
56931
|
}
|
|
56912
56932
|
}
|
|
56913
56933
|
return null;
|