@threadbase-sh/streamer 1.44.1 → 1.44.3
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/cli.cjs +4 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -143309,6 +143309,7 @@ var ConversationCache = class _ConversationCache {
|
|
|
143309
143309
|
this.onAgentFileDetected = options?.onAgentFileDetected;
|
|
143310
143310
|
db.exec(SCHEMA);
|
|
143311
143311
|
runSqliteMigrations(db, this.migrationsDir);
|
|
143312
|
+
const LIST_COLUMNS = "id, file_path, project_id, project_path, project_name, title, model, account, branch, message_count, last_activity, first_message, last_message, preview, source, provider";
|
|
143312
143313
|
this.stmts = {
|
|
143313
143314
|
getById: db.prepare("SELECT id FROM conversation_meta WHERE id = ?"),
|
|
143314
143315
|
getFullById: db.prepare("SELECT * FROM conversation_meta WHERE id = ?"),
|
|
@@ -143389,17 +143390,17 @@ var ConversationCache = class _ConversationCache {
|
|
|
143389
143390
|
WHERE conversation_tail.updated_at < excluded.updated_at
|
|
143390
143391
|
`),
|
|
143391
143392
|
list: db.prepare(
|
|
143392
|
-
|
|
143393
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
143393
143394
|
),
|
|
143394
143395
|
count: db.prepare("SELECT COUNT(*) as n FROM conversation_meta"),
|
|
143395
143396
|
listByProject: db.prepare(
|
|
143396
|
-
|
|
143397
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE project_path = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
143397
143398
|
),
|
|
143398
143399
|
countByProject: db.prepare(
|
|
143399
143400
|
"SELECT COUNT(*) as n FROM conversation_meta WHERE project_path = ?"
|
|
143400
143401
|
),
|
|
143401
143402
|
listByProvider: db.prepare(
|
|
143402
|
-
|
|
143403
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE provider = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
143403
143404
|
),
|
|
143404
143405
|
countByProvider: db.prepare("SELECT COUNT(*) as n FROM conversation_meta WHERE provider = ?"),
|
|
143405
143406
|
deleteById: db.prepare("DELETE FROM conversation_meta WHERE id = ?"),
|