|
17 | 17 | { "title": "开始提问或输入命令", "body": "可以直接提问,也可以先用常用命令快速查看状态。" } |
18 | 18 | ], |
19 | 19 | "commands": [ |
20 | | - { "id": "status", "command": "status", "label": "查看系统状态", "description": "检查硬件、部署和资源概况。" }, |
21 | | - { "id": "hardware", "command": "hardware", "label": "查看硬件", "description": "查看 GPU、CPU、内存等基础信息。" }, |
22 | | - { "id": "models", "command": "models", "label": "查看模型", "description": "确认 AIMA 已识别到哪些模型。" }, |
23 | | - { "id": "engines", "command": "engines", "label": "查看引擎", "description": "确认本机可用推理引擎。" }, |
24 | | - { "id": "deployments", "command": "deployments", "label": "查看部署", "description": "检查当前运行中的部署。" } |
| 20 | + { "id": "status", "command": "/cli status", "label": "查看系统状态", "description": "检查硬件、部署和资源概况。" }, |
| 21 | + { "id": "help", "command": "/cli help", "label": "查看帮助", "description": "查看命令帮助和可用用法。" }, |
| 22 | + { "id": "hardware", "command": "/cli hal detect", "label": "查看硬件", "description": "查看 GPU、CPU、内存等基础信息。" }, |
| 23 | + { "id": "models", "command": "/cli model list", "label": "查看模型", "description": "确认 AIMA 已识别到哪些模型。" }, |
| 24 | + { "id": "engines", "command": "/cli engine list", "label": "查看引擎", "description": "确认本机可用推理引擎。" }, |
| 25 | + { "id": "deployments", "command": "/cli deploy list", "label": "查看部署", "description": "检查当前运行中的部署。" } |
25 | 26 | ] |
26 | 27 | }, |
27 | 28 | "full_commands": { |
|
30 | 31 | "id": "inspect", |
31 | 32 | "title": "系统查看", |
32 | 33 | "items": [ |
33 | | - { "command": "status", "description": "查看系统总体状态。" }, |
34 | | - { "command": "hardware", "description": "查看硬件检测结果。" }, |
35 | | - { "command": "metrics", "description": "查看实时硬件指标。" } |
| 34 | + { "id": "status", "command": "/cli status", "description": "查看系统总体状态。" }, |
| 35 | + { "id": "hardware", "command": "/cli hal detect", "description": "查看硬件检测结果。" }, |
| 36 | + { "id": "metrics", "command": "/cli hal metrics", "description": "查看实时硬件指标。" } |
36 | 37 | ] |
37 | 38 | }, |
38 | 39 | { |
39 | 40 | "id": "inventory", |
40 | 41 | "title": "资源清单", |
41 | 42 | "items": [ |
42 | | - { "command": "models", "description": "列出已识别模型。" }, |
43 | | - { "command": "engines", "description": "列出可用引擎。" }, |
44 | | - { "command": "deployments", "description": "列出当前部署。" }, |
45 | | - { "command": "fleet", "description": "列出局域网设备。" } |
| 43 | + { "id": "models", "command": "/cli model list", "description": "列出已识别模型。" }, |
| 44 | + { "id": "engines", "command": "/cli engine list", "description": "列出可用引擎。" }, |
| 45 | + { "id": "deployments", "command": "/cli deploy list", "description": "列出当前部署。" }, |
| 46 | + { "id": "fleet_devices", "command": "/cli fleet devices", "description": "列出局域网设备。" } |
46 | 47 | ] |
47 | 48 | }, |
48 | 49 | { |
49 | | - "id": "cli", |
50 | | - "title": "CLI 示例", |
| 50 | + "id": "top_level_commands", |
| 51 | + "title": "顶层命令", |
| 52 | + "description": "由服务端动态填充的顶层命令列表。", |
| 53 | + "items": [] |
| 54 | + }, |
| 55 | + { |
| 56 | + "id": "common_examples", |
| 57 | + "title": "常用示例", |
51 | 58 | "items": [ |
52 | | - { "command": "/cli help", "description": "查看 CLI 子命令帮助。" }, |
53 | | - { "command": "/cli model list", "description": "通过 CLI 列出已注册模型。" }, |
54 | | - { "command": "/cli engine list", "description": "通过 CLI 列出已注册引擎。" } |
| 59 | + { "id": "engine_plan", "command": "/cli engine plan", "description": "先看当前硬件推荐使用哪个引擎。" }, |
| 60 | + { "id": "engine_pull", "command": "/cli engine pull", "description": "预先拉取默认引擎,减少首次部署等待。" }, |
| 61 | + { "id": "model_pull", "command": "/cli model pull {sample_model}", "description": "按模型名下载模型文件,`{sample_model}` 是示例值,可替换为实际模型名。" }, |
| 62 | + { "id": "deploy_dry_run", "command": "/cli deploy {sample_model} --dry-run", "description": "先预览部署解析结果和推荐配置,`{sample_model}` 是示例值,可替换为实际模型名。" }, |
| 63 | + { "id": "run", "command": "/cli run {sample_model}", "description": "一条命令拉取、部署并等待服务就绪,`{sample_model}` 是示例值,可替换为实际模型名。" } |
55 | 64 | ] |
56 | 65 | } |
57 | 66 | ] |
58 | 67 | }, |
59 | 68 | "troubleshooting": { |
60 | 69 | "items": [ |
61 | | - { "title": "Agent 不可用", "body": "先用 status、hardware、models 等直接命令确认基础状态。" }, |
| 70 | + { "title": "Agent 不可用", "body": "先用 /cli status、/cli hal detect、/cli model list 等直接命令确认基础状态。" }, |
62 | 71 | { "title": "需要配置", "body": "点击右上角设置,检查 LLM endpoint、model 和 API key。" }, |
63 | 72 | { "title": "需要远程协助", "body": "点击连线灵机云,按引导进入远程协助流程。" } |
64 | 73 | ] |
|
79 | 88 | { "title": "Ask or run a command", "body": "You can ask AIMA directly or begin with a common command." } |
80 | 89 | ], |
81 | 90 | "commands": [ |
82 | | - { "id": "status", "command": "status", "label": "System status", "description": "Inspect hardware, deployments, and overall state." }, |
83 | | - { "id": "hardware", "command": "hardware", "label": "Hardware", "description": "Show detected GPU, CPU, and memory information." }, |
84 | | - { "id": "models", "command": "models", "label": "Models", "description": "List models AIMA already knows about." }, |
85 | | - { "id": "engines", "command": "engines", "label": "Engines", "description": "List available inference engines." }, |
86 | | - { "id": "deployments", "command": "deployments", "label": "Deployments", "description": "Show active inference deployments." } |
| 91 | + { "id": "status", "command": "/cli status", "label": "System status", "description": "Inspect hardware, deployments, and overall state." }, |
| 92 | + { "id": "help", "command": "/cli help", "label": "Help", "description": "Show command help and available usage." }, |
| 93 | + { "id": "hardware", "command": "/cli hal detect", "label": "Hardware", "description": "Show detected GPU, CPU, and memory information." }, |
| 94 | + { "id": "models", "command": "/cli model list", "label": "Models", "description": "List models AIMA already knows about." }, |
| 95 | + { "id": "engines", "command": "/cli engine list", "label": "Engines", "description": "List available inference engines." }, |
| 96 | + { "id": "deployments", "command": "/cli deploy list", "label": "Deployments", "description": "Show active inference deployments." } |
87 | 97 | ] |
88 | 98 | }, |
89 | 99 | "full_commands": { |
|
92 | 102 | "id": "inspect", |
93 | 103 | "title": "Inspect", |
94 | 104 | "items": [ |
95 | | - { "command": "status", "description": "Show the overall system state." }, |
96 | | - { "command": "hardware", "description": "Show hardware detection details." }, |
97 | | - { "command": "metrics", "description": "Show live hardware metrics." } |
| 105 | + { "id": "status", "command": "/cli status", "description": "Show the overall system state." }, |
| 106 | + { "id": "hardware", "command": "/cli hal detect", "description": "Show hardware detection details." }, |
| 107 | + { "id": "metrics", "command": "/cli hal metrics", "description": "Show live hardware metrics." } |
98 | 108 | ] |
99 | 109 | }, |
100 | 110 | { |
101 | 111 | "id": "inventory", |
102 | 112 | "title": "Inventory", |
103 | 113 | "items": [ |
104 | | - { "command": "models", "description": "List detected models." }, |
105 | | - { "command": "engines", "description": "List available engines." }, |
106 | | - { "command": "deployments", "description": "List active deployments." }, |
107 | | - { "command": "fleet", "description": "List LAN devices." } |
| 114 | + { "id": "models", "command": "/cli model list", "description": "List detected models." }, |
| 115 | + { "id": "engines", "command": "/cli engine list", "description": "List available engines." }, |
| 116 | + { "id": "deployments", "command": "/cli deploy list", "description": "List active deployments." }, |
| 117 | + { "id": "fleet_devices", "command": "/cli fleet devices", "description": "List LAN devices." } |
108 | 118 | ] |
109 | 119 | }, |
110 | 120 | { |
111 | | - "id": "cli", |
112 | | - "title": "CLI examples", |
| 121 | + "id": "top_level_commands", |
| 122 | + "title": "Top-level commands", |
| 123 | + "description": "Top-level commands filled dynamically by the server.", |
| 124 | + "items": [] |
| 125 | + }, |
| 126 | + { |
| 127 | + "id": "common_examples", |
| 128 | + "title": "Common examples", |
113 | 129 | "items": [ |
114 | | - { "command": "/cli help", "description": "Show CLI subcommand help." }, |
115 | | - { "command": "/cli model list", "description": "List registered models through the CLI endpoint." }, |
116 | | - { "command": "/cli engine list", "description": "List registered engines through the CLI endpoint." } |
| 130 | + { "id": "engine_plan", "command": "/cli engine plan", "description": "Check which engine the current hardware should use." }, |
| 131 | + { "id": "engine_pull", "command": "/cli engine pull", "description": "Pre-pull the default engine to reduce first-run latency." }, |
| 132 | + { "id": "model_pull", "command": "/cli model pull {sample_model}", "description": "Download a model by name; `{sample_model}` is an example value and can be replaced with a real model name." }, |
| 133 | + { "id": "deploy_dry_run", "command": "/cli deploy {sample_model} --dry-run", "description": "Preview the resolved deployment plan before execution; `{sample_model}` is an example value and can be replaced with a real model name." }, |
| 134 | + { "id": "run", "command": "/cli run {sample_model}", "description": "Resolve, pull, deploy, and wait for readiness in one command; `{sample_model}` is an example value and can be replaced with a real model name." } |
117 | 135 | ] |
118 | 136 | } |
119 | 137 | ] |
120 | 138 | }, |
121 | 139 | "troubleshooting": { |
122 | 140 | "items": [ |
123 | | - { "title": "Agent unavailable", "body": "Use direct commands like status, hardware, and models first." }, |
| 141 | + { "title": "Agent unavailable", "body": "Use direct commands like /cli status, /cli hal detect, and /cli model list first." }, |
124 | 142 | { "title": "Need configuration help", "body": "Open Settings and verify the LLM endpoint, model, and API key." }, |
125 | 143 | { "title": "Need remote help", "body": "Use the support button to connect to the remote assistance flow." } |
126 | 144 | ] |
|
0 commit comments