chore(types): add TODO for v2 refactor addressing architectural issues

- Documented key architectural concerns in the types index file, including file size, responsibility separation, and organization of utility functions and constants.
- Suggested migration of certain types to shared packages for better maintainability and clarity.
This commit is contained in:
fullex 2026-01-07 21:08:12 +08:00
parent cd778f3574
commit 5512a3cb0a

View File

@ -1,3 +1,13 @@
/**
* TODO [v2 refactor] v2
*
* 1. - 1100+
* 2. -
* 3. - objectKeys, objectEntries, strip utils/
* 4. - EFFORT_RATIO, WebSearchProviderIds, BuiltinMCPServerNames constants/
* 5. - isThinkModelType, isWebSearchProviderId typeGuards
* 6. packages/shared/data/types/ 便 main/renderer
*/
import type { LanguageModelV2Source } from '@ai-sdk/provider'
import type { WebSearchResultBlock } from '@anthropic-ai/sdk/resources'
import type OpenAI from '@cherrystudio/openai'