Commit 4ddd256
authored
feat(ui): add instance-scoped provider manager from model selector (NeuralNomadsAI#476)
## Summary
- move provider authentication management out of global settings and
into the model selector so it always runs against a live OpenCode
instance
- add an instance-scoped provider manager modal with API-key and OAuth
flows, cancellable OAuth waiting, and provider discovery/configuration
details
- handle configured provider sources differently so config- and
env-backed providers are explained in the UI while auth-backed providers
can be disconnected safely
## Validation
- npm run typecheck --workspace @codenomad/ui
- npm run build --workspace @codenomad/ui1 parent 02c2622 commit 4ddd256
14 files changed
Lines changed: 1548 additions & 6 deletions
File tree
- packages/ui/src
- components
- provider-auth
- lib
- i18n/messages
- en
- es
- fr
- he
- ja
- ru
- zh-Hans
- stores
- styles
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
407 | 430 | | |
408 | 431 | | |
409 | 432 | | |
| |||
428 | 451 | | |
429 | 452 | | |
430 | 453 | | |
| 454 | + | |
431 | 455 | | |
432 | 456 | | |
433 | 457 | | |
0 commit comments