@strvmarv/total-recall 0.2.0 → 0.2.1

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.1",
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
  }
@@ -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