Add scripts/ (install/app/migrate + shared lib) wired into ./run:
./run install [--launch] deps -> env -> DB+migrations -> build
./run app [--build] start API + vite-preview front door, open Chrome --app
./run db:migrate ledger-tracked SQL migrations (each file once)
migrate.sh creates the DB and tracks applied files in _prospector_migrations.
app.sh health-checks the API, opens http://localhost:<web>/#/markets as a Chrome
app window, and cleans up only its own PIDs (never a blanket node kill). Make
vite preview a token-injecting front door (shared proxy in web/vite.config.ts)
so the installed app serves a real build, not a dev server. scripts/README.md
documents it (filesystem-as-docs).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>