- Add PLAN2.md with 116 tasks across M8–M20 with testing gates - Populate loop/plan.md with all new tasks (30-attempt retry policy) - Update loop/prompt.md to enforce glass design system and PLAN2.md - Fix PassphraseDialog to use glass-card/gradient-button design system - Fix crypto.randomUUID fallback for non-secure contexts - Fix dev.sh to skip proxy startup if port 3141 already in use - Fix PWA manifest for Android A2HS (purpose:any, display_override, id) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
812 B
Bash
Executable File
34 lines
812 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start Claude proxy and Vite dev server together.
|
|
# Both are killed when either exits or when this script receives SIGINT/SIGTERM.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
cd "$APP_DIR"
|
|
|
|
cleanup() {
|
|
kill 0 2>/dev/null || true
|
|
wait 2>/dev/null || true
|
|
}
|
|
trap cleanup EXIT INT TERM
|
|
|
|
# Use local node_modules binaries
|
|
BIN="$APP_DIR/node_modules/.bin"
|
|
|
|
# Start Claude proxy in background (skip gracefully if already running on :3141)
|
|
if lsof -ti:3141 > /dev/null 2>&1; then
|
|
echo " Claude proxy already running on :3141 — skipping"
|
|
else
|
|
"$BIN/tsx" server/claude-proxy.ts &
|
|
sleep 0.3
|
|
fi
|
|
|
|
# Start Vite dev server in background
|
|
"$BIN/vite" --host &
|
|
|
|
# Wait for all background jobs (compatible with bash 3.2 on macOS)
|
|
wait
|