adhdev 0.8.66 → 0.8.68
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 +20 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10013,6 +10013,8 @@ function resolveCliAdapterConfig(provider) {
|
|
|
10013
10013
|
approvalCooldown: t.approvalCooldown ?? 3e3,
|
|
10014
10014
|
generatingIdle: t.generatingIdle ?? 6e3,
|
|
10015
10015
|
idleFinish: t.idleFinish ?? 5e3,
|
|
10016
|
+
idleFinishConfirm: t.idleFinishConfirm ?? 2e3,
|
|
10017
|
+
statusActivityHold: t.statusActivityHold ?? 2e3,
|
|
10016
10018
|
maxResponse: t.maxResponse ?? 3e5,
|
|
10017
10019
|
shutdownGrace: t.shutdownGrace ?? 1e3,
|
|
10018
10020
|
outputSettle: t.outputSettle ?? 300
|
|
@@ -10262,9 +10264,6 @@ var init_provider_cli_adapter = __esm({
|
|
|
10262
10264
|
traceSessionId = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
|
10263
10265
|
static MAX_TRACE_ENTRIES = 250;
|
|
10264
10266
|
providerResolutionMeta;
|
|
10265
|
-
static IDLE_FINISH_CONFIRM_MS = 2e3;
|
|
10266
|
-
static HERMES_IDLE_FINISH_CONFIRM_MS = 5e3;
|
|
10267
|
-
static STATUS_ACTIVITY_HOLD_MS = 2e3;
|
|
10268
10267
|
static FINISH_RETRY_DELAY_MS = 300;
|
|
10269
10268
|
static MAX_FINISH_RETRIES = 2;
|
|
10270
10269
|
syncMessageViews() {
|
|
@@ -10272,10 +10271,10 @@ var init_provider_cli_adapter = __esm({
|
|
|
10272
10271
|
this.structuredMessages = [...this.committedMessages];
|
|
10273
10272
|
}
|
|
10274
10273
|
getIdleFinishConfirmMs() {
|
|
10275
|
-
return this.
|
|
10274
|
+
return this.timeouts.idleFinishConfirm;
|
|
10276
10275
|
}
|
|
10277
10276
|
getStatusActivityHoldMs() {
|
|
10278
|
-
return this.
|
|
10277
|
+
return this.timeouts.statusActivityHold;
|
|
10279
10278
|
}
|
|
10280
10279
|
setStatus(status, trigger) {
|
|
10281
10280
|
const prev = this.currentStatus;
|
|
@@ -52960,7 +52959,7 @@ var init_adhdev_daemon = __esm({
|
|
|
52960
52959
|
init_source2();
|
|
52961
52960
|
init_version();
|
|
52962
52961
|
init_src();
|
|
52963
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.
|
|
52962
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.68" });
|
|
52964
52963
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
52965
52964
|
localHttpServer = null;
|
|
52966
52965
|
localWss = null;
|
|
@@ -53682,6 +53681,15 @@ ${err?.stack || ""}`);
|
|
|
53682
53681
|
await this.handleCommand(msg, msg.type, msg.payload);
|
|
53683
53682
|
});
|
|
53684
53683
|
}
|
|
53684
|
+
shouldFastFlushLaunchStatus(commandType, result) {
|
|
53685
|
+
if (!result || result.success !== true) return false;
|
|
53686
|
+
return commandType === "launch_cli" || commandType === "launch_ide";
|
|
53687
|
+
}
|
|
53688
|
+
triggerImmediateLaunchStatusUpdate(reason) {
|
|
53689
|
+
this.statusReporter?.resetP2PHash();
|
|
53690
|
+
void this.statusReporter?.sendUnifiedStatusReport({ forceServer: true, reason });
|
|
53691
|
+
void this.flushP2PDaemonMetadataSubscriptions();
|
|
53692
|
+
}
|
|
53685
53693
|
async handleCommand(msg, cmd, args) {
|
|
53686
53694
|
const normalizedArgs = this.ensureInteractionContext(args);
|
|
53687
53695
|
const interactionId = String(normalizedArgs._interactionId);
|
|
@@ -53709,6 +53717,9 @@ ${err?.stack || ""}`);
|
|
|
53709
53717
|
return;
|
|
53710
53718
|
}
|
|
53711
53719
|
const result = await this.components.router.execute(cmd, normalizedArgs, source);
|
|
53720
|
+
if (this.shouldFastFlushLaunchStatus(cmd, result)) {
|
|
53721
|
+
this.triggerImmediateLaunchStatusUpdate(`command:${cmd}`);
|
|
53722
|
+
}
|
|
53712
53723
|
if (cmd.startsWith("workspace_")) this.statusReporter?.throttledReport();
|
|
53713
53724
|
if (cmd === "get_status_metadata" || cmd.startsWith("workspace_") || cmd.startsWith("session_host_")) {
|
|
53714
53725
|
void this.flushP2PDaemonMetadataSubscriptions();
|
|
@@ -53779,6 +53790,9 @@ ${err?.stack || ""}`);
|
|
|
53779
53790
|
}
|
|
53780
53791
|
}
|
|
53781
53792
|
const routed = await this.components.router.execute(cmdType, normalizedData, "p2p");
|
|
53793
|
+
if (this.shouldFastFlushLaunchStatus(cmdType, routed)) {
|
|
53794
|
+
this.triggerImmediateLaunchStatusUpdate(`p2p:${cmdType}`);
|
|
53795
|
+
}
|
|
53782
53796
|
if (cmdType.startsWith("workspace_")) this.statusReporter?.throttledReport();
|
|
53783
53797
|
if (cmdType === "get_status_metadata" || cmdType.startsWith("workspace_") || cmdType.startsWith("session_host_")) {
|
|
53784
53798
|
void this.flushP2PDaemonMetadataSubscriptions();
|