Skip to content

chore(cli): bump CLI to 0.5.0 and align basic/chat templates - #379

Merged
gene9831 merged 2 commits into
opentiny:developfrom
SonyLeo:chore/update-cli-version
Jul 22, 2026
Merged

chore(cli): bump CLI to 0.5.0 and align basic/chat templates#379
gene9831 merged 2 commits into
opentiny:developfrom
SonyLeo:chore/update-cli-version

Conversation

@SonyLeo

@SonyLeo SonyLeo commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

背景

目标是只处理 develop 分支上的 CLI 侧变更,让模板和 add chat 生成结果与当前版本策略保持一致。

变更内容

1. 更新 CLI 自身版本

  • packages/cli/package.json
  • @opentiny/tiny-robot-cli 版本:
    • 0.4.2 -> 0.5.0

2. 更新 add chat 目标依赖版本

  • packages/cli/bin/commands/add.js
  • TARGET_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-svgs

4. 同步 basic 模板内置模型配置

  • packages/cli/templates/basic/src/models.ts

DeepSeek 配置同步更新为当前默认值:

  • apiUrl
    • https://api.deepseek.com/v1
    • -> https://api.deepseek.com/chat/completions
  • 模型名:
    • deepseek-chat -> deepseek-v4-flash
    • deepseek-reasoner -> deepseek-v4-pro

5. 同步 chat 模板默认模型配置

  • packages/cli/templates/chat/src/TinyRobotChat.vue

默认 chat 模板中的 DeepSeek 模型同步更新为:

  • DeepSeek V4 Flash
  • deepseek-v4-flash
image

验证

basic 模板

验证链路:

  • create --template basic
  • pnpm install
  • pnpm type-check
  • pnpm build

结果:全部通过。

add chat 链路

使用空白 Vite Vue TS 项目验证:

  • 执行 add chat
  • 成功生成 src/TinyRobotChat.vue
  • 成功生成 .env
  • 成功注入 @opentiny/tiny-robot/dist/style.css
  • 成功将 @opentiny/tiny-robot 更新为 0.5.1-alpha.2
  • TinyRobotChat.vue 引入应用后执行:
    • pnpm install
    • vue-tsc --noEmit
    • pnpm build

结果:全部通过。

交互验证

  • 已手工验证交互正常

Summary by CodeRabbit

  • New Features

    • Updated the CLI and starter templates to use TinyRobot 0.5.0.
    • Added DeepSeek V4 Flash and DeepSeek V4 Pro model options.
    • Updated the chat template to use DeepSeek V4 Flash.
  • Bug Fixes

    • Updated the DeepSeek API endpoint for improved compatibility with the latest model configuration.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The 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.

Changes

CLI and template updates

Layer / File(s) Summary
CLI release and dependency version wiring
packages/cli/package.json, packages/cli/bin/commands/add.js, packages/cli/templates/basic/package.json
The CLI version changes to 0.5.0, the add command targets 0.5.1-alpha.1, and basic template dependencies move to ^0.5.0.
DeepSeek provider and chat model configuration
packages/cli/templates/basic/src/models.ts, packages/cli/templates/chat/src/TinyRobotChat.vue
DeepSeek uses the /chat/completions endpoint and V4 Flash/V4 Pro model options, with the chat template selecting V4 Flash.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: gene9831

Poem

I’m a rabbit with a versioned carrot,
Hopping to V4, quick and bright.
TinyRobot packages follow,
Chat completions bloom at night.
CLI leaves a fresh 0.5 trail—
Squeak, ship, and set sail!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: CLI version bump and template alignment updates.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

✅ Preview build completed successfully!

Click the image above to preview.
Preview will be automatically removed when this PR is closed.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@gene9831
gene9831 merged commit 93c4520 into opentiny:develop Jul 22, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🧹 Preview Cleaned Up

The preview deployment has been removed.

@coderabbitai coderabbitai Bot mentioned this pull request Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants