aiconductor-cli 1.2.0 → 1.2.2

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/CLAUDE.md ADDED
@@ -0,0 +1,76 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## Commands
6
+
7
+ ### 本地运行
8
+
9
+ ```bash
10
+ node bin/aiconductor-cli.js --help # 查看所有命令
11
+ node bin/aiconductor-cli.js <command> --help # 查看子命令选项
12
+ node bin/aiconductor-cli.js search web "关键词" -n 3 -f text # 真实调用示例
13
+ ```
14
+
15
+ ### 发布到 npm
16
+
17
+ ```bash
18
+ npm version patch|minor|major # 升版本号
19
+ npm pkg fix # 修复 package.json 格式
20
+ npm publish # 发布
21
+ ```
22
+
23
+ 发布前须对本轮新增/修改的每个命令逐条执行真实调用,确认 exit 0 且输出格式正确。
24
+
25
+ ## Architecture
26
+
27
+ ### 分层结构
28
+
29
+ ```
30
+ bin/aiconductor-cli.js ← 入口层:commander 注册子命令树,不含业务逻辑
31
+ src/api.js ← API 层:HTTPS 请求封装 + API Key 解析
32
+ src/lib/cli-utils.js ← 共享工具:output/outputError/key/error 统一处理
33
+ src/commands/<topic>.js ← 命令层:参数组装、调用 API、格式化输出
34
+ ```
35
+
36
+ **`bin/aiconductor-cli.js`** — 纯聚合入口,action 回调只做参数传递。
37
+
38
+ **`src/api.js`** — 所有外部 API 调用的底层封装:
39
+ - `resolveApiKey(optionKey)` — 三级优先级:`-k` 参数 > `AICONDUCTOR_API_KEY` 环境变量 > `.env` 文件
40
+ - `httpPost()` — 通用 HTTPS POST(端口 443),统一处理 HTTP 错误和网络错误
41
+ - 每个 API 端点对应一个独立函数,通过 `stripBilling()` 过滤计费信息
42
+ - 新增 API 端点只改此文件
43
+
44
+ **`src/lib/cli-utils.js`** — 所有 command 文件共享的工具模块:
45
+ - `outputResult(data, format, textFormatter?)` — 统一成功输出(JSON: `{success: true, data}`)
46
+ - `outputError(err, format)` — 统一错误输出(JSON: `{success: false, error}` 到 stderr)
47
+ - `resolveKeyOrExit(optionKey, format)` — 解析 API Key,失败自动输出错误并 exit(1)
48
+ - `handleApiError(err, format)` — 统一处理 http_error / network_error / 未知错误
49
+ - `safeParseInt(value, defaultValue)` — 安全整数解析,防 NaN
50
+
51
+ **`src/commands/<topic>.js`** — 命令编排层,每个文件对应一个子命令组:
52
+ - 导入 `cli-utils` 的 4 个共享函数,消除重复代码
53
+ - 业务逻辑函数接收 argument + options,组装参数 → 调 API → `outputResult`
54
+ - 成功 `exit(0)`,失败 `exit(1)`
55
+
56
+ ### 输出格式约定
57
+
58
+ 所有命令支持 `-f json|text`:
59
+ - **JSON(默认)**:成功 stdout `{ success: true, data: {...} }`,失败 stderr `{ success: false, error: "..." }`
60
+ - **text**:人类可读格式,成功以 `✓` 开头
61
+
62
+ ### API Key 鉴权
63
+
64
+ 两种模式共存(由 API 端决定,不要自行统一):
65
+ - Body 模式:`api_key` 放入请求 body(多数端点)
66
+ - Bearer 模式:`Authorization: Bearer <api_key>` HTTP 头(web_search、douyin_video_search)
67
+
68
+ ### 扩展新 API 的标准流程
69
+
70
+ 1. `src/api.js`:添加 API 端点常量和调用函数(~10 行)
71
+ 2. `src/commands/<新主题>.js`:新建文件,导入 `cli-utils`,写命令函数(~10 行/命令)
72
+ 3. `bin/aiconductor-cli.js`:引入模块并注册子命令组
73
+
74
+ ### Skills 依赖
75
+
76
+ `.codebuddy/skills/` 下 3 个 skills(`aic-web-search`、`webpage-publish`、`douyin-toolbox`)依赖此 CLI。修改命令签名或输出格式会破坏它们。`.codebuddy/` 已被 `.npmignore` 排除。
package/README.md CHANGED
@@ -1,108 +1,266 @@
1
- # AIConductor CLI
2
-
3
- AIConductor 平台命令行工具箱,提供 HTML 发布和网页/图片搜索功能。
4
-
5
- ## 安装
6
-
7
- ```bash
8
- npm install -g aiconductor-cli
9
- ```
10
-
11
- **Node.js >= 16.0.0** 环境。
12
-
13
- ## 配置 API Key
14
-
15
- 前往 [https://dev.aiconductor.fun/register](https://dev.aiconductor.fun/register) 注册获取 API Key,然后配置环境变量:
16
-
17
- **macOS / Linux:**
18
- ```bash
19
- echo 'export AICONDUCTOR_API_KEY="your-api-key"' >> ~/.zshrc && source ~/.zshrc
20
- ```
21
-
22
- **Windows PowerShell:**
23
- ```powershell
24
- [Environment]::SetEnvironmentVariable("AICONDUCTOR_API_KEY", "your-api-key", "User")
25
- ```
26
-
27
- > 也可在项目目录创建 `.env` 文件写入 `AICONDUCTOR_API_KEY=your-api-key`。
28
-
29
- ## 命令
30
-
31
- ### 发布 HTML 网页
32
-
33
- ```bash
34
- aiconductor-cli html publish <HTML代码或文件路径> -t <英文文件名>
35
- ```
36
-
37
- | 选项 | 说明 |
38
- |------|------|
39
- | `-t, --title` | 英文文件名(必填,小写+连字符) |
40
- | `-k, --api-key` | API Key(可选,默认读取环境变量) |
41
- | `-f, --format` | 输出格式:`json`(默认)或 `text` |
42
-
43
- 示例:
44
- ```bash
45
- aiconductor-cli html publish index.html -t my-page
46
- aiconductor-cli html publish "<h1>Hello</h1>" -t hello-page -f text
47
- ```
48
-
49
- ### 网页搜索
50
-
51
- ```bash
52
- aiconductor-cli search web <关键词> [选项]
53
- ```
54
-
55
- | 选项 | 说明 | 默认值 |
56
- |------|------|--------|
57
- | `-n, --count` | 返回条数(最多50) | 5 |
58
- | `--time-range` | 时间范围:`OneDay`/`OneWeek`/`OneMonth`/`OneYear` | 无 |
59
- | `--no-summary` | 不返回内容摘要 | 默认返回 |
60
- | `--content-format` | 内容格式:`Text`/`Markdown` | Text |
61
- | `--auth-level` | 权威过滤:0=不过滤,1=优先权威来源 | 0 |
62
- | `--query-rewrite` | 开启 Query 改写 | 关闭 |
63
-
64
- 示例:
65
- ```bash
66
- aiconductor-cli search web "北京今日天气" -n 3 --auth-level 1
67
- ```
68
-
69
- ### 图片搜索
70
-
71
- ```bash
72
- aiconductor-cli search image <关键词> [选项]
73
- ```
74
-
75
- | 选项 | 说明 | 默认值 |
76
- |------|------|--------|
77
- | `-n, --count` | 返回条数(最多5) | 5 |
78
- | `--time-range` | 时间范围 | 无 |
79
-
80
- 示例:
81
- ```bash
82
- aiconductor-cli search image "长城风景" -n 3 -f text
83
- ```
84
-
85
- ### 通用选项
86
-
87
- 所有命令支持:
88
- - `-k, --api-key <key>` — API Key(优先级:参数 > 环境变量 > .env 文件)
89
- - `-f, --format <json|text>` — 输出格式,默认 JSON
90
-
91
- ## 计费
92
-
93
- - HTML 发布:0.01 元/次
94
- - 网页/图片搜索:0.03 元/次
95
- - 搜索失败不扣费,仅成功时计费
96
-
97
- ## 开发
98
-
99
- ```bash
100
- git clone https://github.com/huyi9531/aiconductor-cli.git
101
- cd aiconductor-cli
102
- npm install
103
- node bin/aiconductor-cli.js --help # 本地运行
104
- ```
105
-
106
- ## License
107
-
108
- MIT
1
+ # AIConductor CLI
2
+
3
+ AIConductor 平台命令行工具箱,提供网页发布、搜索和抖音数据功能。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ npm install -g aiconductor-cli
9
+ ```
10
+
11
+ **Node.js >= 16.0.0** 环境。
12
+
13
+ ## 配置 API Key
14
+
15
+ 前往 [https://dev.aiconductor.fun/register](https://dev.aiconductor.fun/register) 注册获取 API Key,然后配置环境变量:
16
+
17
+ **macOS / Linux:**
18
+ ```bash
19
+ echo 'export AICONDUCTOR_API_KEY="your-api-key"' >> ~/.zshrc && source ~/.zshrc
20
+ ```
21
+
22
+ **Windows PowerShell:**
23
+ ```powershell
24
+ [Environment]::SetEnvironmentVariable("AICONDUCTOR_API_KEY", "your-api-key", "User")
25
+ ```
26
+
27
+ > 也可在项目目录创建 `.env` 文件写入 `AICONDUCTOR_API_KEY=your-api-key`。
28
+
29
+ ## 命令
30
+
31
+ ### 发布 HTML 网页
32
+
33
+ ```bash
34
+ aiconductor-cli html publish <HTML代码或文件路径> [选项]
35
+ ```
36
+
37
+ | 选项 | 说明 |
38
+ |------|------|
39
+ | `-t, --title` | 文档标题,用作文件名基础 |
40
+ | `-k, --api-key` | API Key(可选,默认读取环境变量) |
41
+ | `-f, --format` | 输出格式:`json`(默认)或 `text` |
42
+
43
+ 示例:
44
+ ```bash
45
+ aiconductor-cli html publish index.html -t my-page
46
+ aiconductor-cli html publish "<h1>Hello</h1>" -t hello-page -f text
47
+ ```
48
+
49
+ ### 发布 Markdown/HTML 网页(推荐)
50
+
51
+ `webpage publish` 是统一的网页发布命令,自动识别 Markdown 和 HTML 并发布为在线网页。
52
+
53
+ ```bash
54
+ aiconductor-cli webpage publish <Markdown/HTML代码或文件路径> [选项]
55
+ ```
56
+
57
+ | 选项 | 说明 | 默认值 |
58
+ |------|------|--------|
59
+ | `-t, --title` | 文件名(不含 .html 后缀) | 自动生成 |
60
+ | `-k, --api-key` | API Key(可选) | 环境变量 |
61
+ | `--type` | 强制指定类型:`md` 或 `html` | 自动识别 |
62
+ | `--copy-button` | 为代码块添加复制按钮(仅 Markdown) | 关闭 |
63
+ | `-f, --format` | 输出格式:`json` 或 `text` | json |
64
+
65
+ 示例:
66
+ ```bash
67
+ # 发布 Markdown 文件
68
+ aiconductor-cli webpage publish README.md -t docs
69
+
70
+ # 发布 Markdown 并添加代码复制按钮
71
+ aiconductor-cli webpage publish article.md -t article --copy-button
72
+
73
+ # 发布 HTML 文件
74
+ aiconductor-cli webpage publish index.html -t my-page
75
+
76
+ # 直接传入内容字符串
77
+ aiconductor-cli webpage publish "# Hello\n\nThis is **markdown**" -t hello
78
+ ```
79
+
80
+ ### 网页搜索
81
+
82
+ ```bash
83
+ aiconductor-cli search web <关键词> [选项]
84
+ ```
85
+
86
+ | 选项 | 说明 | 默认值 |
87
+ |------|------|--------|
88
+ | `-n, --count` | 返回条数(最多50) | 5 |
89
+ | `--time-range` | 时间范围:预设 `OneDay`/`OneWeek`/`OneMonth`/`OneYear`,或自定义 `YYYY-MM-DD..YYYY-MM-DD` | 无 |
90
+ | `--no-summary` | 不返回内容摘要 | 默认返回 |
91
+ | `--content-format` | 内容格式:`Text` 或 `Markdown` | Text |
92
+ | `--auth-level` | 权威过滤:0=不过滤,1=优先权威来源 | 0 |
93
+ | `--query-rewrite` | 开启 Query 改写 | 关闭 |
94
+ | `-f, --format` | 输出格式:`json` 或 `text` | json |
95
+
96
+ 示例:
97
+ ```bash
98
+ aiconductor-cli search web "北京今日天气" -n 3 --auth-level 1
99
+ aiconductor-cli search web "AI 最新进展" --time-range OneWeek --content-format Markdown
100
+ aiconductor-cli search web "技术文章" --time-range 2025-01-01..2025-06-30 -n 10
101
+ ```
102
+
103
+ ### 图片搜索
104
+
105
+ ```bash
106
+ aiconductor-cli search image <关键词> [选项]
107
+ ```
108
+
109
+ | 选项 | 说明 | 默认值 |
110
+ |------|------|--------|
111
+ | `-n, --count` | 返回条数(最多5) | 5 |
112
+ | `--time-range` | 时间范围:预设或自定义日期范围 | 无 |
113
+ | `-f, --format` | 输出格式:`json` 或 `text` | json |
114
+
115
+ 示例:
116
+ ```bash
117
+ aiconductor-cli search image "长城风景" -n 3 -f text
118
+ ```
119
+
120
+ ### 抖音数据工具箱
121
+
122
+ ```bash
123
+ aiconductor-cli douyin <子命令> [参数] [选项]
124
+ ```
125
+
126
+ #### 获取作品详情
127
+
128
+ ```bash
129
+ aiconductor-cli douyin video-info <分享链接> [选项]
130
+ ```
131
+
132
+ 示例:
133
+ ```bash
134
+ aiconductor-cli douyin video-info "https://v.douyin.com/xxxxx/"
135
+ ```
136
+
137
+ #### 获取作品评论
138
+
139
+ ```bash
140
+ aiconductor-cli douyin video-comments <视频URL> [选项]
141
+ ```
142
+
143
+ | 选项 | 说明 | 默认值 |
144
+ |------|------|--------|
145
+ | `--max-count` | 获取评论数量 | 50 |
146
+ | `-f, --format` | 输出格式 | json |
147
+
148
+ 示例:
149
+ ```bash
150
+ aiconductor-cli douyin video-comments "https://www.douyin.com/video/xxxxx" --max-count 100
151
+ ```
152
+
153
+ #### 获取用户视频列表
154
+
155
+ ```bash
156
+ aiconductor-cli douyin user-videos <用户主页URL> [选项]
157
+ ```
158
+
159
+ | 选项 | 说明 | 默认值 |
160
+ |------|------|--------|
161
+ | `--max-pages` | 最大页数 | 1 |
162
+ | `--max-seconds` | 最长运行时间(秒),最大 180 | 50 |
163
+ | `-f, --format` | 输出格式 | json |
164
+
165
+ 示例:
166
+ ```bash
167
+ aiconductor-cli douyin user-videos "https://www.douyin.com/user/xxxxx" --max-pages 3
168
+ ```
169
+
170
+ #### 获取用户详情
171
+
172
+ ```bash
173
+ aiconductor-cli douyin user-detail <用户主页URL> [选项]
174
+ ```
175
+
176
+ 示例:
177
+ ```bash
178
+ aiconductor-cli douyin user-detail "https://www.douyin.com/user/xxxxx"
179
+ ```
180
+
181
+ #### 搜索用户
182
+
183
+ ```bash
184
+ aiconductor-cli douyin user-search <关键词> [选项]
185
+ ```
186
+
187
+ | 选项 | 说明 | 默认值 |
188
+ |------|------|--------|
189
+ | `--max-pages` | 最大页数,0=不限制 | 1 |
190
+ | `--max-seconds` | 最长运行时间(秒),最大 180 | 50 |
191
+ | `--fans-range` | 粉丝数筛选:`0_1k`/`1k_1w`/`1w_10w`/`10w_100w`/`100w_` | 无 |
192
+ | `--user-type` | 用户类型:`common_user`/`enterprise_user`/`personal_user` | 无 |
193
+ | `-f, --format` | 输出格式 | json |
194
+
195
+ 示例:
196
+ ```bash
197
+ aiconductor-cli douyin user-search "美食博主" --fans-range 10w_100w --user-type personal_user
198
+ ```
199
+
200
+ #### 搜索视频
201
+
202
+ ```bash
203
+ aiconductor-cli douyin video-search <关键词> [选项]
204
+ ```
205
+
206
+ | 选项 | 说明 | 默认值 |
207
+ |------|------|--------|
208
+ | `--max-pages` | 最大页数,0=不限制 | 1 |
209
+ | `--max-seconds` | 最长运行时间(秒),最大 50 | 50 |
210
+ | `--sort-type` | 排序:0=综合,1=最多点赞,2=最新发布 | 0 |
211
+ | `--publish-time` | 发布时间:0=不限,1=一天,7=一周,180=半年 | 0 |
212
+ | `--filter-duration` | 时长:0=不限,0-1=1分钟内,1-5=1-5分钟,5-10000=5分钟以上 | 0 |
213
+ | `--content-type` | 内容类型:0=不限,1=视频,2=图片,3=文章 | 0 |
214
+ | `-f, --format` | 输出格式 | json |
215
+
216
+ 示例:
217
+ ```bash
218
+ aiconductor-cli douyin video-search "编程教程" --sort-type 2 --publish-time 7 --content-type 1
219
+ ```
220
+
221
+ #### 视频链接转文字
222
+
223
+ ```bash
224
+ aiconductor-cli douyin link-to-text <视频URL> [选项]
225
+ ```
226
+
227
+ 示例:
228
+ ```bash
229
+ aiconductor-cli douyin link-to-text "https://www.douyin.com/video/xxxxx"
230
+ ```
231
+
232
+ ### 通用选项
233
+
234
+ 所有命令支持:
235
+ - `-k, --api-key <key>` — API Key(优先级:参数 > 环境变量 > .env 文件)
236
+ - `-f, --format <json|text>` — 输出格式,默认 JSON
237
+
238
+ ## 计费
239
+
240
+ | 功能 | 价格 |
241
+ |------|------|
242
+ | HTML 发布 | 0.01 元/次 |
243
+ | Markdown/HTML 网页发布 | 0.01 元/次 |
244
+ | 网页/图片搜索 | 0.03 元/次 |
245
+ | 抖音作品详情 | 0.01 元/次 |
246
+ | 抖音作品评论 | 0.01 元/次 |
247
+ | 抖音用户视频列表 | 0.03 元/页 |
248
+ | 抖音用户详情 | 0.03 元/次 |
249
+ | 抖音用户搜索 | 0.15 元/页 |
250
+ | 抖音视频搜索 | 0.15 元/页 |
251
+ | 抖音链接转文字 | 0.01 元/次 + 0.0003 元/秒 |
252
+
253
+ > 搜索/调用失败不扣费,仅成功时计费。
254
+
255
+ ## 开发
256
+
257
+ ```bash
258
+ git clone https://github.com/huyi9531/aiconductor-cli.git
259
+ cd aiconductor-cli
260
+ npm install
261
+ node bin/aiconductor-cli.js --help # 本地运行
262
+ ```
263
+
264
+ ## License
265
+
266
+ MIT
@@ -4,6 +4,15 @@ const { Command } = require("commander");
4
4
  const { publishCommand } = require("../src/commands/html_publish");
5
5
  const { publishCommand: webpagePublishCommand } = require("../src/commands/md_publish");
6
6
  const { searchCommand } = require("../src/commands/web_search");
7
+ const {
8
+ videoInfoCommand,
9
+ videoCommentsCommand,
10
+ userVideosCommand,
11
+ userDetailCommand,
12
+ userSearchCommand,
13
+ videoSearchCommand,
14
+ linkToTextCommand,
15
+ } = require("../src/commands/douyin");
7
16
 
8
17
  const program = new Command();
9
18
 
@@ -79,6 +88,82 @@ searchCmd
79
88
  searchCommand(query, "image", options);
80
89
  });
81
90
 
91
+ // 未知命令处理
92
+
93
+ // douyin 子命令组
94
+ const douyinCmd = program
95
+ .command("douyin")
96
+ .description("抖音数据工具箱");
97
+
98
+ douyinCmd
99
+ .command("video-info")
100
+ .description("获取抖音作品详情(0.01元/次)")
101
+ .argument("<share_url>", "抖音视频分享链接")
102
+ .option("-k, --api-key <key>", "AIConductor API Key")
103
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
104
+ .action((shareUrl, options) => { videoInfoCommand(shareUrl, options); });
105
+
106
+ douyinCmd
107
+ .command("video-comments")
108
+ .description("获取抖音作品评论(0.01元/次)")
109
+ .argument("<video_url>", "抖音视频URL")
110
+ .option("-k, --api-key <key>", "AIConductor API Key")
111
+ .option("--max-count <n>", "获取评论数量", "50")
112
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
113
+ .action((videoUrl, options) => { videoCommentsCommand(videoUrl, options); });
114
+
115
+ douyinCmd
116
+ .command("user-videos")
117
+ .description("获取抖音用户视频列表(0.03元/页)")
118
+ .argument("<home_page>", "抖音用户主页URL")
119
+ .option("-k, --api-key <key>", "AIConductor API Key")
120
+ .option("--max-pages <n>", "最大页数", "1")
121
+ .option("--max-seconds <n>", "最长运行时间(秒),最大180", "50")
122
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
123
+ .action((homePage, options) => { userVideosCommand(homePage, options); });
124
+
125
+ douyinCmd
126
+ .command("user-detail")
127
+ .description("获取抖音用户详情(0.03元/次)")
128
+ .argument("<home_page>", "抖音用户主页URL")
129
+ .option("-k, --api-key <key>", "AIConductor API Key")
130
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
131
+ .action((homePage, options) => { userDetailCommand(homePage, options); });
132
+
133
+ douyinCmd
134
+ .command("user-search")
135
+ .description("搜索抖音用户(0.15元/页)")
136
+ .argument("<keyword>", "搜索关键词")
137
+ .option("-k, --api-key <key>", "AIConductor API Key")
138
+ .option("--max-pages <n>", "最大页数,0=不限制", "1")
139
+ .option("--max-seconds <n>", "最长运行时间(秒),最大180", "50")
140
+ .option("--fans-range <range>", "粉丝数量筛选:0_1k/1k_1w/1w_10w/10w_100w/100w_")
141
+ .option("--user-type <type>", "用户类型筛选:common_user/enterprise_user/personal_user")
142
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
143
+ .action((keyword, options) => { userSearchCommand(keyword, options); });
144
+
145
+ douyinCmd
146
+ .command("video-search")
147
+ .description("搜索抖音视频(0.15元/页)")
148
+ .argument("<keyword>", "搜索关键词")
149
+ .option("-k, --api-key <key>", "AIConductor API Key")
150
+ .option("--max-pages <n>", "最大页数,0=不限制", "1")
151
+ .option("--max-seconds <n>", "最长运行时间(秒),最大50", "50")
152
+ .option("--sort-type <type>", "排序方式:0=综合,1=最多点赞,2=最新发布", "0")
153
+ .option("--publish-time <time>", "发布时间:0=不限,1=一天,7=一周,180=半年", "0")
154
+ .option("--filter-duration <dur>", "视频时长:0=不限,0-1=1分钟内,1-5=1-5分钟,5-10000=5分钟以上", "0")
155
+ .option("--content-type <type>", "内容类型:0=不限,1=视频,2=图片,3=文章", "0")
156
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
157
+ .action((keyword, options) => { videoSearchCommand(keyword, options); });
158
+
159
+ douyinCmd
160
+ .command("link-to-text")
161
+ .description("抖音作品链接转文字(0.01元/次 + 0.0003元/秒)")
162
+ .argument("<video_url>", "抖音视频URL")
163
+ .option("-k, --api-key <key>", "AIConductor API Key")
164
+ .option("-f, --format <format>", "输出格式:json 或 text", "json")
165
+ .action((videoUrl, options) => { linkToTextCommand(videoUrl, options); });
166
+
82
167
  // 未知命令处理
83
168
  program.on("command:*", () => {
84
169
  console.error(`未知命令: ${program.args.join(" ")}`);
package/package.json CHANGED
@@ -1,25 +1,26 @@
1
- {
2
- "name": "aiconductor-cli",
3
- "version": "1.2.0",
4
- "description": "AIConductor CLI 工具箱",
5
- "keywords": [
6
- "aiconductor",
7
- "html",
8
- "publish",
9
- "deploy",
10
- "cli"
11
- ],
12
- "author": "",
13
- "license": "MIT",
14
- "main": "src/index.js",
15
- "bin": {
16
- "aiconductor-cli": "bin/aiconductor-cli.js"
17
- },
18
- "engines": {
19
- "node": ">=16.0.0"
20
- },
21
- "scripts": {},
22
- "dependencies": {
23
- "commander": "^12.1.0"
24
- }
25
- }
1
+ {
2
+ "name": "aiconductor-cli",
3
+ "version": "1.2.2",
4
+ "description": "AIConductor CLI 工具箱",
5
+ "keywords": [
6
+ "aiconductor",
7
+ "html",
8
+ "publish",
9
+ "deploy",
10
+ "cli",
11
+ "douyin",
12
+ "search"
13
+ ],
14
+ "author": "",
15
+ "license": "MIT",
16
+ "bin": {
17
+ "aiconductor-cli": "bin/aiconductor-cli.js"
18
+ },
19
+ "engines": {
20
+ "node": ">=16.0.0"
21
+ },
22
+ "scripts": {},
23
+ "dependencies": {
24
+ "commander": "^12.1.0"
25
+ }
26
+ }