@threadbase-sh/scanner 0.17.0 → 0.17.1

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/README.md CHANGED
@@ -141,12 +141,22 @@ const codexHits = await scanner.search('refactor', { provider: 'codex-cli' })
141
141
  (`'conversation'` | `'task'`) and `externalSessionId` (the Codex-native session
142
142
  id) when available.
143
143
 
144
- > **⚠️ In-memory only (for now).** Codex support runs through the legacy
145
- > in-memory scan path — the SQLite persistent engine indexes Threadbase/Claude
146
- > files only. Requesting `codex-cli` (via `providers` or `codexRoots`)
147
- > automatically routes that scan/search through the in-memory path, even on a
148
- > scanner constructed in persistent mode. Threadbase-only scans are unaffected
149
- > and still use SQLite. Persistent-mode Codex indexing is a planned follow-up.
144
+ Codex rows are indexed into the same SQLite database as Claude history. Their
145
+ `sessionId` is the rollout's `session_meta` id, which is the uuid at the end of
146
+ the `rollout-<ts>-<uuid>.jsonl` filename.
147
+
148
+ #### Resolving an id to its transcript file
149
+
150
+ Don't rebuild a provider's directory layout to find a file. Ask the index. This
151
+ works on a fresh scanner over an existing index, with no `scan()` in the current
152
+ process:
153
+
154
+ ```typescript
155
+ const scanner = new ConversationScanner() // opens the existing index.db
156
+ const [meta] = scanner.getConversationsBySessionId(uuid) // newest first; [] if unknown
157
+ meta?.filePath // absolute path to the .jsonl, for Claude and Codex alike
158
+ const page = await scanner.getConversationPage(uuid, { limit: 50 })
159
+ ```
150
160
 
151
161
  ### Watching for changes (persistent mode)
152
162
 
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import { Command } from "commander";
5
5
  import pino2 from "pino";
6
6
 
7
7
  // package.json
8
- var version = "0.17.0";
8
+ var version = "0.17.1";
9
9
 
10
10
  // src/logger.ts
11
11
  import pino from "pino";