@ramarivera/coding-agent-langfuse 0.1.7 → 0.1.8
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/backfill.js +3 -1
- package/package.json +1 -1
package/dist/backfill.js
CHANGED
|
@@ -523,7 +523,7 @@ function opencodeEvents(homeDir, rowLimit) {
|
|
|
523
523
|
let messages = [];
|
|
524
524
|
try {
|
|
525
525
|
sessions = sqliteJsonByRowid(db, "session", "id, directory, time_created, time_updated, title, version, slug, project_id", undefined, rowLimit);
|
|
526
|
-
messages = sqliteJsonByRowid(db, "message", "id, session_id, time_created, time_updated, data
|
|
526
|
+
messages = sqliteJsonByRowid(db, "message", "id, session_id, time_created, time_updated, case when length(data) <= 1000000 then data else null end as data, length(data) <= 1000000 as __include", undefined, rowLimit);
|
|
527
527
|
}
|
|
528
528
|
catch (error) {
|
|
529
529
|
console.error(`Skipping OpenCode history from ${db}: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -548,6 +548,8 @@ function opencodeEvents(homeDir, rowLimit) {
|
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
for (const message of messages) {
|
|
551
|
+
if (asNumber(message.__include) === 0)
|
|
552
|
+
continue;
|
|
551
553
|
const sessionId = asString(message.session_id);
|
|
552
554
|
const session = sessionsById.get(sessionId);
|
|
553
555
|
const data = parseMaybeJson(message.data);
|