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
9450895a06
test(commands): 添加dry-run参数测试支持文件检测
...
- 增加--dry-run参数的测试用例
- 验证在dry-run模式下无支持文件的退出码和错误信息
- 确保无支持文件时正确返回错误码2
2026-08-17 13:59:05 +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
gujieye
57c2d98308
Merge pull request #160 from modelstudioai/feat/skill-init-simplify
...
feat: update skill init output
2026-08-17 11:01:35 +08:00
故璃
79a0d2db9a
fix(permission): drop explicit undefined return and make revoke --all e2e credential-independent
2026-08-16 23:48:19 +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
故璃
4ccda5f929
feat: update skill init output
2026-08-15 10:15:00 +08:00
zeyu.fz
4086da572f
docs(knowledge): 修改多处参数描述为“精确匹配”并完善错误处理说明
...
- 将 category-list、file-list、service-list 等命令参数的描述更新为强调“精确匹配”
- file-list 命令中 --name 参数改为匹配不含扩展名的精确文件名,并在备注中补充说明
- kb-stats 命令严格校验时间格式,增强无效格式报错及提示
- 丰富知识相关测试用例,增加对不存在 ID 的服务端错误传递和非零退出的正向断言
- 优化知识文档上传测试,支持跳过 node_modules/.git 文件夹及显示被跳过文件详情
- 修正知识搜索及聊天流程中未发布版本号引发的服务器拒绝场景测试
- 更新知识模块命令文档,补充参数要求和用法提示,提升用户指引明确度
2026-08-14 23:59:05 +08:00
gujieye
a9b0a752a8
Merge pull request #155 from modelstudioai/feat/coding-plan-usage
...
feat: add coding plan usage
2026-08-14 17:36:47 +08:00
Gong Shiqi
2b7a0c742a
Merge pull request #156 from modelstudioai/feat/text-chat-responses-api
...
feat(text): support Responses API
2026-08-14 17:21:40 +08:00
Gong Shiqi
e5818e103c
Merge pull request #145 from modelstudioai/feat/change-skills-install
...
Switch official skill install to bl skill init
2026-08-14 17:21:24 +08:00
gujieye
5f1c97940d
Merge branch 'main' into feat/coding-plan-usage
2026-08-14 17:05:53 +08:00
若麒
94ccab0898
feat(text): support Responses API
2026-08-14 17:02:29 +08:00
若麒
f3c7b6fb10
docs(readme): add standalone installation options
2026-08-14 16:28:51 +08:00
若麒
eb196cb4a6
docs(readme): add standalone installation options
2026-08-14 16:26:47 +08:00
故璃
9133b6bdd1
feat: add coding plan usage
2026-08-14 15:56:16 +08:00
clh02467605
98ba3279fa
fix(runtime): expose errno in fetch-failed JSON cause.code
2026-08-14 15:27:26 +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
zeyu.fz
d5c4bd3572
docs(knowledge): 优化知识库文档内容及CLI说明
...
- 修改表格/图片知识库必须提供`--doc-id`的描述,更准确表达要求
- 调整CLI命令文档中过期或不准确信息,说明集合删除暂不支持
- 更新chunk添加命令中`--doc-id`的说明,强调对所有知识库类型均必需
- 精简chunk删除命令备注,明确批量操作自动分批处理
- 优化文档删除命令描述,强调删除异步传播及输出行为
- 修正文档状态命令中错误提示用词,更清晰表达
- 文件列表命令修改说明,明确默认分类ID不解析
- 知识库信息命令删除过时备注,突出索引设置不可变
- 服务删除命令简洁描述幂等性和权限要求
- 服务列表命令调整对场景参数的描述,明确必传要求
2026-08-14 13:40:08 +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
gujieye
bedd59df27
Merge branch 'main' into codex/usage-token-plan-reset-times
2026-08-13 19:54:06 +08:00
故璃
39a488181e
refactor(usage): align token-plan with --output convention and tolerant quota reading
2026-08-13 19:43:11 +08:00
若麒
4ec0f6828b
fix(update): sync skills after binary upgrades
2026-08-13 19:14:49 +08:00
clh02467605
4dcec7d075
fix(mcp): fix SSE header timeout, 405 fallback matching, and parseSSE chunking
2026-08-13 18:32:54 +08:00
zeyu.fz
30f7525d50
docs(commands): 更新知识库分块命令中 --doc-id 的描述和注意事项
...
- 说明 --doc-id 在实际使用中为必需,避免服务器返回 HTTP 500 错误
- 明确指出应使用 doc list 命令中的文档级别 ID,拒绝使用 chunk list 中的每行 doc_id
- 新增说明向图片类型文档添加文本块会触发服务器错误,建议使用文本类型文档
- 对帮助文档中相关描述和备注进行了同步更新,增强使用指导性和准确性
2026-08-13 16:42:19 +08:00
zeyu.fz
aa38d5c670
fix(commands): 修复知识库创建时请求ID未传递问题
...
- 在知识库创建成功日志中添加请求ID信息
- 确保导入作业失败消息中包含请求追踪数据
- 改进日志详细程度,方便问题排查
2026-08-13 16:25:34 +08:00
zeyu.fz
cc51164c2f
fix(knowledge): 优化导入任务轮询逻辑与失败信息展示
...
- 添加函数判断所有文档是否达到终止状态,防止服务器无限保持运行状态
- 修改失败信息函数,展示失败和成功文档详情,方便用户了解整体情况
- 调整轮询任务完成条件,新增所有文档终止状态判断,提升轮询准确性
- 改进轮询状态显示,增加失败文档数量与总计信息,清晰反馈任务进展
2026-08-13 16:18:37 +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
若麒
8a0dd70206
feat(cli): show command authentication requirements in help
2026-08-13 12:01:41 +08:00
clh02467605
9379da7a4c
fix(speech): align flash vocabulary_id and qwen3-filetrans language params
2026-08-13 09:47:09 +08:00
clh02467605
ddcd564e61
test: dry-run realtime ASR usage-error e2e to skip auth in CI
2026-08-12 17:22:25 +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
2d5c49b02e
fix(knowledge): 优化quiet和format参数的输出逻辑
...
- 在file-get命令中,quiet模式下仅输出fileId,避免了多余的结果格式化
- 在kb-info命令中,quiet模式仅输出id,格式化输出逻辑得到简化
- 在kb-stats命令中,去除了quiet判断,确保非"text"格式下正确输出结果
- 在service-get命令中,quiet模式下只输出agent_id,格式化部分调整为独立判断
- 统一了各命令中针对quiet和format参数的处理流程,提升代码一致性和可读性
2026-08-11 20:05:44 +08:00