Commit 4bd85a8
authored
feat: migrate prompts to Clack (#305)
* refactor(prompts): add text/password/editor wrappers in lib/prompts.ts
* refactor(init): route input through lib/prompts.ts
* refactor(api): route input/editor through lib/prompts.ts
* refactor(deploy): route input/password through lib/prompts.ts
* refactor(users): route input/password through lib/prompts.ts
* refactor(app-picker): route input through lib/prompts.ts
* test: stub new lib/prompts.ts exports in existing mocks
* build(deps): add @clack/prompts and external-editor
* feat(prompts): swap confirm to @clack/prompts
* feat(prompts): swap text to @clack/prompts
* feat(prompts): swap password to @clack/prompts
* feat(prompts): implement editor via external-editor
* refactor(prompts): adopt clack validator contract at call sites
* test: route prompt mocks through lib/prompts.ts
* feat(listage): swap select/search internals to @clack/prompts
* test(listage): rewrite tests against @clack/prompts internals
* test(listage): drop ttyContext from stubs and integration harness
* feat(spinner): swap intro/outro/spinner to @clack/prompts
* refactor(cli): drop ExitPromptError handling; rely on UserAbortError
* refactor(prompts): route doctor and update confirms through lib/prompts.ts
* build(deps): remove @inquirer/* packages
* docs(changeset): refresh prompt UI with @clack/prompts
* feat(intro): wrap apps commands
* feat(intro): wrap users commands
* feat(intro): wrap config commands
* feat(intro): wrap orgs and billing toggles
* feat(intro): wrap auth, link, whoami, switch-env, unlink
* feat(intro): wrap env pull, api, skill install
* refactor(intro): retitle init, doctor, update, and open to operation style
* feat(intro): route human output through prompt rail
* feat(intro): route apps list through clack ui
* fix(review): address prompt lifecycle feedback
- pair users list intro/outro around human output only
- avoid app create UI wrapping in JSON and agent output
- ensure config push closes intro/outro across early exits
* fix(prompts): preserve clack prompt edge cases
* fix(prompts): correct interactive command outro statuses
* fix(review): address PR #305 prompt gutter feedback
- add shared gutter wrapper for guaranteed intro/outro cleanup
- route unguarded prompt rail commands through the wrapper
- merge duplicate apps list error imports1 parent f95eca2 commit 4bd85a8
66 files changed
Lines changed: 2162 additions & 1374 deletions
File tree
- .changeset
- packages/cli-core
- src
- commands
- api
- apps
- auth
- billing
- config
- deploy
- doctor
- env
- init
- link
- open
- orgs
- switch-env
- unlink
- update
- users
- lib
- test
- integration
- lib
- lib
- test/e2e/fixtures/tanstack-start
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| 216 | + | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
| |||
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
488 | 511 | | |
489 | 512 | | |
490 | 513 | | |
| |||
0 commit comments