zeyu.fz
2ec2f34763
feat(cli): 支持多模态消息内容及图片URL数组
...
- 扩展聊天消息内容类型,支持文本和图片URL的数组形式
- 处理 --image 参数,将图片URL作为多模态内容附加到最后一条用户消息
- 若无用户消息且指定图片URL,自动创建空用户消息以承载图片内容
- 禁止同时使用内嵌图片内容和 --image 参数,避免冲突
- 将知识搜索接口请求的图片参数字段 image_list 重命名为 images
- 单元测试覆盖多模态内容及图片数组行为验证
- 优化消息解析,支持JSON结构化消息和 role:content 格式
- 更新API类型声明,明确多模态消息结构与字段类型
2026-06-29 13:36:32 +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
若麒
61689ec0da
build: jump to source across packages via @bailian-cli/source export condition
2026-06-24 16:14:20 +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
若麒
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
Gong Shiqi
1ffcbdd80c
Merge pull request #65 from modelstudioai/feat/optimize-skill
...
Feat/optimize skill
2026-06-18 18:05:07 +08:00
qcq01083097
07dafc0fd4
feat: The method to modify and update skills
2026-06-18 14:07:06 +08:00
若麒
c3df659ef0
Merge remote-tracking branch 'origin/main' into release/1.4.0
2026-06-17 21:07:39 +08:00
若麒
0ceb15b0be
fix(video): correct resolution/ratio flag descriptions
2026-06-17 20:26:55 +08:00
故璃
dc3c02f68c
fix: e2e test update logic
2026-06-17 19:51:21 +08:00
若麒
8906af8ad1
docs(readme): sync China-site-only notice to zh and cli-package READMEs
2026-06-17 17:21:25 +08:00
若麒
8c893a59ef
Merge remote-tracking branch 'origin/main' into release/1.4.0
2026-06-17 16:06:14 +08:00
若麒
611ecc1e68
chore(release): 1.4.0
2026-06-17 15:58:08 +08:00
故璃
edb34658a1
feat: temp save
2026-06-17 15:16:54 +08:00
ls
1fd08fe1c8
Merge pull request #56 from modelstudioai/feat/console-gateway-region-site
...
feat(console): resolve gateway URL from region + site, add switchAgent
2026-06-17 14:49:28 +08:00
故璃
8cb24b719b
feat: merge main
2026-06-17 14:43:13 +08:00
qcq01083097
d4c0809951
feat: resolve conflict
2026-06-17 14:43:01 +08:00
故璃
b01d35c246
Merge branch 'main' into feat/update-intent-model
2026-06-17 14:35:14 +08:00
Gong Shiqi
67ff4d2811
Merge pull request #63 from modelstudioai/feat/i18n-english-only
...
feat(cli): standardize user-facing CLI text to English
2026-06-17 14:27:27 +08:00
clh02467605
a830965feb
feat(omni): add new voice option to omni chat command
2026-06-17 14:19:47 +08:00
故璃
14583cf6d1
feat: update access token logic
2026-06-17 11:58:09 +08:00
lishengzxc
e9feb380f5
Merge branch 'main' of github.com:modelstudioai/cli into feat/console-gateway-region-site
2026-06-17 11:45:49 +08:00
clh02467605
62ad8768e3
merge: merge main into feat/i18n-english-only
2026-06-17 11:28:24 +08:00
clh02467605
e8a40cdad0
Merge remote-tracking branch 'refs/remotes/origin/main' into feat/i18n-english-only
...
# Conflicts:
# packages/cli/src/commands/knowledge/retrieve.ts
# skills/bailian-cli/reference/knowledge.md
2026-06-17 11:26:04 +08:00
qcq01083097
9bcb66b1ff
feat: Resolve conflicts
2026-06-17 10:02:00 +08:00
lishengzxc
60cad1001c
chore: remove redundant "(global flag)" from option descriptions
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-06-16 19:44:08 +08:00
qcq01083097
a5d078b8a0
Merge branch 'feat/console-gateway-region-site' of github.com:modelstudioai/cli into feat/console-gateway-region-site
2026-06-16 18:23:09 +08:00
qcq01083097
d24b41d452
feat: Remove the logic related to region
2026-06-16 18:16:10 +08:00
lishengzxc
d320d36ba7
docs: add console gateway flags convention to AGENTS.md and command help
...
Add console global flags (--console-region, --console-site, --console-switch-agent)
to the options of all 12 commands that depend on callConsoleGateway, so they appear
in --help output. Document this as convention #4 in AGENTS.md for future commands.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-06-16 17:50:58 +08:00
故璃
f816d5cb1f
Merge branch 'main' into feat/update-intent-model
2026-06-16 17:38:10 +08:00
故璃
93cecc35de
feat: model recommend use english output
2026-06-16 17:37:40 +08:00
qcq01083097
631a9c1818
feat: Complete the missing changes for E2E Test
2026-06-16 16:51:04 +08:00
故璃
c54f6a64d7
feat: model recommend use english prompt & output
2026-06-16 15:49:01 +08:00
qcq01083097
cb25bc4149
feat: When console login is not performed, throw more explicit errors and prompts
2026-06-16 15:11:10 +08:00
zeyu.fz
a16afb3f0b
chore(changelog): update to version 1.3.3 with improvements to CLI help output and command notes
2026-06-16 15:01:57 +08:00
qcq01083097
2ed513124e
feat: Use command.skipDefaultApiKeySetup instead of NO_AUTH_SETUP to determine whether an API key is required
2026-06-16 14:59:14 +08:00
clh02467605
062bbd4052
feat(cli): standardize user-facing CLI text to English
2026-06-16 14:41:33 +08:00
lishengzxc
f847476016
refactor(auth): 修改 --console 标志以简化登录命令
2026-06-16 14:15:58 +08:00
qcq01083097
83ea0dfd03
feat: Clear invalid remnants of the command "model list"
2026-06-16 13:58:34 +08:00
lishengzxc
9a5797da1e
Merge branch 'feat/console-gateway-region-site' of github.com:modelstudioai/cli into feat/console-gateway-region-site
2026-06-16 13:58:07 +08:00
lishengzxc
8c398bae57
refactor(console): promote --console-region, --console-site, --console-switch-agent to global flags
...
Eliminate per-command --region/--site/--switch-agent duplication across 11 console gateway commands.
These values now flow through config (CLI flags → config file → defaults) and are consumed by
callConsoleGateway automatically. Also wire consoleSite into resolveConsoleOrigin so --console-site
selects the correct login URL (domestic vs international).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-06-16 13:56:20 +08:00
故璃
14fc293ef6
feat: opt json output & reduce Chinese table name
2026-06-16 11:39:16 +08:00
qcq01083097
2bcbf56282
feat: Fix lint errors in mcp.ts
2026-06-16 11:27:29 +08:00
qcq01083097
ce64d628bb
feat: The command "config show" does not display the "region" field, but displays all fields in the "config.json" file
2026-06-16 11:08:33 +08:00
zeyu.fz
3ca8da8e75
refactor(knowledge): update deprecation notices for access key options in CLI and documentation
2026-06-15 19:57:20 +08:00
zeyu.fz
6c4ac80882
feat(cli): add support for displaying command notes in help output
2026-06-15 19:49:09 +08:00
zeyu.fz
a0ab35acf1
refactor(knowledge): update authentication options and documentation
2026-06-15 19:22:35 +08:00
lishengzxc
e5abd1b554
feat(auth): 更新默认控制台登录页为正式中国站地址
2026-06-15 13:53:41 +08:00
lishengzxc
4749b493da
feat(auth): 更新默认控制台登录页为中国站地址
2026-06-15 13:11:49 +08:00
lishengzxc
7a65fb850c
feat(auth): parse and persist workspace_id from console login callback
...
Adapts to bailian-cli-login af06baf which added workspace_id to the
notifyToken payload. The field is parsed from query/body and written
to config.json as workspace_id.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-06-15 01:05:00 +08:00