memorix 1.10.3 → 1.10.4

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 (67) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/dist/cli/index.js +1886 -1273
  3. package/dist/index.js +1724 -1088
  4. package/dist/{maintenance-jobs-DVRF-46r.d.ts → maintenance-jobs-DweoCoTT.d.ts} +25 -15
  5. package/dist/maintenance-runner.d.ts +1 -1
  6. package/dist/maintenance-runner.js +694 -172
  7. package/dist/media-audio-runner.js +685 -164
  8. package/dist/media-video-runner.js +693 -172
  9. package/dist/memcode-runtime/CHANGELOG.md +44 -1
  10. package/dist/sdk.js +13952 -13345
  11. package/dist/vector-backfill-runner.d.ts +1 -1
  12. package/dist/vector-backfill-runner.js +693 -172
  13. package/docs/ARCHITECTURE.md +219 -0
  14. package/docs/CONFIGURATION.md +15 -0
  15. package/docs/DESIGN_DECISIONS.md +37 -0
  16. package/docs/DEVELOPMENT.md +1 -1
  17. package/docs/MODULES.md +7 -1
  18. package/docs/PERFORMANCE.md +14 -0
  19. package/docs/README.md +1 -1
  20. package/docs/ROADMAP-1.9.12-2.0.md +18 -2
  21. package/package.json +1 -1
  22. package/plugins/antigravity/memorix/plugin.json +1 -1
  23. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  24. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  25. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  26. package/plugins/copilot/memorix/plugin.json +1 -1
  27. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  28. package/plugins/hermes/memorix/plugin.yaml +1 -1
  29. package/plugins/omp/memorix/package.json +1 -1
  30. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  31. package/plugins/pi/memorix/package.json +1 -1
  32. package/server.json +2 -2
  33. package/src/cli/tui/chat-service.ts +6 -9
  34. package/src/cli/tui/data.ts +2 -2
  35. package/src/codegraph/auto-context.ts +9 -2
  36. package/src/codegraph/derived-view.ts +63 -0
  37. package/src/compact/engine.ts +10 -33
  38. package/src/config/resolved-config.ts +11 -0
  39. package/src/config/retrieval-strategy.ts +22 -0
  40. package/src/config/toml-loader.ts +5 -0
  41. package/src/config/yaml-loader.ts +7 -0
  42. package/src/core/derived-view.ts +15 -0
  43. package/src/core/maintenance-result.ts +33 -0
  44. package/src/core/retrieval-contracts.ts +57 -0
  45. package/src/core/retrieval-facade.ts +18 -0
  46. package/src/core/retrieval-policy.ts +44 -0
  47. package/src/core/runtime-context.ts +42 -0
  48. package/src/embedding/api-provider.ts +18 -8
  49. package/src/knowledge/workset.ts +0 -2
  50. package/src/memory/consolidation.ts +3 -2
  51. package/src/memory/feedback-model.ts +1 -4
  52. package/src/memory/observations.ts +165 -87
  53. package/src/runtime/control-plane-maintenance.ts +1 -0
  54. package/src/runtime/isolated-maintenance.ts +1 -0
  55. package/src/runtime/maintenance-jobs.ts +123 -32
  56. package/src/runtime/project-maintenance.ts +69 -1
  57. package/src/sdk.ts +3 -2
  58. package/src/search/fts-view.ts +53 -0
  59. package/src/search/orama-view.ts +40 -0
  60. package/src/search/retrieval-facade.ts +38 -0
  61. package/src/search/semantic-index.ts +13 -0
  62. package/src/search/semantic-view.ts +34 -0
  63. package/src/server.ts +19 -7
  64. package/src/store/obs-store.ts +15 -0
  65. package/src/store/orama-store.ts +116 -42
  66. package/src/store/sqlite-db.ts +22 -0
  67. package/src/store/sqlite-store.ts +27 -0
package/CHANGELOG.md CHANGED
@@ -4,7 +4,68 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
- No unreleased changes.
7
+ ### Fixed
8
+ - Embedding API requests now retry transport-level failures such as stale
9
+ keep-alive sockets, while preserving timeout, cancellation, and `retry = false`
10
+ behavior (#397).
11
+ - Large API embedding-cache restores yield through the timer phase in small
12
+ batches and start after provider initialization, keeping formation deadlines
13
+ and HTTP control-plane work responsive (#398).
14
+ - Fixed consolidation false positives for Korean and punctuation-only records;
15
+ queued automatic cleanup jobs now honor `auto_cleanup = false` at execution
16
+ time (#385).
17
+ - Observation writes now persist an idempotent CodeGraph/evidence projection
18
+ job in the same SQLite transaction; successful foreground projections
19
+ acknowledge it, while failures remain recoverable by maintenance.
20
+ - Added common `DerivedView` adapters for SQLite FTS5 and Orama with explicit
21
+ status, rebuild/refresh, compact, and close lifecycle methods.
22
+ - Added a CodeGraph `DerivedView` adapter for Lite refresh, status, SQLite
23
+ compaction, and lifecycle shutdown.
24
+ - Release workflow now runs automatically for published GitHub Releases and
25
+ requires npm visibility before MCP Registry publication.
26
+ - `memorix@1.10.3` is now publicly available on npm from the existing release
27
+ tag; its registry shasum is `46410b77e0808be58d445bdf2abafdac4f7ba718`.
28
+ - Workset assembly now accepts only request-scoped derived-view receipts,
29
+ preventing a concurrent search from leaking FTS/Orama state into context.
30
+
31
+ ### Changed
32
+ - Search execution now returns a request-scoped receipt to compact search,
33
+ index probes, and TUI chat, so concurrent requests cannot exchange diagnostics.
34
+ - Observation inserts and topic-key updates commit canonical SQLite rows with
35
+ vector, qualification, and claim-derivation jobs in one transaction.
36
+ - A deduplicated maintenance job records writes received while it is running
37
+ and schedules a follow-up pass, including after worker failure or lease loss.
38
+ - Maintenance progress now has one kernel result contract; negative, fractional,
39
+ non-finite, and inconsistent counts cannot be persisted as successful work.
40
+ - SDK, TUI, compact search, and MCP retrieval now share the RetrievalFacade;
41
+ feedback state is read from the active canonical store and reported separately
42
+ from embedding fallback.
43
+ - Topic-key updates publish their Orama projection only after the canonical
44
+ transaction commits; failed updates or linked-record callbacks leave the prior
45
+ searchable record intact.
46
+
47
+ ### Verification
48
+ - The 20-case context task matrix and the 40,000-record local store gate pass
49
+ on Windows/Node 22 with embeddings disabled. This is offline fixture evidence,
50
+ not a claim about remote embedding quality.
51
+
52
+ ## [1.10.4] - 2026-11-18
53
+
54
+ ### Fixed
55
+
56
+ - Embedding API requests retry transport-level failures such as stale
57
+ keep-alive sockets while preserving request deadlines, cancellation, and the
58
+ explicit retry opt-out (#397).
59
+ - Large API embedding-cache restores yield through the timer phase in bounded
60
+ batches and start after provider initialization, preventing cache recovery
61
+ from delaying formation deadlines (#398).
62
+
63
+ ### Changed
64
+
65
+ - CJK-heavy queries can use Lance neighbor order by default, with configuration
66
+ overrides and a hybrid fallback when the vector index is unavailable (#395).
67
+ - npm 1.10.4 release metadata is synchronized across agent plugins and MCP
68
+ Registry metadata.
8
69
 
9
70
  ## [1.10.3] - 2026-11-05
10
71