@vheins/local-memory-mcp 0.19.12 → 0.19.13
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/dist/mcp/server.js
CHANGED
|
@@ -74,8 +74,8 @@ import path from "path";
|
|
|
74
74
|
import { fileURLToPath } from "url";
|
|
75
75
|
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
76
76
|
var pkgVersion = "0.1.0";
|
|
77
|
-
if ("0.19.
|
|
78
|
-
pkgVersion = "0.19.
|
|
77
|
+
if ("0.19.13") {
|
|
78
|
+
pkgVersion = "0.19.13";
|
|
79
79
|
} else {
|
|
80
80
|
let searchDir = __dirname;
|
|
81
81
|
for (let i = 0; i < 5; i++) {
|
|
@@ -54,9 +54,41 @@ S2 | continue to task or respond | S1✅ | ready | —
|
|
|
54
54
|
- Durable only (arch, patterns, decisions, fixes)
|
|
55
55
|
- memory-acknowledge after code gen from memory
|
|
56
56
|
- Global scope = cross-repo only; prefer repo-specific
|
|
57
|
-
- decision-log = shortcut for storing decision-type memories (auto-sets type=decision, importance=4)
|
|
57
|
+
- decision-log = shortcut for storing decision-type memories (auto-sets type=decision, importance=4, agent=current, model=current, scope=current)
|
|
58
58
|
- session-summarize = archive session as task_archive memory (type=task_archive, importance=3)
|
|
59
59
|
|
|
60
|
+
### memory-store required fields
|
|
61
|
+
|
|
62
|
+
Every `memory-store` call MUST include these fields:
|
|
63
|
+
|
|
64
|
+
| Field | Type | Description |
|
|
65
|
+
| :----------- | :------------------------------------------------------------------ | :------------------------------------------------------------------ |
|
|
66
|
+
| `type` | enum: `code_fact`, `decision`, `mistake`, `pattern`, `task_archive` | Memory category |
|
|
67
|
+
| `title` | string (3-255 chars) | Concise title, no metadata |
|
|
68
|
+
| `content` | string (min 10 chars) | Body of the memory |
|
|
69
|
+
| `importance` | number (1-5) | 1=low, 5=critical |
|
|
70
|
+
| `agent` | string | Identity of the calling agent (e.g., `explore`, `sentinel`, `main`) |
|
|
71
|
+
| `model` | string | Model identifier (e.g., `opencode-go/deepseek-v4-flash`) |
|
|
72
|
+
| `scope` | object `{ owner, repo }` | `owner`=GitHub org/username, `repo`=repo name |
|
|
73
|
+
|
|
74
|
+
Example:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"type": "code_fact",
|
|
79
|
+
"title": "Auth uses JWT",
|
|
80
|
+
"content": "Authentication system uses JWT tokens with 1h expiry.",
|
|
81
|
+
"importance": 3,
|
|
82
|
+
"agent": "explore",
|
|
83
|
+
"model": "opencode-go/deepseek-v4-flash",
|
|
84
|
+
"scope": { "owner": "vheins", "repo": "sentinel-agent" }
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### memory-update optional fields
|
|
89
|
+
|
|
90
|
+
`memory-update` accepts the same fields as `memory-store` but all are optional (only provide the fields to change). Either `id` (UUID) or `code` (string) is required to identify the target memory.
|
|
91
|
+
|
|
60
92
|
**Tasks**: task-list → task-claim(auto → in_progress) → task-update(completed)
|
|
61
93
|
|
|
62
94
|
- Register via task-create before execution
|