@adhdev/daemon-standalone 0.9.82-rc.255 → 0.9.82-rc.256
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 +11 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60772,8 +60772,17 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
60772
60772
|
};
|
|
60773
60773
|
}
|
|
60774
60774
|
completionFinalSummary(parsedMessages) {
|
|
60775
|
-
const
|
|
60776
|
-
|
|
60775
|
+
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
60776
|
+
const parsedSummary = extractFinalSummaryFromMessages(
|
|
60777
|
+
this.completionHasFinalAssistantMessage(parsedMessages) ? Array.isArray(parsedMessages) ? parsedMessages : [] : []
|
|
60778
|
+
);
|
|
60779
|
+
if (adapterOwnsMessagesElsewhere) {
|
|
60780
|
+
const externalMessages = this.readExternalCompletionMessages();
|
|
60781
|
+
const externalSummary = externalMessages ? extractFinalSummaryFromMessages(externalMessages) : "";
|
|
60782
|
+
if (externalSummary) return externalSummary;
|
|
60783
|
+
return parsedSummary || void 0;
|
|
60784
|
+
}
|
|
60785
|
+
return parsedSummary || void 0;
|
|
60777
60786
|
}
|
|
60778
60787
|
buildCompletedFinalizationDiagnostic(args) {
|
|
60779
60788
|
let parsed = null;
|
|
@@ -60872,20 +60881,6 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
60872
60881
|
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
60873
60882
|
const finalAssistantEvidence = this.completionFinalAssistantEvidence(parsed?.messages);
|
|
60874
60883
|
const allowMissingAssistantTimeout = !!(this.settings.meshNodeFor || this.settings.meshActiveTaskId || this.settings.launchedByCoordinator);
|
|
60875
|
-
if (adapterOwnsMessagesElsewhere && finalAssistantEvidence.source === "external-native") {
|
|
60876
|
-
const prevProbe = (pending.transcriptProbeHistory || [])[(pending.transcriptProbeHistory?.length ?? 0) - 1];
|
|
60877
|
-
this.readExternalCompletionMessages();
|
|
60878
|
-
const settleProbe = this.lastExternalCompletionProbe;
|
|
60879
|
-
if (settleProbe && prevProbe) {
|
|
60880
|
-
const stillGrowing = settleProbe.msgCount > prevProbe.msgCount || settleProbe.lastRole === "assistant" && settleProbe.contentLen > prevProbe.contentLen;
|
|
60881
|
-
if (stillGrowing) {
|
|
60882
|
-
this.recordPendingTranscriptProbe(pending);
|
|
60883
|
-
return { reason: `transcript_settling:${prevProbe.contentLen}->${settleProbe.contentLen}`, terminal: false };
|
|
60884
|
-
}
|
|
60885
|
-
} else if (settleProbe) {
|
|
60886
|
-
this.recordPendingTranscriptProbe(pending);
|
|
60887
|
-
}
|
|
60888
|
-
}
|
|
60889
60884
|
LOG2.debug("CLI", `[${this.type}] finalAssistantEvidence: present=${finalAssistantEvidence.present} source=${finalAssistantEvidence.source} adapterOwnsMessagesElsewhere=${adapterOwnsMessagesElsewhere} parsedStatus=${parsedStatus}`);
|
|
60890
60885
|
if (!finalAssistantEvidence.present) {
|
|
60891
60886
|
if (adapterOwnsMessagesElsewhere) {
|