toon-memory 2.5.1 → 2.5.2
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/install.sh +8 -1
- package/mcp/server.js +1 -1
- package/package.json +2 -2
- package/skills/toon-memory.md +6 -2
- package/src/mcp/server.ts +3 -1
package/install.sh
CHANGED
|
@@ -4,9 +4,16 @@ set -e
|
|
|
4
4
|
# toon-memory installer for macOS/Linux
|
|
5
5
|
# Usage: curl -fsSL https://raw.githubusercontent.com/luiggival/toon-memory/main/install.sh | sh
|
|
6
6
|
|
|
7
|
-
TOON_VERSION="1.0.8"
|
|
8
7
|
NPM_REGISTRY="https://registry.npmjs.org"
|
|
9
8
|
|
|
9
|
+
# Fetch latest version from npm registry
|
|
10
|
+
TOON_VERSION=$(curl -fsSL "${NPM_REGISTRY}/toon-memory/latest" 2>/dev/null | node -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{console.log(JSON.parse(d).version)}catch{console.error('Failed to fetch version');process.exit(1)}})")
|
|
11
|
+
if [ -z "${TOON_VERSION}" ]; then
|
|
12
|
+
echo "Error: Could not determine latest toon-memory version."
|
|
13
|
+
echo "You can install manually: npm install -g toon-memory"
|
|
14
|
+
exit 1
|
|
15
|
+
fi
|
|
16
|
+
|
|
10
17
|
echo "🧠 toon-memory installer"
|
|
11
18
|
echo ""
|
|
12
19
|
|
package/mcp/server.js
CHANGED
|
@@ -28573,7 +28573,7 @@ function consolidateEntries() {
|
|
|
28573
28573
|
return { removed: totalRemoved, kept: order.length, duplicates };
|
|
28574
28574
|
}
|
|
28575
28575
|
var server = new McpServer(
|
|
28576
|
-
{ name: "toon-memory", version: "2.
|
|
28576
|
+
{ name: "toon-memory", version: "2.5.2" },
|
|
28577
28577
|
{ capabilities: { tools: { listChanged: true }, resources: { listChanged: true } } }
|
|
28578
28578
|
);
|
|
28579
28579
|
server.registerResource(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toon-memory",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "MCP server giving AI coding agents offline, token-efficient persistent memory — recall decisions, patterns, and bugs across sessions with 68.5% fewer tokens than re-reading context. No LLM, no server; works with 15+ agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "npm run build:bin && npm run build:mcp && npm run build:cli",
|
|
21
21
|
"build:bin": "esbuild src/bin/toon-memory.ts --platform=node --format=esm --outfile=bin/toon-memory.js",
|
|
22
|
-
"build:mcp": "esbuild
|
|
22
|
+
"build:mcp": "node -e \"const{version}=require('./package.json');const esbuild=require('esbuild');esbuild.build({entryPoints:['src/mcp/server.ts'],bundle:true,platform:'node',format:'esm',outfile:'mcp/server.js',define:{TOON_VERSION:JSON.stringify(version)}})\"",
|
|
23
23
|
"build:cli": "esbuild src/cli/setup.ts --bundle --platform=node --format=esm --packages=external --outfile=dist/cli/setup.js && esbuild src/cli/toon-memory.ts --bundle --platform=node --format=esm --outfile=dist/cli/toon-memory.js && esbuild src/cli/capture.ts --bundle --platform=node --format=esm --outfile=dist/cli/capture.js && esbuild src/cli/session-start.ts --bundle --platform=node --format=esm --outfile=dist/cli/session-start.js",
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest",
|
package/skills/toon-memory.md
CHANGED
|
@@ -35,9 +35,13 @@ A persistent memory system for AI coding agents. It remembers decisions, pattern
|
|
|
35
35
|
| `memory_summary` | Save/retrieve file summaries |
|
|
36
36
|
| `memory_archive` | Archive old entries and expired TTL entries |
|
|
37
37
|
| `memory_diff` | Show changes since a date (24h, 7d, or exact date) |
|
|
38
|
+
| `memory_smart_recall` | Unified retrieval: BM25 + graph + decay + quality in one call (use at session start) |
|
|
38
39
|
| `memory_suggest` | Find related entries for a given context |
|
|
39
|
-
| `
|
|
40
|
-
| `
|
|
40
|
+
| `memory_captured` | Show activity log captured automatically by hooks |
|
|
41
|
+
| `memory_consolidate` | Deduplicate identical entries (keeps first, deterministic, no LLM) |
|
|
42
|
+
| `memory_sessions` | Show active agent sessions and detect file conflicts |
|
|
43
|
+
| `memory_encrypt` | Enable AES-256-GCM encryption |
|
|
44
|
+
| `memory_decrypt` | Disable encryption and decode memory |
|
|
41
45
|
|
|
42
46
|
## MCP Resources
|
|
43
47
|
|
package/src/mcp/server.ts
CHANGED
|
@@ -10,6 +10,8 @@ import { coordinationView, resolveSessionId, currentBranch, SESSION_TTL_MS } fro
|
|
|
10
10
|
import { graphRecallDetailed, renderCompact, parseEntries, buildGraph, bm25Scores, centrality } from "../lib/graph"
|
|
11
11
|
import { qualityScore, mergeEntries, generateSmartRecall, generateSystemPrimer } from "../lib/quality"
|
|
12
12
|
|
|
13
|
+
declare const TOON_VERSION: string
|
|
14
|
+
|
|
13
15
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
14
16
|
|
|
15
17
|
/** Base directory for memory storage */
|
|
@@ -630,7 +632,7 @@ function consolidateEntries(): { removed: number; kept: number; duplicates: stri
|
|
|
630
632
|
}
|
|
631
633
|
|
|
632
634
|
const server = new McpServer(
|
|
633
|
-
{ name: "toon-memory", version:
|
|
635
|
+
{ name: "toon-memory", version: TOON_VERSION },
|
|
634
636
|
{ capabilities: { tools: { listChanged: true }, resources: { listChanged: true } } }
|
|
635
637
|
)
|
|
636
638
|
|