@strvmarv/total-recall 0.2.0 → 0.2.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "total-recall",
3
3
  "description": "Multi-tiered memory and knowledge base with semantic search, auto-compaction, and built-in evaluation. Works across Claude Code, Copilot CLI, OpenCode, Cline, and Cursor.",
4
- "version": "0.1.5",
4
+ "version": "0.2.2",
5
5
  "author": {
6
6
  "name": "strvmarv"
7
7
  },
package/.mcp.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "total-recall": {
4
4
  "command": "bash",
5
- "args": ["${CLAUDE_PLUGIN_ROOT}/bin/total-recall.sh"]
5
+ "args": ["bin/total-recall.sh"]
6
6
  }
7
7
  }
8
8
  }
package/README.md CHANGED
@@ -41,14 +41,14 @@ That's it. Your AI assistant will read the instructions and install total-recall
41
41
  ### Claude Code
42
42
 
43
43
  ```
44
- /plugin install total-recall@strvmarv-marketplace
44
+ /plugin install total-recall@strvmarv-total-recall-marketplace
45
45
  ```
46
46
 
47
47
  Or if the marketplace isn't registered:
48
48
 
49
49
  ```
50
50
  /plugin marketplace add strvmarv/total-recall-marketplace
51
- /plugin install total-recall@strvmarv-marketplace
51
+ /plugin install total-recall@strvmarv-total-recall-marketplace
52
52
  ```
53
53
 
54
54
  ### npm (Any MCP-Compatible Tool)
@@ -63,8 +63,7 @@ Then add to your tool's MCP config:
63
63
  {
64
64
  "mcpServers": {
65
65
  "total-recall": {
66
- "command": "npx",
67
- "args": ["-y", "@strvmarv/total-recall"]
66
+ "command": "total-recall"
68
67
  }
69
68
  }
70
69
  }
@@ -72,6 +71,8 @@ Then add to your tool's MCP config:
72
71
 
73
72
  This works with **Copilot CLI**, **OpenCode**, **Cline**, **Cursor**, and any other MCP-compatible tool.
74
73
 
74
+ > **Note:** `npx -y @strvmarv/total-recall` does not work due to an [npm bug](https://github.com/npm/cli/issues/3753) with scoped package binaries. Use the global install (`total-recall` command) instead.
75
+
75
76
  ### From Source
76
77
 
77
78
  ```bash
@@ -85,7 +86,7 @@ npm install && npm run build
85
86
  total-recall auto-initializes on first use:
86
87
 
87
88
  1. Creates `~/.total-recall/` with SQLite database
88
- 2. Downloads embedding model (~80MB, one-time)
89
+ 2. Loads bundled embedding model (included in package, no download needed)
89
90
  3. Scans for existing memories (Claude Code, Copilot CLI)
90
91
  4. Auto-ingests project docs (README, docs/, etc.)
91
92
  5. Reports: `total-recall: initialized · 4 memories imported · 12 docs ingested · system verified`
@@ -113,7 +114,7 @@ Tiers:
113
114
  3. `compact` — decay scores, demote warm→cold, evict hot→warm, summarize clusters
114
115
  4. `ingest` — chunk files, embed chunks, store in cold tier with metadata
115
116
 
116
- All state lives in `~/.total-recall/db.sqlite`. The embedding model is cached at `~/.total-recall/models/`. No network calls after initial model download.
117
+ All state lives in `~/.total-recall/db.sqlite`. The embedding model is bundled with the package. No network calls required.
117
118
 
118
119
  ---
119
120
 
@@ -57,14 +57,28 @@ if [ -z "$NODE" ]; then
57
57
  exit 1
58
58
  fi
59
59
 
60
- # Find the package entry point relative to this script
60
+ # Find the package entry point
61
61
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
62
62
  PACKAGE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
63
63
  ENTRY="$PACKAGE_DIR/dist/index.js"
64
64
 
65
- if [ ! -f "$ENTRY" ]; then
66
- echo "total-recall: error: dist/index.js not found. Run 'npm run build' first." >&2
67
- exit 1
65
+ # Strategy 1: Local dist/index.js (source install or npm install)
66
+ if [ -f "$ENTRY" ]; then
67
+ exec "$NODE" "$ENTRY" "$@"
68
+ fi
69
+
70
+ # Strategy 2: Global install (npm install -g @strvmarv/total-recall)
71
+ if command -v total-recall &>/dev/null; then
72
+ exec total-recall "$@"
73
+ fi
74
+
75
+ # Strategy 3: Find entry point in global node_modules
76
+ NODE_DIR="$(dirname "$NODE")"
77
+ GLOBAL_ENTRY=$("$NODE_DIR/npm" root -g 2>/dev/null)/@strvmarv/total-recall/dist/index.js
78
+ if [ -f "$GLOBAL_ENTRY" ]; then
79
+ exec "$NODE" "$GLOBAL_ENTRY" "$@"
68
80
  fi
69
81
 
70
- exec "$NODE" "$ENTRY" "$@"
82
+ echo "total-recall: error: could not find dist/index.js or total-recall binary." >&2
83
+ echo " Run 'npm run build' (git clone) or 'npm install -g @strvmarv/total-recall'." >&2
84
+ exit 1
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd5d72fe4589f189f8ebc006442dbb529bb7ce38f8082112682524616046452
3
+ size 90405214