@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.js CHANGED
@@ -399,10 +399,10 @@ function readInjected(value) {
399
399
  }
400
400
  function getDaemonBuildInfo() {
401
401
  if (cached) return cached;
402
- const commit = readInjected(true ? "056bddcd4112e4c90d82fdaab60557ccc7acf2a3" : void 0) ?? "unknown";
403
- const commitShort = readInjected(true ? "056bddcd" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
404
- const version = readInjected(true ? "0.9.82-rc.404" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
405
- const builtAt = readInjected(true ? "2026-06-27T19:00:01.532Z" : void 0);
402
+ const commit = readInjected(true ? "4e4b5f468d194f630073a66359898bce97fadf4b" : void 0) ?? "unknown";
403
+ const commitShort = readInjected(true ? "4e4b5f46" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
404
+ const version = readInjected(true ? "0.9.82-rc.405" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
405
+ const builtAt = readInjected(true ? "2026-06-28T03:54:34.483Z" : void 0);
406
406
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
407
407
  return cached;
408
408
  }
@@ -39964,6 +39964,16 @@ var CliProviderInstance = class _CliProviderInstance {
39964
39964
  // steadily while the session sits idle, so this guard makes the synthesis fire
39965
39965
  // AT MOST ONCE per collapsed turn.
39966
39966
  fastCollapseSynthesizedTaskId = null;
39967
+ // GENERATING-BOUNDARY (R4c): the wall-clock moment the FSM's starting→idle
39968
+ // startup-grace collapse was observed (set ONCE, on the first starting→idle
39969
+ // transition this boot). The idle-stayed collapse window is anchored on THIS,
39970
+ // not on instance/boot time (this.startedAt): the FSM spends the full 8s
39971
+ // startup-grace sitting in 'starting' before collapsing, and a turn can be
39972
+ // dispatched a few seconds AFTER the collapse — measuring the window from boot
39973
+ // would have it already closed by the time that turn lands+completes (the live
39974
+ // R4b miss: collapse at boot+8s, dispatch at boot+12.4s > the 12s boot window).
39975
+ // Anchoring on the collapse moment makes the window cover dispatch-delay+turn.
39976
+ startupGraceCollapseAt = null;
39967
39977
  settings = {};
39968
39978
  monitor;
39969
39979
  generatingDebounceTimer = null;
@@ -41315,6 +41325,7 @@ var CliProviderInstance = class _CliProviderInstance {
41315
41325
  }
41316
41326
  } else if (newStatus === "idle" && this.lastStatus === "starting") {
41317
41327
  this.emitAgentReadyOnce(chatTitle, now);
41328
+ if (this.startupGraceCollapseAt === null) this.startupGraceCollapseAt = now;
41318
41329
  this.maybeSynthesizeStartupGraceCollapse(chatTitle, now, "startup_grace_fast_collapse");
41319
41330
  } else if (newStatus === "error") {
41320
41331
  if (this.generatingDebounceTimer) {
@@ -41354,7 +41365,7 @@ var CliProviderInstance = class _CliProviderInstance {
41354
41365
  }
41355
41366
  this.lastStatus = newStatus;
41356
41367
  }
41357
- if (newStatus === "idle" && previousStatus === "idle" && now - this.startedAt < STARTUP_GRACE_IDLE_COLLAPSE_WINDOW_MS) {
41368
+ if (newStatus === "idle" && previousStatus === "idle" && this.startupGraceCollapseAt !== null && now - this.startupGraceCollapseAt < STARTUP_GRACE_IDLE_COLLAPSE_WINDOW_MS) {
41358
41369
  this.maybeSynthesizeStartupGraceCollapse(chatTitle, now, "startup_grace_idle_turn_collapse");
41359
41370
  }
41360
41371
  if (newStatus === "idle" && adapterStatus.fsmReadySeen === true && !this.agentReadyEmitted) {