@threadbase-sh/streamer 1.44.2 → 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/index.cjs
CHANGED
|
@@ -6133,6 +6133,7 @@ var ConversationCache = class _ConversationCache {
|
|
|
6133
6133
|
this.onAgentFileDetected = options?.onAgentFileDetected;
|
|
6134
6134
|
db.exec(SCHEMA);
|
|
6135
6135
|
runSqliteMigrations(db, this.migrationsDir);
|
|
6136
|
+
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";
|
|
6136
6137
|
this.stmts = {
|
|
6137
6138
|
getById: db.prepare("SELECT id FROM conversation_meta WHERE id = ?"),
|
|
6138
6139
|
getFullById: db.prepare("SELECT * FROM conversation_meta WHERE id = ?"),
|
|
@@ -6213,17 +6214,17 @@ var ConversationCache = class _ConversationCache {
|
|
|
6213
6214
|
WHERE conversation_tail.updated_at < excluded.updated_at
|
|
6214
6215
|
`),
|
|
6215
6216
|
list: db.prepare(
|
|
6216
|
-
|
|
6217
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6217
6218
|
),
|
|
6218
6219
|
count: db.prepare("SELECT COUNT(*) as n FROM conversation_meta"),
|
|
6219
6220
|
listByProject: db.prepare(
|
|
6220
|
-
|
|
6221
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE project_path = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6221
6222
|
),
|
|
6222
6223
|
countByProject: db.prepare(
|
|
6223
6224
|
"SELECT COUNT(*) as n FROM conversation_meta WHERE project_path = ?"
|
|
6224
6225
|
),
|
|
6225
6226
|
listByProvider: db.prepare(
|
|
6226
|
-
|
|
6227
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE provider = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6227
6228
|
),
|
|
6228
6229
|
countByProvider: db.prepare("SELECT COUNT(*) as n FROM conversation_meta WHERE provider = ?"),
|
|
6229
6230
|
deleteById: db.prepare("DELETE FROM conversation_meta WHERE id = ?"),
|