@oiioii/cli 0.1.9 → 0.1.12
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 +72 -0
- package/dist/cli.js +30 -30
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ human-readable output and a stable JSON envelope for AI agents and automation.
|
|
|
29
29
|
| `video image` | Image-to-video generation | Implemented |
|
|
30
30
|
| `video generate` | Model-validated mixed image/video/audio reference generation | Implemented |
|
|
31
31
|
| `audio generate` | Seed Audio and Suno audio/music generation | Implemented |
|
|
32
|
+
| `story create/list/status/cancel` | Submit and manage no-interaction Story workflow tasks | Implemented |
|
|
32
33
|
| `upload resource` | Upload image/video/audio resources without a workspace | Implemented |
|
|
33
34
|
| `upload file` | Upload image/video/audio and attach it to a workspace | Implemented |
|
|
34
35
|
| `record get/open` | Query generation metadata and download resources | Implemented |
|
|
@@ -44,6 +45,7 @@ Important current limitations:
|
|
|
44
45
|
- Generation submits `POST /v1/media/generations` by default and returns immediately with the authoritative backend `task_id` plus a `local_task_id`.
|
|
45
46
|
- The backend task ID, workspace, media type, asset ID, progress, and terminal outputs are cached in the owner-only local task store.
|
|
46
47
|
- `task status/wait` query the stored task transport for non-terminal cached tasks and accept either the backend or local task ID.
|
|
48
|
+
- Story tasks can be listed, queried, and cancelled without a local task-cache entry.
|
|
47
49
|
- If submission times out or disconnects before the backend task ID is received, the task remains `submitting`; `task retry <local_task_id>` resends the saved request with the original idempotency key.
|
|
48
50
|
- REST metadata requests time out after 30 seconds; raw resource uploads/downloads use a 5-minute transfer timeout, and VOD transcode polling has a 10-minute overall deadline.
|
|
49
51
|
- Image, video, and audio generation create local preview bundles after a queried task reaches a terminal state.
|
|
@@ -309,6 +311,8 @@ oiioii workspace folder restore <folder_id> --json
|
|
|
309
311
|
oiioii workspace folder purge <folder_id> --json
|
|
310
312
|
```
|
|
311
313
|
|
|
314
|
+
Folder writes and library asset deletion use POST. Upgrade the backend to one that provides the POST folder update/placement/purge and library deletion routes before upgrading the CLI. The backend retains its legacy PATCH, PUT, and DELETE routes for older clients.
|
|
315
|
+
|
|
312
316
|
List responses include `has_more` and, when more rows exist, `next_cursor`. Pass that cursor using `--cursor` to fetch the next page. Trashing/restoring a folder applies to its contained projects; `purge` permanently deletes a trashed folder and its projects.
|
|
313
317
|
|
|
314
318
|
Rename the active workspace, or pass an explicit workspace ID:
|
|
@@ -629,6 +633,17 @@ oiioii audio generate --prompt "cinematic orchestral background music" --model s
|
|
|
629
633
|
oiioii audio generate --prompt "custom lyrics" --model suno --custom --tags "dream pop, female vocal" --json
|
|
630
634
|
```
|
|
631
635
|
|
|
636
|
+
ElevenLabs v4 supports direct speech synthesis plus optional official voice,
|
|
637
|
+
stability, language, accent, and emotion controls:
|
|
638
|
+
|
|
639
|
+
```bash
|
|
640
|
+
oiioii audio elevenlabs \
|
|
641
|
+
--prompt "你好,这是 ElevenLabs V4。" \
|
|
642
|
+
--speaker-id <voice-id> \
|
|
643
|
+
--stability 0.5 \
|
|
644
|
+
--json
|
|
645
|
+
```
|
|
646
|
+
|
|
632
647
|
Current behavior:
|
|
633
648
|
|
|
634
649
|
- Accepts `--model-id <id>` from `inspect models`, or an exact
|
|
@@ -643,6 +658,63 @@ Current behavior:
|
|
|
643
658
|
Generation consumes real credits. Do not run image/video/audio generation in
|
|
644
659
|
unbounded automated loops, and do not retry failures blindly.
|
|
645
660
|
|
|
661
|
+
## Story Generation
|
|
662
|
+
|
|
663
|
+
`story create` submits the no-interaction Story OpenAPI workflow. It creates a
|
|
664
|
+
new workspace named by `--task-name`; provide exactly one script source and a
|
|
665
|
+
style URI:
|
|
666
|
+
|
|
667
|
+
```bash
|
|
668
|
+
oiioii story create \
|
|
669
|
+
--task-name "CLI Story" \
|
|
670
|
+
--script-file ./story.txt \
|
|
671
|
+
--style hogi://style/1844 \
|
|
672
|
+
--wait \
|
|
673
|
+
--json
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
Without `--wait`, the response returns the authoritative backend `taskId` and
|
|
677
|
+
workspace ID. Query it directly without relying on local task history:
|
|
678
|
+
|
|
679
|
+
```bash
|
|
680
|
+
oiioii story status <task_id> --json
|
|
681
|
+
oiioii story list --status processing --limit 20 --json
|
|
682
|
+
oiioii story cancel <task_id> --json
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
`story list` returns cursor pagination for Story OpenAPI root tasks only. Cancel
|
|
686
|
+
is idempotent for an already-cancelled task; completed and failed tasks return
|
|
687
|
+
`TASK_NOT_CANCELLABLE`. Existing workspace assets are retained, and media work
|
|
688
|
+
already submitted to a provider may finish in the background.
|
|
689
|
+
|
|
690
|
+
Use `--script-uri hogi://document/...` instead of `--script-file` for an
|
|
691
|
+
already uploaded document. `--idempotency-key` supports safe replay after an
|
|
692
|
+
ambiguous submission; reuse the same key and identical request options.
|
|
693
|
+
|
|
694
|
+
## Quick Media Workflows
|
|
695
|
+
|
|
696
|
+
`media` is a production command for invoking the headless Quick Media Agent
|
|
697
|
+
actions. It creates one root asynchronous task and can optionally wait for the
|
|
698
|
+
terminal result and download the generated resources:
|
|
699
|
+
|
|
700
|
+
```bash
|
|
701
|
+
oiioii media create \
|
|
702
|
+
--workspace-id <workspace-id> \
|
|
703
|
+
--type video \
|
|
704
|
+
--prompt "Animate the clouds" \
|
|
705
|
+
--model-id 90 \
|
|
706
|
+
--hogi-uri hogi://image/<id> \
|
|
707
|
+
--wait \
|
|
708
|
+
--download-dir ./outputs \
|
|
709
|
+
--json
|
|
710
|
+
|
|
711
|
+
oiioii media status <task-id> --json
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
Use `--model-id` or `--model [--variant]` for catalog-backed selection. The
|
|
715
|
+
advanced `--tool` and `--model-version` options bypass or override catalog
|
|
716
|
+
selection and should use values returned by `inspect models`.
|
|
717
|
+
|
|
646
718
|
## Async Generation and Workspace Assets
|
|
647
719
|
|
|
648
720
|
Image, video, and audio commands submit through OpenAPI by default:
|