memorix 1.7.2 → 1.8.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 (90) hide show
  1. package/CHANGELOG.md +59 -1
  2. package/README.md +1 -1
  3. package/README.zh-CN.md +1 -1
  4. package/assets/star-history-dark.svg +4 -4
  5. package/assets/star-history-light.svg +4 -4
  6. package/assets/star-history.json +47 -3
  7. package/dist/cli/index.js +1801 -254
  8. package/dist/dashboard/static/app.js +88 -4
  9. package/dist/dashboard/static/index.html +10 -0
  10. package/dist/dashboard/static/style.css +86 -0
  11. package/dist/index.js +1241 -224
  12. package/dist/maintenance-runner.js +972 -126
  13. package/dist/media-audio-runner.js +967 -121
  14. package/dist/media-video-runner.js +972 -126
  15. package/dist/memcode-runtime/CHANGELOG.md +59 -1
  16. package/dist/sdk.js +1240 -223
  17. package/dist/types.d.ts +8 -0
  18. package/dist/vector-backfill-runner.js +972 -126
  19. package/docs/1.2.4-PERSISTENT-MEMORY-DELIVERY.md +1 -1
  20. package/docs/1.8.0-RELEASE-CANDIDATE-SPEC.md +75 -0
  21. package/docs/API_REFERENCE.md +37 -1
  22. package/docs/ARCHITECTURE.md +1 -1
  23. package/docs/CONFIGURATION.md +57 -1
  24. package/docs/DASHBOARD.md +10 -0
  25. package/docs/DEVELOPMENT.md +3 -2
  26. package/docs/INTEGRATIONS.md +1 -1
  27. package/docs/PERFORMANCE.md +3 -1
  28. package/docs/README.md +11 -1
  29. package/docs/SETUP.md +2 -1
  30. package/package.json +1 -1
  31. package/plugins/antigravity/memorix/rules/memorix.md +1 -1
  32. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  33. package/plugins/claude/memorix/SKILL.md +1 -1
  34. package/plugins/claude/memorix/skills/memorix-memory/SKILL.md +2 -2
  35. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  36. package/plugins/codebuddy/memorix/skills/memorix-memory/SKILL.md +2 -2
  37. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  38. package/plugins/codex/memorix/skills/memorix-memory/SKILL.md +2 -2
  39. package/plugins/copilot/memorix/plugin.json +1 -1
  40. package/plugins/copilot/memorix/skills/memorix-memory/SKILL.md +2 -2
  41. package/plugins/cursor/memorix/skills/memorix-memory/SKILL.md +2 -2
  42. package/plugins/gemini/memorix/GEMINI.md +1 -1
  43. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  44. package/plugins/omp/memorix/package.json +1 -1
  45. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  46. package/plugins/pi/memorix/package.json +1 -1
  47. package/plugins/pi/memorix/skills/memorix-memory/SKILL.md +2 -2
  48. package/server.json +2 -2
  49. package/src/cli/capability-map.ts +2 -0
  50. package/src/cli/commands/config-migrate.ts +7 -0
  51. package/src/cli/commands/context.ts +11 -0
  52. package/src/cli/commands/doctor.ts +5 -1
  53. package/src/cli/commands/evidence.ts +56 -0
  54. package/src/cli/commands/feedback.ts +58 -0
  55. package/src/cli/commands/init.ts +17 -0
  56. package/src/cli/commands/resume.ts +2 -0
  57. package/src/cli/commands/serve-http.ts +201 -12
  58. package/src/cli/commands/status.ts +2 -0
  59. package/src/cli/fallback-budget.ts +59 -0
  60. package/src/cli/index.ts +5 -1
  61. package/src/compact/engine.ts +26 -1
  62. package/src/config/dotenv-loader.ts +17 -0
  63. package/src/config/resolved-config.ts +110 -12
  64. package/src/config/toml-loader.ts +8 -0
  65. package/src/config/yaml-loader.ts +9 -0
  66. package/src/dashboard/config-provenance.ts +17 -0
  67. package/src/dashboard/evidence.ts +63 -0
  68. package/src/dashboard/server.ts +93 -68
  69. package/src/dashboard/static/index.html +10 -0
  70. package/src/dashboard/static/style.css +86 -0
  71. package/src/hooks/installers/index.ts +1 -1
  72. package/src/hooks/official-skills.ts +3 -3
  73. package/src/hooks/rules/memorix-agent-rules.md +1 -1
  74. package/src/llm/provider.ts +33 -7
  75. package/src/memory/feedback-model.ts +4 -0
  76. package/src/memory/feedback.ts +220 -0
  77. package/src/memory/observations.ts +19 -0
  78. package/src/memory/retention.ts +38 -5
  79. package/src/multimodal/image-loader.ts +6 -3
  80. package/src/rerank/http-provider.ts +125 -0
  81. package/src/rerank/index.ts +81 -0
  82. package/src/rerank/policy.ts +88 -0
  83. package/src/server/mcp-binding-store.ts +79 -0
  84. package/src/server/mcp-diagnostics.ts +40 -0
  85. package/src/server/tool-profile.ts +4 -0
  86. package/src/server.ts +121 -1
  87. package/src/store/evidence-store.ts +261 -0
  88. package/src/store/orama-store.ts +79 -53
  89. package/src/store/sqlite-db.ts +104 -0
  90. package/src/types.ts +8 -0
@@ -4,6 +4,65 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.8.0] - 2026-08-23
8
+
9
+ ### Added
10
+ - **Persisted Evidence Cards** -- observation provenance is stored in SQLite
11
+ with project ownership, source reference, locator, captured hash, files,
12
+ verification state, freshness, and audit events. Cards are available through
13
+ `memorix_evidence`, `memorix evidence`, and the Dashboard Evidence Console.
14
+ - **Auditable memory feedback** -- verification, use, correction, source-change,
15
+ conflict, strengthen, weaken, and revoke events materialize a bounded
16
+ retrieval/retention weight without deleting the original source record.
17
+ - **Stateless MCP project handles** -- 2026-07-28-style requests can use an
18
+ explicit `Mcp-Project-Handle` that survives service restart, while legacy
19
+ stateful Streamable HTTP remains supported.
20
+ - **One-shot CLI fallback budget** -- repeated MCP-unavailable probing for the
21
+ same project/task is deduplicated and fail-closed after one bounded context
22
+ request.
23
+ - **Evidence Console** -- Dashboard includes a responsive, project-scoped
24
+ evidence view with source, locator, freshness, verification, and audit count.
25
+
26
+ ### Changed
27
+ - HTTP TeamStore resolution is project-data-directory scoped, preventing A/B
28
+ coordination state from crossing when sessions bind different projects.
29
+ - The 1.8.0 documentation records the shipped compatibility adapter, explicit
30
+ non-goals, fallback semantics, and the Antigravity/Gemini setup matrix.
31
+
32
+ ### Fixed
33
+ - Preserve the 1.7 micro MCP profile's nine-tool budget by keeping Evidence and
34
+ Feedback in lite/team/full profiles.
35
+ - Keep legacy relevance unchanged until a memory receives explicit feedback.
36
+ - Keep SQLite-backed HTTP helpers lazy so mocked and lightweight MCP startup
37
+ paths do not open the database during module evaluation.
38
+
39
+ ## [1.7.3] - 2026-08-22
40
+
41
+ ### Added
42
+ - **Optional HTTP rerank** -- Thorough search with at least 3 candidates can
43
+ reorder top hits through a configurable Cohere-compatible
44
+ `POST {base_url}/rerank` endpoint (`{model, query, documents}`). Works with
45
+ any compatible `/rerank` API. Configure `[rerank]` or `MEMORIX_RERANK_*`;
46
+ base URL inherits the memory LLM lane when unset. Bearer inherits only
47
+ when the effective rerank URL is that same trusted endpoint; a different
48
+ host requires `MEMORIX_RERANK_API_KEY` / `rerank.api_key`. The model id
49
+ is user-configured. When HTTP rerank is configured, a miss or timeout
50
+ keeps the original order (no LLM fallback). LLM rerank remains available
51
+ when HTTP rerank is off.
52
+
53
+ ### Fixed
54
+ - **OpenAI-compatible provider base URLs** -- preserve explicit versioned paths
55
+ such as Volcano Ark's `/api/v3` for ordinary chat, tool calling, streaming,
56
+ and vision requests instead of appending an incorrect `/v1` segment.
57
+ - HTTP rerank honors `MEMORIX_RERANK_TIMEOUT_MS` on the inner fetch
58
+ (default 30s) instead of aborting at 5s.
59
+ - HTTP rerank no longer inherits or transmits the memory LLM credential
60
+ when `rerank.base_url` points at a different endpoint. If a Memory LLM
61
+ key is present, that foreign host is not called until
62
+ `MEMORIX_RERANK_API_KEY` / `rerank.api_key` is set.
63
+ - Codegraph CLI tests close git/sqlite sandboxes with retries so Windows
64
+ `afterEach` cannot hang past vitest's 10s hookTimeout.
65
+
7
66
  ## [1.7.2] - 2026-08-19
8
67
 
9
68
  ### Changed
@@ -29,7 +88,6 @@ All notable changes to this project will be documented in this file.
29
88
  - **Centered maintenance preview** -- the Cleanup preview dialog is centered
30
89
  on desktop and narrow screens, including after the Dashboard global reset
31
90
  styles are applied.
32
-
33
91
  ## [1.7.0] - 2026-08-18
34
92
 
35
93
  ### Added