@coze/cli 0.1.0-alpha.5276dd → 0.1.0-alpha.cb1d83
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/LICENSE.md +21 -0
- package/README.md +27 -17
- package/THIRD-PARTY-LICENSES.md +31 -0
- package/lib/cli.js +2451 -2021
- package/lib/{index-CFBaehnq.js → index-5XDMejBE.js} +11079 -11077
- package/lib/send-message.worker.js +2 -2
- package/package.json +10 -16
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ByteDance Ltd. and/or its affiliates
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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) |
|