Skip to content

feat: redesign wizard auth flow with runtime selection#90

Merged
alexey-pelykh merged 1 commit intomainfrom
feat/redesign-wizard-auth-flow
Feb 28, 2026
Merged

feat: redesign wizard auth flow with runtime selection#90
alexey-pelykh merged 1 commit intomainfrom
feat/redesign-wizard-auth-flow

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Closes #89.

  • Replace 50+ auth provider choices with 4-option runtime selection (claude, gemini, codex, opencode) plus runtime-specific credential prompts
  • Add AgentRuntime type and agents.defaults.runtime config field (Zod schema + TypeScript type)
  • Rewrite interactive wizard auth section with promptRuntimeCredential() — each runtime gets tailored credential options (API key, auth token, skip)
  • Rewrite non-interactive flow: inferRuntimeFromFlags() infers runtime from provided key flags, applyNonInteractiveRuntimeAuth() stores credentials
  • Add --runtime <runtime> and --auth-token <token> CLI flags; remove --auth-choice, --token-*, --custom-* flags
  • Delete orphaned auth-choice-inference.ts and auth-choice.ts from non-interactive/local
  • Keep provider API key fields on OnboardOptions for backward compat with auth-choice system (out of scope per issue)
  • Update all affected tests (wizard, CLI registration, non-interactive provider auth)

Scope boundary respected: auth-choice*.ts (31 files), auth-profiles/, model-auth.ts NOT touched per issue spec.

Test plan

  • pnpm build passes
  • pnpm test — 93 test files, 833 tests passed, 0 failures
  • pnpm check (format + typecheck + lint) passes
  • No new type errors introduced (pre-existing errors unchanged)

🤖 Generated with Claude Code

…rompt (#89)

Replace the 50+ auth provider choice system with a simple 4-option runtime
selection (claude, gemini, codex, opencode) plus runtime-specific credential
prompts in both interactive wizard and non-interactive CLI flows.

- Add AgentRuntime type and runtime field to config schema
- Rewrite interactive wizard auth section with promptRuntimeCredential()
- Rewrite non-interactive flow with inferRuntimeFromFlags() + --runtime flag
- Simplify CLI registration (remove --auth-choice, --token-*, --custom-* flags)
- Add --runtime and --auth-token CLI flags
- Delete orphaned non-interactive auth-choice files
- Update all affected tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) February 28, 2026 18:25
@alexey-pelykh alexey-pelykh merged commit a729996 into main Feb 28, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the feat/redesign-wizard-auth-flow branch February 28, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign wizard auth flow: runtime selection + credential prompt

1 participant