toon-memory 2.9.1 → 2.9.4
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/README.md +1 -0
- package/mcp/server.js +2 -2
- package/package.json +1 -1
- package/src/lib/utils.ts +1 -1
package/README.md
CHANGED
|
@@ -173,6 +173,7 @@ memory_remember # Save important decisions
|
|
|
173
173
|
| `memory_suggest` | Find related entries for a given context |
|
|
174
174
|
| `memory_encrypt` | Enable AES-256-GCM encryption |
|
|
175
175
|
| `memory_decrypt` | Disable encryption |
|
|
176
|
+
| `memory_backup` | Create timestamped backup of memory file (auto-prunes to 10 most recent) |
|
|
176
177
|
| `memory_captured` | List activity auto-captured by hooks (opt-in) or clear the log |
|
|
177
178
|
| `memory_consolidate` | Merge-dedup entries: same-key entries are merged (tags union, max confidence, latest date), then exact-content duplicates removed (deterministic, no LLM) |
|
|
178
179
|
| `memory_sessions` | Show active agent sessions (branch, files, last-seen) and soft conflicts for parallel work |
|
package/mcp/server.js
CHANGED
|
@@ -27863,7 +27863,7 @@ var isExpiredLocal = (ttl) => {
|
|
|
27863
27863
|
function importance(e) {
|
|
27864
27864
|
const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
27865
27865
|
const days = (Date.now() - (/* @__PURE__ */ new Date(`${e.date || today}T00:00:00`)).getTime()) / 864e5;
|
|
27866
|
-
const recency = Math.max(0, 30 - days) / 30;
|
|
27866
|
+
const recency = Math.min(1, Math.max(0, 30 - days) / 30);
|
|
27867
27867
|
const freq = Math.min(1, e.accessed / 5);
|
|
27868
27868
|
return recency * 0.6 + freq * 0.4;
|
|
27869
27869
|
}
|
|
@@ -30184,7 +30184,7 @@ function registerResources(server2) {
|
|
|
30184
30184
|
|
|
30185
30185
|
// src/mcp/server.ts
|
|
30186
30186
|
var server = new McpServer(
|
|
30187
|
-
{ name: "toon-memory", version: "2.9.
|
|
30187
|
+
{ name: "toon-memory", version: "2.9.4" },
|
|
30188
30188
|
{ capabilities: { tools: { listChanged: true }, resources: { listChanged: true } } }
|
|
30189
30189
|
);
|
|
30190
30190
|
registerResources(server);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toon-memory",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.4",
|
|
4
4
|
"description": "MCP server giving AI coding agents offline, token-efficient persistent memory — 21 tools, 80% fewer tool calls, recall decisions, patterns, and bugs across sessions. No LLM, no server; works with 15+ agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/lib/utils.ts
CHANGED
|
@@ -17,7 +17,7 @@ export function importance(e: { date: string; accessed: number }): number {
|
|
|
17
17
|
const today = new Date().toISOString().split("T")[0]
|
|
18
18
|
const days =
|
|
19
19
|
(Date.now() - new Date(`${e.date || today}T00:00:00`).getTime()) / 86400000
|
|
20
|
-
const recency = Math.max(0, 30 - days) / 30
|
|
20
|
+
const recency = Math.min(1, Math.max(0, 30 - days) / 30)
|
|
21
21
|
const freq = Math.min(1, e.accessed / 5)
|
|
22
22
|
return recency * 0.6 + freq * 0.4
|
|
23
23
|
}
|