mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-18 00:24:45 +08:00
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> |
||
|---|---|---|
| .. | ||
| ai-sdk-provider | ||
| aiCore | ||
| extension-table-plus | ||
| mcp-trace | ||
| shared | ||