diff --git a/CHANGELOG.md b/CHANGELOG.md index 191b7884..cfde70d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,33 +6,28 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and [中文版](CHANGELOG.zh.md) · [README](README.md) · [Contributing](CONTRIBUTING.md) -## [2.7.3] - 2026-11-03 +## [2.8.0] - 2026-11-03 ### Added -- **Custom model import**: Add `bl cmodel base-models/import/get/list/watch/delete` to import Bailian base models as custom models. - - `cmodel base-models` lists base models eligible for import (console API; import is currently available in the Beijing region only). - - `cmodel import` submits an import job with weight type, display name, and optional bucket/object-key, validating the base model against the console-supported import list before submission. - - `cmodel watch --job-id ` tracks import job progress with `--follow`, polling interval, and timeout options. - - `cmodel get/list/delete` query and remove imported custom models. +- **Aliyun CLI integration**: Support invocation through `aliyun bl`, with host-aware help, examples, recovery hints, and structured commands. +- **AK/SK authentication**: Support `BAILIAN_ACCESS_KEY_ID`, `BAILIAN_ACCESS_KEY_SECRET`, and optional `BAILIAN_SECURITY_TOKEN`. Automatically obtain Console tokens with AK/SK when missing or expired. +- **Custom model import**: Add `bl cmodel base-models/import/get/list/watch/delete` to import custom models from OSS, list supported base models, track import jobs, and query or delete imported models. The import API is currently available in the Beijing region only. ### Changed -- **Unified output contract**: Route every command family through one invocation output contract (result / progress / info / warning / debug). Progress and informational messages go to stderr and are hidden in quiet mode; warnings and errors are always preserved. In JSON mode, warnings and errors are emitted as single-line JSON on stderr. Quiet mode no longer trims result fields and gains a `DASHSCOPE_QUIET=1` environment variable. -- **Advisor thinking disabled**: `bl advisor recommend` LLM calls no longer use thinking mode; intent analysis was the only thinking stage. `--no-thinking` remains accepted as a deprecated no-op for existing scripts. +- **Command output**: JSON mode returns complete business results, with warnings, diagnostics, and errors written separately to stderr as JSONL for scripts and Agents. +- **Quiet mode**: Hide only progress and informational messages while preserving complete results, warnings, and errors. Support `DASHSCOPE_QUIET=1`. Scripts extracting IDs, paths, or answers through quiet mode should explicitly read fields from JSON output. +- **Credential precedence**: Resolve AK/SK in this order: command parameters, Bailian environment variables, Bailian configuration, then Alibaba Cloud environment variables. +- **Model recommendations**: Disable thinking for recommendation LLM calls; keep `--no-thinking` accepted for compatibility. +- **Output mode validation**: Explicitly validate supported formats for interactive login, local UI, Pipeline event streams, and streaming speech synthesis to avoid mixed output. Use text output for native interactive modes and Pipeline JSONL events, and specify `--out` for streaming speech synthesis in JSON mode. ### Fixed -- **Root help configuration**: Reuse the loaded configuration when rendering root help, preserving parsed flags, Profile selection, and credential precedence. -- **Duplicate error messages**: Stop repeating the redundant normalization cause in text errors while preserving explicit causes, error codes, JSON details, and verbose stacks. -- **SDK warnings and empty ASR results**: Preserve SDK warnings and empty ASR task results in managed-agent workflows and `bl speech recognize`. -- **Finetune fee diagnostics**: `bl finetune fee` now emits gateway diagnostics for fee queries in verbose mode. - -### Internal - -- Instrument advisor LLM requests for telemetry. -- Align all command tests and guidance with the output contract; optimize CLI test suites and shard CI test jobs. -- Clarify quiet output behavior in the CLI and Knowledge Studio READMEs. +- **Speech recognition**: Preserve complete responses and transcriptions in JSON output, including task information when no transcriptions are returned. +- **Managed Agent warnings**: Preserve SDK warnings in quiet and JSON modes. +- **Update notices**: Display available updates even when using cached version results. +- **Error diagnostics**: Avoid duplicate error messages and improve request diagnostics for model recommendations and fine-tuning fee queries. ## [2.7.2] - 2026-10-30 diff --git a/CHANGELOG.zh.md b/CHANGELOG.zh.md index 724d8240..5db87d8e 100644 --- a/CHANGELOG.zh.md +++ b/CHANGELOG.zh.md @@ -6,33 +6,28 @@ [English](CHANGELOG.md) · [README](README.zh.md) · [参与贡献](CONTRIBUTING.zh.md) -## [2.7.3] - 2026-11-03 +## [2.8.0] - 2026-11-03 ### 新增 -- **自定义模型导入**:新增 `bl cmodel base-models/import/get/list/watch/delete`,支持将百炼基础模型导入为自定义模型。 - - `cmodel base-models` 列出可导入的基础模型(控制台接口动态返回;导入当前仅北京地域开放)。 - - `cmodel import` 提交导入任务,支持权重类型、展示名称与可选 bucket/object-key,提交前按控制台可导入清单校验基础模型。 - - `cmodel watch --job-id ` 跟踪导入任务进度,支持 `--follow`、轮询间隔与超时配置。 - - `cmodel get/list/delete` 查询与删除已导入的自定义模型。 +- **Aliyun CLI 接入**:支持通过 `aliyun bl` 调用,帮助、示例、操作指引和结构化命令适配对应入口。 +- **AK/SK 鉴权**:支持 `BAILIAN_ACCESS_KEY_ID`、`BAILIAN_ACCESS_KEY_SECRET` 和可选的 `BAILIAN_SECURITY_TOKEN`;Console token 缺失或过期时,可通过 AK/SK 自动获取。 +- **自定义模型导入**:新增 `bl cmodel base-models/import/get/list/watch/delete`,支持从 OSS 导入自定义模型、查询可导入基础模型、跟踪导入任务,以及查询或删除已导入模型;导入 API 当前仅北京地域开放。 ### 变更 -- **统一输出契约**:全部命令统一走本次调用的输出契约(result / progress / info / warning / debug)。进度与过程提示写 stderr(quiet 下隐藏),警告与错误始终保留;JSON 模式下警告/错误以 stderr 单行 JSON 输出。quiet 不再裁剪结果字段,并新增 `DASHSCOPE_QUIET=1` 环境变量。 -- **Advisor 关闭思考模式**:`bl advisor recommend` 的 LLM 调用始终关闭思考模式(意图分析此前为唯一开启思考的阶段);`--no-thinking` 仍被接受但已无效果,为兼容旧脚本保留。 +- **命令输出**:JSON 模式返回完整业务结果,警告、诊断和错误以 JSONL 单独写入 stderr,方便脚本和 Agent 处理。 +- **quiet 模式**:只隐藏进度和过程提示,保留完整结果、警告及错误;支持 `DASHSCOPE_QUIET=1`。原先依赖 quiet 提取 ID、路径或回答的脚本,需改为读取 JSON 字段。 +- **凭证优先级**:AK/SK 按“命令参数 → 百炼环境变量 → 百炼配置 → 阿里云环境变量”解析。 +- **模型推荐**:关闭推荐过程中的思考模式,`--no-thinking` 保持兼容。 +- **输出模式校验**:交互式登录、本地 UI、Pipeline 事件流和语音流式输出明确各自支持的格式,避免产生混合输出;原生交互模式与 Pipeline JSONL 事件使用 text 输出,语音流式 JSON 输出需指定 `--out`。 ### 修复 -- **根帮助配置复用**:渲染根帮助时复用已加载的配置,保留 flag 解析、Profile 选择与凭证优先级。 -- **重复错误信息**:文本错误不再重复输出归一化 cause,同时保留显式 cause、错误码、JSON 详情与 verbose 堆栈。 -- **SDK 警告与空 ASR 结果**:managed-agent 工作流与 `bl speech recognize` 保留 SDK 警告与空的 ASR 任务结果。 -- **微调费用诊断**:`bl finetune fee` 在 verbose 模式下输出费用查询的 gateway 诊断信息。 - -### 内部 - -- Advisor LLM 调用接入请求埋点。 -- 全部命令测试与指引对齐输出契约;优化 CLI 测试套件并对 CI 测试任务分片。 -- 澄清 CLI 与 Knowledge Studio README 中 quiet 行为说明。 +- **语音识别**:JSON 输出保留完整响应和转写结果,空转写结果仍返回任务信息。 +- **Managed Agent 警告**:quiet 和 JSON 模式下保留 SDK 警告。 +- **更新提示**:使用缓存结果时仍能显示可升级通知。 +- **错误诊断**:避免重复错误信息,完善模型推荐和精调费用查询的请求诊断。 ## [2.7.2] - 2026-10-30 diff --git a/packages/bailian-kb-dsh/package.json b/packages/bailian-kb-dsh/package.json index 6d3a08a8..ac955113 100644 --- a/packages/bailian-kb-dsh/package.json +++ b/packages/bailian-kb-dsh/package.json @@ -1,6 +1,6 @@ { "name": "bailian-kb-dsh", - "version": "2.7.3", + "version": "2.8.0", "description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.", "keywords": [ "alibaba-cloud", diff --git a/packages/bailian-memo-dsh/package.json b/packages/bailian-memo-dsh/package.json index aae9017d..1a35ff6c 100644 --- a/packages/bailian-memo-dsh/package.json +++ b/packages/bailian-memo-dsh/package.json @@ -1,6 +1,6 @@ { "name": "bailian-memo-dsh", - "version": "2.7.3", + "version": "2.8.0", "description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.", "keywords": [ "alibaba-cloud", diff --git a/packages/cli/package.json b/packages/cli/package.json index eba18a8a..39f26635 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "bailian-cli", - "version": "2.7.3", + "version": "2.8.0", "description": "CLI for Aliyun Model Studio (DashScope) AI Platform.", "keywords": [ "agent", diff --git a/packages/commands/package.json b/packages/commands/package.json index 06137c08..c2c1fb71 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -1,6 +1,6 @@ { "name": "bailian-cli-commands", - "version": "2.7.3", + "version": "2.8.0", "description": "Command library for bailian-cli products (knowledge, memory, media, …). See https://www.npmjs.com/package/bailian-cli for usage.", "homepage": "https://bailian.console.aliyun.com/cli", "bugs": { diff --git a/packages/core/package.json b/packages/core/package.json index eb7f0705..afb1ee2f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "bailian-cli-core", - "version": "2.7.3", + "version": "2.8.0", "description": "Core SDK for bailian-cli. See https://www.npmjs.com/package/bailian-cli for usage.", "homepage": "https://bailian.console.aliyun.com/cli", "bugs": { diff --git a/packages/kscli/package.json b/packages/kscli/package.json index 4adc00d4..28f6e42d 100644 --- a/packages/kscli/package.json +++ b/packages/kscli/package.json @@ -1,6 +1,6 @@ { "name": "knowledge-studio-cli", - "version": "2.7.3", + "version": "2.8.0", "description": "Lightweight RAG CLI for Aliyun Model Studio — focused on knowledge-base retrieval.", "keywords": [ "alibaba-cloud", diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 57f08c9e..1c0e1a8c 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "bailian-cli-runtime", - "version": "2.7.3", + "version": "2.8.0", "description": "Runtime framework for bailian-cli (createCli, registry, args, output, pipeline). See https://www.npmjs.com/package/bailian-cli for usage.", "homepage": "https://bailian.console.aliyun.com/cli", "bugs": { diff --git a/skills/bailian-cli/SKILL.md b/skills/bailian-cli/SKILL.md index 1c0266ed..f55f56e1 100644 --- a/skills/bailian-cli/SKILL.md +++ b/skills/bailian-cli/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-cli metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-finetune/SKILL.md b/skills/bailian-finetune/SKILL.md index a958b2bc..844ebaca 100644 --- a/skills/bailian-finetune/SKILL.md +++ b/skills/bailian-finetune/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-finetune metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-gen/SKILL.md b/skills/bailian-gen/SKILL.md index e69664f2..40476092 100644 --- a/skills/bailian-gen/SKILL.md +++ b/skills/bailian-gen/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-gen metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-knowledge/SKILL.md b/skills/bailian-knowledge/SKILL.md index 91141e76..e79d1324 100644 --- a/skills/bailian-knowledge/SKILL.md +++ b/skills/bailian-knowledge/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-knowledge metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-managed-agent/SKILL.md b/skills/bailian-managed-agent/SKILL.md index fffd13d6..0e05c866 100644 --- a/skills/bailian-managed-agent/SKILL.md +++ b/skills/bailian-managed-agent/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-managed-agent metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-memory/SKILL.md b/skills/bailian-memory/SKILL.md index b4832dad..1b369f96 100644 --- a/skills/bailian-memory/SKILL.md +++ b/skills/bailian-memory/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-memory metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-protocol/SKILL.md b/skills/bailian-protocol/SKILL.md index 31ce4cf0..8e0b8bd8 100644 --- a/skills/bailian-protocol/SKILL.md +++ b/skills/bailian-protocol/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-protocol metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-sandbox/SKILL.md b/skills/bailian-sandbox/SKILL.md index 6cd73985..4b979054 100644 --- a/skills/bailian-sandbox/SKILL.md +++ b/skills/bailian-sandbox/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-sandbox metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >- diff --git a/skills/bailian-web-search/SKILL.md b/skills/bailian-web-search/SKILL.md index d9d77410..924c4b81 100644 --- a/skills/bailian-web-search/SKILL.md +++ b/skills/bailian-web-search/SKILL.md @@ -1,7 +1,7 @@ --- name: bailian-web-search metadata: - version: "2.7.3" + version: "2.8.0" requires: bins: ["bl"] description: >-