chore(cli): bump CLI to 0.5.0 and align basic/chat templates - #379
Conversation
WalkthroughThe CLI version and TinyRobot dependency targets move to 0.5.x. Basic and chat templates update their TinyRobot dependencies and DeepSeek configuration to use the V4 models and chat completions endpoint. ChangesCLI and template updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 Package Previewpnpm add https://pkg.pr.new/@opentiny/tiny-robot@8469657 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-kit@8469657 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-svgs@8469657 commit: 8469657 |
🧹 Preview Cleaned UpThe preview deployment has been removed. |

背景
目标是只处理
develop分支上的 CLI 侧变更,让模板和add chat生成结果与当前版本策略保持一致。变更内容
1. 更新 CLI 自身版本
packages/cli/package.json@opentiny/tiny-robot-cli版本:0.4.2->0.5.02. 更新
add chat目标依赖版本packages/cli/bin/commands/add.jsTARGET_VERSION:0.4.2-alpha.6->0.5.1-alpha.2这样
add chat生成的项目会安装新的 experimental chat 组件版本。3. 更新 basic 模板依赖版本
packages/cli/templates/basic/package.json依赖版本统一更新为
^0.5.0:@opentiny/tiny-robot@opentiny/tiny-robot-kit@opentiny/tiny-robot-svgs4. 同步 basic 模板内置模型配置
packages/cli/templates/basic/src/models.tsDeepSeek 配置同步更新为当前默认值:
apiUrlhttps://api.deepseek.com/v1-> https://api.deepseek.com/chat/completionsdeepseek-chat->deepseek-v4-flashdeepseek-reasoner->deepseek-v4-pro5. 同步 chat 模板默认模型配置
packages/cli/templates/chat/src/TinyRobotChat.vue默认 chat 模板中的 DeepSeek 模型同步更新为:
DeepSeek V4 Flashdeepseek-v4-flash验证
basic 模板
验证链路:
create --template basicpnpm installpnpm type-checkpnpm build结果:全部通过。
add chat 链路
使用空白 Vite Vue TS 项目验证:
add chatsrc/TinyRobotChat.vue.env@opentiny/tiny-robot/dist/style.css@opentiny/tiny-robot更新为0.5.1-alpha.2TinyRobotChat.vue引入应用后执行:pnpm installvue-tsc --noEmitpnpm build结果:全部通过。
交互验证
Summary by CodeRabbit
New Features
Bug Fixes