@threadbase-sh/scanner 0.16.2 → 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 +16 -6
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
|