@@ -10,20 +10,20 @@ cd /workspaces/sourcebot
1010
1111# 1. Initialize git submodules (in case initializeCommand didn't run)
1212echo " "
13- echo " [1/4 ] Initializing git submodules..."
13+ echo " [1/5 ] Initializing git submodules..."
1414git submodule update --init --recursive
1515
1616# 2. Build Zoekt and install dependencies (uses Makefile)
1717echo " "
18- echo " [2/4 ] Building Zoekt and installing dependencies..."
18+ echo " [2/5 ] Building Zoekt and installing dependencies..."
1919make
2020
2121echo " "
22- echo " [3/4 ] Running database migrations..."
22+ echo " [3/5 ] Running database migrations..."
2323yarn dev:prisma:migrate:dev
2424
2525echo " "
26- echo " [4/4 ] Creating default config.json..."
26+ echo " [4/5 ] Creating default config.json..."
2727cat > config.json << 'EOF '
2828{
2929 "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
@@ -36,6 +36,21 @@ cat > config.json << 'EOF'
3636}
3737EOF
3838
39+ echo " "
40+ echo " [5/5] Configuring Claude Code to skip onboarding..."
41+ # Create or update ~/.claude.json to skip onboarding
42+ if [ -f ~ /.claude.json ]; then
43+ # Update existing file
44+ node -e " const fs=require('fs');const cfg=JSON.parse(fs.readFileSync('$HOME /.claude.json','utf8'));cfg.hasCompletedOnboarding=true;fs.writeFileSync('$HOME /.claude.json',JSON.stringify(cfg,null,2));"
45+ else
46+ # Create minimal config with onboarding skipped
47+ cat > ~ /.claude.json << 'EOF '
48+ {
49+ "hasCompletedOnboarding": true
50+ }
51+ EOF
52+ fi
53+
3954echo " "
4055echo " =========================================="
4156echo " Post-create setup complete!"
0 commit comments