opencode-sessions-explorer 0.1.2 → 0.1.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/CHANGELOG.md +9 -0
- package/README.md +2 -1
- package/dist/bin/bulk-export.js +827 -159
- package/dist/bin/check-deps.js +835 -166
- package/dist/bin/dedupe-export.js +825 -157
- package/dist/lib/export-reconcile-worker.js +1519 -0
- package/dist/plugin.js +1122 -203
- package/docs/guides/export-and-maintenance.md +4 -2
- package/docs/guides/search-and-grep.md +4 -2
- package/docs/reference/architecture.md +5 -3
- package/package.json +2 -2
|
@@ -55,12 +55,14 @@ maintenance.
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
1. (Optional) Build the semantic index to unlock `sem` and `hybrid` search modes.
|
|
58
|
-
This is slow and
|
|
59
|
-
|
|
58
|
+
This is slow and runs outside the plugin. Run it from the export root, not from
|
|
59
|
+
the repository checkout; use `ck --reindex .` when search warnings report a stale
|
|
60
|
+
or partially verified index:
|
|
60
61
|
|
|
61
62
|
```bash
|
|
62
63
|
cd ~/.local/share/opencode-sessions-explorer
|
|
63
64
|
ck --index . # run in the export root, not the repo root
|
|
65
|
+
ck --reindex . # explicit rebuild when stale/partial warnings appear
|
|
64
66
|
```
|
|
65
67
|
|
|
66
68
|
1. Verify everything is wired up, and re-run after any OpenCode upgrade:
|
|
@@ -26,8 +26,10 @@ known session, and audit individual tool invocations by name, status, or substri
|
|
|
26
26
|
`search-text` and `grep-session` shell out to the optional [`ck`](https://github.com/BeaconBay/ck)
|
|
27
27
|
CLI over the filesystem export tree. If `ck` is not installed, both return
|
|
28
28
|
`CK_NOT_FOUND` cleanly; the other 16 tools keep working without it. Semantic modes
|
|
29
|
-
|
|
30
|
-
`
|
|
29
|
+
require an embedding index built outside the tool (`ck --index .` or
|
|
30
|
+
`ck --reindex .` from the export root). Missing indexes fall back to `regex`; stale
|
|
31
|
+
or partially verified indexes keep using `sem`/`hybrid` but warn that results may be
|
|
32
|
+
incomplete. The tools never rebuild embeddings inline. See
|
|
31
33
|
[search surfaces](../reference/search-surfaces.md) for the surface/channel model.
|
|
32
34
|
|
|
33
35
|
## Controls
|
|
@@ -48,9 +48,11 @@ Searchable content is materialized to a filesystem tree (default
|
|
|
48
48
|
|
|
49
49
|
The tree is built once by `opencode-sessions-explorer-bulk-export` and then
|
|
50
50
|
delta-synced automatically before each `search-text` / `grep-session` call, so new
|
|
51
|
-
parts become searchable without a manual re-export.
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
parts become searchable without a manual re-export. Budgeted sync uses an id-cursor
|
|
52
|
+
insert fast path for newly appended parts, plus session-dirty scans keyed by
|
|
53
|
+
`session.time_updated` to re-export sessions whose part status or metadata changed.
|
|
54
|
+
Short search-triggered syncs also schedule a throttled background reconcile, while
|
|
55
|
+
unbudgeted bulk exports perform full tombstone cleanup inline.
|
|
54
56
|
|
|
55
57
|
### L3 — ck Index (Optional)
|
|
56
58
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "opencode-sessions-explorer",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "OpenCode plugin for recall and analysis of past OpenCode sessions: search, grep, and cost/usage insights across your session history via 18 LLM tools (17 read-only plus one write, unarchive-session).",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"opencode",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"opencode-sessions-explorer-check-deps": "./dist/bin/check-deps.js"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build": "bun run clean && bun build src/plugin.ts --target=bun --format=esm --outdir=dist && bun build src/bin/bulk-export.ts src/bin/dedupe-export.ts src/bin/check-deps.ts --target=bun --format=esm --outdir=dist/bin",
|
|
48
|
+
"build": "bun run clean && bun build src/plugin.ts src/lib/export-reconcile-worker.ts --target=bun --format=esm --outdir=dist && bun build src/bin/bulk-export.ts src/bin/dedupe-export.ts src/bin/check-deps.ts --target=bun --format=esm --outdir=dist/bin",
|
|
49
49
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
50
50
|
"test": "bun test tests/",
|
|
51
51
|
"test:live": "OPENCODE_SESSIONS_EXPLORER_LIVE=1 bun test tests/",
|