### Run Preflight Check Source: https://localstudio.ai/docs Verifies the toolchain, ports, directories, and network configuration before starting the services. ```bash npm run doctor ``` -------------------------------- ### Start Controller and Frontend Source: https://localstudio.ai/docs Commands to initialize and run the backend controller and the frontend development server. ```bash cd controller && bun install && bun src/main.ts ``` ```bash cd frontend && npm ci && npm run dev ``` -------------------------------- ### Configure Remote Deployment Source: https://localstudio.ai/docs Environment variables for pointing the frontend to a remote controller instance. ```bash REMOTE_HOST=192.168.x.x REMOTE_USER=username REMOTE_PATH=/home/user/project # Optional: REMOTE_SSH_KEY (defaults to ~/.ssh/id_ed25519) ``` -------------------------------- ### Deploy to Remote Host Source: https://localstudio.ai/docs Scripts for synchronizing, building, and managing remote controller and frontend processes. ```bash ./scripts/deploy-remote.sh controller # sync + build + restart controller ./scripts/deploy-remote.sh frontend # sync + build + restart frontend ./scripts/deploy-remote.sh status # inspect remote processes ``` -------------------------------- ### Run Validation Tests Source: https://localstudio.ai/docs Executes quality checks, type checking, and integration tests to ensure the stack is healthy. ```bash npm run check # contracts + structure + frontend quality + controller typecheck npm run test:integration # controller integration + frontend regression ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.