picoclaw/pkg/config
yinwm e1583f3b13 refactor: simplify legacy_provider.go from 349 to 49 lines
- Move OAuth helper functions to factory_provider.go
- Add auto-migration in LoadConfig: old providers -> model_list
- Add Workspace field to ModelConfig for CLI-based providers
- Fix OAuth handling to use auth store instead of raw APIKey
- Update tests to use new model_list configuration format

This eliminates the giant switch-case in legacy_provider.go,
achieving the goal of "zero-code provider addition" from the
design document (issue #283).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 01:30:19 +08:00
..
config.go refactor: simplify legacy_provider.go from 349 to 49 lines 2026-02-19 01:30:19 +08:00
config_test.go fix: tighten file perms and enforce Slack ACL checks (#186) 2026-02-16 16:06:39 +08:00
defaults.go refactor: reorganize commands and provider architecture 2026-02-19 01:03:34 +08:00
migration.go refactor: reorganize commands and provider architecture 2026-02-19 01:03:34 +08:00
migration_test.go refactor: reorganize commands and provider architecture 2026-02-19 01:03:34 +08:00
model_config_test.go refactor: reorganize commands and provider architecture 2026-02-19 01:03:34 +08:00