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.
@@ -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 only needs to run once. Run `ck --index .` from the export root,
59
- not from the repository checkout:
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
- additionally require a one-time `ck --index .` inside the export root without it,
30
- `sem`/`hybrid` fall back to `regex` with a warning. See
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. Sync is cursor-based on
52
- `(time_updated, id)`, which also re-exports parts whose status mutated since the last
53
- pass.
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.2",
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/",