Skip to content

Commit 418596b

Browse files
committed
Merge branch 'main' into feat/model-usage
2 parents dd56b04 + 9742209 commit 418596b

57 files changed

Lines changed: 2183 additions & 207 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
- run: pnpm install --frozen-lockfile
2727

28+
- run: pnpm run sync:skill-assets
29+
2830
- run: pnpm -r --filter "./packages/*" build
2931

3032
- run: pnpm run check

.github/workflows/sync-bailian-cli-skill-reference.yml

Lines changed: 0 additions & 143 deletions
This file was deleted.

.vite-hooks/pre-commit

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
#!/usr/bin/env sh
2+
set -eu
3+
4+
# Regenerate skill reference + SKILL metadata (needs bailian-cli-core dist).
5+
pnpm run sync:skill-assets
6+
7+
# Stage generator output so it is included in this commit.
8+
git add skills/bailian-cli/reference skills/bailian-cli/SKILL.md
9+
110
vp staged

AGENTS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ packages/cli/
2525
└── tests/e2e/
2626
```
2727

28-
Skill / 命令手册不再随 npm 包发布,改由独立的 `npx add skills` 机制安装`tools/generate-reference.ts` 仍然从 `catalog.ts` 生成命令手册到 `tools/generated/reference/`(gitignore,临时),等新机制接入后再迁走
28+
Skill / 命令手册随 `skills/bailian-cli/` `npx skills add modelstudioai/cli` 安装`tools/generate-reference.ts` `catalog.ts` 生成命令手册到 `skills/bailian-cli/reference/`(纳入 git);与 `tools/sync-skill-metadata.ts` 一起在 **pre-commit**`.vite-hooks/pre-commit`)及根脚本 `pnpm run sync:skill-assets` 中执行
2929

3030
非代码资产:
3131

3232
- `tools/release/` — 发版自动化(CI 驱动,见 `.github/workflows/publish.yml`
33-
- `tools/generate-reference.ts` — 从 `catalog.ts` 生成命令手册(临时输出到 `tools/generated/reference/`)
34-
- `README.md` / `README_CN.md` — npm 和 GitHub 主页
33+
- `tools/generate-reference.ts` — 从 `catalog.ts` 生成命令手册到 `skills/bailian-cli/reference/`
34+
- `tools/sync-skill-metadata.ts` — 从 `packages/cli/package.json` 同步 `skills/bailian-cli/SKILL.md``metadata.version`(与 `generate:reference` 一并由根目录 `pnpm run sync:skill-assets` 及 pre-commit 执行)
35+
- `README.md` / `README.zh.md` — npm 和 GitHub 主页
3536

3637
约定:
3738

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ All notable changes to `bailian-cli` and `bailian-cli-core` are documented here.
44

55
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The two packages share a single version number — they are always released together.
66

7-
[中文版](CHANGELOG_CN.md) · [README](README.md) · [Contributing](CONTRIBUTING.md)
7+
[中文版](CHANGELOG.zh.md) · [README](README.md) · [Contributing](CONTRIBUTING.md)
8+
9+
## [1.2.1] - 2026-06-09
10+
11+
### Changed
12+
13+
- Skill install command updated from `npx skills add modelstudioai/skills` to `npx skills add modelstudioai/cli --all -g` across all READMEs and docs.
14+
- `bl update` now automatically updates the `bailian-cli` agent skill after CLI upgrade.
15+
- Renamed `README_CN.md` to `README.zh.md` (ISO 639 convention) across the entire repo.
16+
17+
### Added
18+
19+
- Official skill (`skills/bailian-cli/`) now ships in this repository with pre-commit auto-generation of reference docs and SKILL.md version sync.
20+
- Bilingual READMEs (EN + CN) for the `bailian-cli` skill.
821

922
## [1.2.0] - 2026-06-05
1023

CHANGELOG_CN.md renamed to CHANGELOG.zh.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@
44

55
格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。两个包共享一个版本号,总是一起发布。
66

7-
[English](CHANGELOG.md) · [README](README_CN.md) · [参与贡献](CONTRIBUTING_CN.md)
7+
[English](CHANGELOG.md) · [README](README.zh.md) · [参与贡献](CONTRIBUTING.zh.md)
8+
9+
## [1.2.1] - 2026-06-09
10+
11+
### 变更
12+
13+
- Skill 安装命令从 `npx skills add modelstudioai/skills` 更新为 `npx skills add modelstudioai/cli --all -g`,所有 README 和文档已同步。
14+
- `bl update` 现在会在 CLI 升级后自动更新 `bailian-cli` agent skill。
15+
- 全仓库 `README_CN.md` 统一重命名为 `README.zh.md`(ISO 639 命名规范)。
16+
17+
### 新增
18+
19+
- 官方 skill(`skills/bailian-cli/`)迁入本仓库,pre-commit 自动生成 reference 文档并同步 SKILL.md 版本号。
20+
- `bailian-cli` skill 新增中英文双语 README。
821

922
## [1.2.0] - 2026-06-05
1023

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Developer guide for `bailian-cli` — the official CLI for Aliyun Model Studio (DashScope). For end-user usage, see [README.md](README.md).
44

5-
[中文版](CONTRIBUTING_CN.md) · [README](README.md) · [Changelog](CHANGELOG.md)
5+
[中文版](CONTRIBUTING.zh.md) · [README](README.md) · [Changelog](CHANGELOG.md)
66

77
## Prerequisites
88

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# 参与贡献 bailian-cli
22

3-
`bailian-cli` 是阿里云百炼(DashScope)的官方 CLI。本文是面向**开发者**的指南;终端用户请看 [README_CN.md](README_CN.md)
3+
`bailian-cli` 是阿里云百炼(DashScope)的官方 CLI。本文是面向**开发者**的指南;终端用户请看 [README.zh.md](README.zh.md)
44

5-
[English](CONTRIBUTING.md) · [README](README_CN.md) · [更新日志](CHANGELOG_CN.md)
5+
[English](CONTRIBUTING.md) · [README](README.zh.md) · [更新日志](CHANGELOG.zh.md)
66

77
## 环境要求
88

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ which bl # Windows 可用 where bl
5050
CLI 校验通过后,在本机终端执行:
5151

5252
```bash
53-
npx skills add modelstudioai/skills --all -g
53+
npx skills add modelstudioai/cli --all -g
5454
```
5555

56-
完整说明见 [百炼Skills](https://github.com/modelstudioai/skills)安装成功后,用中文简要说明已安装的 skills 及用户可做什么。
56+
安装成功后,用中文简要说明已安装的 skills 及用户可做什么。
5757

5858
---
5959

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6)](https://www.typescriptlang.org)
1010
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
1111

12-
[Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) · [中文文档](https://github.com/modelstudioai/cli/blob/main/README_CN.md) · [API Documentation](https://help.aliyun.com/zh/model-studio/) · [Get API Key](https://bailian.console.aliyun.com/cli?source_channel=key_github&)
12+
[Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) · [中文文档](https://github.com/modelstudioai/cli/blob/main/README.zh.md) · [API Documentation](https://help.aliyun.com/zh/model-studio/) · [Get API Key](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key)
1313

1414
---
1515

@@ -73,7 +73,7 @@ No timeline scrubbing. No frame-by-frame editing. Just one sentence → one vide
7373

7474
```bash
7575
npm install -g bailian-cli
76-
npx skills add modelstudioai/skills --all -g
76+
npx skills add modelstudioai/cli --all -g
7777
```
7878

7979
> Requires Node.js >= 22.12.
@@ -132,7 +132,7 @@ bl quota history # View quota change histor
132132

133133
### DashScope API Key
134134

135-
Required for most commands. Get your key from the [DashScope Console](https://bailian.console.aliyun.com/cli?source_channel=key_github&).
135+
Required for most commands. Get your key from the [DashScope Console](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key).
136136

137137
```bash
138138
# Option 1: Environment variable
@@ -189,8 +189,8 @@ Config file location: `~/.bailian/config.json`
189189
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& |
190190
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ |
191191
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models |
192-
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ |
193-
| Get API Key | https://bailian.console.aliyun.com/cli?source_channel=key_github& |
192+
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/?source_channel=cli_github |
193+
| Get API Key | https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key |
194194
| Get AccessKey | https://ram.console.aliyun.com/manage/ak |
195195

196196
## Changelog

0 commit comments

Comments
 (0)