@adhdev/daemon-core 0.9.82-rc.14 → 0.9.82-rc.15
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
|
@@ -9920,7 +9920,8 @@ var StatusMonitor = class {
|
|
|
9920
9920
|
};
|
|
9921
9921
|
|
|
9922
9922
|
// src/providers/chat-message-normalization.ts
|
|
9923
|
-
|
|
9923
|
+
var DEFAULT_FINAL_SUMMARY_MAX_CHARS = 4e3;
|
|
9924
|
+
function extractFinalSummaryFromMessages(messages, maxChars = DEFAULT_FINAL_SUMMARY_MAX_CHARS) {
|
|
9924
9925
|
if (!Array.isArray(messages) || messages.length === 0) return "";
|
|
9925
9926
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
9926
9927
|
const msg = messages[i];
|