migrate-ai-sdk-v6-to-v7

仓库: vercel/ai
安装量: 1.4K
排名: #5717

安装

npx skills add https://github.com/vercel/ai --skill migrate-ai-sdk-v6-to-v7

AI SDK 6 to 7 Migration Use content/docs/08-migration-guides/23-migration-guide-7-0.mdx from the AI SDK repo as the source of truth. This skill is the working checklist; read the guide for exact examples or when behavior is unclear. Migration Workflow Ensure the user has a clean backup or committed baseline before editing. Inspect package.json and lockfiles to identify installed ai , @ai-sdk/* , provider, UI, MCP, and telemetry packages. Upgrade AI SDK packages to latest versions, and add @ai-sdk/otel only if the project uses OpenTelemetry spans. Update runtime and module assumptions: Node.js must be

=22 , and AI SDK packages are ESM-only. Replace require() imports with ESM imports and add "type": "module" or use .mjs where needed. Search for the v6 patterns below, migrate only the code that exists, then run typecheck and targeted tests. Prefer behavior-preserving changes. When v7 changes semantics, decide whether the app wants the new all-steps behavior or the previous final-step-only behavior. Core API Changes Show more Installs 621 Repository vercel/ai GitHub Stars 25.2K First Seen 9 days ago Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜