From 88576a6c1ca39373d0e90ef8e49d39fa4164245d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E9=BA=92?= Date: Fri, 29 May 2026 13:52:06 +0800 Subject: [PATCH] fix(release): build before check; reformat docs Follow-up to 1.1.1. - release.mjs: build packages before type checks so bailian-cli-core resolves on clean checkouts - CHANGELOG: record the above under Fixed - Reformat CONTRIBUTING / INSTALL / README / docs tables (prettier only, no content changes) --- CHANGELOG.md | 56 ++++++++++++++++++---------------- CHANGELOG_CN.md | 54 +++++++++++++++++--------------- CONTRIBUTING.md | 14 ++++----- CONTRIBUTING_CN.md | 14 ++++----- INSTALL.md | 38 +++++++++++------------ README.md | 20 ++++++------ README_CN.md | 4 +-- docs/agents/changelog-write.md | 14 ++++----- packages/cli/README.md | 20 ++++++------ packages/cli/README_CN.md | 4 +-- tools/release.mjs | 6 ++-- 11 files changed, 122 insertions(+), 122 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9783389..2ba6742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ Documentation-only release. No CLI or SDK behavior changes. - Removed unpkg links from README in favor of canonical sources. - `tools/release.mjs` now asserts root and `packages/cli` READMEs stay in sync before publishing. +### Fixed + +- `tools/release.mjs check` now builds packages before running type checks, so `bailian-cli-core` resolves correctly from a clean checkout (previously cascaded into ~80 spurious TS errors). + ## [1.1.0] - 2026-05-28 Initial public release on GitHub. The CLI was previously developed internally; this is the first version published as open source under Apache-2.0. @@ -30,38 +34,38 @@ Out-of-the-box capabilities your AI agent can compose across complex tasks: **Model services** -| Capability | Default | Description | -| ------------------ | ----------------------------- | ------------------------------------------------------------------------------------------------- | -| Text generation | `qwen3.7-max` | Flagship Max model for the agent era — strong at coding, office work, and long-horizon autonomy | -| Speech synthesis | `cosyvoice-v3-flash` | Multi-voice real-time streaming TTS with enhanced naturalness/emotion; clone from 5–20s samples | -| Speech recognition | `fun-asr` | 7 Chinese dialects + 20+ Mandarin accents; covers 30 languages | -| Image generation | `qwen-image-2.0` | Fused generation & editing, pro text rendering, photorealism, strong semantic adherence | -| Image editing | `qwen-image-2.0` | Smart editing with multi-image composition | -| Image-to-video | `happyhorse-1.0-i2v` | Faithful text-semantic interpretation, smooth high-quality output | -| Text-to-video | `happyhorse-1.0-t2v` | Vivid motion reproduction with rich detail | -| Reference-to-video | `happyhorse-1.0-r2v` | Up to 9 reference images; stable subject & scene preservation | -| Video editing | `happyhorse-1.0-video-edit` | Natural-language video editing, up to 5 reference images | -| Vision understanding | `qwen-vl` | Long-form video analysis, chart/document parsing, visual reasoning, multilingual OCR | +| Capability | Default | Description | +| -------------------- | --------------------------- | ----------------------------------------------------------------------------------------------- | +| Text generation | `qwen3.7-max` | Flagship Max model for the agent era — strong at coding, office work, and long-horizon autonomy | +| Speech synthesis | `cosyvoice-v3-flash` | Multi-voice real-time streaming TTS with enhanced naturalness/emotion; clone from 5–20s samples | +| Speech recognition | `fun-asr` | 7 Chinese dialects + 20+ Mandarin accents; covers 30 languages | +| Image generation | `qwen-image-2.0` | Fused generation & editing, pro text rendering, photorealism, strong semantic adherence | +| Image editing | `qwen-image-2.0` | Smart editing with multi-image composition | +| Image-to-video | `happyhorse-1.0-i2v` | Faithful text-semantic interpretation, smooth high-quality output | +| Text-to-video | `happyhorse-1.0-t2v` | Vivid motion reproduction with rich detail | +| Reference-to-video | `happyhorse-1.0-r2v` | Up to 9 reference images; stable subject & scene preservation | +| Video editing | `happyhorse-1.0-video-edit` | Natural-language video editing, up to 5 reference images | +| Vision understanding | `qwen-vl` | Long-form video analysis, chart/document parsing, visual reasoning, multilingual OCR | **Application data** -| Capability | Default | Description | -| -------------- | -------------------------------- | -------------------------------------------------------------------- | -| Knowledge base | Aliyun Model Studio Knowledge | Multimodal RAG CRUD and retrieval; requires AccessKey | -| Memory | Aliyun Model Studio Memory | Cross-session persistence for personalized coherent dialogue | +| Capability | Default | Description | +| -------------- | ----------------------------- | ------------------------------------------------------------ | +| Knowledge base | Aliyun Model Studio Knowledge | Multimodal RAG CRUD and retrieval; requires AccessKey | +| Memory | Aliyun Model Studio Memory | Cross-session persistence for personalized coherent dialogue | **Application building** -| Capability | Default | Description | -| -------------- | ---------------- | ------------------------------------------ | -| Workflow calls | Workflow service | Invoke published workflow apps | -| Agent calls | Agent service | Invoke published agent apps | +| Capability | Default | Description | +| -------------- | ---------------- | ------------------------------ | +| Workflow calls | Workflow service | Invoke published workflow apps | +| Agent calls | Agent service | Invoke published agent apps | **Tools** -| Capability | Default | Description | -| ------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------ | -| Web search | `bailian_web_search` | Real-time internet retrieval for accuracy and freshness | -| Temp file upload | Temp upload service | Free temp storage; upload local files for URLs (48-hour validity) | -| Free-quota query | Quota query | Check available free-tier quota by model id | -| API reference | Aliyun Model Studio API reference docs | Auto-integrate Aliyun Model Studio model and app capability APIs during build | +| Capability | Default | Description | +| ---------------- | -------------------------------------- | ----------------------------------------------------------------------------- | +| Web search | `bailian_web_search` | Real-time internet retrieval for accuracy and freshness | +| Temp file upload | Temp upload service | Free temp storage; upload local files for URLs (48-hour validity) | +| Free-quota query | Quota query | Check available free-tier quota by model id | +| API reference | Aliyun Model Studio API reference docs | Auto-integrate Aliyun Model Studio model and app capability APIs during build | diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 6043c3d..ef3cc6b 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -20,6 +20,10 @@ - 移除 README 中的 unpkg 链接,改用官方来源。 - `tools/release.mjs` 在发布前会校验根目录与 `packages/cli` 的 README 保持同步。 +### 修复 + +- `tools/release.mjs check` 现在会先构建包再执行类型检查,确保 `bailian-cli-core` 在干净检出环境下能正确解析(此前会级联出约 80 个虚假的 TS 错误)。 + ## [1.1.0] - 2026-05-28 GitHub 上的首次公开发布。本项目此前在内部开发,这是首个以 Apache-2.0 协议开源的版本。 @@ -30,38 +34,38 @@ GitHub 上的首次公开发布。本项目此前在内部开发,这是首个以 **模型服务** -| 能力 | 默认服务 | 简介 | -| ---------- | ----------------------------- | ----------------------------------------------------------------------------------- | -| 文本生成 | `qwen3.7-max` | 面向智能体时代的旗舰 Max 模型,编程、办公与长周期自主执行能力出色 | -| 语音生成 | `cosyvoice-v3-flash` | 多音色实时流式合成,自然度/情感增强,5-20s 样本即可克隆 | -| 语音识别 | `fun-asr` | 汉语七大方言 + 20+ 口音官话,覆盖 30 种语种 | -| 图像生成 | `qwen-image-2.0` | 图片生成与编辑融合,专业文字渲染、真实质感、强语义遵循 | -| 图像编辑 | `qwen-image-2.0` | 智能编辑,支持多图合成 | -| 图生视频 | `happyhorse-1.0-i2v` | 精准理解文本语义,输出流畅自然的高质量视频 | -| 文生视频 | `happyhorse-1.0-t2v` | 高度还原动态画面,细节丰富 | -| 参考生视频 | `happyhorse-1.0-r2v` | 支持最多 9 张图片参考,稳定主体与场景保持 | -| 视频编辑 | `happyhorse-1.0-video-edit` | 自然语言指令编辑视频,支持最多 5 张图片参考 | -| 视觉理解 | `qwen-vl` | 长视频分析、图表/文档解析、视觉推理、多语言 OCR | +| 能力 | 默认服务 | 简介 | +| ---------- | --------------------------- | ---------------------------------------------------------------- | +| 文本生成 | `qwen3.7-max` | 面向智能体时代的旗舰 Max 模型,编程、办公与长周期自主执行能力出色 | +| 语音生成 | `cosyvoice-v3-flash` | 多音色实时流式合成,自然度/情感增强,5-20s 样本即可克隆 | +| 语音识别 | `fun-asr` | 汉语七大方言 + 20+ 口音官话,覆盖 30 种语种 | +| 图像生成 | `qwen-image-2.0` | 图片生成与编辑融合,专业文字渲染、真实质感、强语义遵循 | +| 图像编辑 | `qwen-image-2.0` | 智能编辑,支持多图合成 | +| 图生视频 | `happyhorse-1.0-i2v` | 精准理解文本语义,输出流畅自然的高质量视频 | +| 文生视频 | `happyhorse-1.0-t2v` | 高度还原动态画面,细节丰富 | +| 参考生视频 | `happyhorse-1.0-r2v` | 支持最多 9 张图片参考,稳定主体与场景保持 | +| 视频编辑 | `happyhorse-1.0-video-edit` | 自然语言指令编辑视频,支持最多 5 张图片参考 | +| 视觉理解 | `qwen-vl` | 长视频分析、图表/文档解析、视觉推理、多语言 OCR | **应用数据** -| 能力 | 默认服务 | 简介 | -| ------ | ---------------- | --------------------------------------------- | +| 能力 | 默认服务 | 简介 | +| ------ | ---------------- | ---------------------------------------------- | | 知识库 | 阿里云百炼知识库 | 多模态数据知识库增删改查检索,需 AccessKey 认证 | -| 记忆库 | 阿里云百炼记忆库 | 跨会话持久化存储,提供个性化连贯对话体验 | +| 记忆库 | 阿里云百炼记忆库 | 跨会话持久化存储,提供个性化连贯对话体验 | **应用构建** -| 能力 | 默认服务 | 简介 | -| ---------- | ---------- | -------------------------- | -| 工作流调用 | 工作流服务 | 调用已有的工作流应用服务 | -| 智能体调用 | 智能体服务 | 调用已有的智能体应用服务 | +| 能力 | 默认服务 | 简介 | +| ---------- | ---------- | ------------------------ | +| 工作流调用 | 工作流服务 | 调用已有的工作流应用服务 | +| 智能体调用 | 智能体服务 | 调用已有的智能体应用服务 | **工具能力** -| 能力 | 默认服务 | 简介 | -| ------------ | --------------------------------- | ------------------------------------------------------------------------ | -| 联网搜索 | `bailian_web_search` | 实时互联网全栈信息检索,提升回答准确性及时效性 | -| 临时文件上传 | 临时文件上传服务 | 免费临时存储空间,上传本地文件获得 URL(有效期 48 小时) | -| 模型额度查询 | 模型额度查询 | 根据模型 id 查询可以使用的免费额度 | -| 接口文档 | 阿里云百炼模型应用 API 调用参考文档 | 在构建应用的过程中,自动为您的应用集成阿里云百炼模型和应用能力 API | +| 能力 | 默认服务 | 简介 | +| ------------ | ----------------------------------- | ----------------------------------------------------------------- | +| 联网搜索 | `bailian_web_search` | 实时互联网全栈信息检索,提升回答准确性及时效性 | +| 临时文件上传 | 临时文件上传服务 | 免费临时存储空间,上传本地文件获得 URL(有效期 48 小时) | +| 模型额度查询 | 模型额度查询 | 根据模型 id 查询可以使用的免费额度 | +| 接口文档 | 阿里云百炼模型应用 API 调用参考文档 | 在构建应用的过程中,自动为您的应用集成阿里云百炼模型和应用能力 API | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 59787ce..3e095f9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,13 +47,13 @@ pnpm bl video generate --prompt "a cat walking" ## Common scripts -| Command | What it does | -| ---------------- | ------------------------------------------- | -| `pnpm bl ` | Run the CLI from source | -| `pnpm dev` | Watch-build `bailian-cli-core` | -| `pnpm check` | Format + lint + type check | -| `pnpm test` | Unit + e2e (e2e needs `DASHSCOPE_API_KEY`) | -| `pnpm ready` | Full pre-PR verification | +| Command | What it does | +| ---------------- | ------------------------------------------ | +| `pnpm bl ` | Run the CLI from source | +| `pnpm dev` | Watch-build `bailian-cli-core` | +| `pnpm check` | Format + lint + type check | +| `pnpm test` | Unit + e2e (e2e needs `DASHSCOPE_API_KEY`) | +| `pnpm ready` | Full pre-PR verification | ## AI Native engineering diff --git a/CONTRIBUTING_CN.md b/CONTRIBUTING_CN.md index c268d6c..6520dcb 100644 --- a/CONTRIBUTING_CN.md +++ b/CONTRIBUTING_CN.md @@ -47,13 +47,13 @@ pnpm bl video generate --prompt "一只走路的猫" ## 常用脚本 -| 命令 | 作用 | -| ---------------- | ------------------------------------------ | -| `pnpm bl ` | 从源码运行 CLI | -| `pnpm dev` | watch-build `bailian-cli-core` | -| `pnpm check` | format + lint + 类型检查 | -| `pnpm test` | 单测 + e2e(e2e 需要 `DASHSCOPE_API_KEY`) | -| `pnpm ready` | 提 PR 前的完整自检 | +| 命令 | 作用 | +| ---------------- | ---------------------------------------- | +| `pnpm bl ` | 从源码运行 CLI | +| `pnpm dev` | watch-build `bailian-cli-core` | +| `pnpm check` | format + lint + 类型检查 | +| `pnpm test` | 单测 + e2e(e2e 需要 `DASHSCOPE_API_KEY`) | +| `pnpm ready` | 提 PR 前的完整自检 | ## AI Native 工程化 diff --git a/INSTALL.md b/INSTALL.md index 5634df2..1314744 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -6,17 +6,17 @@ **原则**:先执行检查;若 **Node / 包管理器 / 网络** 任一不满足下文要求,Agent 应 **在本机终端内主动完成安装或配置**(例如升级 Node、切换镜像、配置 `npm` 代理等),再继续 `bailian-cli` 安装。仅在无权限或环境无法自动化时,再向用户说明原因并请其配合。 -1. **Node.js** - - 要求 **≥ 22.12.0**,执行 `node -v` 确认。 +1. **Node.js** + - 要求 **≥ 22.12.0**,执行 `node -v` 确认。 - 未安装或版本不足:由 Agent 自行安装或升级 Node。 -2. **npm**(**唯一**允许的包管理器) - - 执行 `npm -v` 确认可用。 - - 未安装或不可用:由 Agent **安装或修复 npm**(不要改用 pnpm/yarn 装 `bailian-cli`),再执行 `npm install -g bailian-cli`。 +2. **npm**(**唯一**允许的包管理器) + - 执行 `npm -v` 确认可用。 + - 未安装或不可用:由 Agent **安装或修复 npm**(不要改用 pnpm/yarn 装 `bailian-cli`),再执行 `npm install -g bailian-cli`。 - 即使本机已安装 `pnpm`、`yarn` 等,**也仅用于其它项目**;装 `bailian-cli` 时仍必须用 `npm`。 -3. **网络** - - 需能访问 npm registry(默认 **registry.npmjs.org**)。 +3. **网络** + - 需能访问 npm registry(默认 **registry.npmjs.org**)。 - 不可达:由 Agent 自行配置镜像或代理后重试。 --- @@ -67,22 +67,22 @@ npx skills add modelstudioai/skills --all -g 适用于对话式安装(Cursor、Claude 等): -1. 执行 `bl auth status --output json`,判断是否已配置。 -2. 若未配置或后续 API 校验失败,**请用户粘贴 API Key**(可说明从上述控制台复制;勿要求用户发到公开渠道)。 +1. 执行 `bl auth status --output json`,判断是否已配置。 +2. 若未配置或后续 API 校验失败,**请用户粘贴 API Key**(可说明从上述控制台复制;勿要求用户发到公开渠道)。 3. 用户提供了 Key 之后,在**用户本机终端**执行(Agent 用终端工具跑,勿把 Key 写进回复正文):`bl auth login --api-key <用户提供的_Key>` 4. 登录成功后执行 `bl auth status --output json` 确认;汇报时只使用 masked 字段,**禁止**回显完整 Key。 ### 其他方式 -- **环境变量**(不落盘到配置文件):在 shell 中配置 API Key 环境变量;变量名见 `bl auth status --help`,勿在对话中向用户解释底层命名。 -- **写入配置文件**(持久化,与 `auth login` 落盘相同):`bl config set --key api_key --value `(`--key api-key` 亦可)。**不会**像 `bl auth login --api-key` 那样先校验 Key 是否可用;Agent 引导安装时仍**优先**用 `auth login`。 -- **命令行临时传入**:需要 API Key 的 `bl` 子命令可在**当次**执行附加全局 `--api-key `,仅本次生效、不落盘(例:`bl text chat --api-key sk-xxx --message "你好"`)。与上文持久化方式不是同一用途。 +- **环境变量**(不落盘到配置文件):在 shell 中配置 API Key 环境变量;变量名见 `bl auth status --help`,勿在对话中向用户解释底层命名。 +- **写入配置文件**(持久化,与 `auth login` 落盘相同):`bl config set --key api_key --value `(`--key api-key` 亦可)。**不会**像 `bl auth login --api-key` 那样先校验 Key 是否可用;Agent 引导安装时仍**优先**用 `auth login`。 +- **命令行临时传入**:需要 API Key 的 `bl` 子命令可在**当次**执行附加全局 `--api-key `,仅本次生效、不落盘(例:`bl text chat --api-key sk-xxx --message "你好"`)。与上文持久化方式不是同一用途。 - **浏览器登录(控制台会话)**:`bl auth login --console`,用于 `app list`、`usage free` 等控制台能力;与 API Key 登录可并存,详见 `bl auth login --help` ### Agent 安全约束 -- **禁止**把真实 API Key 写入仓库、日志、Skill、聊天记录的可公开部分。 +- **禁止**把真实 API Key 写入仓库、日志、Skill、聊天记录的可公开部分。 - CI / 非交互环境:使用 `bl ... --non-interactive`;通过密钥管理或环境变量注入,勿在脚本中硬编码 Key。 --- @@ -102,10 +102,10 @@ bl text chat --message "ping" --non-interactive --output json ## 5. 常见问题(Agent 排障清单) -| 现象 | 可能原因 | 建议动作 | -|------|----------|----------| -| `bl: command not found` | 全局 bin 不在 PATH | 检查 `npm prefix -g` 与 PATH | -| 安装报错 engines | Node 版本过低 | 升级到 ≥ 22.12 | -| 401 / 鉴权失败 | 未 login 或 Key 无效 | 引导用户更新 Key 并 `bl auth login --api-key` | -| 企业网络无法访问 npm | 代理 / 镜像 | 配置 registry 或代理后再装 | +| 现象 | 可能原因 | 建议动作 | +| ----------------------- | -------------------- | --------------------------------------------------------------- | +| `bl: command not found` | 全局 bin 不在 PATH | 检查 `npm prefix -g` 与 PATH | +| 安装报错 engines | Node 版本过低 | 升级到 ≥ 22.12 | +| 401 / 鉴权失败 | 未 login 或 Key 无效 | 引导用户更新 Key 并 `bl auth login --api-key` | +| 企业网络无法访问 npm | 代理 / 镜像 | 配置 registry 或代理后再装 | | 本机只有 pnpm、没有 npm | Agent 误用 pnpm 安装 | 先装/修好 **npm**,再用 `npm install -g bailian-cli`;勿用 pnpm | diff --git a/README.md b/README.md index 397bde5..521cacd 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ Aliyun Model Studio CLI - **The official command-line interface for Aliyun Model Studio (DashScope) AI Platform** [![npm version](https://img.shields.io/npm/v/bailian-cli?color=0969da&label=npm)](https://www.npmjs.com/package/bailian-cli) @@ -55,9 +54,9 @@ A complete **2-minute, 16:9 cinematic short film** — produced end-to-end from ### The single prompt -> *"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."* +> _"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."_ > -> *(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")* +> _(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")_ ### How it works @@ -68,7 +67,6 @@ A complete **2-minute, 16:9 cinematic short film** — produced end-to-end from No timeline scrubbing. No frame-by-frame editing. Just one sentence → one video. - ## Installation ```bash @@ -162,14 +160,14 @@ Config file location: `~/.bailian/config.json` ## Links -| Resource | URL | -| :--------------------------- | :-------------------------------------------------------------- | -| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& | -| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ | -| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models | -| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ | +| Resource | URL | +| :--------------------------- | :---------------------------------------------------------------- | +| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& | +| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ | +| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models | +| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ | | Get API Key | https://bailian.console.aliyun.com/cli?source_channel=key_github& | -| Get AccessKey | https://ram.console.aliyun.com/manage/ak | +| Get AccessKey | https://ram.console.aliyun.com/manage/ak | ## Changelog diff --git a/README_CN.md b/README_CN.md index c7bbef1..d6fb8a1 100644 --- a/README_CN.md +++ b/README_CN.md @@ -2,7 +2,6 @@ Aliyun Model Studio CLI - **阿里云百炼 (DashScope) AI 平台命令行工具** [![npm version](https://img.shields.io/npm/v/bailian-cli?color=0969da&label=npm)](https://www.npmjs.com/package/bailian-cli) @@ -55,7 +54,7 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_ ### 唯一的提示词 -> *"帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2 分钟左右的视频,尺寸是 16:9"* +> _"帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2 分钟左右的视频,尺寸是 16:9"_ ### 工作流程 @@ -66,7 +65,6 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_ 没有时间线拖拽,没有逐帧剪辑。一句话 → 一部短片。 - ## 安装 ```bash diff --git a/docs/agents/changelog-write.md b/docs/agents/changelog-write.md index 3f3b600..10e2755 100644 --- a/docs/agents/changelog-write.md +++ b/docs/agents/changelog-write.md @@ -106,13 +106,13 @@ git show --stat ### 6. 排除"不该写进去"的内容 -| 不要写 | 原因 | -| --------------------------------------------------- | ---------------------------------- | -| 未发布 / 仅在分支上的功能 | release commit 不包含 → 用户拿不到 | -| 仅在文档 / 设计稿层面的能力 | 没代码就没"功能",不能写进 Added | -| 内部包 / 私有工具的开发过程 commit | 用户不可见 | -| 仓库内 file path / 模块路径(如 `core/telemetry/`) | 用户感知不到内部结构 | -| 临时调试 commit(remove console / 补 TODO 等) | 噪音 | +| 不要写 | 原因 | +| ------------------------------------------------- | ---------------------------------- | +| 未发布 / 仅在分支上的功能 | release commit 不包含 → 用户拿不到 | +| 仅在文档 / 设计稿层面的能力 | 没代码就没"功能",不能写进 Added | +| 内部包 / 私有工具的开发过程 commit | 用户不可见 | +| 仓库内 file path / 模块路径(如 `core/telemetry/`) | 用户感知不到内部结构 | +| 临时调试 commit(remove console / 补 TODO 等) | 噪音 | ### 7. 标记 Breaking Change diff --git a/packages/cli/README.md b/packages/cli/README.md index 397bde5..521cacd 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -2,7 +2,6 @@ Aliyun Model Studio CLI - **The official command-line interface for Aliyun Model Studio (DashScope) AI Platform** [![npm version](https://img.shields.io/npm/v/bailian-cli?color=0969da&label=npm)](https://www.npmjs.com/package/bailian-cli) @@ -55,9 +54,9 @@ A complete **2-minute, 16:9 cinematic short film** — produced end-to-end from ### The single prompt -> *"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."* +> _"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."_ > -> *(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")* +> _(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")_ ### How it works @@ -68,7 +67,6 @@ A complete **2-minute, 16:9 cinematic short film** — produced end-to-end from No timeline scrubbing. No frame-by-frame editing. Just one sentence → one video. - ## Installation ```bash @@ -162,14 +160,14 @@ Config file location: `~/.bailian/config.json` ## Links -| Resource | URL | -| :--------------------------- | :-------------------------------------------------------------- | -| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& | -| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ | -| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models | -| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ | +| Resource | URL | +| :--------------------------- | :---------------------------------------------------------------- | +| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& | +| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ | +| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models | +| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ | | Get API Key | https://bailian.console.aliyun.com/cli?source_channel=key_github& | -| Get AccessKey | https://ram.console.aliyun.com/manage/ak | +| Get AccessKey | https://ram.console.aliyun.com/manage/ak | ## Changelog diff --git a/packages/cli/README_CN.md b/packages/cli/README_CN.md index c7bbef1..d6fb8a1 100644 --- a/packages/cli/README_CN.md +++ b/packages/cli/README_CN.md @@ -2,7 +2,6 @@ Aliyun Model Studio CLI - **阿里云百炼 (DashScope) AI 平台命令行工具** [![npm version](https://img.shields.io/npm/v/bailian-cli?color=0969da&label=npm)](https://www.npmjs.com/package/bailian-cli) @@ -55,7 +54,7 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_ ### 唯一的提示词 -> *"帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2 分钟左右的视频,尺寸是 16:9"* +> _"帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2 分钟左右的视频,尺寸是 16:9"_ ### 工作流程 @@ -66,7 +65,6 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_ 没有时间线拖拽,没有逐帧剪辑。一句话 → 一部短片。 - ## 安装 ```bash diff --git a/tools/release.mjs b/tools/release.mjs index 903a4dc..252ebce 100644 --- a/tools/release.mjs +++ b/tools/release.mjs @@ -264,12 +264,12 @@ async function releaseCheck() { step("Installing dependencies with frozen lockfile"); run("pnpm", ["install", "--frozen-lockfile"]); - step("Running format, lint, and type checks"); - run("pnpm", ["run", "check"]); - step("Building packages"); buildPackages(); + step("Running format, lint, and type checks"); + run("pnpm", ["run", "check"]); + packAndScan(coreJson); log("\nRelease check passed.");