@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
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "strvmarv"
|
|
7
7
|
},
|
package/.mcp.json
CHANGED
package/bin/total-recall.sh
CHANGED
|
@@ -57,14 +57,28 @@ if [ -z "$NODE" ]; then
|
|
|
57
57
|
exit 1
|
|
58
58
|
fi
|
|
59
59
|
|
|
60
|
-
# Find the package entry point
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
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
|