@pcircle/memesh 4.8.3 → 4.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 (112) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +2 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/AGENTS.md +8 -3
  5. package/README.de.md +2 -1
  6. package/README.md +2 -1
  7. package/README.zh-TW.md +2 -1
  8. package/dashboard/dist/index.html +3 -3
  9. package/dist/core/agent-message-inbox.d.ts +2 -1
  10. package/dist/core/agent-message-inbox.d.ts.map +1 -1
  11. package/dist/core/agent-message-inbox.js +23 -4
  12. package/dist/core/agent-message-inbox.js.map +1 -1
  13. package/dist/core/agent-messaging.d.ts.map +1 -1
  14. package/dist/core/agent-messaging.js +23 -15
  15. package/dist/core/agent-messaging.js.map +1 -1
  16. package/dist/core/agent-scope-id.d.ts +11 -0
  17. package/dist/core/agent-scope-id.d.ts.map +1 -0
  18. package/dist/core/agent-scope-id.js +40 -0
  19. package/dist/core/agent-scope-id.js.map +1 -0
  20. package/dist/core/briefing.d.ts.map +1 -1
  21. package/dist/core/briefing.js +8 -2
  22. package/dist/core/briefing.js.map +1 -1
  23. package/dist/core/doctor.d.ts +1 -0
  24. package/dist/core/doctor.d.ts.map +1 -1
  25. package/dist/core/doctor.js +154 -16
  26. package/dist/core/doctor.js.map +1 -1
  27. package/dist/core/dreamer.d.ts.map +1 -1
  28. package/dist/core/dreamer.js +3 -1
  29. package/dist/core/dreamer.js.map +1 -1
  30. package/dist/core/embedder.d.ts.map +1 -1
  31. package/dist/core/embedder.js +4 -1
  32. package/dist/core/embedder.js.map +1 -1
  33. package/dist/core/lifecycle.d.ts.map +1 -1
  34. package/dist/core/lifecycle.js +8 -5
  35. package/dist/core/lifecycle.js.map +1 -1
  36. package/dist/core/memory-tool.d.ts.map +1 -1
  37. package/dist/core/memory-tool.js +3 -1
  38. package/dist/core/memory-tool.js.map +1 -1
  39. package/dist/core/ollama-host.d.ts +1 -1
  40. package/dist/core/ollama-host.d.ts.map +1 -1
  41. package/dist/core/ollama-host.js +46 -14
  42. package/dist/core/ollama-host.js.map +1 -1
  43. package/dist/core/operations.d.ts +1 -1
  44. package/dist/core/operations.d.ts.map +1 -1
  45. package/dist/core/operations.js +1 -1
  46. package/dist/core/operations.js.map +1 -1
  47. package/dist/core/project-tags.d.ts +2 -0
  48. package/dist/core/project-tags.d.ts.map +1 -1
  49. package/dist/core/project-tags.js +29 -1
  50. package/dist/core/project-tags.js.map +1 -1
  51. package/dist/core/schema-export.js +3 -3
  52. package/dist/core/schema-export.js.map +1 -1
  53. package/dist/core/version-check.d.ts +1 -0
  54. package/dist/core/version-check.d.ts.map +1 -1
  55. package/dist/core/version-check.js +35 -0
  56. package/dist/core/version-check.js.map +1 -1
  57. package/dist/db.d.ts.map +1 -1
  58. package/dist/db.js +5 -2
  59. package/dist/db.js.map +1 -1
  60. package/dist/host-runtime/acp.d.ts.map +1 -1
  61. package/dist/host-runtime/acp.js +2 -1
  62. package/dist/host-runtime/acp.js.map +1 -1
  63. package/dist/host-runtime/claude.d.ts.map +1 -1
  64. package/dist/host-runtime/claude.js +6 -8
  65. package/dist/host-runtime/claude.js.map +1 -1
  66. package/dist/host-runtime/codex.d.ts.map +1 -1
  67. package/dist/host-runtime/codex.js +2 -1
  68. package/dist/host-runtime/codex.js.map +1 -1
  69. package/dist/host-runtime/entry.d.ts +5 -0
  70. package/dist/host-runtime/entry.d.ts.map +1 -0
  71. package/dist/host-runtime/entry.js +11 -0
  72. package/dist/host-runtime/entry.js.map +1 -0
  73. package/dist/knowledge-graph.d.ts +0 -1
  74. package/dist/knowledge-graph.d.ts.map +1 -1
  75. package/dist/knowledge-graph.js +27 -19
  76. package/dist/knowledge-graph.js.map +1 -1
  77. package/dist/skills-manifest.json +29 -24
  78. package/dist/storage/entity-index.d.ts +4 -0
  79. package/dist/storage/entity-index.d.ts.map +1 -0
  80. package/dist/storage/entity-index.js +15 -0
  81. package/dist/storage/entity-index.js.map +1 -0
  82. package/dist/storage/fts-index.d.ts.map +1 -1
  83. package/dist/storage/fts-index.js +5 -0
  84. package/dist/storage/fts-index.js.map +1 -1
  85. package/dist/storage/graph-repairs.d.ts +11 -1
  86. package/dist/storage/graph-repairs.d.ts.map +1 -1
  87. package/dist/storage/graph-repairs.js +172 -9
  88. package/dist/storage/graph-repairs.js.map +1 -1
  89. package/dist/transports/cli/cli.d.ts.map +1 -1
  90. package/dist/transports/cli/cli.js +23 -12
  91. package/dist/transports/cli/cli.js.map +1 -1
  92. package/dist/transports/mcp/handlers.d.ts +3 -3
  93. package/dist/transports/mcp/handlers.js +3 -3
  94. package/dist/transports/mcp/handlers.js.map +1 -1
  95. package/dist/transports/schemas.d.ts +19 -19
  96. package/dist/transports/schemas.d.ts.map +1 -1
  97. package/dist/transports/schemas.js +18 -11
  98. package/dist/transports/schemas.js.map +1 -1
  99. package/docs/platforms/README.md +1 -1
  100. package/docs/platforms/agent-messaging.md +157 -0
  101. package/hooks/hooks.json +10 -0
  102. package/package.json +9 -5
  103. package/scripts/hooks/_generated/agent-message-inbox.js +23 -4
  104. package/scripts/hooks/_generated/fts-index.js +5 -0
  105. package/scripts/hooks/_shared.js +51 -3
  106. package/scripts/hooks/decision-nudge.js +152 -0
  107. package/scripts/hooks/post-commit.js +11 -0
  108. package/scripts/hooks/pre-compact.js +12 -4
  109. package/scripts/hooks/session-start.js +24 -3
  110. package/scripts/upgrade-plugin.sh +71 -2
  111. package/skills/memesh/SKILL.md +5 -1
  112. /package/{.mcp.json → .claude-plugin/mcp.json} +0 -0
@@ -8,7 +8,7 @@
8
8
  "name": "memesh",
9
9
  "source": "./",
10
10
  "description": "MeMesh \u2014 agentic memory for coding agents. Captured from the agent's real work via hooks, recalled when it acts. One SQLite file, zero cloud required.",
11
- "version": "4.8.3",
11
+ "version": "4.8.5",
12
12
  "author": {
13
13
  "name": "PCIRCLE AI"
14
14
  },
@@ -4,7 +4,8 @@
4
4
  "author": {
5
5
  "name": "PCIRCLE AI"
6
6
  },
7
- "version": "4.8.3",
7
+ "version": "4.8.5",
8
+ "mcpServers": "./.claude-plugin/mcp.json",
8
9
  "homepage": "https://github.com/PCIRCLE-AI/memesh",
9
10
  "repository": "https://github.com/PCIRCLE-AI/memesh",
10
11
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memesh",
3
3
  "description": "MeMesh — agentic memory for coding agents.",
4
- "version": "4.8.3",
4
+ "version": "4.8.5",
5
5
  "mcpServers": "./.codex-plugin/mcp.json"
6
6
  }
package/AGENTS.md CHANGED
@@ -91,6 +91,9 @@ Under Claude Code with the MeMesh plugin, hooks capture automatically:
91
91
  - **PreToolUse (Edit|Write)** surfaces memories related to the file being
92
92
  edited.
93
93
  - **PostToolUse (Bash)** records git commits with diff stats.
94
+ - **PostToolUse (ExitPlanMode|AskUserQuestion)** reminds you to `remember` a
95
+ decision just made — once per tool per session. It only reminds; unlike
96
+ the hooks above, it writes nothing to the graph itself.
94
97
  - **Stop** captures session knowledge and turns failures into lessons.
95
98
  - **PreCompact** saves important knowledge before history is compressed.
96
99
  - **UserPromptSubmit** detects "remember this" intent in the prompt.
@@ -100,9 +103,11 @@ Under Claude Code with the MeMesh plugin, hooks capture automatically:
100
103
  you do.
101
104
 
102
105
  So under Claude Code: skip step 1 of the loop (the topology is already
103
- injected), and do not `remember` commits or session summaries by hand. Manual
104
- calls are for what hooks cannot see decisions and their rationale, lessons
105
- worth keeping, and user-stated task state.
106
+ injected), and do not `remember` commits or session summaries by hand. A
107
+ decision made via `ExitPlanMode`/`AskUserQuestion` gets a reminder, not a
108
+ write act on it with a real `remember` call. Manual calls are still how
109
+ decisions, their rationale, lessons worth keeping, and user-stated task state
110
+ actually get stored.
106
111
 
107
112
  On a host with no hooks (Gemini CLI, Cursor, an MCP-only setup, …) the loop is
108
113
  fully manual, and it is worth running.
package/README.de.md CHANGED
@@ -389,7 +389,7 @@ Reproduktionsbefehle, Datensatz-SHA256, rohe Ergebnisse pro Frage und Analyse be
389
389
 
390
390
  ## Was läuft in Claude Code automatisch ab
391
391
 
392
- Sie müssen nicht manuell alles speichern. MeMesh verfügt über **8 Hooks**, die Wissen während der Arbeit erfassen und injizieren:
392
+ Sie müssen nicht manuell alles speichern. MeMesh verfügt über **9 Hooks**, die Wissen während der Arbeit erfassen und injizieren:
393
393
 
394
394
  | Wenn | Was MeMesh tut |
395
395
  |------|------------------|
@@ -397,6 +397,7 @@ Sie müssen nicht manuell alles speichern. MeMesh verfügt über **8 Hooks**, di
397
397
  | **Vor Dateibearbeitungen** | Ruft Memories ab, die an die Datei oder das Projekt gebunden sind, bevor Claude Code schreibt |
398
398
  | **Wenn Sie etwas zu merken bitten** | Erkennt „remember this“-/„guardar en memesh“-/„sauvegarder dans memesh“-/„記下來“-Absicht und erinnert an MeMesh |
399
399
  | **Nach jedem `git commit`** | Erfasst Ihre Änderungen mit Diff-Statistiken |
400
+ | **Nachdem ein Plan genehmigt oder eine Frage beantwortet wurde** | Erinnert Claude daran, die Entscheidung mit `remember` zu speichern, falls sie es wert ist — höchstens einmal pro Tool und Session |
400
401
  | **Wenn Claude stoppt** | Erfasst bearbeitete Dateien und behobene Fehler; generiert automatisch strukturierte Lektionen aus Fehlern |
401
402
  | **Vor Context-Verdichtung** | Speichert Wissen, bevor es durch Context-Limits verloren geht |
402
403
  | **Vor riskanten Befehlen und Edits** | Löst die von Ihnen akzeptierten Lektions-Guards aus — eine Warnung genau in dem Moment, in dem sich ein erfasster Fehler wiederholen würde |
package/README.md CHANGED
@@ -392,7 +392,7 @@ Re-runnable in ~10 seconds. Full instructions, dataset SHA256, raw per-question
392
392
 
393
393
  ## What Happens Automatically In Claude Code
394
394
 
395
- You don't need to manually remember everything. MeMesh has **8 hooks** that capture and inject knowledge while you work:
395
+ You don't need to manually remember everything. MeMesh has **9 hooks** that capture and inject knowledge while you work:
396
396
 
397
397
  | When | What MeMesh does |
398
398
  |------|------------------|
@@ -400,6 +400,7 @@ You don't need to manually remember everything. MeMesh has **8 hooks** that capt
400
400
  | **Before editing files** | Recalls memories tied to the file or project before Claude writes code |
401
401
  | **When you ask to remember** | Detects "remember this" / "guardar en memesh" / "sauvegarder dans memesh" / "記下來" intent (5 languages) and reminds Claude to use memesh |
402
402
  | **After every `git commit`** | Records what you changed, with diff stats |
403
+ | **After a plan is approved or you answer a question** | Reminds Claude to `remember` the decision if it's worth keeping (once per tool per session) |
403
404
  | **When Claude stops** | Captures files edited, errors fixed, and auto-generates structured lessons from failures |
404
405
  | **Before context compaction** | Saves knowledge before it's lost to context limits |
405
406
  | **Before risky commands and edits** | Fires the lesson-guards you accepted — a warning at the exact moment a recorded mistake is about to repeat |
package/README.zh-TW.md CHANGED
@@ -398,7 +398,7 @@ MeMesh 的檢索引擎**只用 FTS5**(熱路徑上不使用 LLM、不使用嵌
398
398
 
399
399
  ## Claude Code 自動進行的事情
400
400
 
401
- 你不需要手動記住所有事情。MeMesh 有 **8 個 hooks**,會在你工作時自動擷取與注入知識:
401
+ 你不需要手動記住所有事情。MeMesh 有 **9 個 hooks**,會在你工作時自動擷取與注入知識:
402
402
 
403
403
  | 何時 | MeMesh 做什麼 |
404
404
  |------|------------------|
@@ -406,6 +406,7 @@ MeMesh 的檢索引擎**只用 FTS5**(熱路徑上不使用 LLM、不使用嵌
406
406
  | **編輯檔案前** | 回憶與檔案或專案相關的記憶,再讓 Claude 寫程式碼 |
407
407
  | **當你要求記住** | 偵測「remember this」/「guardar en memesh」/「sauvegarder dans memesh」/「記下來」意圖(5 種語言)並提醒 Claude 使用 memesh |
408
408
  | **每次 `git commit` 之後** | 記錄你的變更,包含 diff 統計 |
409
+ | **計畫被核准或你回答問題後** | 提醒 Claude 用 `remember` 存下這個決策(如果值得留存)——每個 session 每種工具只提醒一次 |
409
410
  | **Claude 停止時** | 擷取已編輯的檔案、已修復的錯誤,並從失敗自動產生結構化教訓 |
410
411
  | **上下文壓縮前** | 在知識被上下文限制丟掉之前先保存 |
411
412
  | **危險指令與編輯前** | 觸發你接受過的教訓守衛——在記錄過的錯誤即將重演的那一刻發出警告 |