@askexenow/exe-os 0.8.31 → 0.8.32
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/bin/exe-doctor.js +4 -2
- package/package.json +1 -1
package/dist/bin/exe-doctor.js
CHANGED
|
@@ -1441,9 +1441,10 @@ async function auditNullVectors(client, flags) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
async function auditDuplicates(client, flags) {
|
|
1443
1443
|
const { clause, args } = agentFilter(flags);
|
|
1444
|
+
const backfillExclude = clause ? " AND tool_name != 'ConversationBackfill'" : " WHERE tool_name != 'ConversationBackfill'";
|
|
1444
1445
|
const groups = await client.execute({
|
|
1445
1446
|
sql: `SELECT raw_text, COUNT(*) as cnt
|
|
1446
|
-
FROM memories${clause}
|
|
1447
|
+
FROM memories${clause}${backfillExclude}
|
|
1447
1448
|
GROUP BY raw_text
|
|
1448
1449
|
HAVING cnt > 1
|
|
1449
1450
|
ORDER BY cnt DESC
|
|
@@ -1474,7 +1475,7 @@ async function auditDuplicates(client, flags) {
|
|
|
1474
1475
|
}
|
|
1475
1476
|
async function auditBloated(client, flags) {
|
|
1476
1477
|
const { clause, args } = agentFilter(flags);
|
|
1477
|
-
const where = clause ? clause + " AND LENGTH(raw_text) > 5120" : " WHERE LENGTH(raw_text) > 5120";
|
|
1478
|
+
const where = clause ? clause + " AND LENGTH(raw_text) > 5120 AND tool_name != 'ConversationBackfill'" : " WHERE LENGTH(raw_text) > 5120 AND tool_name != 'ConversationBackfill'";
|
|
1478
1479
|
const result = await client.execute({
|
|
1479
1480
|
sql: `SELECT id, agent_id, LENGTH(raw_text) as size, tool_name
|
|
1480
1481
|
FROM memories${where}
|
|
@@ -1500,6 +1501,7 @@ async function auditOrphanedProjects(client) {
|
|
|
1500
1501
|
const result = await client.execute(
|
|
1501
1502
|
`SELECT project_name, COUNT(*) as cnt
|
|
1502
1503
|
FROM memories
|
|
1504
|
+
WHERE tool_name != 'ConversationBackfill'
|
|
1503
1505
|
GROUP BY project_name
|
|
1504
1506
|
ORDER BY cnt DESC`
|
|
1505
1507
|
);
|
package/package.json
CHANGED