memorix 1.10.3 → 1.10.5

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 (76) hide show
  1. package/CHANGELOG.md +88 -1
  2. package/dist/cli/index.js +2300 -1343
  3. package/dist/index.js +1947 -1139
  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 +915 -221
  7. package/dist/media-audio-runner.js +906 -213
  8. package/dist/media-video-runner.js +914 -221
  9. package/dist/memcode-runtime/CHANGELOG.md +88 -1
  10. package/dist/sdk.js +10153 -9360
  11. package/dist/vector-backfill-runner.d.ts +1 -1
  12. package/dist/vector-backfill-runner.js +914 -221
  13. package/docs/AGENT_OPERATOR_PLAYBOOK.md +7 -0
  14. package/docs/ARCHITECTURE.md +238 -0
  15. package/docs/CONFIGURATION.md +17 -0
  16. package/docs/DESIGN_DECISIONS.md +37 -0
  17. package/docs/DEVELOPMENT.md +8 -1
  18. package/docs/MODULES.md +7 -1
  19. package/docs/PERFORMANCE.md +21 -0
  20. package/docs/README.md +3 -1
  21. package/docs/ROADMAP-1.9.12-2.0.md +18 -2
  22. package/package.json +1 -1
  23. package/plugins/antigravity/memorix/plugin.json +1 -1
  24. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  25. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  26. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  27. package/plugins/copilot/memorix/plugin.json +1 -1
  28. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  29. package/plugins/hermes/memorix/plugin.yaml +1 -1
  30. package/plugins/omp/memorix/package.json +1 -1
  31. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  32. package/plugins/pi/memorix/package.json +1 -1
  33. package/server.json +2 -2
  34. package/src/cli/command-guide.ts +3 -1
  35. package/src/cli/commands/http-session-stream-watch.ts +138 -0
  36. package/src/cli/commands/memory.ts +3 -1
  37. package/src/cli/commands/project-detection-cache.ts +61 -0
  38. package/src/cli/commands/serve-http.ts +63 -13
  39. package/src/cli/index.ts +1 -1
  40. package/src/cli/tui/chat-service.ts +6 -9
  41. package/src/cli/tui/data.ts +2 -2
  42. package/src/codegraph/auto-context.ts +9 -2
  43. package/src/codegraph/derived-view.ts +63 -0
  44. package/src/compact/engine.ts +10 -33
  45. package/src/config/resolved-config.ts +11 -0
  46. package/src/config/retrieval-strategy.ts +22 -0
  47. package/src/config/toml-loader.ts +5 -0
  48. package/src/config/yaml-loader.ts +7 -0
  49. package/src/core/derived-view-registry.ts +33 -0
  50. package/src/core/derived-view.ts +15 -0
  51. package/src/core/maintenance-result.ts +33 -0
  52. package/src/core/retrieval-contracts.ts +57 -0
  53. package/src/core/retrieval-facade.ts +18 -0
  54. package/src/core/retrieval-policy.ts +44 -0
  55. package/src/core/runtime-context.ts +42 -0
  56. package/src/embedding/api-provider.ts +32 -10
  57. package/src/embedding/ollama-embed.ts +118 -0
  58. package/src/knowledge/workset.ts +0 -2
  59. package/src/memory/consolidation.ts +3 -2
  60. package/src/memory/feedback-model.ts +1 -4
  61. package/src/memory/observations.ts +192 -92
  62. package/src/runtime/control-plane-maintenance.ts +1 -0
  63. package/src/runtime/isolated-maintenance.ts +1 -0
  64. package/src/runtime/maintenance-jobs.ts +123 -32
  65. package/src/runtime/project-maintenance.ts +69 -1
  66. package/src/sdk.ts +3 -2
  67. package/src/search/fts-view.ts +53 -0
  68. package/src/search/orama-view.ts +40 -0
  69. package/src/search/retrieval-facade.ts +38 -0
  70. package/src/search/semantic-index.ts +51 -6
  71. package/src/search/semantic-view.ts +34 -0
  72. package/src/server.ts +19 -7
  73. package/src/store/obs-store.ts +15 -0
  74. package/src/store/orama-store.ts +158 -68
  75. package/src/store/sqlite-db.ts +22 -0
  76. package/src/store/sqlite-store.ts +27 -0
package/CHANGELOG.md CHANGED
@@ -4,7 +4,94 @@ 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
+ - Lifecycle changes that resolve or qualify an observation now enqueue their
9
+ evidence/CodeGraph projection in the same canonical transaction. Successful
10
+ projection acknowledges the durable job, while failures remain pending for
11
+ maintenance retry.
12
+ - Derived-view retrieval receipts now use a kernel-owned registry with stable
13
+ names, replacement, snapshot creation, and isolated reader failures. New
14
+ FTS, Orama, Lance, or CodeGraph adapters can share the same health boundary.
15
+ - Embedding API requests now retry transport-level failures such as stale
16
+ keep-alive sockets, while preserving timeout, cancellation, and `retry = false`
17
+ behavior (#397).
18
+ - Large API embedding-cache restores yield through the timer phase in small
19
+ batches and start after provider initialization, keeping formation deadlines
20
+ and HTTP control-plane work responsive (#398).
21
+ - Fixed consolidation false positives for Korean and punctuation-only records;
22
+ queued automatic cleanup jobs now honor `auto_cleanup = false` at execution
23
+ time (#385).
24
+ - Observation writes now persist an idempotent CodeGraph/evidence projection
25
+ job in the same SQLite transaction; successful foreground projections
26
+ acknowledge it, while failures remain recoverable by maintenance.
27
+ - Added common `DerivedView` adapters for SQLite FTS5 and Orama with explicit
28
+ status, rebuild/refresh, compact, and close lifecycle methods.
29
+ - Added a CodeGraph `DerivedView` adapter for Lite refresh, status, SQLite
30
+ compaction, and lifecycle shutdown.
31
+ - Release workflow now runs automatically for published GitHub Releases and
32
+ requires npm visibility before MCP Registry publication.
33
+ - `memorix@1.10.3` is now publicly available on npm from the existing release
34
+ tag; its registry shasum is `46410b77e0808be58d445bdf2abafdac4f7ba718`.
35
+ - Workset assembly now accepts only request-scoped derived-view receipts,
36
+ preventing a concurrent search from leaking FTS/Orama state into context.
37
+
38
+ ### Changed
39
+ - Search execution now returns a request-scoped receipt to compact search,
40
+ index probes, and TUI chat, so concurrent requests cannot exchange diagnostics.
41
+ - Observation inserts and topic-key updates commit canonical SQLite rows with
42
+ vector, qualification, and claim-derivation jobs in one transaction.
43
+ - A deduplicated maintenance job records writes received while it is running
44
+ and schedules a follow-up pass, including after worker failure or lease loss.
45
+ - Maintenance progress now has one kernel result contract; negative, fractional,
46
+ non-finite, and inconsistent counts cannot be persisted as successful work.
47
+ - SDK, TUI, compact search, and MCP retrieval now share the RetrievalFacade;
48
+ feedback state is read from the active canonical store and reported separately
49
+ from embedding fallback.
50
+ - Topic-key updates publish their Orama projection only after the canonical
51
+ transaction commits; failed updates or linked-record callbacks leave the prior
52
+ searchable record intact.
53
+
54
+ ### Verification
55
+ - The 20-case context task matrix and the 40,000-record local store gate pass
56
+ on Windows/Node 22 with embeddings disabled. This is offline fixture evidence,
57
+ not a claim about remote embedding quality.
58
+
59
+ ## [1.10.5] - 2026-11-26
60
+
61
+ ### Fixed
62
+
63
+ - Preserve project scope in Lance merge keys and cache/backfill checks, and
64
+ validate semantic hits against canonical SQLite. Upserts preserve other
65
+ projects' vectors; scoped deletion only removes the requested project (#410).
66
+ - Release silently disconnected legacy HTTP sessions after a configurable
67
+ two-minute grace, while preserving reconnections, POST-only clients, and
68
+ queued/running requests (#408).
69
+ - Cache positive and negative stateless HTTP project detection results for
70
+ five minutes with a 256-path limit (#409).
71
+ - Show topic-key and structured memory store flags in CLI help, including
72
+ the limitations of the `remember` shortcut (#406).
73
+ - Make binding lease fixtures relative to the current clock (#407).
74
+ - Include the Ollama native embedding adapter (#396/#402), derived-view
75
+ receipt registry (#403), and lifecycle projection outbox (#405) merged
76
+ after 1.10.4. These are incremental reliability changes toward 1.11.
77
+
78
+ ## [1.10.4] - 2026-11-18
79
+
80
+ ### Fixed
81
+
82
+ - Embedding API requests retry transport-level failures such as stale
83
+ keep-alive sockets while preserving request deadlines, cancellation, and the
84
+ explicit retry opt-out (#397).
85
+ - Large API embedding-cache restores yield through the timer phase in bounded
86
+ batches and start after provider initialization, preventing cache recovery
87
+ from delaying formation deadlines (#398).
88
+
89
+ ### Changed
90
+
91
+ - CJK-heavy queries can use Lance neighbor order by default, with configuration
92
+ overrides and a hybrid fallback when the vector index is unavailable (#395).
93
+ - npm 1.10.4 release metadata is synchronized across agent plugins and MCP
94
+ Registry metadata.
8
95
 
9
96
  ## [1.10.3] - 2026-11-05
10
97