Add a `--yolo` CLI flag to both `opencode web` and `opencode serve` commands
that automatically approves all permission requests without prompting the user.
This is useful for:
- Headless/automated deployments
- CI/CD pipelines
- Development environments where interactive prompts are not desired
- Remote access scenarios where the web UI handles permission decisions
Implementation:
- Added `yolo` boolean option to shared network options in `network.ts`
- Created `applyYoloMode()` helper that sets `OPENCODE_PERMISSION` env var
with all permissions set to "allow" (bash, edit, read, glob, grep, list,
task, webfetch, websearch, lsp, skill, etc.)
- Both `web.ts` and `serve.ts` call `applyYoloMode()` before server startup
Usage:
opencode web --yolo
opencode serve --yolo
Built exclusively with openrouter/pony-alpha and OpenCode.