Skip to content

Commit 667791c

Browse files
fix(install): bootstrap relay config + correct agent auth command
- Add config bootstrap step: set callback_server and keyring_backend after binary install so fresh installs work without credentials.json - Fix agent bootstrap instructions: use `wk auth manage --print-url` instead of `wk auth add --headless` which requires local credentials - Update setup.md skill with correct agent auth pattern
1 parent 6d2804d commit 667791c

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

install.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ else
279279
info "Binary unchanged at ${TARGET}"
280280
fi
281281

282+
# ---------------------------------------------------------------------------
283+
# Bootstrap config (relay auth — no GCP setup needed)
284+
# ---------------------------------------------------------------------------
285+
"$TARGET" config set callback_server https://auth.automagik.dev 2>/dev/null
286+
"$TARGET" config set keyring_backend file 2>/dev/null
287+
ok "Config: relay auth via auth.automagik.dev"
288+
282289
# ---------------------------------------------------------------------------
283290
# Plugin download and install
284291
# ---------------------------------------------------------------------------
@@ -414,9 +421,9 @@ if [ ! -t 0 ]; then
414421
printf "No GCP setup needed — auth runs through https://auth.automagik.dev.\n"
415422
printf "\n"
416423
printf "Next steps:\n"
417-
printf " 1. wk auth status → check existing accounts\n"
418-
printf " 2. wk auth add EMAIL --headless --no-input → auth (prints URL for user)\n"
419-
printf " 3. wk gmail search 'newer_than:1d' --json → first query\n"
424+
printf " 1. wk auth status → check existing accounts\n"
425+
printf " 2. wk auth manage --print-url --no-input prints auth URL for user\n"
426+
printf " 3. wk gmail search 'newer_than:1d' --json → first query\n"
420427
printf "\n"
421428
printf "Available services: Gmail, Calendar, Drive, Sheets, Docs, Slides,\n"
422429
printf " Chat, Classroom, Tasks, Contacts, Keep, Forms, AppScript\n"

plugins/workit/skills/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ wk auth service-account unset
101101

102102
## 8) Recommended pattern in agents
103103
1. `wk auth status` — check if account already exists
104-
2. If not: `wk auth add user@example.com --headless --no-input` and surface the URL
104+
2. If not: `wk auth manage --print-url --no-input` — prints auth URL for user to open
105105
3. `wk auth services` — verify services are authorized
106106
4. Read operations: add `--read-only`
107107
5. Write operations: `--dry-run` first, then without after confirmation

0 commit comments

Comments
 (0)