Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelstudioai/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: modelstudioai/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/knowledge-cli
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 164 files changed
  • 2 contributors

Commits on Jun 23, 2026

  1. 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.
    XXPermanentXX committed Jun 23, 2026
    Configuration menu
    Copy the full SHA
    d971a04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad236e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2026

  1. refactor(commands): decouple command paths from binary name; drop pat…

    …h 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.
    XXPermanentXX committed Jun 24, 2026
    Configuration menu
    Copy the full SHA
    24abdbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61689ec View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2026

  1. feat(kscli): 新增 Knowledge Studio CLI 轻量级 RAG 命令行工具

    - 用于阿里云 Model Studio 的知识库检索,支持 RAG(检索增强生成)场景
    - 提供配置查看与设置、知识库检索、自更新功能
    - 替换原 rag 子包,移除 rag 相关代码及配置
    - 新增独立 package,包含完整的构建、启动和发布配置
    - 添加详细的中英文 README 文档说明安装、使用与认证方式
    - 配置 TypeScript 和 Vite 构建支持,确保开发体验和构建质量
    - 更新根 package.json 脚本,将 rag dev 命令替换为 kscli dev
    - 新增 Git 忽略文件,排除日志、构建输出等无关文件
    clark-fc committed Jun 25, 2026
    Configuration menu
    Copy the full SHA
    46d8474 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2026

  1. Configuration menu
    Copy the full SHA
    9c8fe96 View commit details
    Browse the repository at this point in the history
  2. feat(cli): 新增 knowledge search 和 knowledge chat 命令支持

    - 在 CLI 命令中添加 knowledgeSearch 和 knowledgeChat 两个新命令
    - 新增 knowledge 搜索命令,支持多模态图像检索及对话历史上下文传递
    - 新增 knowledge 问答命令,支持多轮消息流式回答及多模态输入
    - 在核心客户端库(core)中添加对应的 API 端点和类型定义
    - 知识库检索接口 retrieve 标注为弃用,推荐使用 search 命令替代
    - 更新 kscli 主程序入口,接入新命令并兼容旧命令
    - 补充 e2e 测试覆盖 knowledge search 和 knowledge chat 的各类边界与流程
    - 更新文档及命令示例,实现使用说明同步最新功能
    - 增加测试配置,改善 E2E 测试环境与超时设置
    clark-fc committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    ca69316 View commit details
    Browse the repository at this point in the history
  3. build(kscli): 构建并发布 knowledge-studio-cli 包

    - 将 knowledge-studio-cli 版本更新至 1.4.0
    - 在发布脚本中新增 knowledge-studio-cli 构建步骤
    - 更新包依赖顺序,加入 knowledge-studio-cli 包
    - 确保知识库检索相关 CLI 正确构建发布
    clark-fc committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    eaa6b07 View commit details
    Browse the repository at this point in the history
  4. 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
    clark-fc committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    4745d70 View commit details
    Browse the repository at this point in the history
  5. refactor(release): 重构发布流程并合并知识库发布逻辑

    - 删除独立的 publish-knowledge.yml 工作流
    - 在 publish.yml 中新增 package 选择,支持 bailian-cli 和 knowledge-studio-cli
    - 发布脚本根据 package 参数传递 --knowledge 标志
    - 修改发布任务并发组以包含 package 参数,避免冲突
    - 调整发布稳定版与频道版任务名称显示 package 信息
    - 精简发布依赖顺序注释,去除冗余部分
    - 优化构建步骤,仅构建 bailian-cli-core 包
    - 更新包管理代码,整合知识库相关包到统一发布流程
    clark-fc committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    ead1bc0 View commit details
    Browse the repository at this point in the history
  6. docs(cli): 统一所有参考文档表格格式及添加全局参数说明

    - 统一调整所有命令参考文档中的表格格式,使用简洁markdown表格语法替换旧格式
    - 规范所有命令详情中的字段表头格式,保持一致性
    - 在索引中添加全局参数列表,列出所有命令通用的全局标志选项
    - 修正配置键名称中的小错误(例如base_url写法统一)
    - 优化目录索引部分格式,更加规范排列和对齐
    - 未改变命令内容及描述,保证文档信息一致性
    clark-fc committed Jun 26, 2026
    Configuration menu
    Copy the full SHA
    d2aa8ca View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2026

  1. feat(cli): 支持多模态消息内容及图片URL数组

    - 扩展聊天消息内容类型,支持文本和图片URL的数组形式
    - 处理 --image 参数,将图片URL作为多模态内容附加到最后一条用户消息
    - 若无用户消息且指定图片URL,自动创建空用户消息以承载图片内容
    - 禁止同时使用内嵌图片内容和 --image 参数,避免冲突
    - 将知识搜索接口请求的图片参数字段 image_list 重命名为 images
    - 单元测试覆盖多模态内容及图片数组行为验证
    - 优化消息解析,支持JSON结构化消息和 role:content 格式
    - 更新API类型声明,明确多模态消息结构与字段类型
    clark-fc committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    2ec2f34 View commit details
    Browse the repository at this point in the history
  2. feat(packages): 添加 runtime 和 commands 包配置

    - 在包列表中新增 runtime 包配置
    - 在包列表中新增 commands 包配置
    - 确保新包路径和名称正确设置
    clark-fc committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    7c9ad7d View commit details
    Browse the repository at this point in the history
Loading