Refactor provider logic into modules
9 months ago
20 files changed
- src/config.ts+5−136
- src/providers/anthropic.ts+12−0
- src/providers/claude-code.ts+21−0
- src/providers/codex-cli.ts+21−0
- src/providers/gemini-cli.ts+66−0
- src/providers/google.ts+12−0
- src/providers/index.ts+35−0
- src/providers/openai.ts+12−0
- test/providers.test.ts+0−1104
- test/providers/anthropic.test.ts+135−0
- test/providers/claude-code.test.ts+49−0
- test/providers/codex-cli.test.ts+49−0
- test/providers/config-switching.test.ts+136−0
- test/providers/cross-provider.test.ts+82−0
- test/providers/gemini-cli.test.ts+76−0
- test/providers/google.test.ts+83−0
- test/providers/helpers.ts+91−0
- test/providers/openai.test.ts+129−0
- test/providers/provider-options.test.ts+107−0
- test/providers/saved-keys.test.ts+213−0