@geohar/pi-cribsheet 0.22.0-dev2 → 0.22.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +62 -2
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,66 @@ This file ships in the Pi package, where Pi shows the entries newer than the
9
9
  version you last ran. `scripts/bump-version.sh` refuses a release whose
10
10
  version has no heading here.
11
11
 
12
+ ## [0.22.1] - 2026-11-10
13
+
14
+ ### Fixed
15
+
16
+ - `crib design add` from the CLI failed on every call since 0.18.0 with
17
+ "Unexpected keyword argument" for `path`, `scope` and `lang`: it sent the
18
+ code commands' narrowing options, which the `design_add` tool doesn't take.
19
+ The MCP tool was unaffected. The CLI/MCP parity test now checks that the
20
+ CLI sends only parameters the tool declares.
21
+
22
+ ## [0.22.0] - 2026-11-09
23
+
24
+ ### Fixed
25
+
26
+ - **Shared store recovery.** One failed reconnect no longer leaves the
27
+ shared (Quack) client unusable until the daemon restarts; threads that
28
+ lose the same session relaunch the server once between them; and with
29
+ `[duckdb] launch = false` a reconnect waits for the supervised server.
30
+ - **`tags=` lookups return k results.** The tag filter now runs inside the
31
+ store query instead of after the top results were picked.
32
+ - **The embedding cache can't be poisoned** by the hash-embedder fallback:
33
+ it keys on the embedder actually built and never caches hash vectors.
34
+ - A zero vector scores 0 instead of NaN, which sorted above every match.
35
+ - Hybrid retrieval scores keyword-only candidates on their stored vectors
36
+ (heading breadcrumb plus body, as the dense search ranks them) instead of
37
+ re-embedding the bare body.
38
+
39
+ ### Changed
40
+
41
+ - `code_lookup` and summary-alias scoring use numpy (about 140 ms to 0.1 ms
42
+ per code query at 16k symbols). numpy is now a direct dependency.
43
+ - Shared mode sends each vector as one literal: writes about 20x faster.
44
+ - A note write is one transaction; metadata refreshes are one statement
45
+ per batch.
46
+ - A `crib_meta` table records the schema version, record-cache format and
47
+ embedder; a change drops or rebuilds what depended on it, and switching
48
+ embedders at the same vector size now recreates the store.
49
+ - The generation ledger forgets files that no longer need a description;
50
+ the embedding cache drops other embedders' vectors.
51
+ - `crib status` shows `store_stats` (rows, versions, sizes, reconnects) and
52
+ embedding-cache hits; the store checkpoints after a startup reconcile.
53
+
54
+ ### Added
55
+
56
+ - `crib store install-extensions`: fetch the shared-mode DuckDB extensions
57
+ ahead of time, for containers and offline machines.
58
+
59
+ ### Removed
60
+
61
+ - The `json` store backend (`[store] backend = "json"` now warns and uses
62
+ DuckDB; the old `~/.cache/crib/store.json` can be deleted), and leftover
63
+ chroma-era code paths.
64
+
65
+ ### Upgrading from a 0.22.0 dev release
66
+
67
+ - Chunks whose tags were stored as a comma-joined string are converted to the
68
+ new list form when the store opens, so `tags=` lookups work at once.
69
+ - Embedding-cache rows keyed by the old configured model name are dropped
70
+ once; the vectors in the store itself are untouched.
71
+
12
72
  ## [0.22.0-dev2] - 2026-11-09
13
73
 
14
74
  ### Added
@@ -33,8 +93,8 @@ version has no heading here.
33
93
 
34
94
  - **chroma.** DuckDB is the only vector store. Gone with it: `ChromaStore`,
35
95
  the shared chroma server, the `[chroma]` config table (now ignored with a
36
- one-time warning), the chroma CVE guard, `crib store migrate`, and the
37
- `chromadb` dependency. Upgrading: [docs/migrating-to-duckdb.md](docs/migrating-to-duckdb.md).
96
+ one-time warning), the chroma CVE guard, and the `chromadb` dependency.
97
+ Upgrading: [docs/migrating-to-duckdb.md](https://github.com/georgeharker/cribsheet/blob/main/docs/migrating-to-duckdb.md).
38
98
 
39
99
  ### Added
40
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geohar/pi-cribsheet",
3
- "version": "0.22.0-dev2",
3
+ "version": "0.22.1",
4
4
  "description": "Pi extension: run the crib (cribsheet) memory + code-index MCP server via sharedserver, inject the reach-for-crib directive, and ship the /crib recall command. Pairs with pi-mcp-adapter.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",