@adhdev/daemon-core 0.9.82-rc.404 → 0.9.82-rc.405

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.mjs CHANGED
@@ -394,10 +394,10 @@ function readInjected(value) {
394
394
  }
395
395
  function getDaemonBuildInfo() {
396
396
  if (cached) return cached;
397
- const commit = readInjected(true ? "056bddcd4112e4c90d82fdaab60557ccc7acf2a3" : void 0) ?? "unknown";
398
- const commitShort = readInjected(true ? "056bddcd" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
399
- const version = readInjected(true ? "0.9.82-rc.404" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
400
- const builtAt = readInjected(true ? "2026-06-27T19:00:01.532Z" : void 0);
397
+ const commit = readInjected(true ? "4e4b5f468d194f630073a66359898bce97fadf4b" : void 0) ?? "unknown";
398
+ const commitShort = readInjected(true ? "4e4b5f46" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
399
+ const version = readInjected(true ? "0.9.82-rc.405" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
400
+ const builtAt = readInjected(true ? "2026-06-28T03:54:34.483Z" : void 0);
401
401
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
402
402
  return cached;
403
403
  }
@@ -39583,6 +39583,16 @@ var CliProviderInstance = class _CliProviderInstance {
39583
39583
  // steadily while the session sits idle, so this guard makes the synthesis fire
39584
39584
  // AT MOST ONCE per collapsed turn.
39585
39585
  fastCollapseSynthesizedTaskId = null;
39586
+ // GENERATING-BOUNDARY (R4c): the wall-clock moment the FSM's starting→idle
39587
+ // startup-grace collapse was observed (set ONCE, on the first starting→idle
39588
+ // transition this boot). The idle-stayed collapse window is anchored on THIS,
39589
+ // not on instance/boot time (this.startedAt): the FSM spends the full 8s
39590
+ // startup-grace sitting in 'starting' before collapsing, and a turn can be
39591
+ // dispatched a few seconds AFTER the collapse — measuring the window from boot
39592
+ // would have it already closed by the time that turn lands+completes (the live
39593
+ // R4b miss: collapse at boot+8s, dispatch at boot+12.4s > the 12s boot window).
39594
+ // Anchoring on the collapse moment makes the window cover dispatch-delay+turn.
39595
+ startupGraceCollapseAt = null;
39586
39596
  settings = {};
39587
39597
  monitor;
39588
39598
  generatingDebounceTimer = null;
@@ -40934,6 +40944,7 @@ var CliProviderInstance = class _CliProviderInstance {
40934
40944
  }
40935
40945
  } else if (newStatus === "idle" && this.lastStatus === "starting") {
40936
40946
  this.emitAgentReadyOnce(chatTitle, now);
40947
+ if (this.startupGraceCollapseAt === null) this.startupGraceCollapseAt = now;
40937
40948
  this.maybeSynthesizeStartupGraceCollapse(chatTitle, now, "startup_grace_fast_collapse");
40938
40949
  } else if (newStatus === "error") {
40939
40950
  if (this.generatingDebounceTimer) {
@@ -40973,7 +40984,7 @@ var CliProviderInstance = class _CliProviderInstance {
40973
40984
  }
40974
40985
  this.lastStatus = newStatus;
40975
40986
  }
40976
- if (newStatus === "idle" && previousStatus === "idle" && now - this.startedAt < STARTUP_GRACE_IDLE_COLLAPSE_WINDOW_MS) {
40987
+ if (newStatus === "idle" && previousStatus === "idle" && this.startupGraceCollapseAt !== null && now - this.startupGraceCollapseAt < STARTUP_GRACE_IDLE_COLLAPSE_WINDOW_MS) {
40977
40988
  this.maybeSynthesizeStartupGraceCollapse(chatTitle, now, "startup_grace_idle_turn_collapse");
40978
40989
  }
40979
40990
  if (newStatus === "idle" && adapterStatus.fsmReadySeen === true && !this.agentReadyEmitted) {