@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.js
CHANGED
|
@@ -6096,6 +6096,7 @@ var ConversationCache = class _ConversationCache {
|
|
|
6096
6096
|
this.onAgentFileDetected = options?.onAgentFileDetected;
|
|
6097
6097
|
db.exec(SCHEMA);
|
|
6098
6098
|
runSqliteMigrations(db, this.migrationsDir);
|
|
6099
|
+
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";
|
|
6099
6100
|
this.stmts = {
|
|
6100
6101
|
getById: db.prepare("SELECT id FROM conversation_meta WHERE id = ?"),
|
|
6101
6102
|
getFullById: db.prepare("SELECT * FROM conversation_meta WHERE id = ?"),
|
|
@@ -6176,17 +6177,17 @@ var ConversationCache = class _ConversationCache {
|
|
|
6176
6177
|
WHERE conversation_tail.updated_at < excluded.updated_at
|
|
6177
6178
|
`),
|
|
6178
6179
|
list: db.prepare(
|
|
6179
|
-
|
|
6180
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6180
6181
|
),
|
|
6181
6182
|
count: db.prepare("SELECT COUNT(*) as n FROM conversation_meta"),
|
|
6182
6183
|
listByProject: db.prepare(
|
|
6183
|
-
|
|
6184
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE project_path = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6184
6185
|
),
|
|
6185
6186
|
countByProject: db.prepare(
|
|
6186
6187
|
"SELECT COUNT(*) as n FROM conversation_meta WHERE project_path = ?"
|
|
6187
6188
|
),
|
|
6188
6189
|
listByProvider: db.prepare(
|
|
6189
|
-
|
|
6190
|
+
`SELECT ${LIST_COLUMNS} FROM conversation_meta WHERE provider = ? ORDER BY last_activity DESC LIMIT ? OFFSET ?`
|
|
6190
6191
|
),
|
|
6191
6192
|
countByProvider: db.prepare("SELECT COUNT(*) as n FROM conversation_meta WHERE provider = ?"),
|
|
6192
6193
|
deleteById: db.prepare("DELETE FROM conversation_meta WHERE id = ?"),
|