memorix 1.1.11 → 1.1.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.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/cli/index.js +350 -73
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +289 -44
- package/dist/index.js.map +1 -1
- package/dist/maintenance-runner.js +252 -36
- package/dist/maintenance-runner.js.map +1 -1
- package/dist/memcode-runtime/CHANGELOG.md +16 -0
- package/dist/memcode-runtime/package.json +4 -4
- package/dist/sdk.js +289 -44
- package/dist/sdk.js.map +1 -1
- package/docs/AGENT_OPERATOR_PLAYBOOK.md +1 -1
- package/docs/INTEGRATIONS.md +1 -1
- package/docs/dev-log/progress.txt +56 -47
- package/docs/hooks-architecture.md +24 -12
- package/package.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -0
- package/plugins/codex/memorix/hooks/hooks.json +30 -0
- package/src/cli/commands/hooks-install.ts +2 -1
- package/src/cli/commands/setup.ts +7 -1
- package/src/cli/tui/chat-service.ts +3 -9
- package/src/cli/tui/data.ts +9 -11
- package/src/embedding/api-provider.ts +105 -6
- package/src/embedding/provider.ts +31 -3
- package/src/hooks/handler.ts +51 -14
- package/src/hooks/installers/index.ts +48 -7
- package/src/hooks/normalizer.ts +15 -0
- package/src/memory/observations.ts +90 -15
- package/src/store/orama-store.ts +169 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [1.1.12] - 2026-07-17
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Codex lifecycle hook capture** -- The Memorix Codex plugin now bundles the documented `SessionStart`, `UserPromptSubmit`, `PostToolUse`, `PreCompact`, and `Stop` hook events, with a Windows-safe `commandWindows` command override.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Codex hook normalization and injection** -- Codex lifecycle payloads now preserve their event names, `SessionStart` returns Codex-native `hookSpecificOutput.additionalContext`, and capture-only events stay quiet instead of filling the agent context with save-status messages.
|
|
14
|
+
- **OpenCode hooks on Windows** -- The generated plugin resolves the installed npm `memorix.cmd` shim while setup runs and uses that stable path inside OpenCode, instead of relying on OpenCode's inherited `PATH`. Hook delivery stays quiet unless `MEMORIX_HOOK_DEBUG=1` is explicitly set. Fixes #125.
|
|
15
|
+
- **Setup scope isolation** -- Project-level setup no longer installs Claude, Codex, or Copilot plugin bundles in the user home. Use `--global` for user-level plugins, skills, and lifecycle hooks.
|
|
16
|
+
- **TUI embedding startup** -- TUI health, chat, and quick-search paths now use the same lexical-ready startup flow as MCP instead of making a remote dimension probe during the first screen or search.
|
|
17
|
+
- **Semantic recall after restart** -- API-backed embeddings now restore compatible vectors from the local cache during index hydration, without placing remote embedding calls on the MCP startup path. Redundant namespace-scoped cache metadata survives a lost dimensions cache; cache misses enter the existing bounded background recovery lane, and the first successful vector upgrades a cache-less lexical index in the same process. Based on the diagnosis in #126 by @Tom-Ma-Ming.
|
|
18
|
+
- **Concurrent index startup** -- Cache-only startup and ordinary database callers now share one Orama initialization, so a later vector-schema attempt cannot replace an already hydrated lexical index. Resets also discard obsolete in-flight instances.
|
|
19
|
+
- **Lazy API vector-cache I/O** -- A cache-only start with no trusted dimension metadata now skips parsing the potentially large API vector cache entirely; the cache is loaded only after compatible local metadata or a normal embedding initialization establishes its dimensions.
|
|
20
|
+
|
|
5
21
|
## [1.1.11] - 2026-07-16
|
|
6
22
|
|
|
7
23
|
### Added
|
package/README.md
CHANGED
|
@@ -245,7 +245,7 @@ memorix setup --agent omp --global
|
|
|
245
245
|
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.
|
|
246
246
|
|
|
247
247
|
- Claude Code: installs the Memorix plugin package, adds `CLAUDE.md` guidance, and enables hook capture when you do not pass `--noHooks`.
|
|
248
|
-
- Codex: installs the Memorix plugin package, adds `AGENTS.md` guidance,
|
|
248
|
+
- Codex: installs the Memorix plugin package with stdio MCP, skills, and lifecycle hooks, then adds `AGENTS.md` guidance. When Codex asks, review the plugin hook definition once with `/hooks`; `--noHooks` skips automatic capture.
|
|
249
249
|
- GitHub Copilot CLI: installs the Copilot plugin package and official Memorix skills.
|
|
250
250
|
- Pi: installs the user-level Pi package and official skills.
|
|
251
251
|
- Cursor: writes Cursor MCP/rules/config entries in the chosen scope.
|
package/README.zh-CN.md
CHANGED
|
@@ -245,7 +245,7 @@ memorix setup --agent omp --global
|
|
|
245
245
|
它会做的事情取决于目标 Agent,但目标是一致的:你以后在哪里打开这个 Agent,Memorix 就可以在哪里被使用,而不是让你一个仓库一个仓库重复配置。
|
|
246
246
|
|
|
247
247
|
- Claude Code:安装 Memorix 插件包,写入 `CLAUDE.md` 使用规范;不加 `--noHooks` 时会启用自动捕获。
|
|
248
|
-
- Codex
|
|
248
|
+
- Codex:安装包含 stdio MCP、skills 和生命周期 hooks 的 Memorix 插件包,并写入 `AGENTS.md` 使用规范。Codex 首次要求时,在 `/hooks` 中审核一次插件 hook;使用 `--noHooks` 可跳过自动捕获。
|
|
249
249
|
- GitHub Copilot CLI:安装 Copilot 插件包和官方 Memorix skills。
|
|
250
250
|
- Pi:安装用户级 Pi package 和官方 skills。
|
|
251
251
|
- Cursor:写入 Cursor 的 MCP / rules / 配置。
|