若麒
cbd3c1232c
refactor(runtime): unify validation into UsageError; bare command shows help
...
- drop IncompleteCommandError: missing-required, failed validate, and bad/unknown
flags are all UsageError now
- error boundary keys on bareness — bare command that fails → help (exit 0);
non-bare invalid → error + message (exit 2)
- login: drop config.apiKey fallback, --api-key required-unless-console via validate
- speech: drop empty --text-file guard (empty content is the API's concern)
2026-06-27 10:56:28 +08:00
zeyu.fz
d2aa8cac17
docs(cli): 统一所有参考文档表格格式及添加全局参数说明
...
- 统一调整所有命令参考文档中的表格格式,使用简洁markdown表格语法替换旧格式
- 规范所有命令详情中的字段表头格式,保持一致性
- 在索引中添加全局参数列表,列出所有命令通用的全局标志选项
- 修正配置键名称中的小错误(例如base_url写法统一)
- 优化目录索引部分格式,更加规范排列和对齐
- 未改变命令内容及描述,保证文档信息一致性
2026-06-26 19:15:26 +08:00
zeyu.fz
ead1bc0f5f
refactor(release): 重构发布流程并合并知识库发布逻辑
...
- 删除独立的 publish-knowledge.yml 工作流
- 在 publish.yml 中新增 package 选择,支持 bailian-cli 和 knowledge-studio-cli
- 发布脚本根据 package 参数传递 --knowledge 标志
- 修改发布任务并发组以包含 package 参数,避免冲突
- 调整发布稳定版与频道版任务名称显示 package 信息
- 精简发布依赖顺序注释,去除冗余部分
- 优化构建步骤,仅构建 bailian-cli-core 包
- 更新包管理代码,整合知识库相关包到统一发布流程
2026-06-26 18:12:35 +08:00
clark-fc
c303b51b9e
Merge pull request #82 from modelstudioai/feat/knowledge-publish-ci
...
refactor(ci): 合并知识库发布流程并支持多包发布
2026-06-26 18:04:07 +08:00
zeyu.fz
780ca6addb
refactor(ci): 合并知识库发布流程并支持多包发布
...
- 删除了单独的 publish-knowledge.yml 工作流
- 在 publish.yml 中添加 package 输入以支持多包发布
- 根据 package 选择性传递 --knowledge 标志给发布脚本
- 更新并重命名发布任务以反映 package 区别
- 修改并扩展并发组以包含 package 维度
- 注释更新,说明 knowledge-studio-cli 通过主工作流发布并共享依赖
2026-06-26 18:01:58 +08:00
clark-fc
3375fca2f8
Merge pull request #81 from modelstudioai/feat/knowledge-publish-ci
...
feat(release): add --knowledge flag and publish-knowledge.yml workflow
2026-06-26 17:23:33 +08:00
zeyu.fz
a966b4077f
feat(release): add --knowledge flag and publish-knowledge.yml workflow
...
- packages.mjs: export KSCLI_PACKAGE and ALL_PACKAGES for knowledge-studio-cli
- check.mjs: support knowledge option to build/validate kscli
- validate.mjs: accept packages param, validate all packages in lockstep
- pack-scan.mjs: accept packages param
- publish-stable.mjs: refactor to iterate PACKAGES array; add --knowledge flag
- publish-channel.mjs: refactor to iterate PACKAGES array; add --knowledge flag
- New workflow publish-knowledge.yml: triggers publish with --knowledge flag
The original publish.yml (without --knowledge) publishes only core + cli.
The new publish-knowledge.yml publishes core + cli + knowledge-studio-cli.
2026-06-26 17:20:25 +08:00
zeyu.fz
4745d70587
feat(release): 支持 knowledge-studio-cli 的构建与发布流程
...
- 新增发布工作流 publish-knowledge.yml,支持 stable 和 channel 模式发布含 knowledge 的包
- runCheck 函数增加 knowledge 参数,支持同时构建和验证 knowledge-studio-cli 包
- publish-stable 和 publish-channel 脚本支持传入 knowledge 参数,调整发布的包列表
- packAndScan 函数支持指定发布包列表,增强灵活性
- 扩展 packages 模块,新增 ALL_PACKAGES 常量包含所有包(基础包加 knowledge-studio-cli)
- loadAndValidate
2026-06-26 16:53:59 +08:00
若麒
91e6c6f553
refactor(runtime): resolve/middleware kernel + declarative arg validation
...
把 main 从一堆 if + process.exit 重构为「argv 解析成数据 → 交给统一管线执行」。
内核
- resolve(argv) → Resolution(version/help/run/usageError):路由即数据,dispatch 只 switch
- compose 洋葱中间件 (versionCheck/telemetry/auth/runCommand),命令仍收 (config, flags)
- registry.locate() 统一 leaf/group/unknown,取代 isGroupPath + 抛异常的 resolve
- 删除 command-help.ts 全局可变单例:help 渲染收口到错误边界
错误模型
- 新增 UsageError(写错了 → exit 2) 与 IncompleteCommandError(没写完 → 打 help、exit 0)
- version / help / onboarding / 组帮助统一由 resolve 产出、dispatch 分派
参数与校验
- parseFlags 重写:无 positional、新增 switch 类型、值/类型/重复校验
- 无条件必填 → 解析器声明式强制 (OptionDef.required)
- 跨 flag / 条件约束 → 新增 command.validate(flags) 钩子
(text-chat / search-web / speech / vision / video-ref)
- 移除全部交互式输入 (promptText/Select/Confirm),缺输入直接打 help
输出
- detectOutputFormat 默认 text,不再按 TTY 切 json
测试
- 删除 3 个 stale cli 测试,runtime 单测重写 (29 passed),e2e 适配新行为
2026-06-26 16:50:12 +08:00
zeyu.fz
eaa6b07c7d
build(kscli): 构建并发布 knowledge-studio-cli 包
...
- 将 knowledge-studio-cli 版本更新至 1.4.0
- 在发布脚本中新增 knowledge-studio-cli 构建步骤
- 更新包依赖顺序,加入 knowledge-studio-cli 包
- 确保知识库检索相关 CLI 正确构建发布
2026-06-26 16:24:17 +08:00
zeyu.fz
ca69316446
feat(cli): 新增 knowledge search 和 knowledge chat 命令支持
...
- 在 CLI 命令中添加 knowledgeSearch 和 knowledgeChat 两个新命令
- 新增 knowledge 搜索命令,支持多模态图像检索及对话历史上下文传递
- 新增 knowledge 问答命令,支持多轮消息流式回答及多模态输入
- 在核心客户端库(core)中添加对应的 API 端点和类型定义
- 知识库检索接口 retrieve 标注为弃用,推荐使用 search 命令替代
- 更新 kscli 主程序入口,接入新命令并兼容旧命令
- 补充 e2e 测试覆盖 knowledge search 和 knowledge chat 的各类边界与流程
- 更新文档及命令示例,实现使用说明同步最新功能
- 增加测试配置,改善 E2E 测试环境与超时设置
2026-06-26 15:52:44 +08:00
若麒
9c8fe96a1f
build(release): publish runtime + commands alongside core/cli; minify library builds
2026-06-26 14:17:27 +08:00
故璃
18d5c420df
feat: add cpt dataset type
2026-06-25 19:59:17 +08:00
故璃
9ad85b6278
fix: test issue
2026-06-25 19:26:55 +08:00
故璃
82bdf9ed78
fix: resolve cr issue
2026-06-25 17:48:52 +08:00
故璃
4383eeb416
fix: fix variable name
2026-06-25 16:16:55 +08:00
zeyu.fz
46d8474ec1
feat(kscli): 新增 Knowledge Studio CLI 轻量级 RAG 命令行工具
...
- 用于阿里云 Model Studio 的知识库检索,支持 RAG(检索增强生成)场景
- 提供配置查看与设置、知识库检索、自更新功能
- 替换原 rag 子包,移除 rag 相关代码及配置
- 新增独立 package,包含完整的构建、启动和发布配置
- 添加详细的中英文 README 文档说明安装、使用与认证方式
- 配置 TypeScript 和 Vite 构建支持,确保开发体验和构建质量
- 更新根 package.json 脚本,将 rag dev 命令替换为 kscli dev
- 新增 Git 忽略文件,排除日志、构建输出等无关文件
2026-06-25 15:08:35 +08:00
故璃
1851ec85f0
feat: sync readme
2026-06-25 14:22:26 +08:00
故璃
0797b0767f
Merge branch 'main' into feat/model-train
2026-06-25 14:02:23 +08:00
故璃
17f4454df4
feat: refact validator to support dpo dataset
2026-06-25 13:56:15 +08:00
故璃
e67615eabd
feat: auto update
2026-06-24 20:50:30 +08:00
ls
39513200bc
Merge pull request #79 from modelstudioai/token-plan-openapi
...
Token plan openapi
2026-06-24 17:39:00 +08:00
ls
7b5bb1c341
Merge pull request #76 from budiga/token-plan-openapi
...
Token plan openapi
2026-06-24 17:38:25 +08:00
故璃
e0a7c86f05
feat: update doc
2026-06-24 17:29:12 +08:00
ls
908439e3f9
Merge pull request #75 from modelstudioai/token-plan-openapi
...
feat(token-plan): add Token Plan organization & seats commands
2026-06-24 17:28:22 +08:00
若麒
7a0a083b2e
refactor(core): replace skipDefaultApiKeySetup with required auth field
...
Commands now declare their credential requirement explicitly via a
required `auth: "apiKey" | "console" | "none"` field instead of the
boolean `skipDefaultApiKeySetup`. The runtime prepares credentials
based on this declaration and skips API-key setup under --dry-run.
- core: add AuthRequirement type and required `auth` field to
Command/CommandSpec; drop skipDefaultApiKeySetup
- runtime: gate API-key setup on `auth === "apiKey" && !dryRun`
- commands: annotate all 45 commands (apiKey 25 / console 11 / none 9)
2026-06-24 16:41:09 +08:00
若麒
61689ec0da
build: jump to source across packages via @bailian-cli/source export condition
2026-06-24 16:14:20 +08:00
雷骏
ba78d13a52
feat: add auto update cli
2026-06-24 15:31:24 +08:00
若麒
24abdbf450
refactor(commands): decouple command paths from binary name; drop path presets
...
Commands no longer hardcode "bl" or their path — the runtime renders the
`<bin> <path>` prefix from each product's registry key, so shared commands
show `bl knowledge retrieve` / `rag retrieve` from one codebase. commands
package now exports only individual commands (no groups/catalog); bl and rag
each spell out their own path map. Also removes the unused export-schema command.
2026-06-24 14:40:08 +08:00
故璃
cbffe6c541
Merge branch 'main' into feat/model-train
2026-06-24 14:19:58 +08:00
故璃
d567d6af0c
feat: setup model train/deploy cli commend
2026-06-24 14:01:28 +08:00
wb-liuxuehuan
33b1df01cc
Merge remote-tracking branch 'upstream/token-plan-openapi' into token-plan-openapi
2026-06-24 13:02:35 +08:00
lisheng.lisheng
0ba705f194
refactor(token-plan): rename top-level command tokenplan -> token-plan
...
Rename the public command group from `bl tokenplan` to `bl token-plan`
for kebab-case consistency. Source directory and reference doc renamed
accordingly; remote API paths (/tokenplan/...) and internal TS
identifiers are unchanged.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-06-24 12:48:19 +08:00
wb-liuxuehuan
23d409f9ff
Merge remote-tracking branch 'upstream/token-plan-openapi' into token-plan-openapi
2026-06-24 12:46:53 +08:00
wb-liuxuehuan
70ccc6a447
feat(tokenplan): 修改Token Plan 命令名称及相关优化
...
新增 `token-plan` 相关命令,包括 `add-member`、`assign-seats`、`create-key` 和 `list-seats`,支持管理 Token Plan 组织成员和 API 密钥。更新了命令的参数处理逻辑,确保对输入参数的验证更加严格,提升了代码的可读性和健壮性。同时,更新了相关文档,提供使用示例和参数说明。
2026-06-24 12:44:14 +08:00
lisheng.lisheng
b7fba7679e
chore: update Node.js version to 24
2026-06-24 12:34:43 +08:00
ls
88e5b903bc
Merge pull request #74 from budiga/token-plan-openapi
...
Token plan openapi
2026-06-24 12:33:51 +08:00
wb-liuxuehuan
ba1661356f
feat(tokenplan): 重构 Token Plan 命令以支持新功能
...
对 `tokenplan` 相关命令进行了重构,新增了 `ak-sign` 模块以支持 ACS3-HMAC-SHA256 签名,优化了参数处理逻辑,简化了对凭证的处理。更新了 `add-member`、`assign-seats`、`create-key` 和 `seats` 命令,增强了对参数的验证和处理,确保代码的可读性和健壮性。同时,新增了类型定义和工具函数以支持更好的代码结构。
2026-06-24 11:14:57 +08:00
Gong Shiqi
60c49ec1ac
Merge pull request #72 from modelstudioai/chore/list-voices
...
feat(omni,speech): add --list-voices and fix cosyvoice voice ID
v1.4.2
2026-06-24 10:40:10 +08:00
若麒
07c71412cf
chore(release): 1.4.2
2026-06-24 10:35:26 +08:00
若麒
e2c4935e84
Merge remote-tracking branch 'origin/main' into chore/list-voices
2026-06-24 10:29:15 +08:00
Gong Shiqi
4f10b7f50c
Merge pull request #71 from modelstudioai/feat/console-login-site
...
feat: Add default login site selection for agent
2026-06-24 10:16:20 +08:00
wb-liuxuehuan
dc5a535bf3
Merge remote-tracking branch 'upstream/main' into token-plan-openapi
2026-06-24 10:12:18 +08:00
若麒
ad236e9b11
test(runtime): move unit tests from cli to runtime package
2026-06-23 19:32:21 +08:00
wb-liuxuehuan
14105547e8
fix(tokenplan): 优化参数处理逻辑
...
更新 `assign-seats` 和 `seats` 命令中的参数处理逻辑,简化对 AccountIds 和 StatusList 的检查,确保在缺少必要参数时抛出相应错误。同时,增强对 `--query-assigned` 参数的验证,确保其值为 'true' 或 'false'。此更改提高了代码的可读性和健壮性。
2026-06-23 18:27:12 +08:00
若麒
d971a04fb8
refactor(cli): split into runtime / commands packages for composable CLIs
...
Decompose the monolithic `cli` package into three layers so multiple
products can be assembled from a shared base:
- bailian-cli-runtime: framework infra (createCli, registry, args,
output, pipeline, utils) — product-agnostic
- bailian-cli-commands: command library, grouped (base/knowledge/text/
media/memory/misc) so each product picks the sets it needs
- packages/cli (bl): full command set; packages/rag (rag): base +
knowledge only
Product identity (binName / clientName / npmPackage) is injected at the
createCli boundary and required there, with no per-consumer defaults.
2026-06-23 17:51:14 +08:00
wb-liuxuehuan
1590e69d67
feat(tokenplan): 更新 AccountIds 参数处理逻辑
...
修改 `assign-seats` 命令中的 AccountIds 参数处理,将字符串类型的 AccountIds 转换为数组。同时,更新相关的测试用例以验证新逻辑的正确性。
2026-06-23 17:42:10 +08:00
clh02467605
fd36db5cab
fix: remove unsupport voice
2026-06-23 17:08:37 +08:00
wb-liuxuehuan
d74686f09f
feat(tokenplan): 添加 Token Plan 相关命令
...
新增 `tokenplan add-member`、`tokenplan assign-seats` 和 `tokenplan create-key` 命令,支持管理 Token Plan 组织成员和 API 密钥。相关文档已更新,提供使用示例和参数说明。
2026-06-23 16:51:54 +08:00
clh02467605
30a0bbbc87
fix: fixed omni e2e
2026-06-23 15:34:52 +08:00