Skip to content

Commit a489fc6

Browse files
committed
Merge branch 'main' into feat/model-compress
2 parents 60b9a2f + 413f8f4 commit a489fc6

67 files changed

Lines changed: 1580 additions & 289 deletions

Some content is hidden

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

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
1616

1717
- **Decision dataset validation** — Aligned the `decision` schema with the current API: `state` may be a string, object, or array; `instructions` is optional; and question criteria now enforce API limits.
1818

19+
## [2.2.1] - 2026-10-12
20+
21+
### Fixed
22+
23+
- **Hermes agent config path** — `bl config agent --agent hermes` now writes to the location Hermes actually reads (`$HERMES_HOME/config.yaml`, or the platform-native default: `%LOCALAPPDATA%\hermes` on Windows, `~/.hermes` elsewhere) instead of always `~/.hermes/config.yaml`. Previously on Windows or with a custom `HERMES_HOME`, config landed where Hermes never read it and the change silently took no effect; agent detection could also falsely report Hermes as unconfigured.
24+
1925
## [2.2.0] - 2026-10-12
2026

2127
### Added

‎CHANGELOG.zh.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616

1717
- **决策数据集校验** —— 与最新 API 对齐:`state` 可为字符串、对象或数组,`instructions` 改为可选,并按接口限制校验各类问题的 criteria。
1818

19+
## [2.2.1] - 2026-10-12
20+
21+
### 修复
22+
23+
- **Hermes Agent 配置路径** —— `bl config agent --agent hermes` 现在会写入 Hermes 实际读取的位置(`$HERMES_HOME/config.yaml`,或平台原生默认路径:Windows 为 `%LOCALAPPDATA%\hermes`,其它平台为 `~/.hermes`),不再固定写 `~/.hermes/config.yaml`。此前在 Windows 或自定义 `HERMES_HOME` 环境下,配置被写到 Hermes 不读取的文件、变更静默失效,Agent 探测也可能误报 Hermes 为「未配置」。
24+
1925
## [2.2.0] - 2026-10-12
2026

2127
### 新增

‎README.md‎

Lines changed: 14 additions & 14 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.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)
12+
[Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?spm=a2ty07.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/?spm=a2ty07.github&tab=app#/api-key)
1313

1414
---
1515

@@ -26,7 +26,7 @@ _Built for AI Agents. Every command works as a structured tool call._
2626
- **Model generation** — Full-modality generation across text, image, video, and speech, with editing and reference-based generation
2727
- **Asset understanding** — Parse and ask questions about images, documents, audio, and long videos
2828
- **App orchestration** — Call Managed Agents, agents, and workflows published on Aliyun Model Studio, wired to knowledge bases, memory, web search, and MCP tools
29-
- **Native MCP setup** — Register Bailian MCP servers in Codex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork (千问办公), Qwen Code, or Gemini CLI with channel attribution preserved
29+
- **Native MCP setup** — Register Bailian MCP servers in Codex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork (千问办公), Qwen Code, Gemini CLI, or Pi with channel attribution preserved
3030
- **Training & deployment** — Validate and upload datasets, fine-tune models, deploy dedicated models as endpoints
3131
- **Account operations** — Login, UI-based configuration, model marketplace, usage and quota, rate-limit increases, team seat management
3232
- **Plan onboarding** — Connect subscription plans such as Token Plan to the CLI and common coding agents in one step
@@ -67,7 +67,7 @@ One sentence builds a reusable cloud-side short-film director for storyboarding,
6767

6868
- **[Qwen Code](https://github.com/QwenLM/qwen-code)** — understands the requirement and generates the agent configuration
6969
- **[Aliyun Model Studio CLI](https://github.com/modelstudioai/cli/)** — validates the configuration, previews the changes, and completes the deployment
70-
- **[Managed Agent](https://bailian.console.aliyun.com/cn-beijing/?tab=managed-agents#/managed-agents/quick-start)** — runs the director role along with its skills and tools in the cloud
70+
- **[Managed Agent](https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=managed-agents#/managed-agents/quick-start)** — runs the director role along with its skills and tools in the cloud
7171

7272
### The single prompt
7373

@@ -124,7 +124,7 @@ Once installed, just describe your task to your AI Agent — no need to assemble
124124
| Decision model | "Use the Bailian decision model to route this ticket and assess whether it needs escalation." |
125125
| About Bailian CLI | "Tell me what Bailian CLI can do for me, and suggest how to use it for my needs." |
126126

127-
> More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&)
127+
> More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?spm=a2ty07.github)
128128
129129
## Authentication
130130

@@ -146,7 +146,7 @@ To use an existing ordinary API key or a Token Plan subscription key, run the sa
146146
bl auth login --api-key <API_KEY>
147147
```
148148

149-
Get an ordinary key from the [DashScope Console](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key), or a Token Plan key from the [subscription overview](https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview).
149+
Get an ordinary key from the [DashScope Console](https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key), or a Token Plan key from the [subscription overview](https://bailian.console.aliyun.com/cn-beijing?spm=a2ty07.github&tab=plan#/efm/subscription/overview).
150150

151151
### Alibaba Cloud OpenAPI AK/SK
152152

@@ -194,12 +194,12 @@ Scan the QR code to join the Aliyun Model Studio CLI DingTalk user group for usa
194194

195195
## Links
196196

197-
| Resource | URL |
198-
| :--------------------------- | :---------------------------------------------------------------------------------------- |
199-
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& |
200-
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ |
201-
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models |
202-
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/?source_channel=cli_github |
203-
| Get API Key | https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key |
204-
| Get Token Plan API Key | https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview |
205-
| Get AccessKey | https://ram.console.aliyun.com/manage/ak |
197+
| Resource | URL |
198+
| :--------------------------- | :-------------------------------------------------------------------------------------------------- |
199+
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?spm=a2ty07.github |
200+
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ |
201+
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models |
202+
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/?spm=a2ty07.github |
203+
| Get API Key | https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key |
204+
| Get Token Plan API Key | https://bailian.console.aliyun.com/cn-beijing?spm=a2ty07.github&tab=plan#/efm/subscription/overview |
205+
| Get AccessKey | https://ram.console.aliyun.com/manage/ak |

‎README.zh.md‎

Lines changed: 14 additions & 14 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-
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) · [English](https://github.com/modelstudioai/cli/blob/main/README.md) · [API 文档](https://help.aliyun.com/zh/model-studio/) · [获取 API Key](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key)
12+
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?spm=a2ty07.github) · [English](https://github.com/modelstudioai/cli/blob/main/README.md) · [API 文档](https://help.aliyun.com/zh/model-studio/) · [获取 API Key](https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key)
1313

1414
---
1515

@@ -25,7 +25,7 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
2525
- **模型生成** — 文本、图像、视频、语音全模态生成,支持编辑与参考生成
2626
- **素材理解** — 图像、文档、音频、长视频的解析与问答
2727
- **应用编排** — 调用百炼已发布的 Managed Agent、智能体和工作流,接入知识库、记忆库、联网搜索与 MCP 工具
28-
- **原生 MCP 接入** — 将百炼 MCP 服务注册到 Codex、Claude Code、Cursor、Qoder、Qoder Work、千问办公(QwenWork)、Qwen Code 或 Gemini CLI,并保留渠道归因
28+
- **原生 MCP 接入** — 将百炼 MCP 服务注册到 Codex、Claude Code、Cursor、Qoder、Qoder Work、千问办公(QwenWork)、Qwen Code、Gemini CLI 或 Pi,并保留渠道归因
2929
- **模型训推** — 数据集校验上传、模型精调、专属模型部署上线
3030
- **账号运维** — 授权登录、界面化配置、模型市场、用量与额度、限流提额、团队席位管理
3131
- **套餐接入** — 支持 Token Plan 等订阅计划一键接到 CLI 和常见 Coding Agent
@@ -66,7 +66,7 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
6666

6767
- **[Qwen Code](https://github.com/QwenLM/qwen-code)** —— 理解需求并生成 Agent 配置
6868
- **[阿里云百炼 CLI](https://github.com/modelstudioai/cli/)** —— 校验配置、预览变更并完成部署
69-
- **[Managed Agent](https://bailian.console.aliyun.com/cn-beijing/?tab=managed-agents#/managed-agents/quick-start)** —— 在云端运行导演角色及其 Skill 和工具
69+
- **[Managed Agent](https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=managed-agents#/managed-agents/quick-start)** —— 在云端运行导演角色及其 Skill 和工具
7070

7171
### 唯一的提示词
7272

@@ -123,7 +123,7 @@ irm https://bailian.aliyun.com/cli/install.ps1 | iex
123123
| 决策模型 | “用百炼决策模型给这张工单分流,并判断是否需要升级处理。” |
124124
| 了解 Bailian CLI | “介绍一下 Bailian CLI 能帮我完成哪些任务,并根据我的需求推荐使用方式。” |
125125

126-
> 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?source_channel=cli_github&)
126+
> 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?spm=a2ty07.github)
127127
128128
## 认证方式
129129

@@ -145,7 +145,7 @@ bl auth login --console
145145
bl auth login --api-key <API_KEY>
146146
```
147147

148-
普通 Key 前往 [DashScope 控制台](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key) 获取,Token Plan Key 前往 [订阅详情](https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview) 获取。
148+
普通 Key 前往 [DashScope 控制台](https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key) 获取,Token Plan Key 前往 [订阅详情](https://bailian.console.aliyun.com/cn-beijing?spm=a2ty07.github&tab=plan#/efm/subscription/overview) 获取。
149149

150150
### 阿里云 OpenAPI AK/SK
151151

@@ -193,12 +193,12 @@ bl update
193193

194194
## 相关链接
195195

196-
| 资源 | 地址 |
197-
| :---------------------- | :---------------------------------------------------------------------------------------- |
198-
| 阿里云百炼 CLI 官方主页 | https://bailian.console.aliyun.com/cli?source_channel=cli_github& |
199-
| DashScope API 文档 | https://help.aliyun.com/zh/model-studio/ |
200-
| 通义千问模型列表 | https://help.aliyun.com/zh/model-studio/getting-started/models |
201-
| 阿里云百炼控制台 | https://bailian.console.aliyun.com/?source_channel=cli_github |
202-
| 获取 API Key | https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key |
203-
| 获取 Token Plan API Key | https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview |
204-
| 获取 AccessKey | https://ram.console.aliyun.com/manage/ak |
196+
| 资源 | 地址 |
197+
| :---------------------- | :-------------------------------------------------------------------------------------------------- |
198+
| 阿里云百炼 CLI 官方主页 | https://bailian.console.aliyun.com/cli?spm=a2ty07.github |
199+
| DashScope API 文档 | https://help.aliyun.com/zh/model-studio/ |
200+
| 通义千问模型列表 | https://help.aliyun.com/zh/model-studio/getting-started/models |
201+
| 阿里云百炼控制台 | https://bailian.console.aliyun.com/?spm=a2ty07.github |
202+
| 获取 API Key | https://bailian.console.aliyun.com/cn-beijing/?spm=a2ty07.github&tab=app#/api-key |
203+
| 获取 Token Plan API Key | https://bailian.console.aliyun.com/cn-beijing?spm=a2ty07.github&tab=plan#/efm/subscription/overview |
204+
| 获取 AccessKey | https://ram.console.aliyun.com/manage/ak |

‎docs/agents/cli-e2e-tests.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
- kscli:`runKscli` from `packages/kscli/tests/e2e/helpers.ts`
4141
- 全量 leaf/group help 使用产品 `commands` 创建 `CommandRegistry`,先通过 `resolve([...path, "--help"])` 检查 help 路由,再用 `captureRegistryHelp` 检查完整 Usage;禁止在 `test.each(commandPaths/groupPaths)` 中逐条启动 `tsx` 子进程
4242
- 真实子进程只保留根 help/version、产品身份、代表性叶子 help/鉴权域和缺参退出码等 shell/stdio/env 契约
43+
- 子进程的 parser 错误和 help 文案遵循 Profile 语言;语义断言应兼容中英文,同时检查参数名和退出码,并使用独立的中英文配置复跑,避免依赖本机 Profile
4344

4445
### 共享
4546

‎docs/agents/command-flag-change.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
### B. 鉴权 / 全局选项
2525

2626
- [ ] 如果是**全局 flag**(所有命令通用),改 `packages/core/src/types/command.ts` 的 `GLOBAL_FLAGS`
27+
- [ ] 全局参数支持完整命令路径前置或后置;命令专属参数和凭证域参数只支持后置,路径各级之间不插入参数。改路由解析时,覆盖根/分组/显式 help 的无效参数校验、前后重复参数、Profile 选择和激活状态不变;纯裸命令与合法分组帮助仍返回 0,参数错误返回 2
2728
- [ ] 如果是凭证域 flag,优先确认是否属于 `MODEL_AUTH_FLAGS` 或 `CONSOLE_AUTH_FLAGS`;不要在单个命令里重复声明
2829
- [ ] 如果新 flag 影响有效配置面,改 `packages/core/src/config/schema.ts` 的 `Settings` 接口
2930
- [ ] 如果对应 env var 或 config 文件字段,改 `packages/core/src/config/loader.ts` 的 `buildSettings`

‎docs/agents/url-change.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ grep -rnE "https://dashscope[a-z-]*\.aliyuncs\.com" packages/ --include="*.ts" \
5656

5757
### C. 渠道追踪参数
5858

59-
- [ ] **当前现状**:TS 源码不带 `source_channel=...`;README / package README 中保留 `cli_github` / `key_github` 等用户入口追踪参数
60-
- [ ] 如未来调整追踪参数,统一评估 README、`packages/cli/README*`、`packages/core/README*` 与 package homepage,不要单点改造成不一致
61-
- [ ] grep `source_channel=`,确认每个残留都属于预期用户面文档或已批准的追踪入口
59+
- [ ] **当前现状**:TS 源码不带追踪参数;用户可点击的 `https://bailian.console.aliyun.com` 跳转(README、package README、skill setup 正文链接)统一带 `spm=a2ty07.github`。行内代码、站点标识、代码块里的域名没有跳转,不加
60+
- [ ] 如未来调整追踪参数,统一评估上述用户面文档,不要单点改造成不一致
61+
- [ ] grep `source_channel=` / `spm=`,确认每个残留都属于预期用户面文档或已批准的追踪入口
6262

6363
## 完成后自查
6464

0 commit comments

Comments
 (0)