@adhdev/daemon-standalone 0.9.82-rc.255 → 0.9.82-rc.257
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 +15 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37525,8 +37525,10 @@ Next step: ${nextStep}`;
|
|
|
37525
37525
|
if (!meshIdFromDirectDispatch) return;
|
|
37526
37526
|
}
|
|
37527
37527
|
const meshIdFromRuntime = readNonEmptyString2(settings.meshNodeFor) || meshIdFromDirectDispatch;
|
|
37528
|
-
const
|
|
37529
|
-
|
|
37528
|
+
const hasWorkerEnvelope = Boolean(
|
|
37529
|
+
meshIdFromRuntime || settings.launchedByCoordinator || readNonEmptyString2(settings.meshCoordinatorDaemonId) || readNonEmptyString2(settings.meshCoordinatorNodeId)
|
|
37530
|
+
);
|
|
37531
|
+
if (!hasWorkerEnvelope) return;
|
|
37530
37532
|
const mesh = meshIdFromRuntime ? getMeshWithCache(components, meshIdFromRuntime) : getCachedMeshByWorkspace(workspace);
|
|
37531
37533
|
const meshId = meshIdFromRuntime || readNonEmptyString2(mesh?.id);
|
|
37532
37534
|
if (!meshId) return;
|
|
@@ -60772,8 +60774,17 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
60772
60774
|
};
|
|
60773
60775
|
}
|
|
60774
60776
|
completionFinalSummary(parsedMessages) {
|
|
60775
|
-
const
|
|
60776
|
-
|
|
60777
|
+
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
60778
|
+
const parsedSummary = extractFinalSummaryFromMessages(
|
|
60779
|
+
this.completionHasFinalAssistantMessage(parsedMessages) ? Array.isArray(parsedMessages) ? parsedMessages : [] : []
|
|
60780
|
+
);
|
|
60781
|
+
if (adapterOwnsMessagesElsewhere) {
|
|
60782
|
+
const externalMessages = this.readExternalCompletionMessages();
|
|
60783
|
+
const externalSummary = externalMessages ? extractFinalSummaryFromMessages(externalMessages) : "";
|
|
60784
|
+
if (externalSummary) return externalSummary;
|
|
60785
|
+
return parsedSummary || void 0;
|
|
60786
|
+
}
|
|
60787
|
+
return parsedSummary || void 0;
|
|
60777
60788
|
}
|
|
60778
60789
|
buildCompletedFinalizationDiagnostic(args) {
|
|
60779
60790
|
let parsed = null;
|
|
@@ -60872,20 +60883,6 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
60872
60883
|
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
60873
60884
|
const finalAssistantEvidence = this.completionFinalAssistantEvidence(parsed?.messages);
|
|
60874
60885
|
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
60886
|
LOG2.debug("CLI", `[${this.type}] finalAssistantEvidence: present=${finalAssistantEvidence.present} source=${finalAssistantEvidence.source} adapterOwnsMessagesElsewhere=${adapterOwnsMessagesElsewhere} parsedStatus=${parsedStatus}`);
|
|
60890
60887
|
if (!finalAssistantEvidence.present) {
|
|
60891
60888
|
if (adapterOwnsMessagesElsewhere) {
|