@threadbase-sh/streamer 1.28.1 → 1.28.2
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 +6 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3435,6 +3435,9 @@ var ConversationCache = class _ConversationCache {
|
|
|
3435
3435
|
deleteAll: db.prepare("DELETE FROM conversation_meta"),
|
|
3436
3436
|
deleteTailAll: db.prepare("DELETE FROM conversation_tail"),
|
|
3437
3437
|
getIdByFilePath: db.prepare("SELECT id FROM conversation_meta WHERE file_path = ?"),
|
|
3438
|
+
getProviderByFilePath: db.prepare(
|
|
3439
|
+
"SELECT provider FROM conversation_meta WHERE file_path = ?"
|
|
3440
|
+
),
|
|
3438
3441
|
allFilePaths: db.prepare("SELECT id, file_path FROM conversation_meta"),
|
|
3439
3442
|
allFileStats: db.prepare(
|
|
3440
3443
|
"SELECT file_path, mtime_ms, file_size FROM conversation_meta WHERE mtime_ms IS NOT NULL AND file_size IS NOT NULL"
|
|
@@ -3588,8 +3591,9 @@ var ConversationCache = class _ConversationCache {
|
|
|
3588
3591
|
// excluded from the index entirely; the scanner serves them (it routes each
|
|
3589
3592
|
// provider to its own parser).
|
|
3590
3593
|
isIndexableFile(filePath) {
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3594
|
+
const row = this.stmts.getProviderByFilePath.get(filePath);
|
|
3595
|
+
if (!row) return false;
|
|
3596
|
+
return (row.provider ?? CLAUDE_CODE_PROVIDER) === CLAUDE_CODE_PROVIDER;
|
|
3593
3597
|
}
|
|
3594
3598
|
/**
|
|
3595
3599
|
* Incremental offset-index writer: extend the index for a burst of appended
|