Skip to content

Commit 8b7956d

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/cma-deployment
# Conflicts: # CHANGELOG.md # CHANGELOG.zh.md # packages/cli/package.json # packages/commands/package.json # packages/core/package.json # packages/kscli/package.json # packages/runtime/package.json # skills/bailian-cli/SKILL.md # skills/bailian-finetune/SKILL.md # skills/bailian-gen/SKILL.md # skills/bailian-managed-agent/SKILL.md # skills/bailian-protocol/SKILL.md
2 parents 7e21573 + ce4d66b commit 8b7956d

127 files changed

Lines changed: 6576 additions & 2027 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ tools/generated
3737
.claude/settings.local.json
3838
.claude/scheduled_tasks.lock
3939
.cursor/
40+
.qoder/
4041
.qwen/
4142
.qoder
4243
.playwright-mcp/

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ packages/core/src/auth/ # apiKey / console credential 解析与落盘
3535
packages/core/src/client/ # HTTP client / endpoints / console gateway
3636
```
3737

38-
Skill / 命令手册随 `skills/bailian-*/``npx skills add modelstudioai/cli --all -g` 安装(整包装齐,含共享协议 `bailian-protocol`)。业务 skill(`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)执行前读 `skills/bailian-protocol/`;不要依赖 frontmatter `companions`(安装器不强制)。`tools/generate-reference.ts`**`packages/cli/src/commands.ts`** 按一级命令归属表分流写入各 `skills/<skill>/reference/`(纳入 git);`tools/sync-skill-metadata.ts``packages/cli/package.json` 同步各 `skills/*/SKILL.md``metadata.version`。两者由根脚本 `pnpm run sync:skill-assets``.vite-hooks/pre-commit` 执行。hub `bailian-cli` 的路由表不复述领域命令明细;SKILL 文案 / 安装约定 / hand-off 见 [docs/agents/skill-change.md](docs/agents/skill-change.md)
38+
Skill / 命令手册随 `skills/bailian-*/``bl skill init` 安装(装齐 registry 中全部 `bailian-*`,含共享协议 `bailian-protocol`)。业务 skill(`bailian-cli` / `bailian-gen` / `bailian-finetune` / `bailian-managed-agent`)执行前读 `skills/bailian-protocol/`;不要依赖 frontmatter `companions`(安装器不强制)。`tools/generate-reference.ts`**`packages/cli/src/commands.ts`** 按一级命令归属表分流写入各 `skills/<skill>/reference/`(纳入 git);`tools/sync-skill-metadata.ts``packages/cli/package.json` 同步各 `skills/*/SKILL.md``metadata.version`。两者由根脚本 `pnpm run sync:skill-assets``.vite-hooks/pre-commit` 执行。hub `bailian-cli` 的路由表不复述领域命令明细;SKILL 文案 / 安装约定 / hand-off 见 [docs/agents/skill-change.md](docs/agents/skill-change.md)
3939

4040
约定:
4141

CHANGELOG.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,49 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
1111
### Added
1212

1313
- **Native Bailian Managed Agent Deployments**`deployments` declared in `agents.yaml` now materialize as native AgentStudio resources, with server-side cron schedules, local file resource uploads, archival through `destroy`, and migration of legacy emulated state on the next `apply`.
14-
- **Skill registry management** — added `bl skill add`, `bl skill list`, `bl skill update`, and `bl skill remove` for installing, reconciling, atomically updating, and removing registry skills across detected coding agents.
14+
- **Responses API for `bl text chat`** — Use `--api responses` to call the DashScope Responses API with streaming, tool definitions, and structured JSON output; Chat Completions remains the default.
15+
- **Subscription plan usage views**`bl usage token-plan` displays 5-hour and weekly quota usage, while `bl usage coding-plan` displays 5-hour, weekly, and monthly usage; both support text and JSON output.
16+
- **Authentication requirements in command help** — Help output now states whether a command requires an API Key, Console login, or Alibaba Cloud OpenAPI credentials.
1517

1618
### Changed
1719

18-
- **Request IDs in command output** — dataset, model deployment, and fine-tuning commands now expose server request IDs in text and JSON output for troubleshooting.
19-
- **Skill packaging and routing** — Bailian skills are split into the shared protocol, generation, fine-tuning, Managed Agent, and CLI hub domains. The supported installation flow now installs the complete family with `npx skills add modelstudioai/cli --all -g`.
20-
- **Advisor knowledge refresh** — the model advisor knowledge package is pre-fetched during npm installation and automatically refreshed when needed; download failures do not block CLI installation.
20+
- **Broader speech-recognition model support**`bl speech recognize` now routes asynchronous file-transcription and synchronous Flash ASR models to the appropriate DashScope APIs, with clear guidance for unsupported realtime models.
21+
- **MCP transport compatibility** — MCP commands now fall back from Streamable HTTP to classic SSE for compatible Bailian and custom endpoints.
2122

22-
### Internal
23+
### Fixed
24+
25+
- Binary updates now refresh installed Agent Skills after a successful CLI upgrade.
26+
- Fixed unavailable Token Plan quota values and missing reset times.
27+
- Fixed Qwen3 file-transcription result handling so waiting mode and `--out` work correctly.
28+
- Fixed MCP SSE chunk parsing, header timeouts, abort cleanup, and fallback status matching.
29+
- Network failures in JSON output now preserve the errno value in `cause.code`.
30+
31+
## [1.14.3] - 2026-08-12
32+
33+
### Fixed
34+
35+
- **Free-tier quota compatibility**`bl usage free` and `bl usage freetier` now use the current Bailian Commerce console APIs for quota queries, activation, and deactivation, with consistent asynchronous-task polling.
36+
37+
## [1.14.2] - 2026-08-07
38+
39+
### Added
40+
41+
- **`bl skill init`** — Install all first-party `bailian-*` skills into detected local AI Agents in one step.
42+
43+
### Changed
44+
45+
- **Skill command interface** — Skill management commands now default to JSON output for Agent workflows; `bl skill add` and `bl skill update` use explicit `--all` and `--name` selectors.
46+
47+
## [1.14.1] - 2026-08-05
48+
49+
### Added
50+
51+
- **Focused Bailian Skills**`npx skills add modelstudioai/cli --all -g` now installs dedicated skills for media generation, fine-tuning, Managed Agent, and shared execution rules, improving task routing while reducing irrelevant context.
52+
53+
### Changed
2354

24-
- Bailian and DashScope API requests now include CLI binary and version source-attribution tags.
55+
- **Default image model upgraded to Qwen-Image 3.0** — image generation, image editing, pipelines, the config UI, and related documentation now default to `qwen-image-3.0` for API Key users.
56+
- **Broader coding-agent compatibility** — Skill installation and updates now detect more coding agents, preserve existing installation links, and automatically backfill skills into newly detected agents.
2557

2658
## [1.14.0] - 2026-08-04
2759

CHANGELOG.zh.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,49 @@
1111
### 新增
1212

1313
- **百炼原生 Managed Agent Deployment** —— `agents.yaml` 中声明的 `deployments` 现在会创建原生 AgentStudio 资源,支持服务端 Cron 调度、本地文件资源上传、通过 `destroy` 归档,以及在下次 `apply` 时迁移旧版模拟 Deployment state。
14-
- **Skill Registry 管理** —— 新增 `bl skill add``bl skill list``bl skill update``bl skill remove`,支持向检测到的编码 Agent 安装 Skill、核对状态、原子更新及卸载 Registry Skill。
14+
- **`bl text chat` 支持 Responses API** —— 可通过 `--api responses` 调用 DashScope Responses API,支持流式输出、工具定义和结构化 JSON 输出;默认仍使用 Chat Completions。
15+
- **订阅套餐用量视图** —— `bl usage token-plan` 支持查看 5 小时和每周额度,`bl usage coding-plan` 支持查看 5 小时、每周和每月额度;两者均提供文本与 JSON 输出。
16+
- **命令帮助展示鉴权要求** —— Help 输出现在会明确标注命令需要 API Key、控制台登录还是阿里云 OpenAPI 凭证。
1517

1618
### 变更
1719

18-
- **命令输出 Request ID** —— 数据集、模型部署和模型精调命令现在会在文本及 JSON 输出中展示服务端 Request ID,便于故障排查。
19-
- **Skill 分包与路由** —— 百炼 Skill 拆分为共享协议、生成、精调、Managed Agent 和 CLI Hub 等领域;支持的安装方式统一为 `npx skills add modelstudioai/cli --all -g`,一次安装完整 Skill 家族。
20-
- **Advisor 知识更新** —— npm 安装时会预下载模型推荐知识包,并在需要时自动刷新;下载失败不会阻断 CLI 安装。
20+
- **扩展语音识别模型支持** —— `bl speech recognize` 现在会将异步文件转写和同步 Flash ASR 模型路由至对应的 DashScope API,并为暂不支持的实时模型提供明确提示。
21+
- **增强 MCP 传输兼容性** —— MCP 命令现在可为兼容的百炼及自定义端点从 Streamable HTTP 自动回退至经典 SSE。
2122

22-
### 内部
23+
### 修复
24+
25+
- 二进制方式升级 CLI 成功后,现在会同步刷新已安装的 Agent Skills。
26+
- 修复 Token Plan 额度不可用或缺少重置时间时的展示问题。
27+
- 修复 Qwen3 文件转写结果处理,使等待模式和 `--out` 能够正常工作。
28+
- 修复 MCP SSE 分块解析、响应头超时、中止清理和回退状态匹配问题。
29+
- JSON 输出中的网络错误现在会在 `cause.code` 中保留 errno。
30+
31+
## [1.14.3] - 2026-08-12
32+
33+
### 修复
34+
35+
- **免费额度兼容性** —— `bl usage free``bl usage freetier` 现在使用最新的 Bailian Commerce 控制台 API 查询、开通和关闭免费额度,并统一处理异步任务轮询。
36+
37+
## [1.14.2] - 2026-08-07
38+
39+
### 新增
40+
41+
- **`bl skill init`** —— 一次性将全部官方 `bailian-*` Skill 安装到本机检测到的 AI Agent。
42+
43+
### 变更
44+
45+
- **Skill 命令接口** —— Skill 管理命令现在默认输出适合 Agent 工作流的 JSON;`bl skill add``bl skill update` 使用明确的 `--all``--name` 选择参数。
46+
47+
## [1.14.1] - 2026-08-05
48+
49+
### 新增
50+
51+
- **百炼 Skill 按领域拆分** —— 通过 `npx skills add modelstudioai/cli --all -g` 可统一安装图片与视频生成、模型微调、Managed Agent 和共享执行协议等专用 Skill,提升任务路由准确性并减少无关上下文。
52+
53+
### 变更
2354

24-
- 百炼和 DashScope API 请求现在会携带 CLI 二进制名称及版本来源标签。
55+
- **默认图片模型升级至 Qwen-Image 3.0** —— 普通 API Key 用户的图片生成、图片编辑、Pipeline、配置 UI 和相关文档现在默认使用 `qwen-image-3.0`
56+
- **扩展 Coding Agent 兼容范围** —— Skill 安装与更新现在能够识别更多 Coding Agent,保留已有安装链接,并自动将 Skill 补充到新识别的 Agent。
2557

2658
## [1.14.0] - 2026-08-04
2759

INSTALL.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
11
# 阿里云百炼CLI 安装说明(供 AI Agent 阅读)
22

3-
本文档面向 **AI Agent**:按下列步骤为用户安装并校验 **阿里云百炼CLI**(命令 `bl` / `bailian`)。**优先**使用二进制一键安装(无需 Node);若环境已有 Node / 需要 Command Pack,再用 npm。不要臆造版本号或路径;以用户环境为准。
3+
本文档面向 **AI Agent**:按下列步骤为用户安装并校验 **阿里云百炼CLI**(命令 `bl` / `bailian`)。**优先**在已有 Node.js(**≥ 18.17.0**)的环境用 npm 安装;若没有可用 Node / npm,再走二进制一键安装。不要臆造版本号或路径;以用户环境为准。
44

5-
## 1. 推荐:二进制安装(无需 Node)
5+
## 1. 推荐:npm 安装(要求 **≥ 18.17.0**
6+
7+
1. `node -v` 确认版本 ≥ 18.17.0。
8+
2. `npm -v` 确认可用(**仅允许 npm** 全局安装,不要用 pnpm/yarn)。
9+
3. 执行:
10+
11+
```bash
12+
npm install -g bailian-cli
13+
```
14+
15+
4. 校验:`bl --version`
16+
17+
安装 skills(CLI 内置,无需 Git / npx skills):
18+
19+
```bash
20+
bl skill init
21+
```
22+
23+
**Supported:** `bl skill init` 一次装齐 registry 中全部 `bailian-*`(含共享协议 `bailian-protocol`)。
24+
25+
**Advanced / 按需子集:**
26+
27+
```bash
28+
bl skill add --name bailian-protocol,bailian-gen
29+
```
30+
31+
安装成功后,用中文简要说明已安装的 skills 及用户可做什么。
32+
33+
## 2. 备选:二进制安装(无需 Node)
34+
35+
当环境没有 Node / npm,或 Node 版本过低无法走 npm 时,使用二进制安装脚本。脚本安装 CLI 成功后会自动执行 `bl skill init`
636

737
```bash
838
curl -fsSL https://bailian.aliyun.com/cli/install.sh | bash
@@ -37,36 +67,9 @@ bl --version
3767
which bl # Windows: where.exe bl
3868
```
3969

40-
> CDN / GitHub Release 未就绪或下载失败时,回退到下方 npm 安装。
41-
42-
## 2. 备选:npm 安装(要求 **≥ 18.17.0**
43-
44-
1. `node -v` 确认版本。
45-
2. `npm -v` 确认可用(**仅允许 npm** 全局安装,不要用 pnpm/yarn)。
46-
3. 执行:
47-
48-
```bash
49-
npm install -g bailian-cli
50-
```
51-
52-
4. 校验:`bl --version`
70+
若自动 skill 安装失败,再手动执行:`bl skill init`
5371

54-
可选 skills(与 CLI 本体无关,按需):
55-
56-
```bash
57-
npx skills add modelstudioai/cli --all -g
58-
```
59-
60-
**Supported:** 始终使用 `--all -g`,一次装齐整套 `bailian-*`(含共享协议 `bailian-protocol`)。Agent Skills / `npx skills` **不会**按 metadata 自动拉依赖。
61-
62-
**Advanced / 不推荐:** 子集 `-s` 时 skills CLI 不会自动带上 `bailian-protocol`;若坚持子集,必须手动同时指定,例如:
63-
64-
```bash
65-
# Advanced: you MUST include bailian-protocol yourself — installer does not pull it
66-
npx skills add modelstudioai/cli -g -s bailian-protocol -s bailian-gen
67-
```
68-
69-
安装成功后,用中文简要说明已安装的 skills 及用户可做什么。
72+
> CDN / GitHub Release 未就绪或下载失败时,若本机已有合格 Node,回退到上方 npm 安装。
7073
7174
---
7275

0 commit comments

Comments
 (0)