diff --git a/scripts/opax.sh b/scripts/opax.sh index a07e455..7a2a487 100644 --- a/scripts/opax.sh +++ b/scripts/opax.sh @@ -2,9 +2,6 @@ # ============================================================================= # OPAX.SH — Authoritative OSVauco OPAX Environment Bootstrapper # -# Idempotent script to set up the OPAX operator environment. -# Can be sourced multiple times without side-effects. -# # Usage: source ~/OSVauco/scripts/opax.sh # Alias: opax # ============================================================================= @@ -15,7 +12,7 @@ export GOOGLE_CLOUD_PROJECT="propane-will-491900-m5" export GOOGLE_CLOUD_LOCATION="us-central1" export GEMINI_MODEL="gemini-2.5-pro" -# --- UI Colors and Icons --- +# --- UI Colors --- GREEN="$(tput setaf 2 2>/dev/null || printf '\033[0;32m')" RED="$(tput setaf 1 2>/dev/null || printf '\033[0;31m')" YELLOW="$(tput setaf 3 2>/dev/null || printf '\033[1;33m')" @@ -85,15 +82,15 @@ if [[ -z "${OPAX_LOADED-}" ]]; then "Cannot reach git remote origin" \ true - run_check "Secret Manager readable" \ - "gcloud secrets versions access latest --secret=github-token --project=$GOOGLE_CLOUD_PROJECT" \ - "Check IAM permissions for Secret Manager" + run_check "Secret Manager tilgjengelig" \ + "gcloud secrets versions access latest --secret=GEMINI_API_KEY --project=$GOOGLE_CLOUD_PROJECT" \ + "Sjekk IAM-tillatelser for Secret Manager" run_check "Git working tree clean" \ "git -C '$OSVAUCO_DIR' diff --quiet && git -C '$OSVAUCO_DIR' diff --cached --quiet" \ "Uncommitted changes present" - # Cloud Run health — bruk osvauco-agent (ikke opax-mcp-core) + # Cloud Run health SERVICE_URL=$(gcloud run services describe osvauco-agent \ --region "$GOOGLE_CLOUD_LOCATION" \ --project "$GOOGLE_CLOUD_PROJECT" \