Co-Pilot / 辅助式
更新于 a month ago

update

Aassistant-ui
0.0k
assistant-ui/skills/assistant-ui/skills/update
76
Agent 评分

💡 摘要

该技能更新assistant-ui和AI SDK到最新版本,同时管理迁移和破坏性更改。

🎯 适合人群

前端开发人员DevOps工程师软件架构师技术项目经理

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析低风险

风险:Low。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。


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

assistant-ui Update

Always verifies against npm ground truth and GitHub commits.

References

Phase 1: Detect Versions

Get Ground Truth

# 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

Version Analysis

| Package | Check For | |---------|-----------| | ai | < 6.0.0 → needs AI SDK v6 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 |

Phase 2: Route to Migration

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

Migration Order

  1. AI SDK first (if < 6.0.0) - Required for @assistant-ui/react-ai-sdk >= 1.0
  2. assistant-ui second - Apply breaking changes for version jump
  3. Verify - Type check, build, test

Phase 3: Execute

Update Packages

# 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

Apply Migrations

Based on version jump, apply relevant migrations from references.

Verify

npx tsc --noEmit # Type check pnpm build # Build check

Troubleshooting

"Peer dependency conflict"

Type errors after upgrade

  • Consult breaking changes reference
  • Check specific migration guide

Runtime errors

  • Verify API patterns match new version
  • Check for renamed/moved APIs
五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 自动化版本检测和迁移。
  • 减少更新过程中的手动错误。
  • 提供清晰的迁移路径。

缺点

  • 对于复杂迁移可能需要手动干预。
  • 依赖外部参考进行迁移指南。
  • 如果未正确遵循,可能会导致破坏性更改。

相关技能

web-perf

A
toolCo-Pilot / 辅助式
88/ 100

“This skill is so thorough it might start charging consulting fees after the audit.”

tldraw

A
toolCode Lib / 代码库
86/ 100

“一个出色的绘图库,不过其许可模式意味着你的杰作将永远带有'Made with tldraw'签名,除非你支付赎金。”

vue-expert

A
toolCo-Pilot / 辅助式
86/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 assistant-ui.