-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-agent-test.ps1
More file actions
19 lines (15 loc) · 833 Bytes
/
Copy pathrun-agent-test.ps1
File metadata and controls
19 lines (15 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Runs the full nanoclaw agent (olk + Claude) inside the cloud via a Cloud Run
# Job, to verify it reads Outlook (olk) and reasons (Claude) in the cloud.
# Set GCP_PROJECT before running.
$ErrorActionPreference = "Stop"
$project = $env:GCP_PROJECT
if (-not $project) { throw "Set GCP_PROJECT env var first." }
$envs = @{}
Get-Content .env | ForEach-Object { if ($_ -match '^([^=]+)=(.*)$') { $envs[$matches[1]] = $matches[2] } }
gcloud run jobs update nanoclaw-olk-auth `
--region us-central1 --project $project `
--command npx --args "tsx,scripts/verify-olk.ts" `
--update-env-vars "ANTHROPIC_MODEL=claude-haiku-4-5-20251001,OLK_BIN=olk" `
--update-secrets "ANTHROPIC_API_KEY=nanoclaw-anthropic-key:latest" `
--task-timeout 150
gcloud run jobs execute nanoclaw-olk-auth --region us-central1 --project $project --async