Commit Graph

8 Commits

Author SHA1 Message Date
mcfn 91cb301e99 [packages/cli-v2]fix: restore setup rerun defaults 2026-03-29 03:17:28 +08:00
mcfn 81398f2328 [packages/cli-v2]fix: clarify setup cloud migration 2026-03-29 03:12:51 +08:00
mcfn 01b59afe93 [packages/cli-v2]feat: add setup pr2 interactive flow 2026-03-29 03:07:32 +08:00
mcfn.feng 30b7bd6d76 [packages/cli-v2]fix: remove isolated alias, only accept local/extension/cloud
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 18:17:12 +08:00
mcfn.feng 2f421b1dfa [packages/cli-v2]refactor: port setup to interactive wizard from actionbook-rs
Convert setup from a single-file sync implementation to a multi-module
interactive wizard matching the actionbook-rs design:

- setup/mod.rs: 4-step orchestrator (env detect → API key → browser → save)
  with welcome banner, spinners, re-run protection, and completion summary
- setup/theme.rs: dialoguer theme with ◉/○ radio-button style
- setup/detect.rs: environment detection (OS, browsers, Node, npx, existing config)
- setup/api_key.rs: interactive API key input (flag > env > config > prompt)
- setup/browser_cfg.rs: interactive browser mode selection (local/extension/cloud)

Config field renames with serde aliases for backward compatibility:
- api.base_url added
- browser.default_profile → browser.profile_name
- browser.executable → browser.executable_path

TODOs left for future PRs:
- API key server-side validation (requires ApiClient)
- Extension installer integration
- Health check step
- Skills installation step

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 17:28:31 +08:00
mcfn 54396dc185 [packages/cli-v2]fix: align setup path detection 2026-03-28 16:06:32 +08:00
mcfn 0b192b5509 [packages/cli-v2]test: extend setup coverage 2026-03-28 16:03:36 +08:00
mcfn 19608ff623 [packages/cli-v2]feat: add setup pr1 skeleton 2026-03-28 15:58:44 +08:00