botinabox 2.16.27 → 2.16.29
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 +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2525,7 +2525,8 @@ ${contextFilesBlock}`;
|
|
|
2525
2525
|
const messages = [];
|
|
2526
2526
|
const maxChars = 16e3;
|
|
2527
2527
|
let charCount = 0;
|
|
2528
|
-
for (
|
|
2528
|
+
for (let i = rows.length - 1; i >= 0; i--) {
|
|
2529
|
+
const row = rows[i];
|
|
2529
2530
|
const rawBody = row.body;
|
|
2530
2531
|
if (!rawBody) continue;
|
|
2531
2532
|
let body;
|
|
@@ -2547,7 +2548,7 @@ ${contextFilesBlock}`;
|
|
|
2547
2548
|
const direction = row.direction;
|
|
2548
2549
|
if (!includeAssistant && direction !== "inbound") continue;
|
|
2549
2550
|
if (charCount + body.length > maxChars) break;
|
|
2550
|
-
messages.
|
|
2551
|
+
messages.unshift({
|
|
2551
2552
|
role: direction === "inbound" ? "user" : "assistant",
|
|
2552
2553
|
content: body
|
|
2553
2554
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botinabox",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.29",
|
|
4
4
|
"description": "Bot in a Box — framework for building multi-agent bots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@types/uuid": "^10.0.0",
|
|
61
61
|
"ajv": "^8.17.1",
|
|
62
62
|
"cron-parser": "^4.9.0",
|
|
63
|
-
"latticesql": "^2.
|
|
63
|
+
"latticesql": "^2.3.0",
|
|
64
64
|
"uuid": "^13.0.0",
|
|
65
65
|
"yaml": "^2.7.0"
|
|
66
66
|
},
|