@seecoolai/cli 0.0.0-stage → 0.1.0-canary.10.80e52474

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.
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: seecool-drama-storyboard
3
+ description: "Use for Seecool /drama Stage 40 (Storyboard, Frames, Videos, Dialogues/TTS, Dubbing, Subtitles, Super-Resolution & Review) via seecool-cli: splitting storyboards, editing shots and prompts, rendering and selecting frames and videos, managing dialogues and TTS audio, running dubbing, subtitles, subtitle erasure, super-resolution, and prompt-risk or celebrity review. (中文关键词:拆分镜、重拆镜、分镜生图、镜头生视频、台词配音、音频合成、字幕合成、字幕擦除、视频超分、提示词风控、名人检测)"
4
+ ---
5
+
6
+ # Seecool Drama — Stage 40: Storyboard, Audio, Subtitle & Super-Res
7
+
8
+ Handles **Stage `40`** storyboard production and shot-level post-processing (dialogues/TTS, dubbing, subtitles, subtitle erasure, super-resolution).
9
+ - For independent **BGM** workflows, use `seecool-drama-bgm`.
10
+
11
+ ## Stage Entry & Mandatory Prompt/Asset Gates
12
+
13
+ 1. **Entry Gate**:
14
+ - Initial `drama storyboard split --scope first|all --wait` requires `project_stage >= 30` (auto-formats script internally). Omit `--next-stage`, read back the split storyboards via `drama storyboard list` (permitted at Stage `30` for readback verification), then run `drama project next-stage <id>` separately to enter Stage `40`.
15
+ - All storyboard mutations, frame/video rendering, dialogue/audio, and post-processing commands require `project_stage >= 40`. Never cross-stage while `project_stage < 40`.
16
+ 2. **Optional Frame Image Prompt Gate**:
17
+ - Storyboard keyframe images (`render-images` / `render-frame`) are optional reference assets in `/drama`. When rendering frames, never call `drama storyboard render-images` with missing `frame_desc` unless `--prepare-prompts` is enabled (which generates and waits for prompts before generating images).
18
+ - Single-frame `drama storyboard render-frame <frameId> --prompt "..."` persists `frame_desc` first, then submits generation.
19
+ 3. **Mandatory Video Prompt Gate (`reference_image` Mode)**:
20
+ - `/drama` video generation always uses `reference_image` mode (legacy `first_frame` / `first_last_frame` modes are not used in `/drama`).
21
+ - `drama storyboard render-videos` requires persisted `video_desc` (or `--prepare-prompts` to generate and wait first).
22
+ - Single-shot `drama storyboard render-video <videoId> --prompt "..."` persists `video_desc` first, then submits generation (pass `--ref-images` to attach explicit reference image URLs when needed).
23
+ 4. **Select Winning Assets**: Always pair `--url` and `--pool-id` in `drama storyboard select-video`.
24
+
25
+ ## Step 1: Initial Storyboard Split (`30 → 40`) & Resplit
26
+
27
+ ```bash
28
+ seecool-cli drama storyboard split \
29
+ --project-id 101 \
30
+ --scope first \
31
+ --model-id 7 \
32
+ --wait \
33
+ --dry-run --json
34
+
35
+ seecool-cli drama storyboard split \
36
+ --project-id 101 \
37
+ --scope first \
38
+ --model-id 7 \
39
+ --wait --json
40
+
41
+ # Read back split storyboards before advancing to Stage 40
42
+ seecool-cli drama storyboard list --project-id 101 --episode-id 5 --round-id 11 --json
43
+ seecool-cli drama project next-stage 101 --json
44
+ seecool-cli drama inspect 101 --json
45
+
46
+ # Resplit a specific episode/round (Stage 40 — destructive if storyboards already exist; requires --yes)
47
+ seecool-cli drama storyboard split --project-id 101 --episode-id 5 --round-id 11 --model-id 7 --yes --wait --json
48
+ ```
49
+
50
+ ## Step 2: Inspect & Save Storyboards / Prompts
51
+
52
+ ```bash
53
+ seecool-cli drama storyboard list --project-id 101 --round-id 11 --json
54
+
55
+ # Create shot (omit --id) or update shot/frame/video prompts (pass --id / --frame-id / --video-id)
56
+ seecool-cli drama storyboard save --project-id 101 --episode-id 5 --round-id 11 --index 1 --title "Shot 1" --description "Opening wide shot" --json
57
+ seecool-cli drama storyboard save --project-id 101 --id 8801 --description "Slow push-in on rain-soaked neon alley" --json
58
+ seecool-cli drama storyboard save --project-id 101 --frame-id 601 --frame-prompt "Rain-soaked neon alley, cinematic lighting" --json
59
+ seecool-cli drama storyboard save --project-id 101 --video-id 701 --video-prompt "Slow dolly forward through rain" --json
60
+ seecool-cli drama storyboard delete 8801 --project-id 101 --yes --json
61
+ ```
62
+
63
+ ## Step 3: Render & Select Frame Images (Optional Reference Frames)
64
+
65
+ ```bash
66
+ seecool-cli model list --type image --json
67
+
68
+ # Batch render frames (--prepare-prompts generates & waits for missing image prompts first)
69
+ seecool-cli drama storyboard render-images \
70
+ --project-id 101 \
71
+ --episode-id 5 \
72
+ --round-id 11 \
73
+ --model-id 12 \
74
+ --ratio 9:16 \
75
+ --pixel 2K \
76
+ --prepare-prompts \
77
+ --wait \
78
+ --dry-run --json
79
+
80
+ # Single frame redraw (persists frame_desc first)
81
+ seecool-cli drama storyboard render-frame 601 \
82
+ --project-id 101 \
83
+ --model-id 12 \
84
+ --prompt "Rain-soaked neon alley, cinematic lighting" \
85
+ --ratio 9:16 \
86
+ --dry-run --json
87
+
88
+ # Select winning frame image
89
+ seecool-cli drama storyboard select-image 601 --url "https://..." --json
90
+ ```
91
+
92
+ ## Step 4: Render & Select Storyboard Videos (`reference_image` Mode)
93
+
94
+ ```bash
95
+ seecool-cli model list --type video --json
96
+
97
+ # Estimate cost & get single-use quote_token, then execute with --confirm-quote <token>
98
+ seecool-cli drama storyboard render-videos \
99
+ --project-id 101 \
100
+ --round-id 11 \
101
+ --model-id 34 \
102
+ --ratio 9:16 \
103
+ --resolution 720p \
104
+ --quote --json
105
+
106
+ # Batch render videos (--prepare-prompts generates & waits for video_desc; --wait returns outcome_summary; --only-failed retries only failed shots)
107
+ seecool-cli drama storyboard render-videos \
108
+ --project-id 101 \
109
+ --episode-id 5 \
110
+ --round-id 11 \
111
+ --model-id 34 \
112
+ --ratio 9:16 \
113
+ --resolution 720p \
114
+ --prepare-prompts \
115
+ --wait \
116
+ --dry-run --json
117
+
118
+ # Targeted retry of failed shots only (after partial failure in outcome_summary)
119
+ seecool-cli drama storyboard render-videos \
120
+ --project-id 101 \
121
+ --round-id 11 \
122
+ --model-id 34 \
123
+ --only-failed \
124
+ --wait --json
125
+
126
+ # Single video redraw (persists video_desc first; pass --ref-images for explicit reference images)
127
+ seecool-cli drama storyboard render-video 701 \
128
+ --project-id 101 \
129
+ --model-id 34 \
130
+ --prompt "Slow dolly forward" \
131
+ --ref-images "https://..." \
132
+ --ratio 9:16 \
133
+ --resolution 720p \
134
+ --duration 5 \
135
+ --dry-run --json
136
+
137
+ # Select winning video (--url and --pool-id must be paired)
138
+ seecool-cli drama storyboard select-video 701 --url "https://..." --pool-id 9002 --json
139
+ ```
140
+
141
+ ## Step 5: Dialogues, TTS Audio & Post-Processing (Dub / Subtitle / Super-Res)
142
+
143
+ ```bash
144
+ # Dialogue CRUD & TTS audio generation
145
+ seecool-cli drama storyboard dialogue save --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Hold everything." --json
146
+ seecool-cli drama storyboard dialogue save --id 901 --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Freeze!" --json
147
+ seecool-cli drama storyboard dialogue delete 901 --yes --json
148
+ seecool-cli drama storyboard dialogue generate-audio --dialogue-id 901 --dry-run --json
149
+ seecool-cli drama storyboard dialogue generate-audio --project-id 101 --episode-id 5 --dry-run --json
150
+ seecool-cli drama storyboard dialogue generate-audio --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
151
+
152
+ # Post-processing: dubbing, subtitle synthesis, subtitle erasure & super-resolution
153
+ # Supports --quote on subtitle-erase / super-res (as well as render-images / render-videos / render-video)
154
+ seecool-cli drama storyboard post --action dub --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
155
+ seecool-cli drama storyboard post --action subtitle --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
156
+
157
+ # Subtitle erasure: source_profile is "seedance" (free within 24h for supported Volcengine models) or "general" (paid smart erasure); supports batch --task-ids
158
+ seecool-cli drama storyboard post --action subtitle-erase --project-id 101 --task-id 777 --source-profile seedance --dry-run --json
159
+ seecool-cli drama storyboard post --action subtitle-erase --project-id 101 --task-ids "777,778" --source-profile general --quote --json
160
+
161
+ # Super-resolution: validates model allowlist & resolution; add --wait --round-id to poll and verify output URL & resolution metadata
162
+ seecool-cli drama storyboard post --action super-res --project-id 101 --task-id 777 --storyboard-id 8801 --model-id 99 --resolution 1080p --duration 5 --quote --json
163
+ seecool-cli drama storyboard post --action super-res --project-id 101 --round-id 11 --task-id 777 --storyboard-id 8801 --model-id 99 --resolution 1080p --duration 5 --wait --dry-run --json
164
+ ```
165
+
166
+ ## Step 6: Compliance Review (Prompt Risk & Celebrity Detection)
167
+
168
+ ```bash
169
+ # Submit or inspect prompt risk detection tasks for storyboards / rounds
170
+ seecool-cli drama review prompt-risk --project-id 101 --storyboard-ids "8801,8802" --round-id 11 --wait --json
171
+ seecool-cli drama review prompt-risk --project-id 101 --round-id 11 --json
172
+
173
+ # Query or submit celebrity likeness detection on generated image pools
174
+ seecool-cli drama review celebrity --project-id 101 --pool-ids "9001,9002" --submit --wait --json
175
+ seecool-cli drama review celebrity --project-id 101 --storyboard-id 8801 --json
176
+ ```
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: seecool-drama-subject
3
+ description: "Use for Seecool /drama Stage 30 (Subject Management: characters, scenes, items) via seecool-cli: inspecting and saving subject prompts before image generation, generating and selecting subject images, binding character voices, and handing off to storyboard split for stage 40. (中文关键词:主体管理、角色三视图、场景图、道具图、主体生图、选图、角色音色绑定)"
4
+ ---
5
+
6
+ # Seecool Drama — Stage 30: Subject Management
7
+
8
+ Handles **Stage `30` (Characters, Scenes & Items)** operations.
9
+
10
+ ## Stage Entry & Mandatory Prompt-First Rules
11
+
12
+ 1. **Entry Gate**: Run `seecool-cli drama inspect <projectId> --json` and confirm `project.stage >= 30` and `subjects.batch_settled === true`. If `project.stage < 30`, stop and complete `seecool-drama-chapter` first.
13
+ 2. **MANDATORY Prompt-First Gate (Characters, Scenes & Items)**:
14
+ - Never call `drama subject generate-images` or `drama subject generate-one` when a subject's persisted prompt (`description` / `gc_image_description`) is empty.
15
+ - Always inspect `drama subject list --project-id <id> --type <character|scene|item> --json` first.
16
+ - If prompts are missing:
17
+ - Write and confirm each prompt via `drama subject save --project-id <id> --id <settingId> --description "<prompt>" --json` (`ok: true`), **OR**
18
+ - Pass `--prepare-prompts` to `drama subject generate-images` (for `character` / `scene`) so CLI generates and waits for persisted prompts before submitting image generation, **OR**
19
+ - Pass `--prompt "<prompt>"` to `drama subject generate-one` (CLI writes & persists the prompt first, verifies it, then submits generation).
20
+ - CLI rejects missing prompts with `MISSING_SUBJECT_PROMPT` and lists `details.missing_ids`.
21
+ 3. **Preview & Select**: Always query `seecool-cli model list --type image --json`, preview with `--dry-run`, and select winning images via `drama subject select-image`.
22
+
23
+ ## Step 1: Inspect & Save Subject Prompts
24
+
25
+ ```bash
26
+ seecool-cli drama subject list --project-id 101 --type character --json
27
+ seecool-cli drama subject list --project-id 101 --type scene --json
28
+ seecool-cli drama subject list --project-id 101 --type item --json
29
+ seecool-cli drama subject get 301 --project-id 101 --json
30
+
31
+ # Create a new subject (omit --id) or save/update persisted prompt (pass --id)
32
+ seecool-cli drama subject save --project-id 101 --type character --name "Detective Lin" --description "Middle-aged detective in dark trench coat, three-view sheet" --json
33
+ seecool-cli drama subject save --project-id 101 --id 301 --description "Middle-aged detective in dark trench coat, three-view sheet" --json
34
+ seecool-cli drama subject delete 301 --yes --json
35
+ ```
36
+
37
+ ## Step 2: Generate Subject Images (With Persisted Prompts & Pre-Charge Quote)
38
+
39
+ ```bash
40
+ seecool-cli model list --type image --json
41
+
42
+ # Estimate points & check balance without submitting (supports --quote)
43
+ seecool-cli drama subject generate-images \
44
+ --project-id 101 \
45
+ --kind character \
46
+ --model-id 12 \
47
+ --ratio 16:9 \
48
+ --pixel 2K \
49
+ --quote --json
50
+
51
+ # Batch subject images (character | scene | item); add --prepare-prompts if 3view/scene prompts are missing
52
+ seecool-cli drama subject generate-images \
53
+ --project-id 101 \
54
+ --kind character \
55
+ --model-id 12 \
56
+ --ratio 16:9 \
57
+ --pixel 2K \
58
+ --prepare-prompts \
59
+ --wait \
60
+ --dry-run --json
61
+
62
+ seecool-cli drama subject generate-images \
63
+ --project-id 101 \
64
+ --kind character \
65
+ --model-id 12 \
66
+ --ratio 16:9 \
67
+ --pixel 2K \
68
+ --wait --json
69
+
70
+ # Single-subject redraw (passing --prompt persists description first; --ref-images binds reference URLs; --quote estimates cost)
71
+ seecool-cli drama subject generate-one 301 \
72
+ --project-id 101 \
73
+ --model-id 12 \
74
+ --prompt "Detective Lin three-view character sheet" \
75
+ --ref-images "https://..." \
76
+ --ratio 16:9 \
77
+ --dry-run --json
78
+ ```
79
+
80
+ ## Step 3: Select `final_image` & Bind Character Voices
81
+
82
+ ```bash
83
+ seecool-cli drama subject select-image 301 --project-id 101 --url "https://..." --pool-id 9001 --json
84
+
85
+ # Discover TTS providers & voices, then bind to character
86
+ seecool-cli drama voice list --json
87
+ seecool-cli drama voice list --provider seedaudio --page 1 --limit 50 --json
88
+ seecool-cli drama subject bind-voice 301 --voice-id 55 --speed 1.0 --json
89
+ seecool-cli drama subject bind-voice 301 --voice-desc "Deep calm narrator" --voice-url "https://..." --json
90
+ ```
91
+
92
+ ## Exit Gate (`30 → 40`)
93
+
94
+ Once subjects have `final_image` selected, switch to `seecool-drama-storyboard` to run `drama storyboard split --scope first --wait`, read back the split storyboards to verify completeness, and then separately advance `project_stage` to `40` via `drama project next-stage <id>`.