memorix 1.8.3 → 1.8.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 (74) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/CLAUDE.md +3 -0
  3. package/README.md +4 -4
  4. package/README.zh-CN.md +5 -3
  5. package/dist/cli/index.js +1544 -635
  6. package/dist/dashboard/static/app.js +29 -885
  7. package/dist/dashboard/static/index.html +1 -5
  8. package/dist/dashboard/static/style.css +36 -503
  9. package/dist/index.d.ts +4 -4
  10. package/dist/index.js +214 -73
  11. package/dist/memcode/index.js +28035 -169
  12. package/dist/memcode-runtime/CHANGELOG.md +53 -0
  13. package/dist/sdk.js +30 -14
  14. package/docs/1.8.0-RELEASE-CANDIDATE-SPEC.md +22 -16
  15. package/docs/AGENT_OPERATOR_PLAYBOOK.md +2 -2
  16. package/docs/API_REFERENCE.md +10 -8
  17. package/docs/DASHBOARD.md +23 -0
  18. package/docs/DEVELOPMENT.md +2 -2
  19. package/docs/DOCKER.md +6 -3
  20. package/docs/INTEGRATIONS.md +1 -1
  21. package/docs/MODULES.md +46 -20
  22. package/docs/PERFORMANCE.md +1 -1
  23. package/docs/README.md +8 -7
  24. package/docs/SETUP.md +3 -3
  25. package/package.json +11 -11
  26. package/plugins/antigravity/memorix/plugin.json +1 -1
  27. package/plugins/antigravity/memorix/rules/memorix.md +5 -0
  28. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  29. package/plugins/claude/memorix/skills/memorix-memory/SKILL.md +3 -0
  30. package/plugins/claude/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  31. package/plugins/claude/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  32. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  33. package/plugins/codebuddy/memorix/skills/memorix-memory/SKILL.md +3 -0
  34. package/plugins/codebuddy/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  35. package/plugins/codebuddy/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  36. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  37. package/plugins/codex/memorix/skills/memorix-memory/SKILL.md +3 -0
  38. package/plugins/codex/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  39. package/plugins/codex/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  40. package/plugins/copilot/memorix/plugin.json +1 -1
  41. package/plugins/copilot/memorix/skills/memorix-memory/SKILL.md +3 -0
  42. package/plugins/copilot/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  43. package/plugins/copilot/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  44. package/plugins/cursor/memorix/skills/memorix-memory/SKILL.md +3 -0
  45. package/plugins/cursor/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  46. package/plugins/cursor/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  47. package/plugins/gemini/memorix/GEMINI.md +5 -0
  48. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  49. package/plugins/hermes/memorix/plugin.yaml +7 -1
  50. package/plugins/omp/memorix/package.json +1 -1
  51. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  52. package/plugins/pi/memorix/package.json +1 -1
  53. package/plugins/pi/memorix/skills/memorix-memory/SKILL.md +3 -0
  54. package/plugins/pi/memorix/skills/memorix-mini-skills/SKILL.md +2 -0
  55. package/plugins/pi/memorix/skills/memorix-orchestrate/SKILL.md +2 -0
  56. package/server.json +2 -2
  57. package/src/cli/command-guide.ts +52 -1
  58. package/src/cli/commands/background.ts +166 -6
  59. package/src/cli/commands/serve-http.ts +74 -86
  60. package/src/cli/commands/serve.ts +95 -93
  61. package/src/cli/index.ts +1 -1
  62. package/src/dashboard/static/index.html +1 -5
  63. package/src/dashboard/static/style.css +36 -503
  64. package/src/hooks/installers/index.ts +3 -0
  65. package/src/hooks/official-skills.ts +13 -6
  66. package/src/memory/graph.ts +2 -2
  67. package/src/server/mcp-diagnostics.ts +9 -7
  68. package/src/server/mcp-discovery.ts +0 -1
  69. package/src/server/modern-mcp-bridge.ts +108 -0
  70. package/src/server/stdio-startup-gate.ts +41 -2
  71. package/src/server/tool-profile.ts +7 -6
  72. package/src/server.ts +1 -1
  73. package/src/store/orama-store.ts +2 -2
  74. package/src/wiki/types.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,59 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.8.5] - 2026-08-30
8
+
9
+ ### Fixed
10
+ - **Modern MCP transport** -- `memorix serve` and the HTTP control plane now
11
+ use the official MCP v2 server path for 2026-07-28 discovery, request
12
+ metadata, result envelopes, response metadata, stateless requests, and the
13
+ subscriptions listen surface while forwarding business tools through the
14
+ existing Memorix implementation.
15
+ - **Background start race (#259)** -- background startup now holds an
16
+ exclusive, heartbeating lock across the check/spawn/readiness window. Lock
17
+ contention fails closed with a retry message instead of starting an unlocked
18
+ duplicate control plane; stale dead-owner locks are recoverable.
19
+ - **Windows and EOF behavior** -- stdio discovery remains compatible before
20
+ and after readiness, roots-based project switching and deferred maintenance
21
+ are preserved, and stdin EOF closes the official transport cleanly.
22
+ - **Local build reliability** -- the large runtime, CLI, and memcode bundles
23
+ build sequentially, reducing Windows memory pressure without changing
24
+ published entry points. Slow CLI uninstall tests now use asynchronous,
25
+ hidden child processes so the full test run exits cleanly.
26
+ - **Time-stable graph evaluation** -- graph-context fixtures pin their
27
+ reference date so retention policy changes do not make the test depend on the
28
+ calendar.
29
+
30
+ ### MCP Compatibility Boundary
31
+ - Modern Tasks are explicitly unsupported because Memorix does not expose a
32
+ durable task store for MCP task semantics.
33
+ - List responses expose a private zero-TTL protocol hint; Memorix does not
34
+ claim a reusable server-side list cache.
35
+ - The external `@hasmcp/mcp-spec-test` runner currently fails on this Windows
36
+ host before reaching the target because it imports drive-letter paths as ESM
37
+ URLs. Production verification therefore includes official v2 direct tests,
38
+ real stdio/HTTP smoke, and the legacy compatibility path; this external
39
+ runner result is not reported as a pass.
40
+
41
+ ## [1.8.4] - 2026-08-27
42
+
43
+ ### Fixed
44
+ - **Stateless HTTP MCP requests (#255)** -- clients such as Claude Code that
45
+ send the current protocol header on every request can list and call tools
46
+ without echoing a custom project handle. Durable handles are still created
47
+ on `initialize` and remain available when a client opts into them.
48
+ - **MCP protocol self-description (#257)** -- discovery and HTTP response
49
+ headers now advertise the legacy revisions implemented by the pinned SDK,
50
+ instead of claiming complete support for the newer 2026 revision.
51
+ - **MCP stdio smoke contract** -- the release smoke script now checks the
52
+ truthful advertised revision set after the compatibility fix.
53
+
54
+ ### MCP Compatibility
55
+ - The 1.8.4 line supports legacy stateful MCP, versionless stdio tool calls,
56
+ pre-initialize discovery, and the narrow stateless HTTP compatibility path.
57
+ It does not claim full 2026 result metadata, Tasks, subscriptions, or list
58
+ caching support.
59
+
7
60
  ## [1.8.3] - 2026-08-25
8
61
 
9
62
  ### Fixed
package/CLAUDE.md CHANGED
@@ -76,6 +76,9 @@ to enable them).
76
76
  | `memorix_resolve` | Mark completed/outdated memories |
77
77
  | `memorix_session_start` | Load session context (handoff, team coordination) |
78
78
  | `memorix_timeline` | See chronological context around a memory |
79
+ | `memorix_evidence` | Check a memory's source, freshness, and verification state |
80
+ | `memorix_feedback` | Record whether a memory helped, conflicted, or was corrected |
81
+ | `memorix_media` | Inspect or import controlled local media; generation stays explicitly gated |
79
82
  | `memorix_retention` | Check memory health and archive expired items |
80
83
  | `memorix_promote` (MEMORIX_MODE=full) | Turn repeated patterns into permanent skills |
81
84
  | `memorix_rules_sync` (MEMORIX_MODE=full) | Inspect or sync rules across agents |
package/README.md CHANGED
@@ -210,7 +210,7 @@ CLI, MCP, and HTTP are different entry points:
210
210
 
211
211
  - `memorix` CLI is the direct command surface for setup, memory search/store, Git Memory, import/export, dashboard, orchestration, diagnostics, and automation.
212
212
  - `memorix serve` is the stdio MCP bridge used by IDEs and coding agents. Its default tool profile is `micro`, so agents see only the compact core tool set.
213
- - `memorix background start` / `memorix serve-http` run the HTTP service for a shared endpoint, dashboard, Docker, or multiple clients.
213
+ - `memorix background start` / `memorix serve-http` run the HTTP service for a shared endpoint, dashboard, VPS Docker deployment, or multiple clients.
214
214
 
215
215
  <h2 id="install"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/tags/light/section-install.svg"><img src="assets/tags/section-install.svg" alt="Install" height="32" /></picture></h2>
216
216
 
@@ -298,7 +298,7 @@ If your agent only needs a manual MCP entry, use stdio:
298
298
 
299
299
  For a manually managed Claude Code entry, add `"alwaysLoad": true` inside the `memorix` server object. This lets Claude Code expose Memorix tools during print-mode startup; `memorix doctor agents --agent claude` can detect and repair a missing setting.
300
300
 
301
- HTTP is not required for normal setup. Use it only when you intentionally want a shared background service, dashboard, Docker, or multiple clients using the same endpoint:
301
+ HTTP is not required for normal setup. Use it only when you intentionally want a shared background service, dashboard, VPS Docker deployment, or multiple clients using the same endpoint. Local development uses the Node service directly and does not require Docker:
302
302
 
303
303
  ```bash
304
304
  memorix background start
@@ -456,7 +456,7 @@ Long-term memory is deliberately not an automatic dump of every note. A source o
456
456
  | Use the bundled terminal agent | `memorix` or `memcode` |
457
457
  | Run orchestrated subagent work | `memorix orchestrate --goal "..."` |
458
458
 
459
- `memorix serve` defaults to `--mode micro` (9 tools) to keep MCP tool schemas small for agents. `memorix setup` writes `--mode lite` into the installed MCP config so every tool taught in the generated guidance is reachable. Use `--mode team` for coordination tools, or `--mode full` for advanced and compatibility tools such as checkpoint inspection.
459
+ `memorix serve` defaults to `--mode micro` (9 tools) to keep MCP tool schemas small for agents. `memorix setup` writes `--mode lite` (20 tools) into the installed MCP config so the normal memory and session surface is reachable. Use `--mode team` (28 tools) for coordination tools, or `--mode full` (47 tools) for advanced and compatibility tools such as checkpoint inspection.
460
460
 
461
461
  Shortcuts and aliases: `memorix search` / `remember` / `recent` are direct query shortcuts, `bg`/`bs` start the background service, `hook` runs the hook launcher, and `memorix config get|path|migrate` inspects or migrates config files.
462
462
 
@@ -509,7 +509,7 @@ generation is explicit; MCP generation additionally requires
509
509
 
510
510
  <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>
511
511
 
512
- Docker is for the HTTP service, not stdio MCP:
512
+ Docker is a VPS/hosted HTTP deployment option, not a requirement for local development or stdio MCP:
513
513
 
514
514
  ```bash
515
515
  docker compose up --build -d
package/README.zh-CN.md CHANGED
@@ -209,7 +209,7 @@ CLI、MCP 和 HTTP 是不同入口:
209
209
 
210
210
  - `memorix` CLI 用于直接操作:setup、记忆搜索/写入、Git Memory、导入导出、Dashboard、编排、诊断和自动化。
211
211
  - `memorix serve` 是给 IDE / Coding Agent 使用的 stdio MCP 桥。
212
- - `memorix background start` / `memorix serve-http` 是 HTTP 服务,用于共享端点、Dashboard、Docker 或多客户端。
212
+ - `memorix background start` / `memorix serve-http` 是 HTTP 服务,用于共享端点、Dashboard、VPS Docker 部署或多客户端。
213
213
 
214
214
  <h2 id="安装"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/tags/light/section-install.svg"><img src="assets/tags/section-install.svg" alt="安装" height="32" /></picture></h2>
215
215
 
@@ -297,7 +297,7 @@ memorix setup --agent dsh --global
297
297
 
298
298
  如果是手动维护 Claude Code 的 MCP 配置,需要在 `memorix` server 对象里加上 `"alwaysLoad": true`。这样 Claude Code 在 print-mode 启动时就会暴露 Memorix tools;`memorix doctor agents --agent claude` 可以检查并修复缺失的设置。
299
299
 
300
- 普通安装不需要 HTTP。只有在你明确需要共享后台服务、Dashboard、Docker,或多个客户端共用一个端点时才使用:
300
+ 普通安装不需要 HTTP。只有在你明确需要共享后台服务、Dashboard、VPS Docker 部署,或多个客户端共用一个端点时才使用。本机开发直接运行 Node 服务,不需要 Docker:
301
301
 
302
302
  ```bash
303
303
  memorix background start
@@ -438,6 +438,8 @@ memcode
438
438
  | 使用内置终端 Agent | `memorix` 或 `memcode` |
439
439
  | 运行编排式 subagent 工作 | `memorix orchestrate --goal "..."` |
440
440
 
441
+ `memorix serve` 默认使用 `--mode micro`(9 个工具),保持 MCP 工具 schema 紧凑。`memorix setup` 写入 `--mode lite`(20 个工具),覆盖常用记忆、会话、证据和反馈入口。需要协作工具时使用 `--mode team`(28 个工具),需要高级和兼容工具时使用 `--mode full`(47 个工具)。
442
+
441
443
  `memorix orchestrate` 单 worker 默认使用当前 checkout;多 worker 时会在 `.worktrees/` 下为任务创建隔离 worktree,并把成功的任务分支 merge 回来。用 `--isolated` 可强制单 worker 也隔离,用 `--no-worktree` 禁用 worktree,用 `--allow-dirty` 允许带未提交改动运行,用 `--no-auto-merge` 保留任务 worktree 方便人工 review。
442
444
 
443
445
  <h2 id="memcode内置终端-agent"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/tags/light/section-memcode.svg"><img src="assets/tags/section-memcode.svg" alt="memcode" height="32" /></picture></h2>
@@ -483,7 +485,7 @@ formation = "active"
483
485
 
484
486
  <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>
485
487
 
486
- Docker 用于 HTTP 服务,不是 stdio MCP:
488
+ Docker 只作为 VPS/托管环境的 HTTP 部署方式,不是本机开发或 stdio MCP 的必需品:
487
489
 
488
490
  ```bash
489
491
  docker compose up --build -d