@adhdev/daemon-core 0.9.82-rc.13 → 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.mjs
CHANGED
|
@@ -9682,7 +9682,8 @@ var StatusMonitor = class {
|
|
|
9682
9682
|
};
|
|
9683
9683
|
|
|
9684
9684
|
// src/providers/chat-message-normalization.ts
|
|
9685
|
-
|
|
9685
|
+
var DEFAULT_FINAL_SUMMARY_MAX_CHARS = 4e3;
|
|
9686
|
+
function extractFinalSummaryFromMessages(messages, maxChars = DEFAULT_FINAL_SUMMARY_MAX_CHARS) {
|
|
9686
9687
|
if (!Array.isArray(messages) || messages.length === 0) return "";
|
|
9687
9688
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
9688
9689
|
const msg = messages[i];
|