memorix 1.8.8 → 1.8.9
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.
- package/CHANGELOG.md +18 -0
- package/README.md +8 -1
- package/README.zh-CN.md +9 -1
- package/dist/cli/index.js +465 -255
- package/dist/cli/memcode.js +0 -0
- package/dist/index.js +313 -179
- package/dist/memcode-runtime/CHANGELOG.md +18 -0
- package/dist/sdk.js +306 -172
- package/docs/AGENT_OPERATOR_PLAYBOOK.md +4 -2
- package/docs/INTEGRATIONS.md +1 -0
- package/docs/hooks-architecture.md +18 -13
- package/llms-full.txt +3 -1
- package/llms.txt +2 -1
- package/package.json +2 -1
- package/plugins/antigravity/memorix/plugin.json +1 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +1 -1
- package/plugins/hermes/memorix/plugin.yaml +1 -1
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/commands/agent-integrations.ts +2 -1
- package/src/cli/commands/hooks-install.ts +2 -0
- package/src/cli/commands/integrate.ts +2 -0
- package/src/cli/commands/setup.ts +11 -4
- package/src/hooks/handler.ts +6 -0
- package/src/hooks/installers/index.ts +181 -6
- package/src/hooks/normalizer.ts +60 -1
- package/src/hooks/types.ts +3 -1
- package/src/integrations/registry.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.8.9] - 2026-09-06
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Grok Build integration** -- adds native lifecycle hook capture for session,
|
|
11
|
+
prompt, tool, compaction, and stop events, plus Grok-specific `AGENTS.md`
|
|
12
|
+
guidance. Thanks to @RaviTharuma for the original integration.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **Host-owned Grok MCP** -- `memorix setup --agent grok --global` uses Grok's
|
|
16
|
+
hook and rules surfaces without writing Grok's `config.toml` or MCP entries.
|
|
17
|
+
- **Agent documentation** -- the English and Chinese README matrices and setup
|
|
18
|
+
guides now list Grok Build and its trust model.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- **Safe Grok hook updates** -- preserves unrelated user hooks, removes only
|
|
22
|
+
Memorix-owned entries, supports `GROK_HOME`, and reports project hook trust
|
|
23
|
+
accurately without claiming that Memorix can approve it.
|
|
24
|
+
|
|
7
25
|
## [1.8.8] - 2026-09-03
|
|
8
26
|
|
|
9
27
|
### Changed
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<strong>Local-first shared memory layer for AI coding agents.</strong><br>
|
|
9
|
-
One project memory system for Claude Code, Codex, CodeBuddy Code, Cursor, Windsurf, Copilot, Gemini CLI, OpenCode, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Kiro, Antigravity, Trae, DeepSeek Harness, WorkBuddy, and any MCP-capable agent.
|
|
9
|
+
One project memory system for Claude Code, Codex, CodeBuddy Code, Cursor, Windsurf, Copilot, Gemini CLI, OpenCode, Grok Build, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Kiro, Antigravity, Trae, DeepSeek Harness, WorkBuddy, and any MCP-capable agent.
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -181,6 +181,11 @@ Memorix connects through the interfaces each agent already supports: plugin pack
|
|
|
181
181
|
<strong>Any MCP Client</strong><br>
|
|
182
182
|
<sub>stdio or HTTP MCP</sub>
|
|
183
183
|
</td>
|
|
184
|
+
<td align="center" width="12.5%">
|
|
185
|
+
<a href="https://github.com/xai-org/grok-build"><img src="https://github.com/xai-org.png?size=120" alt="Grok Build" width="48" height="48"></a><br>
|
|
186
|
+
<strong>Grok Build</strong><br>
|
|
187
|
+
<sub>native hooks + AGENTS.md</sub>
|
|
188
|
+
</td>
|
|
184
189
|
</tr>
|
|
185
190
|
</table>
|
|
186
191
|
|
|
@@ -262,6 +267,7 @@ memorix setup --agent codebuddy --global
|
|
|
262
267
|
memorix setup --agent omp --global
|
|
263
268
|
memorix setup --agent dsh --global
|
|
264
269
|
memorix setup --agent workbuddy --global
|
|
270
|
+
memorix setup --agent grok --global
|
|
265
271
|
```
|
|
266
272
|
|
|
267
273
|
What it installs depends on the target agent, but the goal is the same: make Memorix available wherever you open that agent without asking you to wire every repo by hand.
|
|
@@ -281,6 +287,7 @@ What it installs depends on the target agent, but the goal is the same: make Mem
|
|
|
281
287
|
- Oh-my-Pi: installs an `omp.extensions` package with extension hook events, a `memorix` command, official skills, and writes MCP config.
|
|
282
288
|
- DeepSeek Harness: writes a Memorix `@deepseek-ai/dsh-mcp-client` row into `$DSH_HOME/cordis.patch.yml` (default `~/.dsh/cordis.patch.yml`), appends guidance to the harness `AGENTS.md`, and installs official skills under `$DSH_HOME/skills`. The row follows DSH's own shipped Memorix reference, so tools appear as `mcp__memorix__*`.
|
|
283
289
|
- WorkBuddy: writes a Memorix MCP server row into `~/.workbuddy/mcp.json` (or `<project>/.workbuddy/mcp.json` for project installs) and appends guidance to `AGENTS.md`. Tools appear as `mcp__memorix__*`; there is no hooks surface.
|
|
290
|
+
- Grok Build: installs native lifecycle hooks under `~/.grok/hooks/memorix.json` and guidance in `~/.grok/AGENTS.md`. It leaves Grok's MCP configuration host-owned; project-local hooks require Grok `/hooks-trust`, while global hooks are trusted. Set `GROK_HOME` to use a custom Grok home.
|
|
284
291
|
|
|
285
292
|
Need a quieter install? Add `--noHooks` for targets where setup can control hook capture separately from the host's official package entry. It keeps MCP and guidance, but skips Memorix hook capture.
|
|
286
293
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<strong>面向 AI Coding Agent 的本地优先共享记忆层。</strong><br>
|
|
9
|
-
让 Claude Code、Codex、CodeBuddy Code、Cursor、Windsurf、Copilot、Gemini CLI、OpenCode、OpenClaw、Hermes Agent、Oh-my-Pi、Pi、Kiro、Antigravity、Trae、DeepSeek Harness 和任何 MCP Agent 共用同一套项目记忆。
|
|
9
|
+
让 Claude Code、Codex、CodeBuddy Code、Cursor、Windsurf、Copilot、Gemini CLI、OpenCode、Grok Build、OpenClaw、Hermes Agent、Oh-my-Pi、Pi、Kiro、Antigravity、Trae、DeepSeek Harness、WorkBuddy 和任何 MCP Agent 共用同一套项目记忆。
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -180,6 +180,11 @@ Memorix 通过目标 Agent 已有的接口接入:插件包、MCP、项目规
|
|
|
180
180
|
<strong>Any MCP Client</strong><br>
|
|
181
181
|
<sub>stdio or HTTP MCP</sub>
|
|
182
182
|
</td>
|
|
183
|
+
<td align="center" width="12.5%">
|
|
184
|
+
<a href="https://github.com/xai-org/grok-build"><img src="https://github.com/xai-org.png?size=120" alt="Grok Build" width="48" height="48"></a><br>
|
|
185
|
+
<strong>Grok Build</strong><br>
|
|
186
|
+
<sub>原生 hooks + AGENTS.md</sub>
|
|
187
|
+
</td>
|
|
183
188
|
</tr>
|
|
184
189
|
</table>
|
|
185
190
|
|
|
@@ -260,6 +265,8 @@ memorix setup --agent hermes --global
|
|
|
260
265
|
memorix setup --agent codebuddy --global
|
|
261
266
|
memorix setup --agent omp --global
|
|
262
267
|
memorix setup --agent dsh --global
|
|
268
|
+
memorix setup --agent workbuddy --global
|
|
269
|
+
memorix setup --agent grok --global
|
|
263
270
|
```
|
|
264
271
|
|
|
265
272
|
它会做的事情取决于目标 Agent,但目标是一致的:你以后在哪里打开这个 Agent,Memorix 就可以在哪里被使用,而不是让你一个仓库一个仓库重复配置。
|
|
@@ -278,6 +285,7 @@ memorix setup --agent dsh --global
|
|
|
278
285
|
- CodeBuddy Code:安装用户级本地市场插件到 `~/.codebuddy/memorix-local`,包含 MCP、skills 和 hooks。它不会修改既有的 CodeBuddy 模型、权限或 settings 文件;第三方 hook 仍由 CodeBuddy 自己的 `/hooks` 流程确认。
|
|
279
286
|
- Oh-my-Pi:安装 `omp.extensions` package,包含 extension hook 事件、`memorix` command、官方 skills,并写入 MCP 配置。
|
|
280
287
|
- DeepSeek Harness:向 `$DSH_HOME/cordis.patch.yml`(默认 `~/.dsh/cordis.patch.yml`)写入一行 Memorix `@deepseek-ai/dsh-mcp-client`,向 harness 的 `AGENTS.md` 追加使用规范,并把官方 skills 安装到 `$DSH_HOME/skills`。这一行遵循 DSH 自带的 Memorix 参考配置,因此工具以 `mcp__memorix__*` 形式出现。
|
|
288
|
+
- Grok Build:把原生生命周期 hooks 安装到 `~/.grok/hooks/memorix.json`,把使用规范写入 `~/.grok/AGENTS.md`。Grok 的 MCP 配置仍由 Grok 自己管理;项目级 hooks 需要在 Grok 中执行 `/hooks-trust`,全局 hooks 默认可信;也可以用 `GROK_HOME` 指定自定义 Grok 目录。
|
|
281
289
|
|
|
282
290
|
如果你想要更安静一点的安装,可以对那些 setup 能独立控制 hook capture 的 target 加 `--noHooks`。它会保留 MCP 和使用规范,只跳过 Memorix 的 hook 自动捕获。
|
|
283
291
|
|