@9000ai/cli 0.6.2 → 0.6.3

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.
@@ -80,7 +80,7 @@ export function registerTranscribeCommands(parent) {
80
80
  .action(async (opts) => {
81
81
  const taskData = await request({ method: "GET", path: `/api/v1/tasks/${opts.taskId}` });
82
82
  const inner = taskData.data;
83
- if (!inner || inner.status !== "SUCCESS") {
83
+ if (!inner || String(inner.status).toUpperCase() !== "SUCCESS") {
84
84
  console.error(`Task status: ${inner?.status ?? "unknown"}`);
85
85
  process.exit(1);
86
86
  }
@@ -148,7 +148,7 @@ export function registerTranscribeCommands(parent) {
148
148
  if (opts.taskId) {
149
149
  const taskResp = await request({ method: "GET", path: `/api/v1/tasks/${opts.taskId}` });
150
150
  const taskData = (taskResp.data ?? taskResp);
151
- if (taskData.status !== "SUCCESS") {
151
+ if (String(taskData.status).toUpperCase() !== "SUCCESS") {
152
152
  console.error(`Task status: ${taskData.status ?? "unknown"} (need SUCCESS)`);
153
153
  process.exit(1);
154
154
  }
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const program = new Command();
14
14
  program
15
15
  .name("9000ai")
16
16
  .description("9000AI Toolbox CLI — unified interface for 9000AI platform")
17
- .version("0.6.2");
17
+ .version("0.6.3");
18
18
  registerConfigCommands(program);
19
19
  registerAuthCommands(program);
20
20
  registerSearchCommands(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@9000ai/cli",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "9000AI Toolbox CLI — unified command-line interface for 9000AI platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -46,6 +46,8 @@ agent 在对话中确认标题和内容后,直接组装参数调 CLI 就行。
46
46
  | `--type` | 否 | 可选分类:workflow / bug / feature / other |
47
47
  | `--context-json` | 否 | 附加上下文,比如涉及的 skill 名、task_id 等,JSON 格式 |
48
48
 
49
+ **必须带版本号**:提交反馈前先执行 `9000ai --version` 获取当前版本,在 content 末尾附上 `[CLI v0.x.x]`,方便定位问题。
50
+
49
51
  ## 命令
50
52
 
51
53
  查看帮助:
@@ -67,13 +67,18 @@ output-format: task-oriented
67
67
 
68
68
  不要把整份转写 JSON 原样塞进上下文。
69
69
 
70
- 如果只需要原文文案:
70
+ 提取原文文案:
71
71
 
72
72
  ```bash
73
73
  9000ai transcribe text --task-id <task_id>
74
74
  ```
75
75
 
76
- 返回 `text` 字段即可,不要读全量 JSON。
76
+ 这个命令会:
77
+ 1. 下载转写结果,提取纯文本
78
+ 2. 保存到 `output/transcripts/{video_id}.txt`
79
+ 3. 返回文件路径 + 前 100 字预览
80
+
81
+ AI 拿到路径后按需读取,不要一次性把所有文案塞进上下文。如果只需要输出到终端不落盘,加 `--no-save`。
77
82
 
78
83
  ## 命令
79
84
 
@@ -117,7 +122,7 @@ output-format: task-oriented
117
122
  # 正确 — 只取需要的字段
118
123
  9000ai task results --task-id <id> --fields status,output,video_url
119
124
 
120
- # 只要原文 — 用专用命令
125
+ # 只要原文 — 落盘后按需读取
121
126
  9000ai transcribe text --task-id <task_id>
122
127
  ```
123
128