Commit fbd32f6
authored
✨ Split init and auth wiring (#258)
Why: make setup and auth commands dependable before the API, server, and client integration slices land on top. These commands are first-run and account-boundary surfaces, so they need clear behavior, isolated state, and tests that exercise user-visible outcomes.\n\nWhat changed:\n- Tightened init config generation and plugin loading behavior.\n- Hardened login/logout/whoami auth flows with injectable boundaries and clearer failure handling.\n- Added focused command tests for init, login, logout, whoami, config, and context behavior.\n- Kept CLI test runs isolated from real local auth/config state.\n\nVerification:\n- npm run lint\n- npm run build\n- node --test tests/commands/init.test.js tests/commands/login.test.js tests/commands/logout.test.js tests/commands/whoami.test.js\n- GitHub CI: CI Status, Node 22, Node 24, SDK E2E, SDK Unit Status, and GitHub visual workflows all passed.\n\nNote: external Vizzly CLI Reporter requested review for a recurring mobile fullscreen-viewer visual diff outside this PR's code scope.1 parent 0c1d1fd commit fbd32f6
13 files changed
Lines changed: 1550 additions & 355 deletions
File tree
- src/commands
- tests
- commands
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments