@coze/cli 0.1.0-alpha.0f8b9e → 0.1.0-alpha.2c7d10
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 +27 -17
- package/THIRD-PARTY-LICENSES.md +31 -0
- package/bin/main +3 -1
- package/lib/cli.js +3427 -2713
- package/lib/{index-SwtgDxQR.js → index-5XDMejBE.js} +10883 -10880
- package/lib/send-message.worker.js +2 -2
- package/package.json +7 -19
package/README.md
CHANGED
|
@@ -310,8 +310,8 @@ coze generate audio "Hello" --output-path ./audio.mp3
|
|
|
310
310
|
# Use SSML input
|
|
311
311
|
echo "<speak>Hello</speak>" | coze generate audio --ssml
|
|
312
312
|
|
|
313
|
-
# Custom speaker and
|
|
314
|
-
coze generate audio "Hello" --speaker zh_female_xiaohe_uranus_bigtts --format ogg_opus
|
|
313
|
+
# Custom speaker and audio encoding
|
|
314
|
+
coze generate audio "Hello" --speaker zh_female_xiaohe_uranus_bigtts --audio-format ogg_opus
|
|
315
315
|
```
|
|
316
316
|
|
|
317
317
|
**`generate audio` options:**
|
|
@@ -319,7 +319,7 @@ coze generate audio "Hello" --speaker zh_female_xiaohe_uranus_bigtts --format og
|
|
|
319
319
|
| Option | Default | Description |
|
|
320
320
|
|---|---|---|
|
|
321
321
|
| `--speaker <speaker>` | `zh_female_xiaohe_uranus_bigtts` | Voice speaker |
|
|
322
|
-
| `--format <fmt>` | `mp3` | Audio
|
|
322
|
+
| `--audio-format <fmt>` | `mp3` | Audio encoding: `pcm` \| `mp3` \| `ogg_opus` |
|
|
323
323
|
| `--sample-rate <n>` | `24000` | Sample rate |
|
|
324
324
|
| `--speech-rate <n>` | `0` | Speech rate (-50 to 100) |
|
|
325
325
|
| `--loudness-rate <n>` | `0` | Loudness (-50 to 100) |
|
|
@@ -329,28 +329,34 @@ coze generate audio "Hello" --speaker zh_female_xiaohe_uranus_bigtts --format og
|
|
|
329
329
|
#### Video Generation
|
|
330
330
|
|
|
331
331
|
```bash
|
|
332
|
-
#
|
|
333
|
-
coze generate video "A cat playing piano"
|
|
332
|
+
# Create a video generation task
|
|
333
|
+
coze generate video create "A cat playing piano"
|
|
334
334
|
|
|
335
|
-
#
|
|
336
|
-
coze generate video "A dancing kitten" --
|
|
335
|
+
# Create a task and wait for completion
|
|
336
|
+
coze generate video create "A dancing kitten" --wait
|
|
337
337
|
|
|
338
|
-
#
|
|
339
|
-
coze generate video "A dancing kitten" --
|
|
338
|
+
# Save to a specific path
|
|
339
|
+
coze generate video create "A dancing kitten" --wait --output-path ./video.mp4
|
|
340
340
|
|
|
341
341
|
# Custom resolution and aspect ratio
|
|
342
|
-
coze generate video "A landscape" --resolution 1080p --ratio 16:9
|
|
342
|
+
coze generate video create "A landscape" --resolution 1080p --ratio 16:9
|
|
343
343
|
|
|
344
344
|
# Use reference images
|
|
345
|
-
coze generate video "Animate this" --first-frame https://example.com/frame.png
|
|
346
|
-
coze generate video "In this style" --reference-image https://example.com/ref.png
|
|
345
|
+
coze generate video create "Animate this" --first-frame https://example.com/frame.png
|
|
346
|
+
coze generate video create "In this style" --reference-image https://example.com/ref.png
|
|
347
|
+
|
|
348
|
+
# Query task status later
|
|
349
|
+
coze generate video status task_123
|
|
347
350
|
```
|
|
348
351
|
|
|
349
|
-
|
|
352
|
+
Use `coze generate video create` to submit generation tasks, and `coze generate video status <taskId>` to query existing tasks.
|
|
353
|
+
|
|
354
|
+
**`generate video create` options:**
|
|
350
355
|
|
|
351
356
|
| Option | Default | Description |
|
|
352
357
|
|---|---|---|
|
|
353
358
|
| `--model <model>` | `doubao-seedance-1-5-pro-251215` | Video generation model |
|
|
359
|
+
| `--callback-url <url>` | — | Callback URL for task status changes |
|
|
354
360
|
| `--resolution <res>` | `720p` | Resolution: `480p` \| `720p` \| `1080p` |
|
|
355
361
|
| `--ratio <ratio>` | `16:9` | Aspect ratio (e.g., `16:9`, `9:16`, `1:1`) |
|
|
356
362
|
| `--size <size>` | — | Derive ratio/resolution from `WIDTHxHEIGHT` |
|
|
@@ -363,11 +369,15 @@ coze generate video "In this style" --reference-image https://example.com/ref.pn
|
|
|
363
369
|
| `--last-frame <url>` | — | Last frame image URL |
|
|
364
370
|
| `--reference-image <url>` | — | Reference image URL (repeatable) |
|
|
365
371
|
| `--return-last-frame` | `false` | Return last frame URL in output |
|
|
366
|
-
| `--
|
|
367
|
-
| `--poll-interval <ms>` | `2000` | Polling interval in milliseconds |
|
|
368
|
-
| `--poll-timeout <ms>` | `300000` | Polling timeout in milliseconds (5 min) |
|
|
372
|
+
| `--wait` | `false` | Poll until completion instead of returning `taskId` immediately |
|
|
369
373
|
| `--output-path <path>` | — | Directory to save generated video |
|
|
370
374
|
|
|
375
|
+
**`generate video status` options:**
|
|
376
|
+
|
|
377
|
+
| Option | Default | Description |
|
|
378
|
+
|---|---|---|
|
|
379
|
+
| `--output <format>` | `text` | Output format: `text` \| `json` |
|
|
380
|
+
|
|
371
381
|
### `coze file` — File Operations
|
|
372
382
|
|
|
373
383
|
Upload local files to Coze for use as attachments or context in projects.
|
|
@@ -500,4 +510,4 @@ coze code deploy status <projectId> --format json
|
|
|
500
510
|
|
|
501
511
|
## License
|
|
502
512
|
|
|
503
|
-
|
|
513
|
+
See the [LICENSE](LICENSE.md) file and [THIRD-PARTY-LICENSES](THIRD-PARTY-LICENSES.md) included in the package for full terms, conditions, and third-party notices.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @coze/cli THIRD-PARTY LICENSES
|
|
2
|
+
|
|
3
|
+
**Copyright (c) 2026 ByteDance Ltd. and/or its affiliates**
|
|
4
|
+
|
|
5
|
+
This project, **@coze/cli**, incorporates components from the open source projects listed below.
|
|
6
|
+
The original copyright notices and the licenses under which ByteDance received such components are set forth below.
|
|
7
|
+
|
|
8
|
+
## Open Source and Third-Party Components
|
|
9
|
+
|
|
10
|
+
| Component | License | URL |
|
|
11
|
+
| :--- | :--- | :--- |
|
|
12
|
+
| **chalk** | MIT | [Link](https://www.npmjs.com/package/chalk) |
|
|
13
|
+
| **commander** | MIT | [Link](https://www.npmjs.com/package/commander) |
|
|
14
|
+
| **form-data** | MIT | [Link](https://www.npmjs.com/package/form-data) |
|
|
15
|
+
| **http-proxy-agent** | MIT | [Link](https://www.npmjs.com/package/http-proxy-agent) |
|
|
16
|
+
| **https-proxy-agent** | MIT | [Link](https://www.npmjs.com/package/https-proxy-agent) |
|
|
17
|
+
| **lodash** | MIT | [Link](https://www.npmjs.com/package/lodash) |
|
|
18
|
+
| **mitt** | MIT | [Link](https://www.npmjs.com/package/mitt) |
|
|
19
|
+
| **omelette** | MIT | [Link](https://www.npmjs.com/package/omelette) |
|
|
20
|
+
| **undici** | MIT | [Link](https://www.npmjs.com/package/undici) |
|
|
21
|
+
| **@rollup/plugin-commonjs** | MIT | [Link](https://www.npmjs.com/package/@rollup/plugin-commonjs) |
|
|
22
|
+
| **@rollup/plugin-json** | MIT | [Link](https://www.npmjs.com/package/@rollup/plugin-json) |
|
|
23
|
+
| **@rollup/plugin-node-resolve** | MIT | [Link](https://www.npmjs.com/package/@rollup/plugin-node-resolve) |
|
|
24
|
+
| **@rollup/plugin-sucrase** | MIT | [Link](https://www.npmjs.com/package/@rollup/plugin-sucrase) |
|
|
25
|
+
| **@types/lodash** | MIT | [Link](https://www.npmjs.com/package/@types/lodash) |
|
|
26
|
+
| **@types/node** | MIT | [Link](https://www.npmjs.com/package/@types/node) |
|
|
27
|
+
| **@vitest/coverage-v8** | MIT | [Link](https://www.npmjs.com/package/@vitest/coverage-v8) |
|
|
28
|
+
| **rollup** | MIT | [Link](https://www.npmjs.com/package/rollup) |
|
|
29
|
+
| **sucrase** | MIT | [Link](https://www.npmjs.com/package/sucrase) |
|
|
30
|
+
| **tsx** | MIT | [Link](https://www.npmjs.com/package/tsx) |
|
|
31
|
+
| **vitest** | MIT | [Link](https://www.npmjs.com/package/vitest) |
|
package/bin/main
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const isCompletion =
|
|
3
|
+
const isCompletion =
|
|
4
|
+
process.argv.includes('--compzsh') ||
|
|
4
5
|
process.argv.includes('--compbash') ||
|
|
6
|
+
process.argv.includes('--comppwsh') ||
|
|
5
7
|
process.argv.includes('--completion') ||
|
|
6
8
|
process.argv.includes('completion');
|
|
7
9
|
|