memorix 1.8.6 → 1.8.7

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 (49) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/README.zh-CN.md +1 -1
  4. package/dist/cli/index.js +2208 -1160
  5. package/dist/dashboard/static/app.js +51 -3
  6. package/dist/dashboard/static/style.css +88 -0
  7. package/dist/index.js +1726 -736
  8. package/dist/maintenance-runner.js +855 -218
  9. package/dist/media-audio-runner.js +856 -219
  10. package/dist/media-video-runner.js +854 -217
  11. package/dist/memcode-runtime/CHANGELOG.md +33 -0
  12. package/dist/sdk.js +1716 -726
  13. package/dist/vector-backfill-runner.js +853 -216
  14. package/docs/1.8.7-CODEGRAPH.md +166 -0
  15. package/docs/API_REFERENCE.md +23 -2
  16. package/docs/ARCHITECTURE.md +13 -0
  17. package/docs/README.md +4 -1
  18. package/package.json +3 -2
  19. package/plugins/antigravity/memorix/plugin.json +1 -1
  20. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  21. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  22. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  23. package/plugins/copilot/memorix/plugin.json +1 -1
  24. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  25. package/plugins/hermes/memorix/plugin.yaml +1 -1
  26. package/plugins/omp/memorix/package.json +1 -1
  27. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  28. package/plugins/pi/memorix/package.json +1 -1
  29. package/server.json +2 -2
  30. package/src/cli/commands/codegraph.ts +25 -11
  31. package/src/cli/commands/doctor.ts +11 -2
  32. package/src/cli/commands/serve-http.ts +27 -1
  33. package/src/codegraph/auto-context.ts +19 -10
  34. package/src/codegraph/context-pack.ts +20 -6
  35. package/src/codegraph/dashboard.ts +82 -0
  36. package/src/codegraph/external-provider.ts +10 -1
  37. package/src/codegraph/freshness.ts +1 -1
  38. package/src/codegraph/lite-provider.ts +81 -0
  39. package/src/codegraph/project-context.ts +18 -5
  40. package/src/codegraph/scip-provider.ts +181 -0
  41. package/src/codegraph/semantic-context.ts +139 -0
  42. package/src/codegraph/semantic-provider.ts +404 -0
  43. package/src/codegraph/store.ts +253 -18
  44. package/src/codegraph/types.ts +25 -3
  45. package/src/dashboard/server.ts +6 -0
  46. package/src/dashboard/static/style.css +88 -0
  47. package/src/knowledge/workset.ts +46 -44
  48. package/src/server/mcp-binding-store.ts +17 -0
  49. package/src/store/sqlite-db.ts +13 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,39 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.8.7] - 2026-09-02
8
+
9
+ ### Added
10
+ - **CodeGraph semantic foundation** -- adds a TypeScript Compiler API provider
11
+ for source-backed TypeScript, TSX, and JavaScript symbols, imports/exports,
12
+ references, calls, inheritance, and test relations. Unsupported languages
13
+ keep the bounded Lite structural fallback.
14
+ - **Unified CodeGraph evidence** -- persists fact provenance, parser errors,
15
+ semantic coverage, affected import dependents, and bounded task context so
16
+ agents can tell verified relations from heuristic hints.
17
+ - **SCIP boundary and Dashboard health** -- accepts bounded `scip print --json`
18
+ outlines through the validated external-provider boundary and exposes
19
+ read-only CodeGraph coverage in CLI doctor, HTTP, and the Dashboard without
20
+ installing or taking over external indexes.
21
+ - **Reproducible scale probe** -- adds an opt-in generated fixture benchmark
22
+ for measuring public CLI refresh and status latency under an explicit E:
23
+ temporary directory.
24
+
25
+ ### Fixed
26
+ - **Incremental semantic refresh** -- re-indexes local import dependents when
27
+ a changed file can alter their resolved relations, replaces each semantic
28
+ slice atomically, and records a visible partial/failed state instead of
29
+ claiming a ready graph after compiler failure.
30
+ - **Code context precision** -- unrelated symbols no longer enter semantic
31
+ task context merely because they are functions, and freshness counts no
32
+ longer duplicate file and symbol references for one memory.
33
+ - **Modern HTTP project binding** -- the stateless `server/discover` path now
34
+ offers a reusable Memorix project-handle extension after verifying the Git
35
+ root; legacy `initialize` sessions remain unchanged.
36
+ - **Published runtime boundary** -- TypeScript is a production dependency and
37
+ remains external to the bundle so the semantic provider works after npm
38
+ installation without inflating the runtime artifact.
39
+
7
40
  ## [1.8.6] - 2026-09-01
8
41
 
9
42
  ### Added
package/README.md CHANGED
@@ -73,7 +73,7 @@ Memorix is more than a memory store. It also installs agent integrations, keeps
73
73
  | Memory Autopilot | A bounded task Workset with start files, current memory, source-backed knowledge, workflow starts, cautions, and verification. Compact JSON receipts keep fallback CLI use bounded too. | `memorix context "..." --brief-json`, `memorix resume "..." --brief-json`, `memorix_project_context` |
74
74
  | Observation Memory | Searchable facts, fixes, gotchas, session summaries, and implementation notes scoped to the current Git project | `memorix memory`, MCP memory tools |
75
75
  | Curated Long-term Memory | Deliberately reviewed episodic, semantic, and procedural memory with source evidence. Only an explicitly portable user item can cross local projects | `memorix memory long-term` |
76
- | Code State and Code Memory | Versioned local code snapshots, file/symbol links, and freshness checks. The built-in Lite index is always honest about its limits; an already-indexed local CodeGraph can add a bounded semantic outline and is only used when fresh. | `memorix codegraph status\|init\|sync`, automatic context refresh |
76
+ | Code State and Code Memory | Versioned local code snapshots, source-backed TypeScript/JavaScript symbols and relations, file/symbol links, and freshness checks. Other languages keep the honest Lite fallback; an already-indexed local CodeGraph or SCIP result can add a bounded external outline without taking over the local index. | `memorix codegraph status\|refresh\|init\|sync`, automatic context refresh |
77
77
  | Git Memory | Commit-derived engineering facts that answer what changed, where, and why it matters | `memorix ingest commit`, git hook |
78
78
  | Reasoning Memory | Design rationale, alternatives, trade-offs, and risks that should survive beyond one chat | `memorix reasoning`, memory formation |
79
79
  | Knowledge Workspace | Review-gated source-backed claims, Markdown pages, and canonical project workflows; proposals never overwrite reviewed pages silently | `memorix knowledge`, `memorix knowledge workflow` |
package/README.zh-CN.md CHANGED
@@ -72,7 +72,7 @@ Memorix 不只是一个记忆库。它还负责安装 Agent 接入、保留有
72
72
  | Memory Autopilot | 给新 Agent session 一份有预算的任务 Workset,包含起步文件、当前记忆、来源知识、工作流首步、风险提示和验证建议。CLI 回退可用紧凑 JSON 回执,不再读取整套内部对象。 | `memorix context "..." --brief-json`、`memorix resume "..." --brief-json`、`memorix_project_context` |
73
73
  | Observation Memory | 当前 Git 项目内可检索的事实、修复、坑点、session 摘要和实现记录 | `memorix memory`、MCP memory tools |
74
74
  | 受管理的长期记忆 | 有来源证据、可审核的情景/语义/程序记忆;只有明确标为可携带的用户记忆才可在本机跨项目使用 | `memorix memory long-term` |
75
- | Code State 和 Code Memory | 可版本化的本地代码快照、文件 / symbol 关联和 freshness 检查。内置 Lite 会如实说明边界;已有本地索引的 CodeGraph 可额外给出有预算的语义关系,但只有新鲜时才会用于任务。 | `memorix codegraph status\|init\|sync`、自动 context refresh |
75
+ | Code State 和 Code Memory | 可版本化的本地代码快照、来源可追溯的 TypeScript/JavaScript 符号和关系、文件 / symbol 关联及 freshness 检查。其它语言保留诚实的 Lite 兜底;已有本地 CodeGraph 或 SCIP 结果可以补充有预算的外部轮廓,但不会接管本地索引。 | `memorix codegraph status\|refresh\|init\|sync`、自动 context refresh |
76
76
  | Git Memory | 从 commit 中提取工程事实,回答改了什么、在哪里改、为什么重要 | `memorix ingest commit`、git hook |
77
77
  | Reasoning Memory | 保存设计原因、备选方案、trade-off 和风险,不让决策只留在一次聊天里 | `memorix reasoning`、memory formation |
78
78
  | Knowledge Workspace | 有审核门槛的来源证据 Claim、Markdown 知识页和规范化项目工作流;提案不会悄悄覆盖已审阅页面 | `memorix knowledge`、`memorix knowledge workflow` |