-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
36 lines (29 loc) · 1.19 KB
/
Copy pathsetup.sh
File metadata and controls
36 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Mars Memory Engine setup for Markdown-first OpenClaw workspaces
set -euo pipefail
WORKSPACE="${1:-$(pwd)}"
MODE="${2:-plugin}"
DB_PATH="${3:-$WORKSPACE/.mars-memory-engine/lancedb}"
echo "🚀 Mars Memory Engine - OpenClaw Setup"
echo "workspace: $WORKSPACE"
echo "mode: $MODE"
echo "db_path: $DB_PATH"
python3 -c "import lancedb, pyarrow, numpy" 2>/dev/null || {
echo "Installing core dependencies..."
pip install -r requirements.txt
}
mkdir -p "$WORKSPACE/memory/topics"
mkdir -p "$WORKSPACE/.mars-memory-engine"
python3 migration/migrate_memory.py --workspace "$WORKSPACE" --db-path "$DB_PATH" --reset
echo ""
echo "✅ Setup complete"
echo "Useful commands:"
echo " Rebuild index: python3 migration/migrate_memory.py --workspace \"$WORKSPACE\" --db-path \"$DB_PATH\" --reset"
echo " Daily review: python3 cron_memory_review.py --workspace \"$WORKSPACE\""
echo " Distill skills: python3 skills/knowledge_distiller.py --workspace \"$WORKSPACE\""
echo ""
if [ "$MODE" = "index-only" ]; then
echo "Index-only mode selected. Markdown remains the sole source of truth."
else
echo "Plugin mode selected. Use openclaw.adapter.OpenClawMemoryAdapter inside the host integration layer."
fi