build(kscli): 构建并发布 knowledge-studio-cli 包

- 将 knowledge-studio-cli 版本更新至 1.4.0
- 在发布脚本中新增 knowledge-studio-cli 构建步骤
- 更新包依赖顺序,加入 knowledge-studio-cli 包
- 确保知识库检索相关 CLI 正确构建发布
This commit is contained in:
zeyu.fz
2026-06-26 16:24:17 +08:00
parent ca69316446
commit eaa6b07c7d
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "knowledge-studio-cli",
"version": "0.0.1",
"version": "1.4.0",
"description": "Lightweight RAG CLI for Aliyun Model Studio — focused on knowledge-base retrieval.",
"keywords": [
"alibaba-cloud",
+3
View File
@@ -65,6 +65,9 @@ export async function runCheck(options = {}) {
step("build bailian-cli");
run("pnpm", ["--filter", "bailian-cli", "run", "build"]);
step("build knowledge-studio-cli");
run("pnpm", ["--filter", "knowledge-studio-cli", "run", "build"]);
step("pack + scan (publint, gitleaks)");
packAndScan({ log });
+2 -1
View File
@@ -4,13 +4,14 @@ import { fileURLToPath } from "url";
export const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../../..");
// Dependency order: core ← runtime ← commands ← cli.
// Dependency order: core ← runtime ← commands ← cli / kscli.
// Consumers rely on this ordering for build/publish (dependencies first).
export const PACKAGES = [
{ key: "core", dir: "packages/core", name: "bailian-cli-core" },
{ key: "runtime", dir: "packages/runtime", name: "bailian-cli-runtime" },
{ key: "commands", dir: "packages/commands", name: "bailian-cli-commands" },
{ key: "cli", dir: "packages/cli", name: "bailian-cli" },
{ key: "kscli", dir: "packages/kscli", name: "knowledge-studio-cli" },
];
export function readJson(path) {