@adhdev/daemon-core 0.9.82-rc.402 → 0.9.82-rc.403

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 ? "93b00efeec1fccd6550c1faf5fa838106caef4bb" : void 0) ?? "unknown";
398
- const commitShort = readInjected(true ? "93b00efe" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
399
- const version = readInjected(true ? "0.9.82-rc.402" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
400
- const builtAt = readInjected(true ? "2026-06-27T16:41:05.513Z" : void 0);
397
+ const commit = readInjected(true ? "9522954406c86758c979231d4f96b280d09efd7a" : void 0) ?? "unknown";
398
+ const commitShort = readInjected(true ? "95229544" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
399
+ const version = readInjected(true ? "0.9.82-rc.403" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
400
+ const builtAt = readInjected(true ? "2026-06-27T17:53:59.574Z" : void 0);
401
401
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
402
402
  return cached;
403
403
  }
@@ -40859,6 +40859,42 @@ var CliProviderInstance = class _CliProviderInstance {
40859
40859
  }
40860
40860
  } else if (newStatus === "idle" && this.lastStatus === "starting") {
40861
40861
  this.emitAgentReadyOnce(chatTitle, now);
40862
+ const startedTurnTaskId = typeof this.adapter?.currentTurnTaskId === "string" && this.adapter.currentTurnTaskId.trim() ? this.adapter.currentTurnTaskId : void 0;
40863
+ const fastCollapsed = !!startedTurnTaskId && !this.hasAdapterPendingResponse() && !this.generatingStartedAt && !this.generatingDebouncePending;
40864
+ if (fastCollapsed) {
40865
+ let fcFinalSummary;
40866
+ let fcEvidenceSource = "unavailable";
40867
+ try {
40868
+ const parsedMessages = this.adapter?.getScriptParsedStatus()?.messages;
40869
+ const evidence = this.completionFinalAssistantEvidence(parsedMessages);
40870
+ fcEvidenceSource = evidence.source;
40871
+ fcFinalSummary = extractFinalSummaryFromMessages(evidence.messages);
40872
+ } catch {
40873
+ }
40874
+ const missingEvidence = (this.provider.requiresFinalAssistantBeforeIdle === true || fcEvidenceSource === "external-native") && !fcFinalSummary;
40875
+ const hasMeshContext = !!(this.settings.meshNodeFor || this.settings.meshActiveTaskId || this.settings.launchedByCoordinator);
40876
+ if (missingEvidence && !hasMeshContext) {
40877
+ LOG.info("CLI", `[${this.type}] startup-grace fast-collapse suppressed: missing final assistant evidence, no mesh context (source=${fcEvidenceSource})`);
40878
+ } else {
40879
+ LOG.info("CLI", `[${this.type}] startup-grace fast-collapse: synthesizing started+completed (taskId=${startedTurnTaskId} source=${fcEvidenceSource} hadFinalSummary=${!!fcFinalSummary})`);
40880
+ this.pushEvent({ event: "agent:generating_started", chatTitle, timestamp: now });
40881
+ if (this.isMeshWorkerSession()) {
40882
+ traceMeshEventStage("fired", this.meshTraceCtx(), `startup-grace fast-collapse (source=${fcEvidenceSource})`);
40883
+ }
40884
+ this.pushEvent({
40885
+ event: "agent:generating_completed",
40886
+ chatTitle,
40887
+ duration: 0,
40888
+ timestamp: now,
40889
+ finalSummary: fcFinalSummary,
40890
+ completionDiagnostic: {
40891
+ reason: "startup_grace_fast_collapse",
40892
+ finalAssistantEvidenceSource: fcEvidenceSource,
40893
+ ...missingEvidence ? { blockReason: "missing_final_assistant" } : {}
40894
+ }
40895
+ });
40896
+ }
40897
+ }
40862
40898
  } else if (newStatus === "error") {
40863
40899
  if (this.generatingDebounceTimer) {
40864
40900
  clearTimeout(this.generatingDebounceTimer);