opencode-sessions-explorer 0.1.1 → 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 CHANGED
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.3] - 2026-06-14
11
+
12
+ ### Fixed
13
+ - `search-text` now reports honest `ck` semantic index freshness for `sem`/`hybrid`
14
+ modes (missing/stale/partial) and directs users to explicit `ck --index` /
15
+ `ck --reindex` workflows instead of implying inline rebuilds.
16
+ - `search-text` and `grep-session` now expose partial multi-scope `ck` coverage when
17
+ timeout truncation leaves some session/channel scopes unsearched.
18
+
19
+ ## [0.1.2] - 2026-06-13
20
+
21
+ ### Changed
22
+ - Clarified installation, source-dev, and first-run docs, including plugin
23
+ registration troubleshooting, platform-specific database paths, and export/index
24
+ setup; shipped `docs/` in the npm package so README guide links resolve for
25
+ package consumers.
26
+
10
27
  ## [0.1.1] - 2026-06-13
11
28
 
12
29
  ### Changed
package/README.md CHANGED
@@ -27,14 +27,14 @@ Unarchive session ses_… so I can open it again.
27
27
 
28
28
  | Area | Support | Notes |
29
29
  | --- | --- | --- |
30
- | OpenCode | Plugin host | Loads the plugin and owns the source database |
31
- | Bun | `>= 1.0` | Runtime; the plugin uses `bun:sqlite` (OpenCode ships Bun) |
30
+ | OpenCode | Plugin host compatible with `@opencode-ai/plugin >= 1.15.0` | Loads the plugin and owns the source database |
31
+ | Bun | `>= 1.0` | Runtime; the plugin uses `bun:sqlite` (OpenCode ships Bun), which should include SQLite `json1`; `check-deps` / `db-stats` verify it |
32
32
  | `ck` | `>= 0.7`, optional | Only `search-text` / `grep-session` need it; the other 16 tools work without it |
33
33
  | OS | macOS / Linux | Windows paths resolve via `%LOCALAPPDATA%` |
34
34
 
35
35
  ## Quick Start
36
36
 
37
- 1. Add the plugin and grant access to the OpenCode data directory, then restart:
37
+ 1. Add the plugin and grant access to the OpenCode data directory:
38
38
 
39
39
  ```jsonc
40
40
  // ~/.config/opencode/opencode.json
@@ -49,12 +49,38 @@ Unarchive session ses_… so I can open it again.
49
49
  }
50
50
  ```
51
51
 
52
+ The `external_directory` snippet covers the common macOS/Linux default path. If
53
+ `$XDG_DATA_HOME`, Windows `%LOCALAPPDATA%`, or
54
+ `OPENCODE_SESSIONS_EXPLORER_DB` points elsewhere, allow the actual containing
55
+ directory and restart OpenCode. Some existing global configs use
56
+ `external_directory: "allow"`; that also permits access, but the scoped path rule
57
+ above is preferred for normal users.
58
+
52
59
  1. **Quit and restart OpenCode.** All 18 tools auto-register. OpenCode auto-installs
53
60
  npm plugins with Bun on startup, so there is no separate `npm install` step.
54
- 1. Materialize the search export once, then verify the install:
61
+ 1. Run the health probe once. Warnings for the missing export tree, missing `ck`, or
62
+ missing `ck` index are okay at this stage:
63
+
64
+ ```bash
65
+ bunx opencode-sessions-explorer-check-deps
66
+ ```
67
+
68
+ 1. Materialize the search export once:
55
69
 
56
70
  ```bash
57
71
  bunx opencode-sessions-explorer-bulk-export
72
+ ```
73
+
74
+ 1. (Optional) Build the `ck` index from the export root, not the repo root:
75
+
76
+ ```bash
77
+ cd ~/.local/share/opencode-sessions-explorer
78
+ ck --index . # run in the export root, not the repo root
79
+ ```
80
+
81
+ 1. Run the health probe again to confirm the export and optional index state:
82
+
83
+ ```bash
58
84
  bunx opencode-sessions-explorer-check-deps
59
85
  ```
60
86
 
@@ -100,7 +126,8 @@ full first-run walkthrough, see [docs/install.md](docs/install.md) and
100
126
 
101
127
  - **One-time export.** `bulk-export` materializes searchable session content for `ck`.
102
128
  - **Stay current.** The plugin auto-syncs new parts before each search call; rebuild
103
- the optional semantic index when you want embeddings.
129
+ the optional semantic index explicitly (`ck --reindex .` / `ck --index .`) when
130
+ `sem` or `hybrid` warnings report stale or partial coverage.
104
131
  - **Health probe.** `check-deps` and the `db-stats` tool report dependency and schema
105
132
  health.
106
133
  - See [docs/guides/export-and-maintenance.md](docs/guides/export-and-maintenance.md).