knowledge-studio-cli 0.0.0-beta-7c9ad7d-20260629 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,29 +28,20 @@ npm install -g knowledge-studio-cli
28
28
  ## Quick Start
29
29
 
30
30
  ```bash
31
- # Search a knowledge base
32
- kscli search \
33
- --query "What is Model Studio?" \
34
- --agent-id <your-agent-id> \
35
- --workspace-id <your-workspace-id>
36
-
37
- # Chat with a knowledge base
38
- kscli chat \
39
- --message "What is RAG?" \
40
- --agent-id <your-agent-id> \
41
- --workspace-id <your-workspace-id>
31
+ # Retrieve from a knowledge base
32
+ kscli retrieve \
33
+ --index-id <your-index-id> \
34
+ --query "What is Model Studio?"
42
35
  ```
43
36
 
44
37
  ## Commands
45
38
 
46
- | Command | Description |
47
- | :------------ | :------------------------------------------------ |
48
- | `search` | Semantic search across knowledge bases (RAG) |
49
- | `chat` | Knowledge-base Q&A with streaming (RAG) |
50
- | `retrieve` | Query a knowledge base (deprecated, use `search`) |
51
- | `config show` | Display current configuration |
52
- | `config set` | Set a configuration value |
53
- | `update` | Self-update to the latest version |
39
+ | Command | Description |
40
+ | :------------ | :-------------------------------- |
41
+ | `retrieve` | Query a knowledge base (RAG) |
42
+ | `config show` | Display current configuration |
43
+ | `config set` | Set a configuration value |
44
+ | `update` | Self-update to the latest version |
54
45
 
55
46
  ## Authentication
56
47
 
@@ -64,7 +55,7 @@ export DASHSCOPE_API_KEY=sk-xxxxx
64
55
  kscli config set --key api_key --value sk-xxxxx
65
56
 
66
57
  # Option 3: Per-command flag
67
- kscli search --api-key sk-xxxxx --query "..." --agent-id <id> --workspace-id <id>
58
+ kscli retrieve --api-key sk-xxxxx --index-id <id> --query "..."
68
59
  ```
69
60
 
70
61
  ## Configuration
package/README.zh.md CHANGED
@@ -29,28 +29,19 @@ npm install -g knowledge-studio-cli
29
29
 
30
30
  ```bash
31
31
  # 检索知识库
32
- kscli search \
33
- --query "什么是 Model Studio?" \
34
- --agent-id <your-agent-id> \
35
- --workspace-id <your-workspace-id>
36
-
37
- # 知识库问答
38
- kscli chat \
39
- --message "什么是RAG?" \
40
- --agent-id <your-agent-id> \
41
- --workspace-id <your-workspace-id>
32
+ kscli retrieve \
33
+ --index-id <your-index-id> \
34
+ --query "什么是 Model Studio?"
42
35
  ```
43
36
 
44
37
  ## 命令列表
45
38
 
46
- | 命令 | 说明 |
47
- | :------------ | :------------------------------------ |
48
- | `search` | 知识库语义检索(RAG) |
49
- | `chat` | 知识库问答(流式输出) |
50
- | `retrieve` | 查询知识库(已弃用,请使用 `search`) |
51
- | `config show` | 显示当前配置 |
52
- | `config set` | 设置配置项 |
53
- | `update` | 自更新到最新版本 |
39
+ | 命令 | 说明 |
40
+ | :------------ | :---------------- |
41
+ | `retrieve` | 查询知识库(RAG) |
42
+ | `config show` | 显示当前配置 |
43
+ | `config set` | 设置配置项 |
44
+ | `update` | 自更新到最新版本 |
54
45
 
55
46
  ## 认证方式
56
47
 
@@ -64,7 +55,7 @@ export DASHSCOPE_API_KEY=sk-xxxxx
64
55
  kscli config set --key api_key --value sk-xxxxx
65
56
 
66
57
  # 方式三:命令行参数
67
- kscli search --api-key sk-xxxxx --query "..." --agent-id <id> --workspace-id <id>
58
+ kscli retrieve --api-key sk-xxxxx --index-id <id> --query "..."
68
59
  ```
69
60
 
70
61
  ## 配置
package/dist/kscli.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{createCli as e}from"bailian-cli-runtime";import{configSet as t,configShow as n,knowledgeChat as r,knowledgeRetrieve as i,knowledgeSearch as a,update as o}from"bailian-cli-commands";e({"config show":n,"config set":t,update:o,retrieve:i,search:a,chat:r},{binName:`kscli`,version:`0.0.0-beta-7c9ad7d-20260629`,clientName:`knowledge-studio-cli`,npmPackage:`knowledge-studio-cli`}).run();export{};
3
+ import{createCli as e}from"bailian-cli-runtime";import{configSet as t,configShow as n,knowledgeRetrieve as r,update as i}from"bailian-cli-commands";e({"config show":n,"config set":t,update:i,retrieve:r},{binName:`kscli`,version:`1.5.0`,clientName:`knowledge-studio-cli`,npmPackage:`knowledge-studio-cli`}).run();export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowledge-studio-cli",
3
- "version": "0.0.0-beta-7c9ad7d-20260629",
3
+ "version": "1.5.0",
4
4
  "description": "Lightweight RAG CLI for Aliyun Model Studio — focused on knowledge-base retrieval.",
5
5
  "keywords": [
6
6
  "alibaba-cloud",
@@ -38,9 +38,9 @@
38
38
  "registry": "https://registry.npmjs.org/"
39
39
  },
40
40
  "dependencies": {
41
- "bailian-cli-commands": "0.0.0-beta-7c9ad7d-20260629",
42
- "bailian-cli-core": "0.0.0-beta-7c9ad7d-20260629",
43
- "bailian-cli-runtime": "0.0.0-beta-7c9ad7d-20260629"
41
+ "bailian-cli-core": "1.5.0",
42
+ "bailian-cli-runtime": "1.5.0",
43
+ "bailian-cli-commands": "1.5.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@clack/prompts": "^0.7.0",