memorix 1.9.10 → 1.9.12

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 (55) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +2 -0
  3. package/README.zh-CN.md +2 -0
  4. package/dist/cli/index.js +767 -211
  5. package/dist/index.js +196 -57
  6. package/dist/maintenance-runner.js +74 -20
  7. package/dist/media-audio-runner.js +74 -20
  8. package/dist/media-video-runner.js +74 -20
  9. package/dist/memcode/index.js +1532 -1002
  10. package/dist/memcode-runtime/CHANGELOG.md +42 -0
  11. package/dist/memcode-runtime/package.json +4 -4
  12. package/dist/sdk.js +194 -55
  13. package/dist/vector-backfill-runner.js +74 -20
  14. package/docs/CONFIGURATION.md +26 -0
  15. package/docs/DEVELOPMENT.md +3 -2
  16. package/docs/INTEGRATIONS.md +2 -0
  17. package/docs/README.md +3 -1
  18. package/docs/ROADMAP-1.9.12-2.0.md +637 -0
  19. package/docs/hooks-architecture.md +5 -0
  20. package/package.json +19 -12
  21. package/plugins/antigravity/memorix/plugin.json +1 -1
  22. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  23. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  24. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  25. package/plugins/copilot/memorix/plugin.json +1 -1
  26. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  27. package/plugins/hermes/memorix/plugin.yaml +1 -1
  28. package/plugins/omp/memorix/package.json +1 -1
  29. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  30. package/plugins/pi/memorix/package.json +1 -1
  31. package/server.json +2 -2
  32. package/src/cli/commands/hooks-install.ts +2 -0
  33. package/src/cli/commands/init.ts +6 -2
  34. package/src/cli/commands/integrate.ts +2 -0
  35. package/src/cli/commands/setup.ts +1 -1
  36. package/src/cli/index.ts +2 -2
  37. package/src/cli/tui/ConfigureView.tsx +2 -0
  38. package/src/cli/update-checker.ts +2 -1
  39. package/src/config/dotenv-loader.ts +1 -0
  40. package/src/config/resolved-config.ts +7 -3
  41. package/src/config/yaml-loader.ts +2 -2
  42. package/src/dashboard/server.ts +3 -0
  43. package/src/hooks/installers/index.ts +130 -10
  44. package/src/hooks/lifecycle.ts +4 -9
  45. package/src/hooks/normalizer.ts +6 -1
  46. package/src/hooks/types.ts +3 -1
  47. package/src/llm/provider.ts +2 -1
  48. package/src/memory/observations.ts +11 -0
  49. package/src/memory/session.ts +4 -13
  50. package/src/memory/visibility.ts +8 -2
  51. package/src/multimodal/image-loader.ts +6 -5
  52. package/src/server.ts +8 -4
  53. package/src/store/obs-store.ts +3 -0
  54. package/src/store/orama-store.ts +43 -6
  55. package/src/store/sqlite-store.ts +15 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,48 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  No unreleased changes.
8
8
 
9
+ ## [1.9.12] - 2026-10-17
10
+
11
+ ### Fixed
12
+ - **Release provenance gate** -- the publish workflow now verifies npm registry
13
+ signatures and fails closed when provenance publication cannot complete; it
14
+ no longer retries with an unprovenance `--ignore-scripts` publish.
15
+ - **Background update installs** -- opt-in automatic updates disable npm
16
+ lifecycle scripts during the global install.
17
+
18
+ ## [1.9.11] - 2026-10-16
19
+
20
+ ### Fixed
21
+ - **CJK full-text search** -- the in-memory Orama index now keeps the default
22
+ Latin tokenizer behavior while adding bounded character n-grams for Chinese,
23
+ Japanese, and Korean text, so exact titles and short CJK queries work when
24
+ embeddings are disabled.
25
+ - **Runtime supply-chain baseline** -- refreshed the MCP SDK, Git adapter,
26
+ HTTP client, URL/IP parsers, Hono, LanceDB, Sharp, and related lockfile
27
+ resolutions; the production dependency audit is now clean.
28
+ - **Large-store alias migration** -- startup project-ID normalization now uses a
29
+ bounded SQLite update instead of requiring the full observation corpus in
30
+ memory. The FTS5 triggers and storage generation stay current.
31
+ - **Alias-aware search visibility** -- observations retained under a merged
32
+ project alias are readable through the same alias-expanded search scope.
33
+ - **Hybrid search recovery** -- an empty or stale derived semantic result now
34
+ falls back to the durable lexical path instead of becoming a silent empty
35
+ answer.
36
+ - **Search CLI parity** -- `memorix search "query"` and
37
+ `memorix search --query "query"` now share the same argument contract.
38
+ - **Pi hooks on Node 26** -- hook stdin is paused and unrefed without closing
39
+ file descriptor 0, so subsequent synchronous Git detection remains safe when
40
+ a host supplies hook input through a regular file.
41
+
42
+ ### Added
43
+ - **Qwen Code hooks** -- `memorix hooks install --agent qwen` writes the
44
+ official `.qwen/settings.json` hook shape, preserves user settings, and
45
+ installs project/global `QWEN.md` guidance. iFlow is not targeted because its
46
+ official CLI service was retired in April 2026.
47
+ - **API Route memory preset** -- optional background memory LLM processing
48
+ through an OpenAI-compatible endpoint, with an isolated `API_ROUTE_API_KEY`,
49
+ CLI/TUI setup and bilingual configuration guidance.
50
+
9
51
  ## [1.9.10] - 2026-10-08
10
52
 
11
53
  ### Fixed
package/README.md CHANGED
@@ -535,6 +535,8 @@ For OpenRouter embeddings, use `provider = "api"`, `base_url = "https://openrout
535
535
 
536
536
  For Requesty, choose Requesty in `memorix init` or set `provider = "requesty"` in `[memory.llm]` (endpoint `https://router.requesty.ai/v1`, key from `REQUESTY_API_KEY` or `MEMORIX_LLM_API_KEY`). Requesty embeddings use `provider = "api"`, `base_url = "https://router.requesty.ai/v1"`, and `model = "openai/text-embedding-3-small"` with `REQUESTY_API_KEY`.
537
537
 
538
+ For [API Route](https://www.api-route.com), choose API Route in `memorix init` or set `provider = "apiroute"` in `[memory.llm]`. The preset uses `https://global.api-route.com/v1` and `deepseek-v4.1-flash`, with your own `API_ROUTE_API_KEY` or `MEMORIX_LLM_API_KEY`. It is opt-in memory LLM processing; embeddings and memcode's model registry are configured separately. See [configuration](docs/CONFIGURATION.md#api-route-memory-preset).
539
+
538
540
  For controlled MiniMax media generation, set `MINIMAX_API_KEY` (global) or
539
541
  `MINIMAX_CN_API_KEY` (China region) in your environment or `.env`. The media
540
542
  library never stores that key, a signed output URL, or base64 payloads. CLI
package/README.zh-CN.md CHANGED
@@ -508,6 +508,8 @@ OpenAI-compatible 的 `https://api.atlascloud.ai/v1` endpoint,并读取
508
508
 
509
509
  使用 Requesty 时,可在 `memorix init` 中选择 Requesty,或在 `[memory.llm]` 中设置 `provider = "requesty"`(endpoint 为 `https://router.requesty.ai/v1`,key 读取 `REQUESTY_API_KEY` 或 `MEMORIX_LLM_API_KEY`)。Requesty embedding 使用 `provider = "api"`、`base_url = "https://router.requesty.ai/v1"`、`model = "openai/text-embedding-3-small"`,并读取 `REQUESTY_API_KEY`。
510
510
 
511
+ 使用 [API Route](https://www.api-route.com) 时,可在 `memorix init` 中选择 API Route,或在 `[memory.llm]` 中设置 `provider = "apiroute"`。预设使用 `https://global.api-route.com/v1` 和 `deepseek-v4.1-flash`,密钥读取自己的 `API_ROUTE_API_KEY` 或 `MEMORIX_LLM_API_KEY`。这是显式启用的记忆 LLM 处理;embedding 和 memcode 模型注册表仍需单独配置。详见[配置说明](docs/CONFIGURATION.md#api-route-memory-preset)。
512
+
511
513
  受控 MiniMax 媒体生成可在环境变量或 `.env` 中设置全局 `MINIMAX_API_KEY`,或中国区 `MINIMAX_CN_API_KEY`。媒体库不会保存该 key、临时签名 URL 或 base64 负载。CLI 生成本身就是显式操作;若要让 MCP 中的 Agent 发起生成,还必须明确设置 `MEMORIX_MCP_MEDIA_GENERATION=1`。
512
514
 
513
515
  <h2 id="docker"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/tags/light/section-docker.svg"><img src="assets/tags/section-docker.svg" alt="Docker" height="32" /></picture></h2>