# scripts/ — OSVauco operasjons-scripts Alle scripts kjøres fra `~/OSVauco`. Etter at du har sourced `boot.sh` har du aliaser klare. ## Daglig oppstart (én linje) Legg dette i `~/.bashrc`: ```bash # OSVauco auto-boot ved interaktivt shell-login [[ $- == *i* && -z "$OSVAUCO_BOOTED" ]] && source ~/OSVauco/scripts/boot.sh ``` Ved login får du: 1. Auto-renewal av `gcloud auth` + ADC 2. `git pull` på current branch 3. Print av NESTE OPPGAVE fra `docs/HANDOFF.md` 4. Valg: `opax` (Gemini 2.5 Pro) / `opax2` (Claude Opus 4.7) / hopp over ## Hotkeys (etter boot.sh er sourced) | Alias | Hva | Script | |---|---|---| | `opax` | Start Gemini 2.5 Pro TUI | `opax.sh` | | `opax2` | Start Claude Opus 4.7 TUI | `opax2.sh` | | `pf` | Preflight (auth/project/env) | `preflight.sh` | | `hc` | Health-check (Cloud Run + LB) | `health-check.sh` | | `st` | Smoke-test | `smoke-test.sh` | | `at` | Acceptance-test | `acceptance-test.sh` | | `ca` | Cost-audit | `cost-audit.sh` | | `cl` / `costs` | Cost-lens | `cost-lens.sh` | | `cg` | Cost-guard | `cost-guard.sh` | | `ms` | Mirror-sync til GDrive | `sync-gdrive-mirror.sh` | | `logg` | Manuell logg-slutt | `opax-logg-slutt.sh` | | `sol` | Avslutt + commit + push | (funksjon i boot.sh) | | `mp` | Vis MASTERPLAN | `docs/MASTERPLAN.md` | | `rl` | Vis ROADMAP | `docs/ROADMAP.md` | | `ho` | Vis HANDOFF | `docs/HANDOFF.md` | | `rb` | Vis AGENT_RULEBOOK | `docs/AGENT_RULEBOOK.md` | | `sl` | Vis SESSION_LOG | `docs/OSVAUCO_OPAX_SESSION_LOG.md` | | `osv` | `cd ~/OSVauco` | — | | `reboot-osv` | Re-source boot.sh | — | ## Modell-valg | TUI | Modell | Region | Når | |---|---|---|---| | `opax` | `gemini-2.5-pro` | `europe-west1` | Default (alltid OK) | | `opax2` | `claude-opus-4-7@20260301` | `europe-west1` | Når Claude-kvote er innvilget | Verdier er låst i `docs/AGENT_RULEBOOK.md`. Endring krever `RULEBOOK APPROVED` HITL-gate. ## Locked infrastruktur | Felt | Verdi | |---|---| | GCP-prosjekt | `propane-will-491900-m5` | | Region | `europe-west1` | | Cloud Run-tjeneste | `osvauco-agent` | | LB IP | `34.98.77.173` | | Public URL | `https://opax.vauco.no` (IAP) | | Direct URL | `https://osvauco-agent-357036551735.europe-west1.run.app` | ## Engangs-fixers `scripts/fix/` inneholder engangs-fixers for kjente problemer: - `fix-cloudrun.sh` — restart + redeploy ved Cloud Run-feil - `fix-dns.sh` — re-bind A-record til LB IP - `fix-iap.sh` — re-aktiver IAP-policy på backend - `fix-tui.sh` — reinstall gemini CLI + node-deps Kjør kun når preflight peker på det konkrete problemet. ## Endrings-prosess Alle endringer i `scripts/` skal gjennom PR med `MERGE APPROVED` HITL-gate.