cherry-studio/packages
suyao 2e97d07c10
refactor: enforce mutual exclusivity of create and import in ProviderExtensionConfig
Use TypeScript discriminated union types to prevent using both `create` and `import`
options simultaneously in ProviderExtensionConfig at compile time. This replaces runtime
validation with type-level enforcement.

Changes:
- Split ProviderExtensionConfig into a union of ProviderExtensionConfigWithCreate and ProviderExtensionConfigWithImport
- Extract shared properties into ProviderExtensionConfigBase
- Remove runtime validation checks that are now handled by the type system
- Clean up unused import in HubProvider.test.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 00:14:59 +08:00
..
ai-sdk-provider refactor: update package dependencies to use patch versions for @ai-sdk/google and @ai-sdk/openai-compatible 2025-12-29 21:36:01 +08:00
aiCore refactor: enforce mutual exclusivity of create and import in ProviderExtensionConfig 2026-01-02 00:14:59 +08:00
extension-table-plus chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
mcp-trace chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
shared fix: remove trailing api version in ANTHROPIC_BASE_URL (#12145) 2025-12-26 17:37:58 +08:00