@seecoolai/cli 0.0.0-stage → 0.1.0-canary.4.8b5e956d

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.4.8b5e956d",
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,50 @@
1
+ ---
2
+ name: seecool-drama
3
+ description: Entry router and platform skill for Seecool via seecool-cli. Use for login/auth, region switching (cn/global), organization switching, CLI updates, OSS uploads, AI model catalog queries, project diagnostics (`drama inspect`), and routing /drama projects to the dedicated stage skill (script, chapter, subject, storyboard, or bgm).
4
+ ---
5
+
6
+ # Seecool Drama Entry & Router Skill
7
+
8
+ Use `seecool-cli` (`@seecoolai/cli`) to authenticate, inspect project state, enforce strict stage ordering, and route each `/drama` task to its dedicated stage skill.
9
+
10
+ ## Scope & Modular Skill Routing
11
+
12
+ Always inspect `project.stage` first and load only the skill for the active stage:
13
+
14
+ | `project_stage` | Stage | Dedicated Skill | Consolidated Commands |
15
+ | --- | --- | --- | --- |
16
+ | `10` | Script | `seecool-drama-script` | `drama style list`, `drama project create`, `drama script import`, `drama project next-stage` |
17
+ | `20` | Chapter | `seecool-drama-chapter` | `drama chapter list\|get\|save\|delete`, `drama round list\|save\|delete`, `drama subject extract` |
18
+ | `30` | Subject | `seecool-drama-subject` | `drama subject list\|get\|save\|delete\|generate-images\|generate-one\|select-image\|bind-voice`, `drama voice list` |
19
+ | `40` | Storyboard | `seecool-drama-storyboard` | `drama storyboard split\|list\|save\|delete\|render-images\|render-frame\|select-image\|render-videos\|render-video\|select-video\|dialogue\|post` |
20
+ | `40` | BGM | `seecool-drama-bgm` | `drama bgm list\|upload-video\|create` |
21
+ | N/A | Canvas | `seecool-canvas` | `/flow` canvas workflow (separate from `/drama`) |
22
+
23
+ ## Mandatory Global Execution Rules
24
+
25
+ 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`.
26
+ 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`.
27
+ 3. **Verify auth, organization, and CLI updates first**: run `seecool-cli status --verify --json` before any business call.
28
+ - If `data.update.update_available` is `true`, immediately run `data.update.command` (with `--json`), then re-read updated skill docs or run `seecool-cli schema drama --json` before continuing.
29
+ - If `data.logged_in` is `false`, run `seecool-cli login` (or `seecool-cli login --token-stdin` / `SEECOOL_TOKEN` in remote sandboxes).
30
+ 4. **Always run `drama inspect` before operating on an existing project**:
31
+ ```bash
32
+ seecool-cli drama inspect <projectId> --json
33
+ ```
34
+ Read `project.stage`, `blockers`, and `next_actions`. Never guess which stage a project is in.
35
+ 5. **Strict Stage Gate — Never Skip or Cross Stages**:
36
+ - Advance sequentially (`10 → 20 → 30 → 40`) via `seecool-cli drama project next-stage <id>` or each stage's `--next-stage` flag.
37
+ - Never invoke a Stage `30` or `40` command while `project_stage` is still `10` or `20`; CLI rejects cross-stage calls with `STAGE_MISMATCH`.
38
+ - Pass `--wait` on async tasks (`extract`, `split`, `generate-images`, `render-images`, `render-videos`, `bgm create`) before advancing to the next stage.
39
+ 6. **Strict Prompt-First Rule Across All Generation Endpoints**:
40
+ - Never invoke image, video, audio, or BGM generation when persisted prompts or upstream selections are missing.
41
+ - Always save/confirm prompts first (or use `--prepare-prompts` / `--prompt` on single redraw), run `--dry-run`, and confirm billable batches with the user when appropriate.
42
+ 7. **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`.
43
+ 8. **Never echo secrets & recover from parameter drift**: never log raw tokens. If a command unexpectedly fails with `BAD_REQUEST` or `INVALID_ARGUMENT`, run `seecool-cli status --check-update --json`, upgrade if available, and inspect `seecool-cli schema drama --json`.
44
+
45
+ ## Platform References
46
+
47
+ - [Auth, Region & Organization](commands/auth-and-region.md)
48
+ - [Upload & AI Model Catalog](commands/upload-and-models.md)
49
+ - [Inspect, Styles & Projects](commands/drama-project.md)
50
+ - [Async Delivery & Failure Policy](workflows/async-delivery.md)
@@ -0,0 +1,46 @@
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 status --check-update --json
21
+ seecool-cli update --json
22
+ seecool-cli login
23
+ seecool-cli login --region global
24
+ seecool-cli login --choose-region
25
+ seecool-cli login --no-open
26
+ seecool-cli logout --json
27
+ ```
28
+
29
+ - `seecool-cli status --json` includes `cli_version` and `update` (cached for 1 hour against npm `dist-tags`, automatically matching `canary` or `stable` channel; pass `--check-update` to bypass cache or set `SEECOOL_NO_UPDATE_CHECK=1` to disable). When `update.update_available` is `true`, run `update.command` (`seecool-cli update` auto-detects the current channel) and re-check `seecool-cli schema drama --json` if flags changed.
30
+ - 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.
31
+ - In non-TTY / Agent / `--json` mode, `seecool-cli login` never blocks for keyboard input; pass `--region cn|global` explicitly when targeting a specific region.
32
+ - `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.
33
+ - In remote SSH/Docker sandboxes where localhost callback is unreachable, read credentials from stdin instead of passing tokens as arguments:
34
+ ```bash
35
+ printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --token-stdin --json
36
+ ```
37
+ - `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.
38
+
39
+ ## Organizations (`org`)
40
+
41
+ ```bash
42
+ seecool-cli org list --json
43
+ seecool-cli org use 271 --json
44
+ ```
45
+
46
+ Use `--org-id <id>` on any business command to override `x-org-id` for that single invocation.
@@ -0,0 +1,48 @@
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`), chapters/rounds, character/scene/item prompt & 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
+ ```
18
+
19
+ ## List, Inspect, Create & Advance Projects (`seecool-cli drama project`)
20
+
21
+ ```bash
22
+ seecool-cli drama project list --page 1 --limit 20 --fields id,project_name,project_stage --json
23
+ seecool-cli drama project get 101 --json
24
+
25
+ # Preview creation payload first
26
+ seecool-cli drama project create \
27
+ --name "Neon Detective" \
28
+ --aspect-ratio 9:16 \
29
+ --comic-type 2 \
30
+ --has-script 1 \
31
+ --has-round 1 \
32
+ --style-id 3 \
33
+ --dry-run --json
34
+
35
+ seecool-cli drama project create \
36
+ --name "Neon Detective" \
37
+ --aspect-ratio 9:16 \
38
+ --comic-type 2 --json
39
+ ```
40
+
41
+ ## Sequential Stage Advancement
42
+
43
+ Stage codes match the Web stepper: `10`=Script, `20`=Chapter, `30`=Subject, `40`=Storyboard & BGM. Always advance sequentially (`10 → 20 → 30 → 40`):
44
+
45
+ ```bash
46
+ seecool-cli drama project next-stage 101 --dry-run --json
47
+ seecool-cli drama project next-stage 101 --json
48
+ ```
@@ -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,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();
@@ -0,0 +1,19 @@
1
+ # Async Delivery & Failure Policy
2
+
3
+ ## Exit Codes
4
+
5
+ | Exit Code | Meaning | Agent Action |
6
+ | --- | --- | --- |
7
+ | `0` | Success | Parse `data` from `stdout` |
8
+ | `2` | Invalid arguments or config | Fix flags or `seecool.toml`; inspect `seecool-cli schema --json` |
9
+ | `3` | Unauthorized / expired token | Guide user to run `seecool-cli login` or fix `SEECOOL_TOKEN` |
10
+ | `4` | Forbidden | Verify active organization with `seecool-cli org list --json` |
11
+ | `5` | Resource not found | Re-query parent list instead of guessing IDs |
12
+ | `6` | Business conflict or preflight blocked | Report blocking details; do not force-resubmit |
13
+ | `1` | General or upstream error | Retry only when `error.retryable === true` |
14
+
15
+ ## Failure & Non-Duplication Rules
16
+
17
+ - Never blindly re-submit a paid generation task if a request timed out or returned an uncertain result; query task status first.
18
+ - Keep output payloads compact for large lists by passing `--fields`.
19
+ - When delivering generated media to the user, report real returned URLs/keys and explicitly state any partial failures.
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: seecool-drama-bgm
3
+ description: Use for Seecool /drama BGM Management (Stage 40+) via seecool-cli: listing round videos and BGM status, uploading a round video cut for BGM, and creating/polling AI BGM generation tasks with verified source IDs and prompts.
4
+ ---
5
+
6
+ # Seecool Drama — BGM Management
7
+
8
+ Handles the independent **BGM** workflow (`seecool-cli drama bgm`) at **Stage `40+`**.
9
+
10
+ ## Stage Entry & Mandatory Prerequisite Gates
11
+
12
+ 1. **Entry Gate**: Run `seecool-cli drama inspect <projectId> --json` and confirm `project.stage >= 40`. Never run BGM commands while `project_stage < 40` (CLI enforces `STAGE_MISMATCH`).
13
+ 2. **Mandatory Source Video & Prompt Gate**:
14
+ - Confirm a valid `source_id` exists in the round via `drama bgm list --project-id <id> --episode-id <ep> --round-id <r>` (or upload one via `drama bgm upload-video`).
15
+ - Provide a non-empty `--prompt` describing the desired BGM mood/style (CLI enforces `MISSING_BGM_PARAMS`).
16
+ 3. **Preview Before Submitting**: Always run `--dry-run` before creating billable BGM tasks.
17
+
18
+ ## Step 1: List Round Videos & BGM Status (or Upload a Video Cut)
19
+
20
+ ```bash
21
+ # Inspect round videos, BGM records, and current BGM task status
22
+ seecool-cli drama bgm list --project-id 101 --episode-id 5 --round-id 11 --json
23
+ seecool-cli drama bgm list --round-id 11 --source-id 991 --json
24
+
25
+ # Upload a local video cut and register it on the round
26
+ seecool-cli drama bgm upload-video --round-id 11 --path ./ep1-cut.mp4 --dry-run --json
27
+ seecool-cli drama bgm upload-video --round-id 11 --path ./ep1-cut.mp4 --json
28
+ ```
29
+
30
+ ## Step 2: Create AI BGM Task & Poll Until Settled
31
+
32
+ ```bash
33
+ seecool-cli drama bgm create \
34
+ --project-id 101 \
35
+ --episode-id 5 \
36
+ --round-id 11 \
37
+ --source-id 991 \
38
+ --prompt "Tense noir synth strings, slow buildup" \
39
+ --wait \
40
+ --dry-run --json
41
+
42
+ seecool-cli drama bgm create \
43
+ --project-id 101 \
44
+ --episode-id 5 \
45
+ --round-id 11 \
46
+ --source-id 991 \
47
+ --prompt "Tense noir synth strings, slow buildup" \
48
+ --wait --json
49
+ ```
50
+
51
+ Poll an in-progress round BGM job anytime:
52
+
53
+ ```bash
54
+ seecool-cli drama bgm list --round-id 11 --wait --timeout 600 --json
55
+ ```
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: seecool-drama-chapter
3
+ description: Use for Seecool /drama Stage 20 (Chapter & Round Management) via seecool-cli: reviewing, creating, updating, and deleting chapters and rounds, appending supplemental scripts, and extracting subjects to advance from stage 20 to stage 30.
4
+ ---
5
+
6
+ # Seecool Drama — Stage 20: Chapter Management
7
+
8
+ Handles **Stage `20` (Chapter & Round)** operations. Do **not** run Stage `30` subject image generation or Stage `40` storyboard commands here.
9
+
10
+ ## Stage Entry & Exit Gates
11
+
12
+ - **Entry Gate**: Run `seecool-cli drama inspect <projectId> --json` and confirm `project.stage >= 20` and `chapters.count > 0`. If `project.stage < 20`, stop and finish `seecool-drama-script` first.
13
+ - **No Cross-Stage Calls**: Never jump directly to Stage `40` or call image generation while `project.stage` is still `20`.
14
+ - **Exit Gate (`20 → 30`)**: Chapters and rounds are reviewed, `drama subject extract --wait --next-stage` settles with extracted subjects, and `project_stage` is `30`.
15
+
16
+ ## Chapter Review & Editing (`seecool-cli drama chapter`)
17
+
18
+ ```bash
19
+ seecool-cli drama chapter list --project-id 101 --json
20
+ seecool-cli drama chapter get --project-id 101 --chapter-id 12 --json
21
+
22
+ # Create a new chapter (omit --chapter-id) or update an existing chapter (pass --chapter-id)
23
+ seecool-cli drama chapter save --project-id 101 --index 1 --title "Episode 1" --content-file ./ep1.txt --json
24
+ seecool-cli drama chapter save --project-id 101 --chapter-id 12 --index 1 --title "Episode 1 (Rev)" --content-file ./ep1.txt --json
25
+ seecool-cli drama chapter delete --project-id 101 --chapter-id 12 --yes --json
26
+
27
+ # Append additional chapters from a supplemental script file
28
+ seecool-cli drama script import --project-id 101 --path ./more-episodes.txt --supplement --json
29
+ ```
30
+
31
+ ## Round Review & Editing (`seecool-cli drama round`)
32
+
33
+ ```bash
34
+ seecool-cli drama round list --project-id 101 --json
35
+ seecool-cli drama round save --project-id 101 --chapter-id 12 --index 1 --title "Scene 1" --subtitle "Alley" --content "..." --json
36
+ seecool-cli drama round save --project-id 101 --chapter-id 12 --round-id 11 --title "Scene 1A" --content "..." --json
37
+ seecool-cli drama round delete --project-id 101 --round-id 11 --yes --json
38
+ ```
39
+
40
+ ## Transition to Stage 30: Extract Subjects & Wait
41
+
42
+ Query available text models, concurrently extract characters/scenes/items, wait until settled, and advance `project_stage` to `30`:
43
+
44
+ ```bash
45
+ seecool-cli model list --type text --json
46
+ seecool-cli drama subject extract --project-id 101 --model-id 7 --wait --next-stage --dry-run --json
47
+ seecool-cli drama subject extract --project-id 101 --model-id 7 --wait --next-stage --json
48
+ ```
49
+
50
+ Once extraction settles and `project_stage` is `30`, switch to `seecool-drama-subject`.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: seecool-drama-script
3
+ description: Use for Seecool /drama Stage 10 (Script Management) via seecool-cli: creating projects, choosing visual styles, importing scripts (upload + bind + mandatory split), and advancing a project sequentially from stage 10 to stage 20.
4
+ ---
5
+
6
+ # Seecool Drama — Stage 10: Script Management
7
+
8
+ Handles **Stage `10` (Script)** operations only. Once chapters exist and `project_stage` advances to `20`, hand off to `seecool-drama-chapter`.
9
+
10
+ ## Stage Entry & Exit Gates
11
+
12
+ - **Entry Gate**: Authenticated via `seecool-cli status --verify --json`, default org set, and either creating a new project or operating at `project_stage = 10` (`seecool-cli drama inspect <projectId> --json`).
13
+ - **Mandatory Script Split**: `seecool-cli drama script import` automatically uploads the script, binds `script_url`, and calls the script split interface (`split-chapter`). Never advance to Stage `20` without verified chapters (`drama project next-stage` blocks with `CHAPTERS_REQUIRED` if chapters are empty).
14
+ - **Exit Gate (`10 → 20`)**: `drama chapter list --project-id <id>` is non-empty and `project_stage` is updated to `20`.
15
+
16
+ ## Step 1: Browse Visual Styles & Create Project
17
+
18
+ ```bash
19
+ seecool-cli drama style list --json
20
+ seecool-cli drama project create \
21
+ --name "Neon Detective" \
22
+ --aspect-ratio 9:16 \
23
+ --style-id 12 \
24
+ --has-script 1 \
25
+ --dry-run --json
26
+
27
+ seecool-cli drama project create \
28
+ --name "Neon Detective" \
29
+ --aspect-ratio 9:16 \
30
+ --style-id 12 \
31
+ --has-script 1 --json
32
+ ```
33
+
34
+ ## Step 2: Import & Split Script (Uploads, Binds & Splits Automatically)
35
+
36
+ ```bash
37
+ seecool-cli drama script import \
38
+ --project-id 101 \
39
+ --path ./script.txt \
40
+ --next-stage \
41
+ --dry-run --json
42
+
43
+ seecool-cli drama script import \
44
+ --project-id 101 \
45
+ --path ./script.txt \
46
+ --next-stage --json
47
+ ```
48
+
49
+ If script format validation warnings are returned in `error.details`, review them with the user or explicitly re-run with `--skip-validation`:
50
+
51
+ ```bash
52
+ seecool-cli drama script import \
53
+ --project-id 101 \
54
+ --path ./script.txt \
55
+ --skip-validation \
56
+ --next-stage --json
57
+ ```
58
+
59
+ ## Step 3: Verify Chapters & Advance (if `--next-stage` was omitted)
60
+
61
+ ```bash
62
+ seecool-cli drama chapter list --project-id 101 --json
63
+ seecool-cli drama project next-stage 101 --json
64
+ ```
65
+
66
+ Once `project_stage` reaches `20`, switch to `seecool-drama-chapter`.
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: seecool-drama-storyboard
3
+ description: Use for Seecool /drama Stage 40 (Storyboard, Frames, Videos, Dialogues/TTS, Dubbing, Subtitles & Super-Resolution) via seecool-cli: splitting storyboards, editing shots and prompts, rendering and selecting frames and videos, managing dialogues and TTS audio, and running dubbing, subtitles, subtitle erasure, and super-resolution.
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 --next-stage` requires `project_stage >= 30` and advances `project_stage` to `40` (auto-formats script internally).
15
+ - All other storyboard, frame, video, dialogue/audio, and post-processing commands require `project_stage >= 40`. Never cross-stage while `project_stage < 40`.
16
+ 2. **Mandatory Image Prompt Gate**:
17
+ - Never call `drama storyboard render-images` with missing frame image prompts (`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 & Selected Frame Gate**:
20
+ - `drama storyboard render-videos` requires persisted `video_desc` (or `--prepare-prompts` to generate and wait first) AND a selected frame `selected_image_url` for `first_frame` / `first_last_frame` modes.
21
+ - Single-shot `drama storyboard render-video <videoId> --prompt "..."` persists `video_desc` first, then submits generation.
22
+ 4. **Select Winning Assets**: Always pair `--url` and `--pool-id` in `drama storyboard select-video`.
23
+
24
+ ## Step 1: Initial Storyboard Split (`30 → 40`) & Resplit
25
+
26
+ ```bash
27
+ seecool-cli drama storyboard split \
28
+ --project-id 101 \
29
+ --scope first \
30
+ --model-id 7 \
31
+ --wait \
32
+ --next-stage \
33
+ --dry-run --json
34
+
35
+ seecool-cli drama storyboard split \
36
+ --project-id 101 \
37
+ --scope first \
38
+ --model-id 7 \
39
+ --wait \
40
+ --next-stage --json
41
+
42
+ # Resplit a specific episode/round (Stage 40)
43
+ seecool-cli drama storyboard split --project-id 101 --episode-id 5 --round-id 11 --model-id 7 --wait --json
44
+ ```
45
+
46
+ ## Step 2: Inspect & Save Storyboards / Prompts
47
+
48
+ ```bash
49
+ seecool-cli drama storyboard list --project-id 101 --round-id 11 --json
50
+
51
+ # Create shot (omit --id) or update shot/frame/video prompts (pass --id / --frame-id / --video-id)
52
+ seecool-cli drama storyboard save --project-id 101 --episode-id 5 --round-id 11 --index 1 --title "Shot 1" --description "Opening wide shot" --json
53
+ seecool-cli drama storyboard save --project-id 101 --id 8801 --description "Slow push-in on rain-soaked neon alley" --json
54
+ seecool-cli drama storyboard save --project-id 101 --frame-id 601 --frame-prompt "Rain-soaked neon alley, cinematic lighting" --json
55
+ seecool-cli drama storyboard save --project-id 101 --video-id 701 --video-prompt "Slow dolly forward through rain" --json
56
+ seecool-cli drama storyboard delete 8801 --project-id 101 --yes --json
57
+ ```
58
+
59
+ ## Step 3: Render & Select Frame Images
60
+
61
+ ```bash
62
+ seecool-cli model list --type image --json
63
+
64
+ # Batch render frames (--prepare-prompts generates & waits for missing image prompts first)
65
+ seecool-cli drama storyboard render-images \
66
+ --project-id 101 \
67
+ --episode-id 5 \
68
+ --round-id 11 \
69
+ --model-id 12 \
70
+ --ratio 9:16 \
71
+ --pixel 2K \
72
+ --prepare-prompts \
73
+ --wait \
74
+ --dry-run --json
75
+
76
+ # Single frame redraw (persists frame_desc first)
77
+ seecool-cli drama storyboard render-frame 601 \
78
+ --project-id 101 \
79
+ --model-id 12 \
80
+ --prompt "Rain-soaked neon alley, cinematic lighting" \
81
+ --ratio 9:16 \
82
+ --dry-run --json
83
+
84
+ # Select winning frame image
85
+ seecool-cli drama storyboard select-image 601 --url "https://..." --json
86
+ ```
87
+
88
+ ## Step 4: Render & Select Storyboard Videos
89
+
90
+ ```bash
91
+ seecool-cli model list --type video --json
92
+
93
+ # Batch render videos (--prepare-prompts generates & waits for video_desc; enforces selected frame in first_frame mode)
94
+ seecool-cli drama storyboard render-videos \
95
+ --project-id 101 \
96
+ --episode-id 5 \
97
+ --round-id 11 \
98
+ --model-id 34 \
99
+ --mode first_frame \
100
+ --ratio 9:16 \
101
+ --resolution 720p \
102
+ --prepare-prompts \
103
+ --wait \
104
+ --dry-run --json
105
+
106
+ # Single video redraw (persists video_desc first)
107
+ seecool-cli drama storyboard render-video 701 \
108
+ --project-id 101 \
109
+ --model-id 34 \
110
+ --prompt "Slow dolly forward" \
111
+ --mode first_frame \
112
+ --ratio 9:16 \
113
+ --resolution 720p \
114
+ --duration 5 \
115
+ --dry-run --json
116
+
117
+ # Select winning video (--url and --pool-id must be paired)
118
+ seecool-cli drama storyboard select-video 701 --url "https://..." --pool-id 9002 --json
119
+ ```
120
+
121
+ ## Step 5: Dialogues, TTS Audio & Post-Processing (Dub / Subtitle / Super-Res)
122
+
123
+ ```bash
124
+ # Dialogue CRUD & TTS audio generation
125
+ seecool-cli drama storyboard dialogue save --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Hold everything." --json
126
+ seecool-cli drama storyboard dialogue save --id 901 --project-id 101 --episode-id 5 --storyboard-id 8801 --setting-id 301 --text "Freeze!" --json
127
+ seecool-cli drama storyboard dialogue delete 901 --yes --json
128
+ seecool-cli drama storyboard dialogue generate-audio --dialogue-id 901 --dry-run --json
129
+ seecool-cli drama storyboard dialogue generate-audio --project-id 101 --episode-id 5 --dry-run --json
130
+ seecool-cli drama storyboard dialogue generate-audio --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
131
+
132
+ # Post-processing: dubbing, subtitle synthesis, subtitle erasure & super-resolution
133
+ seecool-cli drama storyboard post --action dub --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
134
+ seecool-cli drama storyboard post --action subtitle --project-id 101 --round-id 11 --storyboard-ids "8801,8802" --dry-run --json
135
+ seecool-cli drama storyboard post --action subtitle-erase --project-id 101 --task-id 777 --profile general --dry-run --json
136
+ seecool-cli drama storyboard post --action super-res --project-id 101 --task-id 777 --storyboard-id 8801 --model-id 99 --resolution 1080p --duration 5 --dry-run --json
137
+ ```