@seecoolai/cli 0.0.0-stage → 0.1.0-canary.2.bb757c0e

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/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "@seecoolai/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-canary.2.bb757c0e",
4
+ "description": "Agent-friendly CLI and Skills for Seecool",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "node": ">=20.0.0"
9
+ },
10
+ "bin": {
11
+ "seecool-cli": "./dist/bin.mjs"
12
+ },
13
+ "exports": {
14
+ "./skills/*": "./skills/*",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist/bin.mjs",
19
+ "skills",
20
+ "README.md",
21
+ "README.zh-CN.md",
22
+ "LICENSE"
23
+ ],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "packageManager": "pnpm@10.32.1"
28
+ }
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: seecool-canvas
3
+ description: Use when a user asks about Seecool /flow canvas node-graph CLI operations (canvas projects, node mutations, preflight, and canvas runs).
4
+ ---
5
+
6
+ # Seecool Canvas Skill
7
+
8
+ ## Current Availability (Phase 1 Boundary)
9
+
10
+ Dedicated `/flow` canvas CLI commands (canvas projects, node mutations, preflight, and canvas runs) are planned for Phase 3 and are **not yet released** in this CLI version.
11
+
12
+ Do **not** invent or invoke unreleased `/flow` canvas subcommands. Verify currently available commands at any time with:
13
+
14
+ ```bash
15
+ seecool-cli schema --json
16
+ ```
17
+
18
+ ## Available Shared Capabilities Today
19
+
20
+ You can already use the shared `seecool-cli` CLI commands for environment setup, authentication, organization switching, media upload, and model catalog inspection:
21
+
22
+ ```bash
23
+ seecool-cli status --json
24
+ seecool-cli region list --json
25
+ seecool-cli org list --json
26
+ seecool-cli model list --json
27
+ seecool-cli upload --path ./reference.png --json
28
+ ```
29
+
30
+ When `/flow` canvas commands ship in a future release, run `seecool-cli update` to upgrade both the CLI and this skill together.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: seecool-drama
3
+ description: Use when operating Seecool via CLI for login/auth, region switching (cn/global), organization switching, uploading media assets, querying backend AI models, or driving Seecool /drama short-drama projects end-to-end (inspect, project, style, chapter, episode, round, subject, storyboard, frame, video).
4
+ ---
5
+
6
+ # Seecool Drama Skill
7
+
8
+ Use `seecool-cli` (`@seecoolai/cli`) to drive Seecool `/drama` short-drama workflows deterministically with structured JSON output.
9
+
10
+ ## Scope & Routing
11
+
12
+ - **Handled by `seecool-drama`**: authentication (`status` / `login` / `logout`), region switching (`cn` / `global`), organization context (`org`), OSS uploads (`upload`), AI model catalog (`model list`), visual styles (`drama style`), project diagnostics (`drama inspect`), and the full `/drama` production pipeline (`drama project`, `drama chapter`, `drama episode`, `drama round`, `drama subject`, `drama voice`, `drama dialogue`, `drama audio`, `drama storyboard`, `drama video`).
13
+ - **Not handled here**: `/flow` canvas node-graph operations belong to `seecool-canvas`.
14
+
15
+ ## Mandatory Execution Rules
16
+
17
+ 1. **Ensure CLI availability first**: prefer global `seecool-cli`; if missing, fall back to `npx -y @seecoolai/cli ...` or run `node scripts/ensure-cli.mjs` from this skill directory.
18
+ 2. **Always consume JSON**: pass `--json` (or run non-interactively) and parse `ok`, `data`, `error.code`, and `error.hint` from `stdout`. Ignore diagnostic messages on `stderr`.
19
+ 3. **Verify auth and organization first**: run `seecool-cli status --verify --json` before business calls. If `logged_in` is `false`, run `seecool-cli login` (or `seecool-cli login --token-stdin` / `SEECOOL_TOKEN` in remote sandboxes).
20
+ 4. **Always start project work with `drama inspect`**: when resuming or advancing any existing project, run `seecool-cli drama inspect <projectId> --json` first. Read `project.stage`, `blockers`, and `next_actions` instead of guessing which stage the project is in.
21
+ 5. **Never invent IDs or model parameters**: always query `seecool-cli org list --json`, `seecool-cli drama style list --json`, and `seecool-cli model list --type <text|image|video> --json` (inspect `param_hints` / `extra_params` for supported ratios, sizes, resolutions, and durations).
22
+ 6. **Preview destructive or billable jobs with `--dry-run`**: always run `--dry-run` before batch image/video generation, confirm credit-consuming batches with the user when appropriate, and pass `--yes` explicitly on delete commands.
23
+ 7. **Always select winning assets before moving to the next stage**:
24
+ - After subject image generation, inspect candidates via `seecool-cli drama subject list` / `get` and set `final_image` via `seecool-cli drama subject update`.
25
+ - After storyboard image generation, set `selected_image_url` via `seecool-cli drama storyboard frame-update`.
26
+ - After storyboard video generation, set `--url` + `--pool-id` together via `seecool-cli drama storyboard select-video`.
27
+ 8. **Never echo secrets**: never print, log, or pass raw tokens as positional arguments.
28
+ 9. **Introspect flags via `schema`**: run `seecool-cli schema drama --json` instead of guessing flags.
29
+
30
+ ## Stage State Machine (`project_stage`)
31
+
32
+ Seecool `/drama` uses numeric workflow stages:
33
+
34
+ | `project_stage` | Stage | Primary Goal | Recommended Composite / Entry Command |
35
+ | --- | --- | --- | --- |
36
+ | `10` | Script | Create project, upload & bind script, split into chapters/rounds | `seecool-cli drama chapter import-script --project-id <id> --path <file> --split --advance-stage` |
37
+ | `20` | Chapter | Review/edit chapters & rounds, extract subjects | `seecool-cli drama subject extract-all --project-id <id> --advance-stage` |
38
+ | `30` | Subject | Inspect subjects, generate 3-view/scene/item images, select `final_image`, run initial storyboard split | `seecool-cli drama storyboard split --project-id <id> --scope first --auto-format --advance-stage` |
39
+ | `40` | Storyboard | Edit shots/materials, generate prompts & frames, select frames, generate videos, select videos | `seecool-cli drama storyboard list --project-id <id> --round-id <roundId>` |
40
+ | `50` | Preview / Finished | Merge finished cut, select final version, optional BGM | `seecool-cli drama video merge --project-id <id> --episode-id <epId>` |
41
+
42
+ ## On-Demand References
43
+
44
+ Read only the reference needed for the current stage:
45
+
46
+ - [Auth, Region & Organization](commands/auth-and-region.md)
47
+ - [Upload & AI Model Catalog](commands/upload-and-models.md)
48
+ - [Inspect, Styles & Projects](commands/drama-project.md)
49
+ - [Scripts, Chapters & Rounds](commands/drama-script-chapter.md)
50
+ - [Subjects, Episodes & Round Sync](commands/drama-subjects-and-rounds.md)
51
+ - [Voices, Dialogues & Audio Dubbing](commands/drama-voice-and-audio.md)
52
+ - [Storyboards, Frames & Finished Videos](commands/drama-storyboard-and-video.md)
53
+ - [End-to-End Drama Example](examples/drama-end-to-end.md)
54
+ - [Async Delivery & Failure Policy](workflows/async-delivery.md)
@@ -0,0 +1,43 @@
1
+ # Auth, Region & Organization Commands
2
+
3
+ ## Regions (`cn` / `global`)
4
+
5
+ Seecool deploys separate domestic (`cn`) and international (`global`) environments. Credentials and default `org_id` are isolated per region.
6
+
7
+ ```bash
8
+ seecool-cli region list --json
9
+ seecool-cli region use cn --json
10
+ seecool-cli region use global --json
11
+ ```
12
+
13
+ For a single command override without changing persistent state, pass `--region global` or set `SEECOOL_REGION=global`.
14
+
15
+ ## Authentication (`status` / `login` / `logout`)
16
+
17
+ ```bash
18
+ seecool-cli status --json
19
+ seecool-cli status --verify --json
20
+ seecool-cli login
21
+ seecool-cli login --region global
22
+ seecool-cli login --choose-region
23
+ seecool-cli login --no-open
24
+ seecool-cli logout --json
25
+ ```
26
+
27
+ - In an interactive TTY, `seecool-cli login` prompts the user to choose **China (`cn`)** or **Global (`global`)** (defaulting to the saved region or local timezone) and persists the selection to `~/.config/seecool/config.json` once authorized.
28
+ - In non-TTY / Agent / `--json` mode, `seecool-cli login` never blocks for keyboard input; pass `--region cn|global` explicitly when targeting a specific region.
29
+ - `seecool-cli login` starts a single-use `127.0.0.1` callback server and opens the Seecool Web `/cli/authorize` page. The user must click confirm in the browser.
30
+ - In remote SSH/Docker sandboxes where localhost callback is unreachable, read credentials from stdin instead of passing tokens as arguments:
31
+ ```bash
32
+ printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --token-stdin --json
33
+ ```
34
+ - `SEECOOL_TOKEN` overrides local credentials for stateless CI/Agent runs. `seecool-cli logout` only clears local credentials and reports `environment_still_active: true` if `SEECOOL_TOKEN` is still set.
35
+
36
+ ## Organizations (`org`)
37
+
38
+ ```bash
39
+ seecool-cli org list --json
40
+ seecool-cli org use 271 --json
41
+ ```
42
+
43
+ Use `--org-id <id>` on any business command to override `x-org-id` for that single invocation.
@@ -0,0 +1,50 @@
1
+ # Inspect, Styles & Drama Projects
2
+
3
+ Projects automatically inherit `country_type` from the active region (`internal` for `cn`, `foreign` for `global`).
4
+
5
+ ## Diagnose Current Project State (Start Here)
6
+
7
+ ```bash
8
+ seecool-cli drama inspect 101 --json
9
+ ```
10
+
11
+ `drama inspect` aggregates `project.stage` (`10`/`20`/`30`/`40`/`50`), chapters/rounds, character/scene/item image coverage, running batch tasks, sampled storyboard frame/video readiness, `blockers`, and concrete `next_actions`.
12
+
13
+ ## Query Visual Style Packages (`seecool-cli drama style`)
14
+
15
+ ```bash
16
+ seecool-cli drama style list --json
17
+ seecool-cli drama style options --project-id 101 --prompt-key character_3view --json
18
+ ```
19
+
20
+ ## List, Inspect & Create Projects (`seecool-cli drama project`)
21
+
22
+ ```bash
23
+ seecool-cli drama project list --page 1 --limit 20 --fields id,project_name,project_stage --json
24
+ seecool-cli drama project get 101 --json
25
+
26
+ # Preview creation payload first
27
+ seecool-cli drama project create \
28
+ --name "Neon Detective" \
29
+ --aspect-ratio 9:16 \
30
+ --comic-type 2 \
31
+ --has-script 1 \
32
+ --has-round 1 \
33
+ --style-id 3 \
34
+ --dry-run --json
35
+
36
+ seecool-cli drama project create \
37
+ --name "Neon Detective" \
38
+ --aspect-ratio 9:16 \
39
+ --comic-type 2 --json
40
+ ```
41
+
42
+ ## Update Metadata, Stage & Completion
43
+
44
+ Stage codes match the Web stepper: `10`=Script, `20`=Chapter, `30`=Subject, `40`=Storyboard, `50`=Preview.
45
+
46
+ ```bash
47
+ seecool-cli drama project update 101 --name "Neon Detective S1" --json
48
+ seecool-cli drama project stage 101 --stage 30 --json
49
+ seecool-cli drama project complete 101 --value 1 --json
50
+ ```
@@ -0,0 +1,54 @@
1
+ # Scripts, Chapters & Rounds
2
+
3
+ ## Recommended Composite: Import & Split Script (Stage 10 -> 20)
4
+
5
+ Upload a local `.txt`/`.docx`/`.pdf` script, bind `script_url`, split into chapters/rounds, and advance `project_stage` to `20`:
6
+
7
+ ```bash
8
+ seecool-cli drama chapter import-script \
9
+ --project-id 101 \
10
+ --path ./script.txt \
11
+ --split \
12
+ --advance-stage \
13
+ --dry-run --json
14
+
15
+ seecool-cli drama chapter import-script \
16
+ --project-id 101 \
17
+ --path ./script.txt \
18
+ --split \
19
+ --advance-stage --json
20
+ ```
21
+
22
+ If `split` fails with script format warnings in `error.details`, review the errors with the user or re-run with `--skip-validation`:
23
+
24
+ ```bash
25
+ seecool-cli drama chapter split --project-id 101 --skip-validation --advance-stage --json
26
+ ```
27
+
28
+ ## Atomic Script & Chapter Commands (`seecool-cli drama chapter`)
29
+
30
+ ```bash
31
+ seecool-cli upload --path ./script.txt --json
32
+ seecool-cli drama chapter bind-script --project-id 101 --url "https://..." --json
33
+ seecool-cli drama chapter supplement-split --project-id 101 --url "https://..." --json
34
+ seecool-cli drama chapter list --project-id 101 --json
35
+ seecool-cli drama chapter get --project-id 101 --chapter-id 12 --json
36
+
37
+ # Create/update uses real backend fields (chapter_index, chapter_title, chapter_content)
38
+ seecool-cli drama chapter create --project-id 101 --index 1 --title "Episode 1" --content-file ./ep1.txt --json
39
+ seecool-cli drama chapter update --project-id 101 --chapter-id 12 --index 1 --title "Episode 1 (Rev)" --content-file ./ep1.txt --json
40
+ seecool-cli drama chapter delete --project-id 101 --chapter-id 12 --yes --json
41
+ seecool-cli drama chapter format --project-id 101 --json
42
+ ```
43
+
44
+ ## Chapter Rounds & Common Prompts (`seecool-cli drama round`)
45
+
46
+ ```bash
47
+ seecool-cli drama round list --project-id 101 --json
48
+ seecool-cli drama round content --project-id 101 --round-ids "11,12" --json
49
+ seecool-cli drama round create --project-id 101 --chapter-id 12 --index 1 --title "Scene 1" --subtitle "Alley" --content "..." --json
50
+ seecool-cli drama round edit --project-id 101 --chapter-id 12 --round-id 11 --title "Scene 1A" --content "..." --json
51
+ seecool-cli drama round delete --project-id 101 --round-id 11 --yes --json
52
+ seecool-cli drama round points --project-id 101 --round-id 11 --json
53
+ seecool-cli drama round common-prompt --project-id 101 --round-id 11 --prefix "cinematic lighting" --suffix "4k" --json
54
+ ```
@@ -0,0 +1,130 @@
1
+ # Storyboards, Frames & Finished Videos (Stage 30 -> 50)
2
+
3
+ ## Initial Storyboard Split (Stage 30 -> 40) & Resplit
4
+
5
+ Matches Web's initial split (`formatChapter` -> `generate-storyboard` with `--scope` -> `project_stage=40`):
6
+
7
+ ```bash
8
+ seecool-cli drama storyboard split \
9
+ --project-id 101 \
10
+ --scope first \
11
+ --model-id 7 \
12
+ --auto-format \
13
+ --advance-stage \
14
+ --dry-run --json
15
+
16
+ seecool-cli drama storyboard split \
17
+ --project-id 101 \
18
+ --scope first \
19
+ --model-id 7 \
20
+ --auto-format \
21
+ --advance-stage --json
22
+
23
+ seecool-cli drama storyboard split-status --project-id 101 --wait --timeout 600 --json
24
+ ```
25
+
26
+ Resplit a specific episode or short-play round:
27
+
28
+ ```bash
29
+ seecool-cli drama storyboard split --project-id 101 --episode-id 5 --round-id 11 --model-id 7 --json
30
+ seecool-cli drama storyboard split-status --project-id 101 --episode-id 5 --round-id 11 --wait --json
31
+ ```
32
+
33
+ ## Inspect & Edit Storyboards, Subjects & Materials
34
+
35
+ ```bash
36
+ seecool-cli drama storyboard list --project-id 101 --round-id 11 --json
37
+ seecool-cli drama storyboard create --project-id 101 --episode-id 5 --round-id 11 --index 1 --description "Opening wide shot" --json
38
+ seecool-cli drama storyboard update 8801 --title "Shot 1" --scene-type 1 --json
39
+ seecool-cli drama storyboard update-desc 8801 --description "Slow push-in on rain-soaked neon alley" --json
40
+ seecool-cli drama storyboard copy 8801 --json
41
+ seecool-cli drama storyboard reorder 8801 --after 0 --json
42
+ seecool-cli drama storyboard confirm 8801 --complete 1 --json
43
+ seecool-cli drama storyboard delete 8801 --yes --json
44
+
45
+ # Subject & reference material bindings
46
+ seecool-cli drama storyboard bind-subject --project-id 101 --storyboard-id 8801 --setting-id 301 --json
47
+ seecool-cli drama storyboard unbind-subject 999 --json
48
+ seecool-cli drama storyboard materials --project-id 101 --episode-id 5 --json
49
+ seecool-cli drama storyboard bind-material --project-id 101 --storyboard-ids "8801" --relation-type ref_image --url "https://..." --json
50
+ seecool-cli drama storyboard unbind-material 401 --project-id 101 --json
51
+ ```
52
+
53
+ ## Frame Prompts, Image Generation & Frame Selection
54
+
55
+ ```bash
56
+ seecool-cli drama storyboard prompts --project-id 101 --kind image --storyboard-ids "8801,8802" --json
57
+ seecool-cli drama storyboard status --project-id 101 --round-id 11 --task-type storyboard_image_prompt --wait --json
58
+
59
+ # Batch episode image generation
60
+ seecool-cli drama storyboard generate-images \
61
+ --project-id 101 \
62
+ --episode-id 5 \
63
+ --model-id 12 \
64
+ --ratio 9:16 \
65
+ --pixel 2K \
66
+ --dry-run --json
67
+
68
+ # Single frame creation, redraw, and selecting winning generated image
69
+ seecool-cli drama storyboard frame-create --storyboard-id 8801 --index 2 --desc "Closing shot" --json
70
+ seecool-cli drama storyboard frame-generate 601 --project-id 101 --model-id 12 --prompt "..." --ratio 9:16 --dry-run --json
71
+ seecool-cli drama storyboard frame-update 601 --selected-image-url "https://..." --json
72
+ ```
73
+
74
+ ## Video Prompts, Video Generation, Selection & Recovery
75
+
76
+ ```bash
77
+ seecool-cli drama storyboard prompts --project-id 101 --kind video-auto-link --storyboard-ids "8801,8802" --force --json
78
+ seecool-cli drama storyboard status --project-id 101 --round-id 11 --task-type storyboard_video_prompt_auto_link_v2 --wait --json
79
+
80
+ # Batch video generation (auto-resolves storyboards in --round-id or accepts explicit --storyboards id:sec,...)
81
+ seecool-cli drama storyboard generate-videos \
82
+ --project-id 101 \
83
+ --model-id 34 \
84
+ --mode first_frame \
85
+ --storyboards "8801:5,8802:5" \
86
+ --ratio 9:16 \
87
+ --resolution 720p \
88
+ --dry-run --json
89
+
90
+ # Single storyboard video generation
91
+ seecool-cli drama storyboard generate-video 701 \
92
+ --model-id 34 \
93
+ --prompt "Slow dolly forward" \
94
+ --mode first_frame \
95
+ --ratio 9:16 \
96
+ --resolution 720p \
97
+ --duration 5 \
98
+ --dry-run --json
99
+
100
+ # Poll round video tasks, select winning video (--url and --pool-id must be paired), retry, cancel, or optimize prompts
101
+ seecool-cli drama storyboard round-video-status --round-id 11 --wait --timeout 900 --json
102
+ seecool-cli drama storyboard select-video 701 --url "https://..." --pool-id 9002 --json
103
+ seecool-cli drama storyboard batch-video-desc --project-id 101 --items '[{"id":701,"video_desc":"Slow dolly forward"}]' --dry-run --json
104
+ seecool-cli drama storyboard prompt-optimize 8801 --model-id 7 --video-desc "Walks in rain" --prompt "Add neon reflections" --target-model wan3.0-video --wait --json
105
+ seecool-cli drama storyboard retry-video 777 --json
106
+ seecool-cli drama storyboard cancel-task --project-id 101 --task-type video_task --task-id 777 --json
107
+ seecool-cli drama storyboard complete-round 11 --json
108
+ ```
109
+
110
+ ## Post-Processing, Finished Video Merge, Upload & BGM (`seecool-cli drama video`)
111
+
112
+ ```bash
113
+ # Dubbing synthesis, subtitle synthesis, subtitle erasure, and super-resolution
114
+ seecool-cli drama video dub --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
115
+ seecool-cli drama video subtitle --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
116
+ seecool-cli drama video subtitle-erase 777 --profile general --dry-run --json
117
+ seecool-cli drama video super-res 777 --storyboard-id 8801 --model-id 99 --resolution 1080p --duration 5 --dry-run --json
118
+
119
+ # Merge or upload finished cuts
120
+ seecool-cli drama video merge --project-id 101 --episode-id 5 --dry-run --json
121
+ seecool-cli drama video merge --project-id 101 --episode-id 5 --json
122
+ seecool-cli drama video upload-finished --round-id 11 --path ./ep1-final.mp4 --dry-run --json
123
+ seecool-cli drama video list --project-id 101 --episode-id 5 --round-id 11 --json
124
+ seecool-cli drama video select 991 --json
125
+
126
+ # BGM generation & status
127
+ seecool-cli drama video bgm-create --params '{"project_id":101,"episode_id":5,"round_id":11,"source_type":"upload","source_id":991}' --dry-run --json
128
+ seecool-cli drama video bgm-list --round-id 11 --source-type upload --source-id 991 --json
129
+ seecool-cli drama video bgm-status --round-id 11 --wait --json
130
+ ```
@@ -0,0 +1,78 @@
1
+ # Subjects, Episodes & Round Sync (Stage 20 -> 30)
2
+
3
+ ## Episodes (`seecool-cli drama episode`)
4
+
5
+ ```bash
6
+ seecool-cli drama episode list --project-id 101 --json
7
+ seecool-cli drama episode rounds --project-id 101 --json
8
+ seecool-cli drama episode create --project-id 101 --index 1 --title "Ep 1" --json
9
+ seecool-cli drama episode update --project-id 101 --episode-id 5 --title "Ep 1 Cut" --json
10
+ seecool-cli drama episode task-count --project-id 101 --episode-id 5 --wait --timeout 600 --json
11
+ ```
12
+
13
+ ## Recommended Composite: Extract All Subjects (Stage 20 -> 30)
14
+
15
+ Concurrently submits character, scene, and item extraction and advances `project_stage` to `30`:
16
+
17
+ ```bash
18
+ seecool-cli model list --type text --json
19
+ seecool-cli drama subject extract-all --project-id 101 --model-id 7 --advance-stage --json
20
+ seecool-cli drama subject status --project-id 101 --wait --timeout 600 --json
21
+ ```
22
+
23
+ ## Inspect, Edit & Select Subject Final Images (`seecool-cli drama subject`)
24
+
25
+ ```bash
26
+ seecool-cli drama subject list --project-id 101 --type character --need-all --json
27
+ seecool-cli drama subject list --project-id 101 --type scene --need-all --json
28
+ seecool-cli drama subject list --project-id 101 --type item --need-all --json
29
+ seecool-cli drama subject get 301 --project-id 101 --json
30
+ seecool-cli drama subject create --project-id 101 --type character --name "Detective Lin" --description "..." --json
31
+ seecool-cli drama subject update 301 --project-id 101 --final-image "https://..." --pool-id 9001 --json
32
+ seecool-cli drama subject copy 301 --json
33
+ seecool-cli drama subject delete 301 --yes --json
34
+ seecool-cli drama subject assets --page 1 --limit 20 --json
35
+ ```
36
+
37
+ ## Generate Subject Prompts & Images
38
+
39
+ Always query `seecool-cli model list --type image --json` first and preview with `--dry-run`:
40
+
41
+ ```bash
42
+ seecool-cli drama subject extract --project-id 101 --kind 3view --model-id 7 --json
43
+ seecool-cli drama subject extract --project-id 101 --kind scene-prompts --model-id 7 --json
44
+ seecool-cli drama subject status --project-id 101 --wait --timeout 600 --json
45
+
46
+ # Batch subject images (auto-builds ai_image_model_params from --ratio / --size / --pixel)
47
+ seecool-cli drama subject generate-images \
48
+ --project-id 101 \
49
+ --kind character \
50
+ --model-id 12 \
51
+ --ratio 16:9 \
52
+ --pixel 2K \
53
+ --dry-run --json
54
+
55
+ # Single-subject image redraw
56
+ seecool-cli drama subject generate-one 301 \
57
+ --project-id 101 \
58
+ --model-id 12 \
59
+ --prompt "Detective Lin three-view character sheet" \
60
+ --ratio 16:9 \
61
+ --dry-run --json
62
+
63
+ # Sync round subjects into storyboards
64
+ seecool-cli drama subject sync-round --project-id 101 --round-id 11 --json
65
+
66
+ # Advanced: multi-angle scene views & batch child-character 3-views
67
+ seecool-cli drama subject scene-views 305 --keys "front,back,side" --dry-run --json
68
+ seecool-cli drama subject generate-child-images --project-id 101 --setting-ids "302,303" --model-id 12 --ratio 16:9 --resolution 2K --dry-run --json
69
+ ```
70
+
71
+ ## Setting-Round Binding Mutations & Splitting
72
+
73
+ ```bash
74
+ seecool-cli drama round update --params '{"project_id":101}' --json
75
+ seecool-cli drama round merge --params '{"project_id":101}' --json
76
+ seecool-cli drama round rollback --params '{"project_id":101}' --json
77
+ seecool-cli drama round split 301 --round-ids "11,12" --type character --name "Detective Lin (Night Coat)" --description "Wearing dark trench coat" --dry-run --json
78
+ ```
@@ -0,0 +1,51 @@
1
+ # Voices, Dialogues & Audio Dubbing
2
+
3
+ ## Discover TTS Providers & Voices (`seecool-cli drama voice`)
4
+
5
+ Always query available providers first so you never guess `--provider`:
6
+
7
+ ```bash
8
+ seecool-cli drama voice providers --json
9
+ seecool-cli drama voice list --provider volcengine --page 1 --limit 50 --json
10
+ seecool-cli drama voice list --provider volcengine --filters '{"gender":"female"}' --json
11
+ ```
12
+
13
+ ## Character Voice Binding & Voice Descriptions (`seecool-cli drama subject`)
14
+
15
+ ```bash
16
+ # Check which characters in an episode still lack a bound voice
17
+ seecool-cli drama subject check-voice --project-id 101 --episode-id 5 --json
18
+
19
+ # Bind a catalog TTS voice to a character
20
+ seecool-cli drama subject bind-voice 301 --voice-id 55 --speed 1.0 --json
21
+
22
+ # Or bind a custom uploaded voice audio URL
23
+ seecool-cli drama subject bind-voice 301 --voice-desc "Deep calm narrator" --voice-url "https://..." --json
24
+
25
+ # Generate AI character voice descriptions (whole project or single --setting-id)
26
+ seecool-cli drama subject voice-desc --project-id 101 --cover-child 0 --model-id 7 --dry-run --json
27
+ seecool-cli drama subject voice-desc --setting-id 301 --cover-child 1 --model-id 7 --json
28
+ seecool-cli drama subject voice-desc-status --project-id 101 --setting-id 301 --wait --timeout 600 --json
29
+ ```
30
+
31
+ ## Manage Storyboard Dialogues (`seecool-cli drama dialogue`)
32
+
33
+ ```bash
34
+ seecool-cli drama dialogue create --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Hold everything." --json
35
+ seecool-cli drama dialogue update 901 --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Freeze!" --json
36
+ seecool-cli drama dialogue reorder 901 --after 0 --json
37
+ seecool-cli drama dialogue bind-voice 901 --voice-id 55 --speed 1.1 --json
38
+ seecool-cli drama dialogue delete 901 --yes --json
39
+ ```
40
+
41
+ ## Generate Dialogue TTS Audio (`seecool-cli drama audio`)
42
+
43
+ ```bash
44
+ # Single dialogue TTS audio
45
+ seecool-cli drama audio generate 901 --dry-run --json
46
+ seecool-cli drama audio generate 901 --json
47
+
48
+ # Batch audio for an entire episode OR selected storyboards in a round
49
+ seecool-cli drama audio batch --project-id 101 --episode-id 5 --dry-run --json
50
+ seecool-cli drama audio batch --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --json
51
+ ```
@@ -0,0 +1,29 @@
1
+ # Upload & AI Model Catalog Commands
2
+
3
+ ## Direct Media Upload (`upload`)
4
+
5
+ Uploads a local file by requesting an OSS direct-upload credential from Portal (`/api/upload/direct-credential`) using the active region's `country_type` (`internal` for `cn`, `foreign` for `global`), then streaming directly to OSS.
6
+
7
+ ```bash
8
+ # Validate file and target region without uploading
9
+ seecool-cli upload --path ./reference.png --dry-run --json
10
+
11
+ # Execute upload and obtain public URL
12
+ seecool-cli upload --path ./reference.png --json
13
+ ```
14
+
15
+ Optional flags:
16
+ - `--content-type <mime>`: override inferred MIME type
17
+ - `--keep-original-name`: ask backend to preserve the source filename
18
+
19
+ ## Backend AI Model Catalog (`model list`)
20
+
21
+ Always query available models from the backend catalog before submitting any generation task. Models without a matching `country_type` for the active region are automatically filtered out.
22
+
23
+ ```bash
24
+ seecool-cli model list --json
25
+ seecool-cli model list --type image --json
26
+ seecool-cli model list --type video --fields model_id,model_name,model_code,video_mode_type --json
27
+ ```
28
+
29
+ Supported `--type` values: `text`, `image`, `video`, `audio`, `text_agent`, `super_resolution_video`.
@@ -0,0 +1,52 @@
1
+ # End-to-End `/drama` Production Example
2
+
3
+ ```bash
4
+ # 1. Verify region, auth, organization, styles, and models
5
+ seecool-cli region list --json
6
+ seecool-cli status --verify --json
7
+ seecool-cli org list --json
8
+ seecool-cli drama style list --json
9
+ seecool-cli model list --type text --json
10
+ seecool-cli model list --type image --json
11
+ seecool-cli model list --type video --json
12
+
13
+ # 2. Stage 10 -> 20: Create project, import script, and split chapters
14
+ seecool-cli drama project create --name "Midnight Noodle Shop" --aspect-ratio 9:16 --comic-type 2 --json
15
+ seecool-cli drama chapter import-script --project-id 101 --path ./midnight-script.txt --split --advance-stage --json
16
+ seecool-cli drama inspect 101 --json
17
+
18
+ # 3. Stage 20 -> 30: Extract all subjects, generate images, and select final_image
19
+ seecool-cli drama subject extract-all --project-id 101 --model-id 7 --advance-stage --json
20
+ seecool-cli drama subject status --project-id 101 --wait --timeout 600 --json
21
+ seecool-cli drama subject list --project-id 101 --type character --need-all --json
22
+ seecool-cli drama subject generate-images --project-id 101 --kind character --model-id 12 --ratio 16:9 --pixel 2K --dry-run --json
23
+ seecool-cli drama subject generate-images --project-id 101 --kind character --model-id 12 --ratio 16:9 --pixel 2K --json
24
+ seecool-cli drama subject status --project-id 101 --wait --timeout 600 --json
25
+ seecool-cli drama subject update 301 --project-id 101 --final-image "https://oss.example.com/char.png" --pool-id 9001 --json
26
+
27
+ # 4. Stage 30 -> 40: Format script, split storyboards, and advance to stage 40
28
+ seecool-cli drama storyboard split --project-id 101 --scope first --model-id 7 --auto-format --advance-stage --json
29
+ seecool-cli drama storyboard split-status --project-id 101 --wait --timeout 600 --json
30
+ seecool-cli drama inspect 101 --json
31
+
32
+ # 5. Stage 40: Prompts -> Frame images -> Select frames -> Videos -> Select videos
33
+ seecool-cli drama storyboard list --project-id 101 --round-id 11 --json
34
+ seecool-cli drama storyboard prompts --project-id 101 --kind image --storyboard-ids "8801,8802" --json
35
+ seecool-cli drama storyboard status --project-id 101 --round-id 11 --wait --timeout 600 --json
36
+ seecool-cli drama storyboard generate-images --project-id 101 --episode-id 5 --model-id 12 --ratio 9:16 --pixel 2K --dry-run --json
37
+ seecool-cli drama storyboard generate-images --project-id 101 --episode-id 5 --model-id 12 --ratio 9:16 --pixel 2K --json
38
+ seecool-cli drama episode task-count --project-id 101 --episode-id 5 --wait --timeout 900 --json
39
+ seecool-cli drama storyboard frame-update 601 --selected-image-url "https://oss.example.com/frame1.png" --json
40
+
41
+ seecool-cli drama storyboard prompts --project-id 101 --kind video-auto-link --storyboard-ids "8801,8802" --force --json
42
+ seecool-cli drama storyboard status --project-id 101 --round-id 11 --wait --timeout 600 --json
43
+ seecool-cli drama storyboard generate-videos --project-id 101 --model-id 34 --mode first_frame --round-id 11 --ratio 9:16 --resolution 720p --dry-run --json
44
+ seecool-cli drama storyboard generate-videos --project-id 101 --model-id 34 --mode first_frame --round-id 11 --ratio 9:16 --resolution 720p --json
45
+ seecool-cli drama storyboard round-video-status --round-id 11 --wait --timeout 1200 --json
46
+ seecool-cli drama storyboard select-video 701 --url "https://oss.example.com/shot1.mp4" --pool-id 9002 --json
47
+
48
+ # 6. Stage 50: Merge and select finished episode video
49
+ seecool-cli drama video merge --project-id 101 --episode-id 5 --json
50
+ seecool-cli drama video list --project-id 101 --episode-id 5 --json
51
+ seecool-cli drama video select 991 --json
52
+ ```
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { execFileSync } from "node:child_process";
4
+
5
+ const MIN_VERSION = "0.1.0";
6
+
7
+ function checkCli() {
8
+ try {
9
+ const version = execFileSync("seecool-cli", ["--version"], {
10
+ stdio: ["ignore", "pipe", "pipe"],
11
+ timeout: 5000,
12
+ })
13
+ .toString("utf8")
14
+ .trim();
15
+
16
+ console.log(
17
+ JSON.stringify({
18
+ ok: true,
19
+ installed: true,
20
+ command: "seecool-cli",
21
+ version,
22
+ min_version: MIN_VERSION,
23
+ }),
24
+ );
25
+ } catch {
26
+ console.log(
27
+ JSON.stringify({
28
+ ok: false,
29
+ installed: false,
30
+ min_version: MIN_VERSION,
31
+ install_command: "npx -y @seecoolai/cli install",
32
+ fallback_prefix: "npx -y @seecoolai/cli",
33
+ }),
34
+ );
35
+ process.exitCode = 1;
36
+ }
37
+ }
38
+
39
+ checkCli();