بنقرة واحدة
update
// Update assistant-ui and AI SDK to latest versions. Detects current versions, identifies breaking changes, and executes migrations.
// Update assistant-ui and AI SDK to latest versions. Detects current versions, identifies breaking changes, and executes migrations.
Setup and configure assistant-ui in a project. Use when installing packages, configuring runtimes, setting up chat UI, or troubleshooting setup issues.
Guide for assistant-ui library - AI chat UI components. Use when asking about architecture, debugging, or understanding the codebase.
Guide for assistant-cloud persistence and authorization. Use when setting up thread persistence, file uploads, or authentication.
Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive. Use when customizing chat UI components.
Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread/message data.
Guide for assistant-stream package and streaming protocols. Use when implementing streaming backends, custom protocols, or debugging stream issues.
| name | update |
| description | Update assistant-ui and AI SDK to latest versions. Detects current versions, identifies breaking changes, and executes migrations. |
| version | 0.0.1 |
| license | MIT |
Always verifies against npm ground truth and GitHub commits.
# Installed versions
npm ls @assistant-ui/react @assistant-ui/react-ai-sdk ai @ai-sdk/react 2>/dev/null
# Latest from npm
npm view @assistant-ui/react version
npm view @assistant-ui/react-ai-sdk version
npm view ai version
| Package | Check For |
|---|---|
ai | < 6.0.0 → needs AI SDK v6 migration |
@assistant-ui/react | < 0.12.0 → needs unified state API migration |
@assistant-ui/react | < 0.11.0 → needs runtime migration |
@assistant-ui/react | < 0.10.0 → needs ESM migration |
@assistant-ui/react | < 0.8.0 → needs UI split migration |
@assistant-ui/react-ai-sdk | < 1.0.0 → needs AI SDK v6 first |
AI SDK < 6.0.0?
├─ Yes → See ./references/ai-sdk-v6.md
└─ No
└─ assistant-ui outdated?
├─ Yes → See ./references/assistant-ui.md
└─ No → Already up to date
# pnpm
pnpm add @assistant-ui/react@latest @assistant-ui/react-ai-sdk@latest ai@latest @ai-sdk/react@latest
# npm
npm install @assistant-ui/react@latest @assistant-ui/react-ai-sdk@latest ai@latest @ai-sdk/react@latest
Based on version jump, apply relevant migrations from references.
npx tsc --noEmit # Type check
pnpm build # Build check
"Peer dependency conflict"
Type errors after upgrade
Runtime errors