memorix 1.0.8 → 1.0.10

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 CHANGED
@@ -1,9 +1,63 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
4
-
5
- ## [1.0.8] - 2026-04-19
6
-
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.0.10] - 2026-06-08
6
+
7
+ ### Added -- Low-Intrusion Handoff Diagnostics
8
+ - **Privacy-safe handoff receipts (#95)** -- Added `memorix receipt --json` for cross-agent memory debugging. Receipts expose project identity hashes, write/search counts, recent observation ID hashes, and privacy boundaries without raw chat, raw memory text, raw search queries, tool payloads, or local file paths.
9
+ - **Doctor receipt mode** -- Added `memorix doctor --receipt` so support/debugging can include the same receipt summary alongside normal health diagnostics.
10
+ - **Cross-agent memory boundary docs** -- Documented the operational boundary: MCP connection success does not mean a memory was written, and shared memory means stored memories are searchable across clients in the same Git project, not that chat transcripts are mirrored.
11
+ - **TUI Agent LLM config scope** -- Added `agent` / `MEMORIX_AGENT_LLM_*` configuration for TUI/chat agent calls. Memory formation, compression, rerank, and embedding remain on their existing `llm` / `embedding` configuration paths. If `agent` is unset, TUI chat falls back to `llm` for backward compatibility.
12
+
13
+ ### Changed
14
+ - **Generated agent rules are less intrusive** -- Rules now prefer `memorix_search` when useful and treat `memorix_session_start` as optional, reserved for handoff, long-running work, session recovery, team coordination, or HTTP project binding.
15
+ - **Agent Team wording tightened** -- Public docs now frame Agent Team as optional autonomous-agent/subagent coordination state rather than an IDE-window chat room. Existing `team_*` APIs and CLI namespaces are unchanged.
16
+
17
+ ### Fixed
18
+ - **Release publish blocker** -- `tests/integration/release-blockers.test.ts` now reserves an ephemeral local TCP port for the real `memorix serve-http` smoke test instead of assuming port `19879` is free. This removes a CI-only `EADDRINUSE` failure that blocked the npm publish workflow.
19
+ - **Standalone dashboard embedding config (#46 follow-up)** -- `memorix dashboard` now loads project `.env` / project YAML before dashboard status routes initialize embedding provider state, matching `status`, `doctor`, and TUI behavior.
20
+
21
+ ### Documentation
22
+ - Added a small moving-between-machines note covering `memorix transfer export/import` without changing the Memorix package name or primary README structure.
23
+
24
+ ## [1.0.9] - 2026-05-19
25
+
26
+ ### Added -- Knowledge Base / LLM Wiki Foundation
27
+ - **First-class Knowledge Base layer** -- Added a readable project knowledge layer generated from durable memory, git-backed facts, mini-skills, and project evidence. The Knowledge Base is a shared human-and-AI surface, not a replacement for raw observations and not a TUI-only feature.
28
+ - **Knowledge graph projection** -- Added a semantic graph projection over the same eligible knowledge inputs, preserving source refs for navigation and traceability.
29
+ - **Dashboard Knowledge foundation** -- Dashboard surfaces can consume the same generated knowledge contract as the TUI, keeping Knowledge Base and graph semantics aligned.
30
+
31
+ ### Added -- TUI Knowledge Workbench
32
+ - **Tabbed terminal workbench** -- Reworked the TUI around `Home`, `Knowledge`, `Memory`, `Workbench`, and `Graph` tabs.
33
+ - **Knowledge browsing** -- Added a Knowledge tab for generated wiki sections, item summaries, entities, and source refs.
34
+ - **Memory browsing** -- Added a Memory tab for recent/search/detail flows with ref-focused navigation from Knowledge.
35
+ - **Workbench session center** -- Added explicit session status, explicit bind/end actions, context source summary, and chat. Entering the tab does not auto-start a session.
36
+ - **Graph text browser** -- Added a terminal-native Knowledge Graph tab with summary stats, cluster browsing, node detail, light filtering, and Graph -> Knowledge jumps.
37
+ - **Cross-surface ref navigation** -- Added Knowledge -> Memory, Memory -> Knowledge, and Graph -> Knowledge navigation paths based on stable refs where available.
38
+
39
+ ### Changed
40
+ - **Knowledge architecture clarified** -- Documented the memory layer as the primary input to the knowledge layer, while project evidence such as docs, source structure, and git facts act as secondary inputs.
41
+ - **TUI scope tightened** -- The TUI now behaves as a knowledge-native workbench, not a placeholder coding-agent harness. No fake Run Task / Review controls are exposed.
42
+ - **Session semantics preserved** -- `session_start` remains explicit and lightweight. Agent Team join remains opt-in.
43
+
44
+ ### Fixed
45
+ - **Formation duplicate detection (#94)** -- Fixed Formation resolve comparing raw Orama/BM25 ranking scores against normalized similarity thresholds. Noisy log-dump memories with high backend scores no longer discard unrelated valid memories as duplicates.
46
+ - **TUI chat input lock** -- Fixed a regression where after a free-text chat response the bottom input bar became unresponsive because the chat overlay disabled the CommandBar. Chat overlay now keeps input active so users can continue the conversation.
47
+ - **TUI read-only overlay input lock** -- Fixed read-only overlays such as `/doctor` disabling the CommandBar. Users can now keep typing commands or questions while diagnostics and other non-action views are open.
48
+ - **TUI shortcut/input conflicts** -- Fixed CommandBar conflicts with view shortcuts such as Graph `f`/`k`, Memory `k`, and Knowledge `m` while still allowing normal first-character input.
49
+ - **Graph TypeScript build issue** -- Fixed a type-only re-export under `verbatimModuleSyntax`.
50
+
51
+ ### Known Limitations
52
+ - The Knowledge Base and Knowledge Graph are read-only generated projections in 1.0.9.
53
+ - 1.0.9 does not include a desktop app, realtime agent messaging layer, GraphRAG system, graph editing, or full coding-agent harness.
54
+
55
+ ### Stats
56
+ - **Verified TUI subset:** 95 passing tests across `interaction`, `workbench`, and `graph` suites.
57
+ - **Release gates run during cleanup:** `npm run lint`, `npm run build`, and full `npm test`.
58
+
59
+ ## [1.0.8] - 2026-04-19
60
+
7
61
  ### Added -- Operator CLI Surface
8
62
  - **Namespaced operator commands** -- Added human-oriented CLI namespaces for `session`, `memory`, `reasoning`, `retention`, `formation`, `audit`, `transfer`, `skills`, `team`, `task`, `message`, `lock`, `handoff`, `poll`, `sync`, and `ingest` so Memorix-native operations no longer require raw MCP tool calls.
9
63
  - **Lightweight session start + explicit collaboration join** -- `memorix session start` now opens project-bound memory sessions without auto-registering a team identity. Operators can opt into collaboration with `--joinTeam`, or join later via `memorix team join`, while still getting default role mapping from `agentType` when they do join.
package/README.md CHANGED
@@ -52,7 +52,7 @@ Most coding agents remember only the current thread. Memorix gives them a shared
52
52
  <tr><td><b>🔍 Source-Aware Retrieval</b></td><td>"What changed" queries favor Git Memory; "why" queries favor reasoning; project-scoped by default, global on demand</td></tr>
53
53
  <tr><td><b>⚙️ Memory Quality Pipeline</b></td><td>Formation (LLM-assisted evaluation), dedup, consolidation, retention with exponential decay — memory stays clean, not noisy</td></tr>
54
54
  <tr><td><b>🔄 Workspace & Rules Sync</b></td><td>One command to migrate MCP configs, workflows, rules, and skills across Cursor, Windsurf, Claude Code, Codex, Copilot, Kiro, etc.</td></tr>
55
- <tr><td><b>👥 Agent Team</b></td><td>Opt-in autonomous-agent state: task board with role-based claiming, inter-agent messaging, advisory file locks, situational-awareness poll</td></tr>
55
+ <tr><td><b>👥 Agent Team</b></td><td>Opt-in autonomous-agent state: task board with role-based claiming, handoff messages, advisory file locks, situational-awareness poll</td></tr>
56
56
  <tr><td><b>🤖 Multi-Agent Orchestration</b></td><td><code>memorix orchestrate</code> runs a structured coordination loop — plan → parallel execution → verify → fix → review — with capability routing and worktree isolation</td></tr>
57
57
  <tr><td><b>📋 Session Lifecycle</b></td><td>Session start/end with handoff summaries, watermark tracking (new memories since last session), cross-session context recovery</td></tr>
58
58
  <tr><td><b>🎯 Project Skills</b></td><td>Auto-generate SKILL.md from memory patterns; promote observations to permanent mini-skills injected at session start</td></tr>
@@ -123,9 +123,11 @@ Deeper details on startup, project binding, config precedence, and agent workflo
123
123
 
124
124
  ![Memorix TUI Workbench](https://raw.githubusercontent.com/AVIDS2/memorix/main/assets/readme-tui-workbench.png)
125
125
 
126
- Running `memorix` without arguments opens an interactive fullscreen terminal UI (requires a TTY). Use it for chat with project memory, search, quick memory capture, diagnostics, background service control, dashboard launch, and IDE setup. Press `/help` inside the TUI for the current command list.
127
-
128
- Single-shot chat (no TUI): `memorix ask "your question"`.
126
+ Running `memorix` without arguments opens an interactive fullscreen terminal UI (requires a TTY). Use it for chat with project memory, search, quick memory capture, diagnostics, background service control, dashboard launch, and IDE setup. Press `/help` inside the TUI for the current command list.
127
+
128
+ In 1.0.9 the TUI is organized as a knowledge workbench with `Home`, `Knowledge`, `Memory`, `Workbench`, and `Graph` tabs. It can browse the generated Knowledge Base, inspect memory detail, jump between wiki refs and source observations, view the text Knowledge Graph, and keep chatting after answers without leaving the terminal.
129
+
130
+ Single-shot chat (no TUI): `memorix ask "your question"`.
129
131
 
130
132
  ### Operator CLI
131
133
 
@@ -239,9 +241,10 @@ For the full IDE matrix, Windows notes, and troubleshooting, see [docs/SETUP.md]
239
241
  | Capture Git truth | `memorix git-hook --force`, `memorix ingest commit`, `memorix ingest log` | [Git Memory Guide](docs/GIT_MEMORY.md) |
240
242
  | Run dashboard + HTTP MCP | `memorix background start` | [Setup Guide](docs/SETUP.md), [Docker](docs/DOCKER.md) |
241
243
  | Keep memory-only sessions lightweight | `memorix_session_start(projectRoot=...)` or `memorix session start` | [Agent Operator Playbook](docs/AGENT_OPERATOR_PLAYBOOK.md#8-what-an-agent-should-do-at-session-start) |
242
- | Join the autonomous agent team | `memorix session start --joinTeam` or `memorix team join` | [TEAM.md](TEAM.md), [API Reference](docs/API_REFERENCE.md#9-agent-team-tools) |
243
- | Run autonomous multi-agent work | `memorix orchestrate --goal "..."` | [API Reference](docs/API_REFERENCE.md) |
244
- | Sync agent configs/rules | `memorix sync workspace ...`, `memorix sync rules ...` | [Setup Guide](docs/SETUP.md) |
244
+ | Join the autonomous agent team | `memorix session start --joinTeam` or `memorix team join` | [TEAM.md](TEAM.md), [API Reference](docs/API_REFERENCE.md#9-agent-team-tools) |
245
+ | Run autonomous multi-agent work | `memorix orchestrate --goal "..."` | [API Reference](docs/API_REFERENCE.md) |
246
+ | Debug cross-agent memory handoff | `memorix receipt --json` or `memorix doctor --receipt` | Privacy-safe hashes/counts only; no raw chat or memory text |
247
+ | Sync agent configs/rules | `memorix sync workspace ...`, `memorix sync rules ...` | [Setup Guide](docs/SETUP.md) |
245
248
  | Use Memorix from code | `import { createMemoryClient } from 'memorix/sdk'` | [API Reference](docs/API_REFERENCE.md) |
246
249
 
247
250
  The most common loop is deliberately small:
@@ -260,7 +263,9 @@ HTTP MCP sessions idle out after 30 minutes by default. If your client does not
260
263
  MEMORIX_SESSION_TIMEOUT_MS=86400000 memorix background start # 24h
261
264
  ```
262
265
 
263
- Agent Team is **not** the normal memory startup path and it is **not** a chat room between IDE windows. Join only when you need tasks, messages, locks, or a structured autonomous-agent workflow. For real multi-agent execution, prefer:
266
+ Shared memory means stored memories are searchable across clients bound to the same Git project. It does not mean every chat message is mirrored automatically. For support/debugging, `memorix receipt --json` and `memorix doctor --receipt` show project identity, write/search counts, and hashed IDs without raw prompts or memory text.
267
+
268
+ Agent Team is **not** the normal memory startup path and it is **not** a chat room between IDE windows. Join only when you need tasks, handoff messages, locks, or a structured autonomous-agent/subagent workflow. For real multi-agent execution, prefer:
264
269
 
265
270
  ```bash
266
271
  memorix orchestrate --goal "Add user authentication" --agents claude-code,cursor,codex
@@ -429,19 +434,16 @@ Additional deep references:
429
434
 
430
435
  ---
431
436
 
432
- ## What's New in 1.0.8
433
-
434
- Version `1.0.8` builds on the 1.0.7 coordination/storage/team baseline with a CLI-first operator surface, official Docker path, dashboard refinements, and broad hooks fixes.
435
-
436
- - **CLI-First Product Surface**: Every Memorix-native operator capability now has a task-oriented CLI route — `session`, `memory`, `reasoning`, `retention`, `formation`, `audit`, `transfer`, `skills`, `team`, `task`, `message`, `lock`, `handoff`, `poll`, `sync`, `ingest`. MCP remains the integration protocol and optional graph-compatibility layer.
437
- - **Docker Deployment**: Official `Dockerfile`, `compose.yaml`, healthcheck, `--host` binding, and [DOCKER.md](docs/DOCKER.md) for running the HTTP control plane in a container.
438
- - **Multi-Agent Orchestrator**: `memorix orchestrate` runs plan, parallel execution, verification, fix, review, and merge loops across Claude, Codex, Gemini CLI, and OpenCode with capability routing, worktree isolation, and agent fallback.
439
- - **SQLite Canonical Store**: Observations, mini-skills, sessions, and archives in SQLite. Shared DB handle, freshness-safe retrieval, dead `JsonBackend` removed.
440
- - **Opt-in Agent Team**: task board, messages, file locks, handoff artifacts, and autonomous-agent heartbeat state. `session_start` is lightweight by default; team identity is opt-in via `joinTeam` or `team_manage join`.
441
- - **Dashboard Semantic Layering**: Team page filter tabs (Active/Recent/Historical), de-emphasized historical agents, project switcher grouped by real/temporary/placeholder, identity page cleanup.
442
- - **Hooks Fixes**: OpenCode event-name key mapping + `Bun.spawn` → `spawnSync`; Copilot `pwsh` fallback + global-hooks guard; hook handler diagnostic logging.
443
- - **Programmatic SDK**: `import { createMemoryClient } from 'memorix/sdk'` to store, search, get, and resolve observations directly from your own code without MCP or CLI. Also exports `createMemorixServer` and `detectProject`.
444
- - **Test Suite Stabilization**: E2e and live-LLM tests are excluded from the default suite, and load-sensitive tests are isolated so the default verification path stays deterministic.
437
+ ## What's New in 1.0.10
438
+
439
+ Version `1.0.10` tightens Memorix's low-intrusion operator story: privacy-safe handoff diagnostics, clearer cross-agent memory boundaries, optional session semantics in generated rules, independent TUI agent LLM config, a better fresh-project cold-start path, safer update behavior, and a release-gate fix so the real `serve-http` smoke test no longer depends on port `19879` being free on the runner.
440
+
441
+ - **Privacy-Safe Handoff Receipt**: `memorix receipt --json` and `memorix doctor --receipt` expose hashes/counts for project identity, writes, and optional probe results without leaking raw chat, memory text, queries, tool payloads, or local paths.
442
+ - **Lower-Intrusion Agent Guidance**: Generated rules now treat `memorix_session_start` as optional and avoid repeating `memorix_search` in the same turn after a confirmed fresh-project cold start.
443
+ - **Separate TUI Agent LLM Config**: `agent` / `MEMORIX_AGENT_LLM_*` lets TUI chat use a different provider/model from memory formation and rerank, while preserving fallback to `llm`.
444
+ - **Fresh-Project UX Fix**: Empty project searches now explicitly say the tool call worked but the project has no stored Memorix memories yet, instead of looking like a generic retrieval failure.
445
+ - **Safer Update Checks**: Auto-update now defaults to notify-only; background install is explicit opt-in via `MEMORIX_AUTO_UPDATE=install`.
446
+ - **Dashboard Config Consistency**: Standalone dashboard status now loads project `.env` and project YAML before embedding/LLM status routes initialize, matching CLI and TUI behavior.
445
447
 
446
448
  ---
447
449
 
package/README.zh-CN.md CHANGED
@@ -123,9 +123,11 @@ Memorix 使用两类文件:
123
123
 
124
124
  ![Memorix TUI Workbench](https://raw.githubusercontent.com/AVIDS2/memorix/main/assets/readme-tui-workbench.png)
125
125
 
126
- 在终端中直接运行 `memorix`(不带参数)即可打开交互式全屏 TUI(需要 TTY)。它适合用于项目记忆问答、搜索、快速存储、诊断、后台服务控制、Dashboard 打开和 IDE 配置。进入 TUI 后用 `/help` 查看当前命令列表。
127
-
128
- 单次聊天(不进 TUI):`memorix ask "your question"`。
126
+ 在终端中直接运行 `memorix`(不带参数)即可打开交互式全屏 TUI(需要 TTY)。它适合用于项目记忆问答、搜索、快速存储、诊断、后台服务控制、Dashboard 打开和 IDE 配置。进入 TUI 后用 `/help` 查看当前命令列表。
127
+
128
+ 1.0.9 中,TUI 已整理成知识工作台:`Home`、`Knowledge`、`Memory`、`Workbench`、`Graph` 五个 tab。它可以浏览生成的 Knowledge Base、查看记忆详情、在 wiki refs 和源 observation 之间跳转、查看文本化 Knowledge Graph,并且在回答结束后继续保持输入可用。
129
+
130
+ 单次聊天(不进 TUI):`memorix ask "your question"`。
129
131
 
130
132
  ### Operator CLI
131
133
 
@@ -427,11 +429,24 @@ Memorix 不是一条单线流水线。它从多个入口接收记忆,把内容
427
429
  - [`llms.txt`](llms.txt)
428
430
  - [`llms-full.txt`](llms-full.txt)
429
431
 
430
- ---
431
-
432
- ## 1.0.8 更新亮点
433
-
434
- `1.0.8` 1.0.7 的多 Agent 协调 / SQLite / 团队身份基线上,进一步收成了 CLI-first operator surface、官方 Docker 路径、Dashboard 语义分层和大量 Hooks 修复。
432
+ ---
433
+
434
+ ## 1.0.10 更新亮点
435
+
436
+ `1.0.10` 继续把 Memorix 往更低侵入、更容易排障的 operator 体验上收紧:跨 agent 交接诊断更安全、共享记忆边界更清晰、生成规则更克制、TUI agent LLM 配置更独立,同时补上了一个发版阻断修复:真实 `serve-http` 冒烟测试改为运行时申请空闲本地端口,不再依赖 CI 机器上的 `19879` 端口必须空闲。
437
+
438
+ - **隐私安全的交接 Receipt**:`memorix receipt --json` 和 `memorix doctor --receipt` 提供项目身份哈希、写入/检索计数、最近 observation ID 哈希和可选 probe 结果计数,用于跨 agent memory 排障;不暴露原始 chat、记忆文本、查询、tool payload 或本地路径。
439
+ - **更低侵入的 Agent 指南**:生成规则现在把 `memorix_session_start` 视为可选动作,只在 handoff、长任务、session 恢复、team 协调或 HTTP 项目绑定时推荐使用。
440
+ - **独立的 TUI Agent LLM 配置**:新增 `agent` / `MEMORIX_AGENT_LLM_*` 配置路径,允许 TUI chat 使用与 memory formation、rerank、embedding 不同的 provider/model;未配置时仍回退到 `llm`。
441
+ - **Fresh Project 体验修复**:空项目搜索现在会明确说明「工具调用成功,但当前 Git 项目还没有 Memorix memories」,而不是表现得像一个泛化检索失败。
442
+ - **更安全的更新检查**:自动更新默认切回 notify-only;后台静默安装需要显式设置 `MEMORIX_AUTO_UPDATE=install`。
443
+ - **Dashboard 配置一致性**:独立 `memorix dashboard` 现在会在状态路由初始化 embedding/LLM 前先加载项目 `.env` 和 YAML,和 CLI、TUI、doctor/status 保持一致。
444
+
445
+ ---
446
+
447
+ ## 1.0.8 更新亮点
448
+
449
+ `1.0.8` 在 1.0.7 的多 Agent 协调 / SQLite / 团队身份基线上,进一步收成了 CLI-first operator surface、官方 Docker 路径、Dashboard 语义分层和大量 Hooks 修复。
435
450
 
436
451
  - **CLI-First 产品面**:所有 Memorix 原生能力都已经有面向人的 CLI 路径 — `session`、`memory`、`reasoning`、`retention`、`formation`、`audit`、`transfer`、`skills`、`team`、`task`、`message`、`lock`、`handoff`、`poll`、`sync`、`ingest`。MCP 保留为标准接入协议和可选 graph-compatibility 层。
437
452
  - **Docker 部署**:官方 `Dockerfile`、`compose.yaml`、健康检查、`--host` 绑定,详见 [DOCKER.md](docs/DOCKER.md)。