Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions scripts/check-worker-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,37 @@ echo "Claude: $(which claude 2>/dev/null || echo missing)"
echo ""

echo "--- ~/.claude/ structure ---"
ls -la /root/.claude/ 2>/dev/null || echo "/root/.claude/ not found"
ls -la $HOME/.claude/ 2>/dev/null || echo "$HOME/.claude/ not found"
echo ""

echo "--- ~/.claude/hooks/ ---"
find /root/.claude/hooks/ -type f 2>/dev/null | head -30 || echo "No hooks dir"
find $HOME/.claude/hooks/ -type f 2>/dev/null | head -30 || echo "No hooks dir"
echo ""

echo "--- ~/.claude/shtd-flow/ ---"
ls -la /root/.claude/shtd-flow/ 2>/dev/null || echo "shtd-flow dir not found"
ls -la $HOME/.claude/shtd-flow/ 2>/dev/null || echo "shtd-flow dir not found"
echo ""

echo "--- ~/.claude/shtd-flow/lib/ ---"
ls -la /root/.claude/shtd-flow/lib/ 2>/dev/null || echo "lib dir not found"
ls -la $HOME/.claude/shtd-flow/lib/ 2>/dev/null || echo "lib dir not found"
echo ""

echo "--- ~/.claude/shtd-flow/hooks/ ---"
find /root/.claude/shtd-flow/hooks/ -type f 2>/dev/null | head -30 || echo "No shtd-flow hooks"
find $HOME/.claude/shtd-flow/hooks/ -type f 2>/dev/null | head -30 || echo "No shtd-flow hooks"
echo ""

echo "--- Hook runner (run-pretooluse.js, run-posttooluse.js, run-stop.js) ---"
for f in run-pretooluse.js run-posttooluse.js run-stop.js; do
found=$(find /root/.claude/ -name "$f" 2>/dev/null | head -3)
found=$(find $HOME/.claude/ -name "$f" 2>/dev/null | head -3)
echo "$f: ${found:-NOT FOUND}"
done
echo ""

echo "--- settings.json hook config ---"
cat /root/.claude/settings.json 2>/dev/null | python3 -m json.tool 2>/dev/null || cat /root/.claude/settings.json 2>/dev/null || echo "No settings.json"
cat $HOME/.claude/settings.json 2>/dev/null | python3 -m json.tool 2>/dev/null || cat $HOME/.claude/settings.json 2>/dev/null || echo "No settings.json"
echo ""

echo "--- install.sh permissions ---"
ls -la /root/.claude/shtd-flow/install.sh 2>/dev/null || echo "install.sh not found"
ls -la $HOME/.claude/shtd-flow/install.sh 2>/dev/null || echo "install.sh not found"
' 2>&1
EOF
29 changes: 29 additions & 0 deletions scripts/deploy-to-all-workers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# Deploy SHTD Flow to all CCC workers (1-4).
# Usage: bash scripts/deploy-to-all-workers.sh

set -uo pipefail

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

for w in 1 2 3 4; do
echo ""
echo "========================================="
echo " Deploying to Worker $w"
echo "========================================="
bash "$SCRIPT_DIR/deploy-to-worker.sh" "$w" 2>&1 || echo "[WARN] Worker $w failed"
echo ""
done

echo "========================================="
echo " Deployment complete — verifying all"
echo "========================================="

for w in 1 2 3 4; do
echo ""
echo "--- Worker $w ---"
bash "$SCRIPT_DIR/check-worker-install.sh" "$w" 2>&1 | grep -E "\[OK\]|\[FAIL\]|not found|error" | head -5
done

echo ""
echo "Done."
Loading