memorix 0.6.4 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.7.0] — 2026-02-21
6
+
7
+ ### Added
8
+ - **Memory-Driven Skills Engine** (`memorix_skills` MCP tool):
9
+ - `list` — Discover all `SKILL.md` files across 7 agent directories
10
+ - `generate` — Auto-generate project-specific skills from observation patterns (gotchas, decisions, how-it-works)
11
+ - `inject` — Return full skill content directly to agent context
12
+ - Intelligent scoring: requires skill-worthy observation types, not just volume
13
+ - Write to any target agent with `write: true, target: "<agent>"`
14
+ - **Transformers.js Embedding Provider**:
15
+ - Pure JavaScript fallback (`@huggingface/transformers`) — no native deps required
16
+ - Provider chain: `fastembed` → `transformers.js` → fulltext-only
17
+ - Quantized model (`q8`) for small footprint
18
+ - **Dashboard Enhancements**:
19
+ - Canvas donut chart for observation type distribution
20
+ - Embedding provider status card (enabled/provider/dimensions)
21
+ - Search result highlighting with `<mark>` tags
22
+ - **17 new tests** for Skills Engine (list, generate, inject, write, scoring, dedup)
23
+
24
+ ### Changed
25
+ - Scoring algorithm requires at least 1 skill-worthy type (gotcha/decision/how-it-works/problem-solution/trade-off) — pure discovery/what-changed entities won't generate skills
26
+ - Volume bonus reduced from 2×obs to 1×obs (capped at 5) to favor quality over quantity
27
+ - Type diversity bonus increased from 2 to 3 points per unique skill-worthy type
28
+
29
+ ### Fixed
30
+ - 422 tests passing (up from 405), 34 test files, zero regressions
31
+
5
32
  ## [0.5.0] — 2026-02-15
6
33
 
7
34
  ### Added
package/README.md CHANGED
@@ -97,6 +97,7 @@ Then use `"command": "memorix"` instead of `"command": "npx"` in your config.
97
97
  - **MCP Config Migration** — Detect and migrate MCP server configs (merges — never overwrites)
98
98
  - **Rules Sync** — Scan → Deduplicate → Conflict detection → Cross-format generation
99
99
  - **Skills & Workflows** — Copy skill folders and workflow files across agents
100
+ - **Memory-Driven Skills** — `memorix_skills` auto-generates project-specific `SKILL.md` from observation patterns (gotchas, decisions, how-it-works)
100
101
  - **Apply with Safety** — Backup `.bak` → Atomic write → Auto-rollback on failure
101
102
 
102
103
  ### 🔒 Project Isolation
@@ -112,8 +113,11 @@ Then use `"command": "memorix"` instead of `"command": "npx"` in your config.
112
113
  - **Web Dashboard** — `memorix_dashboard` opens a beautiful web UI at `http://localhost:3210`
113
114
  - **Project Switcher** — Dropdown to view any project's data without switching IDEs
114
115
  - **Knowledge Graph** — Interactive visualization of entities and relations
116
+ - **Type Distribution Chart** — Canvas donut chart showing observation type breakdown
117
+ - **Embedding Status** — Real-time display of vector search provider status (enabled/provider/dimensions)
115
118
  - **Retention Scores** — Exponential decay scoring with immunity status
116
- - **Observation Management** — Expand/collapse details, search, delete with confirmation, data export
119
+ - **Observation Management** — Expand/collapse details, **search with text highlighting**, delete with confirmation, data export
120
+ - **Batch Cleanup** — Auto-detect and bulk-delete low-quality observations
117
121
  - **Light/Dark Theme** — Premium glassmorphism design, bilingual (EN/中文)
118
122
 
119
123
  ### 🪝 Auto-Memory Hooks
@@ -327,15 +331,26 @@ Files: ["src/auth/jwt.ts", "src/config.ts"]
327
331
 
328
332
  ## 🔮 Optional: Vector Search
329
333
 
330
- Install `fastembed` for hybrid (BM25 + semantic) search:
334
+ Memorix supports **hybrid search** (BM25 + semantic vectors) with a provider priority chain:
335
+
336
+ | Priority | Provider | How to Enable | Notes |
337
+ |----------|----------|---------------|-------|
338
+ | 1st | `fastembed` | `npm install -g fastembed` | Fastest, native ONNX bindings |
339
+ | 2nd | `transformers.js` | `npm install -g @huggingface/transformers` | Pure JS/WASM, cross-platform |
340
+ | Fallback | Full-text (BM25) | Always available | Already very effective for code |
331
341
 
332
342
  ```bash
343
+ # Option A: Native speed (recommended if it installs cleanly)
333
344
  npm install -g fastembed
345
+
346
+ # Option B: Universal compatibility (works everywhere, no native deps)
347
+ npm install -g @huggingface/transformers
334
348
  ```
335
349
 
336
- - **Without it** — BM25 full-text search (already very effective for code)
337
- - **With it** — Queries like "authentication" also match "login flow" via semantic similarity
338
- - Local ONNX inference, zero API calls, zero privacy risk
350
+ - **Without either** — BM25 full-text search works great out of the box
351
+ - **With any provider** — Queries like "authentication" also match "login flow" via semantic similarity
352
+ - Both run **locally** zero API calls, zero privacy risk, zero cost
353
+ - The dashboard shows which provider is active in real-time
339
354
 
340
355
  ---
341
356
 
@@ -379,7 +394,8 @@ src/
379
394
  ├── memory/ # Graph, observations, retention, entity extraction
380
395
  ├── store/ # Orama search engine + disk persistence
381
396
  ├── compact/ # 3-layer Progressive Disclosure engine
382
- ├── embedding/ # Optional fastembed vector provider
397
+ ├── embedding/ # Vector providers (fastembed transformers.js → fallback)
398
+ ├── skills/ # Memory-driven project skills engine (list → generate → inject)
383
399
  ├── hooks/ # Auto-memory hooks (normalizer + pattern detector)
384
400
  ├── workspace/ # Cross-agent MCP/workflow/skills sync
385
401
  ├── rules/ # Cross-agent rules sync (7 adapters)