@adhdev/daemon-standalone 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.js CHANGED
@@ -30127,10 +30127,10 @@ var require_dist3 = __commonJS({
30127
30127
  }
30128
30128
  function getDaemonBuildInfo() {
30129
30129
  if (cached2) return cached2;
30130
- const commit = readInjected(true ? "93b00efeec1fccd6550c1faf5fa838106caef4bb" : void 0) ?? "unknown";
30131
- const commitShort = readInjected(true ? "93b00efe" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30132
- const version2 = readInjected(true ? "0.9.82-rc.402" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30133
- const builtAt = readInjected(true ? "2026-06-27T16:41:39.131Z" : void 0);
30130
+ const commit = readInjected(true ? "9522954406c86758c979231d4f96b280d09efd7a" : void 0) ?? "unknown";
30131
+ const commitShort = readInjected(true ? "95229544" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30132
+ const version2 = readInjected(true ? "0.9.82-rc.403" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30133
+ const builtAt = readInjected(true ? "2026-06-27T17:54:31.546Z" : void 0);
30134
30134
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30135
30135
  return cached2;
30136
30136
  }
@@ -70885,6 +70885,42 @@ ${body}
70885
70885
  }
70886
70886
  } else if (newStatus === "idle" && this.lastStatus === "starting") {
70887
70887
  this.emitAgentReadyOnce(chatTitle, now);
70888
+ const startedTurnTaskId = typeof this.adapter?.currentTurnTaskId === "string" && this.adapter.currentTurnTaskId.trim() ? this.adapter.currentTurnTaskId : void 0;
70889
+ const fastCollapsed = !!startedTurnTaskId && !this.hasAdapterPendingResponse() && !this.generatingStartedAt && !this.generatingDebouncePending;
70890
+ if (fastCollapsed) {
70891
+ let fcFinalSummary;
70892
+ let fcEvidenceSource = "unavailable";
70893
+ try {
70894
+ const parsedMessages = this.adapter?.getScriptParsedStatus()?.messages;
70895
+ const evidence = this.completionFinalAssistantEvidence(parsedMessages);
70896
+ fcEvidenceSource = evidence.source;
70897
+ fcFinalSummary = extractFinalSummaryFromMessages(evidence.messages);
70898
+ } catch {
70899
+ }
70900
+ const missingEvidence = (this.provider.requiresFinalAssistantBeforeIdle === true || fcEvidenceSource === "external-native") && !fcFinalSummary;
70901
+ const hasMeshContext = !!(this.settings.meshNodeFor || this.settings.meshActiveTaskId || this.settings.launchedByCoordinator);
70902
+ if (missingEvidence && !hasMeshContext) {
70903
+ LOG2.info("CLI", `[${this.type}] startup-grace fast-collapse suppressed: missing final assistant evidence, no mesh context (source=${fcEvidenceSource})`);
70904
+ } else {
70905
+ LOG2.info("CLI", `[${this.type}] startup-grace fast-collapse: synthesizing started+completed (taskId=${startedTurnTaskId} source=${fcEvidenceSource} hadFinalSummary=${!!fcFinalSummary})`);
70906
+ this.pushEvent({ event: "agent:generating_started", chatTitle, timestamp: now });
70907
+ if (this.isMeshWorkerSession()) {
70908
+ traceMeshEventStage("fired", this.meshTraceCtx(), `startup-grace fast-collapse (source=${fcEvidenceSource})`);
70909
+ }
70910
+ this.pushEvent({
70911
+ event: "agent:generating_completed",
70912
+ chatTitle,
70913
+ duration: 0,
70914
+ timestamp: now,
70915
+ finalSummary: fcFinalSummary,
70916
+ completionDiagnostic: {
70917
+ reason: "startup_grace_fast_collapse",
70918
+ finalAssistantEvidenceSource: fcEvidenceSource,
70919
+ ...missingEvidence ? { blockReason: "missing_final_assistant" } : {}
70920
+ }
70921
+ });
70922
+ }
70923
+ }
70888
70924
  } else if (newStatus === "error") {
70889
70925
  if (this.generatingDebounceTimer) {
70890
70926
  clearTimeout(this.generatingDebounceTimer);