daftari 1.10.0 → 1.12.0

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 (42) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +109 -432
  3. package/dist/cli.js +0 -0
  4. package/dist/server.d.ts.map +1 -1
  5. package/dist/server.js +10 -1
  6. package/dist/server.js.map +1 -1
  7. package/dist/themes/clustering.d.ts +30 -0
  8. package/dist/themes/clustering.d.ts.map +1 -0
  9. package/dist/themes/clustering.js +439 -0
  10. package/dist/themes/clustering.js.map +1 -0
  11. package/dist/tools/curation.d.ts.map +1 -1
  12. package/dist/tools/curation.js +6 -0
  13. package/dist/tools/curation.js.map +1 -1
  14. package/dist/tools/read.d.ts +8 -0
  15. package/dist/tools/read.d.ts.map +1 -1
  16. package/dist/tools/read.js +6 -0
  17. package/dist/tools/read.js.map +1 -1
  18. package/dist/tools/search.d.ts +3 -0
  19. package/dist/tools/search.d.ts.map +1 -1
  20. package/dist/tools/search.js +17 -2
  21. package/dist/tools/search.js.map +1 -1
  22. package/dist/tools/themes.d.ts +21 -0
  23. package/dist/tools/themes.d.ts.map +1 -0
  24. package/dist/tools/themes.js +427 -0
  25. package/dist/tools/themes.js.map +1 -0
  26. package/dist/tools/write.d.ts.map +1 -1
  27. package/dist/tools/write.js +26 -3
  28. package/dist/tools/write.js.map +1 -1
  29. package/package.json +2 -1
  30. package/templates/reviewer-vault/.daftari/config.yaml +25 -0
  31. package/templates/reviewer-vault/.daftari/tensions.md +6 -0
  32. package/templates/reviewer-vault/_drafts/moonshot-agentic-curation.md +33 -0
  33. package/templates/reviewer-vault/_drafts/scratch-incomplete.md +18 -0
  34. package/templates/reviewer-vault/competitive-intel/aurora-pipelines-positioning.md +40 -0
  35. package/templates/reviewer-vault/competitive-intel/cirrus-realtime-ga.md +38 -0
  36. package/templates/reviewer-vault/competitive-intel/cirrus-realtime-preview.md +34 -0
  37. package/templates/reviewer-vault/competitive-intel/helios-connect-overview.md +40 -0
  38. package/templates/reviewer-vault/competitive-intel/northwind-governance-snapshot.md +35 -0
  39. package/templates/reviewer-vault/pricing/aurora-pricing-model.md +35 -0
  40. package/templates/reviewer-vault/pricing/cirrus-capacity-tiers.md +37 -0
  41. package/templates/reviewer-vault/pricing/helios-credits-model.md +37 -0
  42. package/templates/reviewer-vault/pricing/vega-pricing-strategy.md +36 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,64 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.12.0] - 2026-05-26
11
+
12
+ ### Added
13
+
14
+ - **Cross-platform MCPB packaging (#66).** The `.mcpb` artifact now
15
+ boots on both macOS (arm64) and Windows (x64). A single universal
16
+ package bundles platform-tagged native binaries for `better-sqlite3`
17
+ (under `build/Release-${platform}-${arch}/`) and `sharp`, and a
18
+ one-line loader patch in `better-sqlite3`'s `lib/database.js`
19
+ selects the right binary at runtime from `process.platform` /
20
+ `process.arch`. The manifest's `compatibility.platforms` is back
21
+ to `["darwin", "win32"]`. `npm run pack:mcpb` (new) builds the
22
+ universal artifact from a darwin-arm64 host.
23
+
24
+ - **MCP tool annotations.** All 14 tools now carry a `title` and the
25
+ appropriate safety hint — `readOnlyHint` for read/search/analysis
26
+ tools, `destructiveHint` for write and curation tools. MCP clients
27
+ use these to label tools and to decide when to prompt for
28
+ confirmation before a call.
29
+
30
+ ### Fixed
31
+
32
+ - **`vault_write` no longer rejects writes that omit `updated` /
33
+ `updated_by`.** The server stamps both fields on every write, so requiring
34
+ callers to also supply them was redundant — and a caller who omitted them
35
+ (reasonably) got `invalid frontmatter: updated: missing required field;
36
+ updated_by: missing required field`. The fields are now filled in before
37
+ built-in schema validation runs, then re-stamped post-validation by
38
+ `performWrite` as before. Callers that still supply them keep working — the
39
+ server-side stamp wins, identical to the previous behavior. The MCP input
40
+ schema description now flags both fields as server-managed.
41
+
42
+ ## [1.11.0] - 2026-05-21
43
+
44
+ ### Added
45
+
46
+ - **`vault_themes` thematic clustering** (#56). New MCP tool surfaces
47
+ thematic clusters across the vault. For each document the tool mean-pools
48
+ its chunk embeddings into one vector, L2-normalises, and clusters the
49
+ resulting per-document set with hand-rolled k-means (k-means++ init,
50
+ Lloyd's iterations). Default behaviour sweeps k ∈ {10, 15, 20, 25} and
51
+ picks the k with the best mean silhouette; an explicit `k` argument
52
+ skips the sweep. Each theme returns a heuristic label (TF-IDF over
53
+ titles + tags — no LLM call), a coherence score (mean pairwise cosine
54
+ inside the cluster — `null` for singleton clusters, where there are no
55
+ pairs to average), representative documents nearest the centroid, the
56
+ most frequent tags, and `secondaryDocs`: documents whose primary
57
+ cluster is elsewhere but whose pooled vector also aligns with this
58
+ theme's centroid (surfaces cross-cutting documents that the hard
59
+ one-doc-one-theme partition would otherwise hide). Optional
60
+ `collection` and `tags` filters scope clustering; RBAC drops documents
61
+ the caller cannot read. Output is deterministic for the same vault
62
+ (fixed seed). No new storage — reads the existing `chunks` /
63
+ `embeddings` tables. v1 is one-doc-one-theme at the partition level
64
+ (`documentCount` still partitions by primary); true multi-theme
65
+ membership, HDBSCAN, seeded-search/coverage mode, and LLM labels are
66
+ deferred.
67
+
10
68
  ## [1.10.0] - 2026-05-21
11
69
 
12
70
  ### Added