故璃
9e6f5ca9cb
fix(skill): retry registry fetches and tolerate blocked backup cleanup
...
- bl skill init: raise index timeout 10s→30s and retry transient network
failures (3 attempts); advisor sync silent channel stays fail-fast
- make post-swap backup deletion best-effort so host safe-delete guards
cannot fail a completed install (postinstall.js mirror included)
- add unit coverage for guard-blocked cleanup and registry retry policy
2026-09-01 16:37:12 +08:00
若麒
8a7674e7c3
chore(release): prepare 1.18.1
2026-08-28 15:37:15 +08:00
若麒
17ffde4ac2
chore(release): prepare 1.18.0
2026-08-27 11:33:50 +08:00
若麒
9600f06205
Merge remote-tracking branch 'origin/main' into feat/profile-capability-fallback
...
# Conflicts:
# skills/bailian-gen/reference/index.md
2026-08-26 19:27:01 +08:00
若麒
fc3ac36d00
Merge branch 'main' into feat/profile-capability-fallback
2026-08-26 18:54:01 +08:00
若麒
d343dc3265
fix(auth): only apply profile presets on login
2026-08-26 17:10:00 +08:00
若麒
670c15532b
feat(auth): expand Token Plan capabilities and speech defaults
2026-08-26 13:42:27 +08:00
clh02467605
4c51c95f31
feat(video): switch default video model to wan3.0-video and adapt All-in-One support
...
- Update default models for video generate/ref and config UI to wan3.0-video
- Add --file file-to-video support for wan3.0; route kf2v through media[] instead of image2video
- Emit reference voices as standalone reference_audio entries on wan3.0 ref
- Sync e2e/stress tests and bailian-gen reference docs
2026-08-24 18:00:52 +08:00
zeyu.fz
78a1c547d3
fix(cli): 修复知识库创建描述必填及配置更新误报警告
...
- `knowledge create` 命令新增 `--description` 参数,设置为必填并且在本地校验长度限制
- 修正 `knowledge service update` 命令更新配置时,避免对服务返回的已知字段误报未知字段警告
- 更新命令帮助文案,明确描述类参数的具体用途
- `knowledge retrieve --rerank-model` 参数帮助说明补充前置条件,提示需预先配置重排序模型
- 新增 `bailian-web-search` 路由技能,支持智能选择搜索入口
- 添加完整的 Knowledge Studio CLI 命令手册,包含详细示例及覆盖范围
2026-08-22 13:09:53 +08:00
zeyu.fz
a6291e00e1
docs(knowledge): 强制添加知识库描述参数
...
- 升级知识库创建命令,`--description` 参数变为必填,描述知识库内容和用途
- 更新所有相关文档示例,统一加入 `--description` 参数和示例文本
- CLI 校验增强,缺失或超长的描述参数本地报错,避免服务端拒绝
- 优化服务创建命令,推荐填写描述以帮助 agent 选择合适服务
- 多个测试用例添加对描述参数的验证和断言
- 知识库和集合列表中描述信息作为区分同类项目的辅助信息显式展示
- 其他细节调整包括命令帮助及参数说明内容的更新
2026-08-22 11:21:22 +08:00
若麒
e31addf0d6
Merge branch 'main' into feat/bilingual-quick-start-examples
2026-08-18 14:33:34 +08:00
chenanran555
7aa6aab7d7
chore(release): prepare 1.17.0
2026-08-17 17:28:01 +08:00
clark-fc
ad5c44d746
Merge pull request #166 from modelstudioai/feat/iteration1-w1-foundation
...
Feat/iteration1 w1 foundation
2026-08-17 14:08:56 +08:00
zeyu.fz
e681263049
feat(cli): 增加知识库全生命周期管理命令
...
- 新增知识库管理命令实现创建、查询、更新、删除等功能
- 支持文档上传、本地目录扫描及OSS导入,覆盖完整文档生命周期
- 增加检索与问答服务的管理及部署操作
- 实现文档切片管理,支持添加、列表、更新和删除功能
- 引入数据中心管理命令,管理类目、文件和数据集
- 检索和问答支持指定服务版本参数,方便调试和版本控制
- 所有知识库命令同步支持kscli工具,提供更短命令路径
- 移除无效参数`bl knowledge search --query-history`,建议改用聊天命令传递历史
- 请求增加静态OpenAPI来源标识请求头,改进后台渠道归因
- 添加知识库端到端测试套件,覆盖多条使用场景
- 版本号统一更新至1.16.0,文档同步更新相关版本信息
2026-08-17 13:40:44 +08:00
zeyu.fz
70b50060cf
Merge remote-tracking branch 'origin/main' into feat/iteration1-w1-foundation
2026-08-17 12:55:57 +08:00
故璃
3909a17da1
Merge branch 'main' into feat/cli-skill-sync
2026-08-17 12:51:26 +08:00
故璃
640dd02bc5
chore(release): prepare 1.15.1
2026-08-17 11:55:36 +08:00
故璃
8e6af6c669
feat: update model quota limit & add model permission command
2026-08-16 19:49:23 +08:00
若麒
cdf94a8c89
chore(release): prepare 1.15.0
2026-08-15 14:33:55 +08:00
故璃
7461189007
Merge branch 'main' into feat/cli-skill-sync
2026-08-15 10:22:09 +08:00
若麒
2fe50f59a4
feat(commands): localize command help examples
2026-08-14 17:15:46 +08:00
若麒
94ccab0898
feat(text): support Responses API
2026-08-14 17:02:29 +08:00
若麒
23f1ab7fd4
feat(commands): localize remaining command help
2026-08-14 15:54:38 +08:00
clh02467605
3b7c4cfabc
Merge remote-tracking branch 'refs/remotes/origin/main' into feat/mcp-support-sse
2026-08-14 14:42:21 +08:00
clh02467605
d5d9fcb50f
fix: fixed sse error
2026-08-14 14:41:37 +08:00
若麒
f67ca55ec6
feat(commands): localize multimodal command help
2026-08-14 11:42:16 +08:00
zeyu.fz
eb4f9af3e7
fix(knowledge): 修正 getConnector 不返回 fileConnectorConfig 问题
...
- 移除 collection-get 命令中对 fileConnectorConfig 字段的输出
- 文档中补充说明 getConnector 不返回 storeType、regionId、bucketName 等字段
- 更新类型定义,去除 RagConnectorInfo 中的 fileConnectorConfig 字段
- 明确这些字段只在创建连接时请求体中传入,查询时不可读取
2026-08-14 11:21:44 +08:00
clh02467605
3ea2931152
fix(mcp): harden SSE parsing, abort, and fallback matching
2026-08-14 11:11:47 +08:00
zeyu.fz
b7a4efe619
feat(speech): 支持同步Flash ASR模型和异步文件转录模型
...
- 新增同步Flash ASR模型请求流程,支持单音频文件识别
- 实现了对同步Flash模型不支持异步标志及参数的限制校验
- 异步文件转录模型支持单文件URL上传和语言参数细化
- 优化异步和同步鉴权域显示,丰富根帮助和分组帮助提示
- speech recognize增加dry-run测试覆盖多种识别场景
- free-tier自动停用功能优化,改用统一轮询函数处理批量请求
- 统一轮询逻辑,支持console和telemetry接口的异步任务完成判定
- 规范输出格式和错误提示,增强用户调试体验
- 版本升级到1.14.3,更新示例参数和模型ID引用
2026-08-14 11:07:21 +08:00
clh02467605
4dcec7d075
fix(mcp): fix SSE header timeout, 405 fallback matching, and parseSSE chunking
2026-08-13 18:32:54 +08:00
若麒
6b685964f3
feat(runtime): support colocated localized CLI help text
2026-08-13 16:12:09 +08:00
clh02467605
ae0c2c1213
fix(speech): handle qwen3-filetrans singular result.transcription_url
...
Normalize async ASR transcription items so waiting mode downloads text and --out works without changing shared media task types.
2026-08-13 15:52:34 +08:00
clh02467605
01a62eb85b
Merge remote-tracking branch 'refs/remotes/origin/main' into feat/mcp-support-sse
2026-08-13 15:40:04 +08:00
clh02467605
798ce596f6
fix(mcp): harden SSE fallback for Bailian and --url overrides
2026-08-13 15:37:32 +08:00
clh02467605
bd91e9d1c2
Merge remote-tracking branch 'refs/remotes/origin/main' into fix/fixed_issue_146
...
# Conflicts:
# skills/bailian-gen/reference/index.md
# skills/bailian-gen/reference/speech.md
2026-08-13 14:36:16 +08:00
clh02467605
e244771ee9
test(speech): harden flash ASR contract coverage and docs
...
Add SSE disable header, data-URI format inference, broader response text
parsing, HTTP contract e2e, pipeline routing tests, and ASR model selection
guidance in bailian-gen.
2026-08-13 14:25:47 +08:00
clh02467605
9379da7a4c
fix(speech): align flash vocabulary_id and qwen3-filetrans language params
2026-08-13 09:47:09 +08:00
clh02467605
241de61866
fix: support sync-flash and qwen3-filetrans ASR models in speech recognize
...
- Add asr-routes.ts with resolveAsrApi() to route models to the correct
DashScope endpoint instead of always hitting asr/transcription
- Async filetrans: fun-asr / paraformer / *-filetrans → file_urls (plural)
- Async filetrans (qwen3): qwen3-asr-flash-filetrans* → file_url (singular)
- Sync flash (input-audio): fun-asr-flash* / qwen-audio-*-asr-flash → multimodal-generation
- Sync flash (qwen3): qwen3-asr-flash* → multimodal-generation + asr_options
- Realtime/streaming models now give a clear USAGE error instead of a
confusing server-side "url error"
- Propagate same routing logic to pipeline speechRecognize step
- Add table-driven unit tests and dry-run e2e assertions
Fixes #146
2026-08-12 17:12:23 +08:00
故璃
61d9a74166
fix: 1.14.3
2026-08-12 17:05:18 +08:00
故璃
69eb759490
refactor(usage): consolidate shared poll logic; migrate freeTrial APIs to bailian-commerce
...
Dedup:
- shared.ts: extract generic pollConsoleUntilDone (request-builder callback
absorbs each wrapper convention); pollTelemetryApi becomes a thin wrapper;
add pollFreeTierBatch
- freetier.ts / stats.ts: drop inline duplicates of extractResponseData,
polling, model-list paging, free-tier extractors and usage label maps;
import from shared.ts (behaviour unchanged: freetier keeps its 20-poll
budget, telemetry keeps 30)
Endpoint migration (broadscope-bailian.freeTrial -> bailian-commerce.freeTrial):
- queryFreeTierQuota, queryFreeTierOnlyStatus, batchActivateFreeTierOnly,
batchDeactivateFreeTierOnly
- update the console call example and the gateway doc comment to match
Note: verified statically and via dry-run; live calls pending a fresh
console login (session expired).
2026-08-12 16:30:08 +08:00
clh02467605
313966d7a9
feat(mcp): add SSE support with fallback mechanism for MCP connections
...
- Add McpSseClient implementation for classic HTTP+SSE MCP protocol
- Implement connectBailianMcpWithFallback with Streamable HTTP to SSE fallback
- Add isStreamableHttpUnsupported helper to detect 405 streamableHttp errors
- Update activate-hint logic to handle WebSearch 405 streamableHttp cases
- Replace direct MCP client usage with connection manager in call/tools commands
- Add proper client cleanup with close() calls in finally blocks
- Export new MCP connection utilities and types from core client module
- Add comprehensive tests for SSE client and fallback behavior
2026-08-12 15:44:51 +08:00
故璃
d74d4efcd0
fix(dataset): align validation with the platform data-format rules doc
...
Reviewed against the official text-tuning data rules; fixes two confirmed
mismatches and fills enforcement gaps:
- thinking: exempt assistant messages carrying tool_calls from the
THINK_TAG_NOT_LAST check — the spec's tool+thinking combo example puts
<think> on a non-last assistant and was previously false-flagged
- DPO support matrix: reject image/video content items, tools, tool_calls
and role:tool (DPO_UNSUPPORTED_ELEMENT); also scan chosen/rejected
- DPO: messages not ending with user upgraded warning -> error
- OpenAI migration: name/weight upgraded warning -> error (spec: must not
carry); drop dead record-level name branch
- tool_call_id: unmatched tool response upgraded warning -> error
(one-to-one per spec); new TOOL_CALL_NO_RESPONSE warning for orphan calls
- loss_weight: validate range at message level too; warn when placed on
anything but the last assistant message (LOSS_WEIGHT_PLACEMENT)
- video params: fps/sample_fps must be within [0.1, 10]
(INVALID_VIDEO_FPS); mode-mismatched params warned
(VIDEO_PARAM_MODE_MISMATCH); video_start/video_end type-checked
- zip: skip macOS packaging metadata (__MACOSX/, .DS_Store, ._*) in
filename constraints and image counting to stop false failures on
Finder-created archives
Tests 45 -> 59 covering every new/changed rule, including a replica of the
spec's official tool+thinking example.
2026-08-12 10:09:10 +08:00
故璃
e7422bd2e5
fix(dataset): align validation rules with platform data format spec
...
- Support content array format [{text/image/video}] alongside legacy string
- Add tool role support with tool_calls structure and tool_call_id validation
- Add thinking tag placement check (only in last assistant message)
- Add OpenAI migration guards: warn on unsupported name/weight fields
- Add loss_weight range validation (0.0–1.0)
- Fix size limits: SFT/DPO 200MB, CPT 300MB, media ZIP 2GB
- Enforce data.jsonl at ZIP root (reject nested wrapping folders)
- Add ZIP filename constraints: charset [a-zA-Z0-9_-], length ≤120, uniqueness
- Add .tif to accepted image extensions
- Add DPO_LAST_MSG_NOT_USER warning when messages don't end with user role
- CPT profile now uses dedicated 300MB cap instead of shared default
- Expand unit tests from 19 to 45 covering all new validation paths
2026-08-12 07:48:11 +08:00
zeyu.fz
9bd8b60c22
refactor(knowledge-search): 移除对 query-history 功能的支持及相关代码
...
- 从文档中删除了 query-history 参数及示例
- 删除命令行接口中 query-history 相关 flag 定义
- 移除解析和传递 query-history 的逻辑代码
- 调整测试用例,去除对 query-history 的相关断言和测试
- 更新帮助文档,删除 query-history 相关说明和示例
- 精简接口类型定义,去除 query_history 字段
2026-08-11 19:44:00 +08:00
故璃
2965080cb7
feat(skills): replace foreign skill dirs containing SKILL.md during fan-out
...
Previously, fan-out skipped any existing real directory not recorded in
the lock file, treating it as user content. This left stale skill copies
installed by other tools (e.g. npx skills add) permanently out of date.
Now: if the directory contains a SKILL.md, it is recognized as a skill
artifact and replaced with a symlink to the canonical dir. Directories
without SKILL.md are still preserved (user content safety boundary).
2026-08-11 14:29:10 +08:00
zeyu.fz
4343fc87af
feat(core): 添加并统一管理 x-dashscope-openapisource 请求头
...
- 在 headers.ts 中新增 OPEN_API_SOURCE 常量,作为静态的 OpenAPI 源标识
- 在 trackingHeaders 函数中添加 x-dashscope-openapisource 请求头
- 更新 client/index.ts 以导出 OPEN_API_SOURCE
- 在 instrumented-fetch.test.ts 中添加对应请求头的测试,确保其正确添加或省略
- 修改文档注释,明确 x-dashscope-openapisource 与 x-dashscope-source-config 的用途和区别
2026-08-11 14:20:44 +08:00
故璃
5d1b7aac3a
Merge branch 'main' into feat/cli-skill-sync
2026-08-11 10:47:45 +08:00
zeyu.fz
99a3dbae2d
Merge remote-tracking branch 'origin/main' into feat/iteration1-w1-foundation
2026-08-10 15:26:18 +08:00
故璃
946b7029c6
feat: add version 1.14.2
2026-08-07 17:42:31 +08:00
故璃
eb6c2b8e2a
Merge branch 'feat/model-finetune-opt' into feat/cli-skill-sync
2026-08-07 14:26:38 +08:00