@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.js +40 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/providers/cli-provider-instance.ts +69 -0
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 ? "
|
|
403
|
-
const commitShort = readInjected(true ? "
|
|
404
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
405
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
402
|
+
const commit = readInjected(true ? "9522954406c86758c979231d4f96b280d09efd7a" : void 0) ?? "unknown";
|
|
403
|
+
const commitShort = readInjected(true ? "95229544" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
404
|
+
const version = readInjected(true ? "0.9.82-rc.403" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
405
|
+
const builtAt = readInjected(true ? "2026-06-27T17:53:59.574Z" : void 0);
|
|
406
406
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
407
407
|
return cached;
|
|
408
408
|
}
|
|
@@ -41240,6 +41240,42 @@ var CliProviderInstance = class _CliProviderInstance {
|
|
|
41240
41240
|
}
|
|
41241
41241
|
} else if (newStatus === "idle" && this.lastStatus === "starting") {
|
|
41242
41242
|
this.emitAgentReadyOnce(chatTitle, now);
|
|
41243
|
+
const startedTurnTaskId = typeof this.adapter?.currentTurnTaskId === "string" && this.adapter.currentTurnTaskId.trim() ? this.adapter.currentTurnTaskId : void 0;
|
|
41244
|
+
const fastCollapsed = !!startedTurnTaskId && !this.hasAdapterPendingResponse() && !this.generatingStartedAt && !this.generatingDebouncePending;
|
|
41245
|
+
if (fastCollapsed) {
|
|
41246
|
+
let fcFinalSummary;
|
|
41247
|
+
let fcEvidenceSource = "unavailable";
|
|
41248
|
+
try {
|
|
41249
|
+
const parsedMessages = this.adapter?.getScriptParsedStatus()?.messages;
|
|
41250
|
+
const evidence = this.completionFinalAssistantEvidence(parsedMessages);
|
|
41251
|
+
fcEvidenceSource = evidence.source;
|
|
41252
|
+
fcFinalSummary = extractFinalSummaryFromMessages(evidence.messages);
|
|
41253
|
+
} catch {
|
|
41254
|
+
}
|
|
41255
|
+
const missingEvidence = (this.provider.requiresFinalAssistantBeforeIdle === true || fcEvidenceSource === "external-native") && !fcFinalSummary;
|
|
41256
|
+
const hasMeshContext = !!(this.settings.meshNodeFor || this.settings.meshActiveTaskId || this.settings.launchedByCoordinator);
|
|
41257
|
+
if (missingEvidence && !hasMeshContext) {
|
|
41258
|
+
LOG.info("CLI", `[${this.type}] startup-grace fast-collapse suppressed: missing final assistant evidence, no mesh context (source=${fcEvidenceSource})`);
|
|
41259
|
+
} else {
|
|
41260
|
+
LOG.info("CLI", `[${this.type}] startup-grace fast-collapse: synthesizing started+completed (taskId=${startedTurnTaskId} source=${fcEvidenceSource} hadFinalSummary=${!!fcFinalSummary})`);
|
|
41261
|
+
this.pushEvent({ event: "agent:generating_started", chatTitle, timestamp: now });
|
|
41262
|
+
if (this.isMeshWorkerSession()) {
|
|
41263
|
+
traceMeshEventStage("fired", this.meshTraceCtx(), `startup-grace fast-collapse (source=${fcEvidenceSource})`);
|
|
41264
|
+
}
|
|
41265
|
+
this.pushEvent({
|
|
41266
|
+
event: "agent:generating_completed",
|
|
41267
|
+
chatTitle,
|
|
41268
|
+
duration: 0,
|
|
41269
|
+
timestamp: now,
|
|
41270
|
+
finalSummary: fcFinalSummary,
|
|
41271
|
+
completionDiagnostic: {
|
|
41272
|
+
reason: "startup_grace_fast_collapse",
|
|
41273
|
+
finalAssistantEvidenceSource: fcEvidenceSource,
|
|
41274
|
+
...missingEvidence ? { blockReason: "missing_final_assistant" } : {}
|
|
41275
|
+
}
|
|
41276
|
+
});
|
|
41277
|
+
}
|
|
41278
|
+
}
|
|
41243
41279
|
} else if (newStatus === "error") {
|
|
41244
41280
|
if (this.generatingDebounceTimer) {
|
|
41245
41281
|
clearTimeout(this.generatingDebounceTimer);
|