@oiioii/cli 0.1.11 → 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.
Files changed (3) hide show
  1. package/README.md +70 -0
  2. package/dist/cli.js +30 -30
  3. 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.
@@ -631,6 +633,17 @@ oiioii audio generate --prompt "cinematic orchestral background music" --model s
631
633
  oiioii audio generate --prompt "custom lyrics" --model suno --custom --tags "dream pop, female vocal" --json
632
634
  ```
633
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
+
634
647
  Current behavior:
635
648
 
636
649
  - Accepts `--model-id <id>` from `inspect models`, or an exact
@@ -645,6 +658,63 @@ Current behavior:
645
658
  Generation consumes real credits. Do not run image/video/audio generation in
646
659
  unbounded automated loops, and do not retry failures blindly.
647
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
+
648
718
  ## Async Generation and Workspace Assets
649
719
 
650
720
  Image, video, and audio commands submit through OpenAPI by default: