aboutsummaryrefslogtreecommitdiff
path: root/scripts/setup.sh
blob: eab82bf1cc2b5e08f6a1f49bba39373f9c21e867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."

if git submodule update --init --recursive 2>/dev/null && [ -d private/contexts ]; then
    echo "private content available: using real persona and contexts"
else
    echo "private content not accessible: generating placeholders"
    mkdir -p private/contexts private/data/{heartbeat,memory} private/data/memory/{daily,monthly}
    # create dummy persona file
    touch private/CLAUDE.md
    # contexts/ stays empty; directory just needs to exist for the mount
fi

echo "setup complete. run 'docker compose -f docker/compose.yml build' next."