OSVauco/scripts
2026-06-10 14:23:52 +00:00
..
fix feat(ops): add quick-fix scripts for common GCP/TUI issues 2026-05-30 21:45:58 +02:00
acceptance-test.sh fix: restore executable bit on new scripts 2026-05-26 13:40:07 +00:00
boot.sh chore(docs): konsolider MASTERPLAN/ROADMAP/HANDOFF til én sannhet (#5) 2026-05-31 17:57:13 +02:00
cleanup-old-runs.sh chore: restore executable bit on all scripts 2026-05-25 12:55:59 +00:00
cost-alerts.sh chore: restore executable bit on all scripts 2026-05-25 12:55:59 +00:00
cost-audit.sh fix: bruk fallback defaults for PROJECT_ID og REGION i cost-audit.sh 2026-05-28 02:16:33 +02:00
cost-guard.sh docs: oppdater README, IAM-docs, legg til rag/memory/eval mapper og cost-guard 2026-05-23 20:54:05 +00:00
cost-lens.sh chore: restore executable bit on all scripts 2026-05-25 12:55:59 +00:00
create_llm_token_usage_table.sh feat(CG3e): add llm_token_usage BigQuery logger + /billing/tokens/summary endpoint 2026-06-09 21:02:52 +02:00
health-check.sh fix(scripts): Repair broken aliases st and hc 2026-05-27 23:56:45 +00:00
opax-logg-slutt.sh fix(scripts): restore execute permissions 2026-05-25 11:11:04 +00:00
opax.sh chore(docs): fix region references europe-west1 → us-central1 (#12) 2026-06-01 04:52:08 +02:00
opax2.sh fix: docs region cleanup + opax2.sh endpoint 2026-06-01 05:27:13 +02:00
osv-auto-commit.sh OPAX boot + GitHub auth helper 2026-05-21 01:09:44 +00:00
osv-github-auth.sh chore: restore executable bit on all scripts 2026-05-25 12:55:59 +00:00
preflight.sh fix(preflight): never force interactive ADC login on VM; use metadata service-account 2026-06-04 19:56:09 +00:00
README.md chore(docs): konsolider MASTERPLAN/ROADMAP/HANDOFF til én sannhet (#5) 2026-05-31 17:57:13 +02:00
smoke-test.sh fix: smoke-test auth — metadata-token med riktig audience + zjbqp3prqq URL 2026-06-10 08:58:28 +02:00
stop-osvauco-dev-vm.sh chore(scripts): add safe stop script for osvauco-dev-vm and docs note (#10) 2026-06-01 04:27:50 +02:00
sync-gdrive-mirror.sh chore: update repo references after transfer to vauco-saas 2026-05-27 19:13:54 +00:00
watch-build.sh chore(ci): remove impersonation from smoke-test, add docker cache, add watch-build.sh 2026-06-10 14:23:52 +00:00

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:

# 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.