@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/LICENSE +21 -0
- package/README.md +191 -2
- package/README.zh-CN.md +190 -0
- package/dist/bin.mjs +11713 -0
- package/package.json +26 -4
- package/skills/seecool-canvas/SKILL.md +30 -0
- package/skills/seecool-drama/SKILL.md +50 -0
- package/skills/seecool-drama/commands/auth-and-region.md +46 -0
- package/skills/seecool-drama/commands/drama-project.md +48 -0
- package/skills/seecool-drama/commands/upload-and-models.md +29 -0
- package/skills/seecool-drama/scripts/ensure-cli.mjs +39 -0
- package/skills/seecool-drama/workflows/async-delivery.md +19 -0
- package/skills/seecool-drama-bgm/SKILL.md +55 -0
- package/skills/seecool-drama-chapter/SKILL.md +50 -0
- package/skills/seecool-drama-script/SKILL.md +66 -0
- package/skills/seecool-drama-storyboard/SKILL.md +137 -0
- package/skills/seecool-drama-subject/SKILL.md +84 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Seecool
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,192 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @seecoolai/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Official CLI and bundled Agent Skills for **Seecool** (`/drama` short-drama production & `/flow` workflows).
|
|
4
|
+
|
|
5
|
+
**English** | [简体中文](./README.zh-CN.md)
|
|
6
|
+
|
|
7
|
+
`@seecoolai/cli` provides the `seecool-cli` command-line tool and bundled Agent Skills (`seecool-drama`, `seecool-canvas`) so both humans and AI Agents can operate Seecool projects end-to-end with deterministic, JSON-friendly commands.
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
- **Node.js >= 20** (`node -v`)
|
|
12
|
+
|
|
13
|
+
## 1. Installation
|
|
14
|
+
|
|
15
|
+
### Option A: Let Any General AI Agent Install It (Recommended)
|
|
16
|
+
|
|
17
|
+
You do **not** need to memorize commands or configure skills manually. You can ask **any general AI Agent** with terminal access — such as **Claude Code, OpenAI Codex, Cursor, Windsurf, Antigravity, OpenCode, Trae, or GitHub Copilot** — to install `@seecoolai/cli` and its Agent Skills for you.
|
|
18
|
+
|
|
19
|
+
Simply paste this prompt into your AI Agent:
|
|
20
|
+
|
|
21
|
+
> Install `@seecoolai/cli` by running `npx -y @seecoolai/cli install`, verify the setup with `seecool-cli status`, and guide me through logging in to Seecool. After login, use the `seecool-drama` skill to help me operate my Seecool `/drama` projects.
|
|
22
|
+
|
|
23
|
+
Running `npx -y @seecoolai/cli install` automatically:
|
|
24
|
+
1. Installs the global `seecool-cli` executable.
|
|
25
|
+
2. Syncs the bundled Agent Skills (`seecool-drama` & `seecool-canvas`) into standard Agent skill directories (`~/.agents/skills`, `~/.codex/skills`, `~/.claude/skills`, etc.), so your Agent immediately knows all commands, stage workflows, and safety checks.
|
|
26
|
+
|
|
27
|
+
### Option B: Manual Installation
|
|
28
|
+
|
|
29
|
+
Install both the global CLI and bundled Agent Skills in one command:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx -y @seecoolai/cli install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Or install with `npm` directly and sync skills afterwards:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g @seecoolai/cli
|
|
39
|
+
seecool-cli skill install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Updating & Re-syncing Skills
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Update global CLI and bundled Agent Skills
|
|
46
|
+
seecool-cli update
|
|
47
|
+
|
|
48
|
+
# Re-sync bundled Agent Skills at any time (user-level or project-level)
|
|
49
|
+
seecool-cli skill install
|
|
50
|
+
seecool-cli skill install --scope project
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 2. Login, Region & Organization
|
|
54
|
+
|
|
55
|
+
Seecool provides two separate regional environments:
|
|
56
|
+
- **China (`cn`)** — Domestic Seecool environment (`seecoolai.cn`)
|
|
57
|
+
- **Global (`global`)** — International Seecool environment (`seecool.ai`)
|
|
58
|
+
|
|
59
|
+
Credentials and default organizations are stored separately per region.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Interactive browser login (lets you choose China or Global with ↑/↓ keys and remembers your choice)
|
|
63
|
+
seecool-cli login
|
|
64
|
+
|
|
65
|
+
# Or specify the region directly
|
|
66
|
+
seecool-cli login --region cn
|
|
67
|
+
seecool-cli login --region global
|
|
68
|
+
|
|
69
|
+
# Re-open the interactive region selector even if a default region is already saved
|
|
70
|
+
seecool-cli login --choose-region
|
|
71
|
+
|
|
72
|
+
# Switch active region at any time
|
|
73
|
+
seecool-cli region list
|
|
74
|
+
seecool-cli region use cn # or: seecool-cli region use global
|
|
75
|
+
|
|
76
|
+
# List and choose your default organization
|
|
77
|
+
seecool-cli org list
|
|
78
|
+
seecool-cli org use <orgId>
|
|
79
|
+
|
|
80
|
+
# Verify login status and current organization
|
|
81
|
+
seecool-cli status --verify
|
|
82
|
+
|
|
83
|
+
# Log out of the current region
|
|
84
|
+
seecool-cli logout
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
> **Tip:** In interactive terminals, `seecool-cli login` pre-selects your saved region (or infers a default from your local timezone) and saves your choice locally once browser authorization succeeds. In non-interactive / Agent / `--json` mode, it never blocks for keyboard input — pass `--region cn|global` when needed.
|
|
88
|
+
|
|
89
|
+
## 3. Usage Tutorial
|
|
90
|
+
|
|
91
|
+
### Explore Models & Upload Media
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# List available AI models (image, video, or text)
|
|
95
|
+
seecool-cli model list --type image
|
|
96
|
+
seecool-cli model list --type video
|
|
97
|
+
seecool-cli model list --type text
|
|
98
|
+
|
|
99
|
+
# Upload a local reference image, script, or media file
|
|
100
|
+
seecool-cli upload --path ./reference.png
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Inspect & Operate `/drama` Projects
|
|
104
|
+
|
|
105
|
+
Every `/drama` project moves sequentially through four workflow stages (`10` Script → `20` Chapters → `30` Subjects → `40` Storyboards & BGM). CLI enforces stage ordering and requires persisted prompts before image, video, or BGM generation.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# 1. List projects or diagnose an existing project (recommended entry point)
|
|
109
|
+
seecool-cli drama project list
|
|
110
|
+
seecool-cli drama inspect <projectId>
|
|
111
|
+
|
|
112
|
+
# 2. Browse visual styles, create a project, import & split script (Stage 10 -> 20)
|
|
113
|
+
seecool-cli drama style list
|
|
114
|
+
seecool-cli drama project create --name "My Short Drama" --aspect-ratio 9:16 --style-id <styleId>
|
|
115
|
+
seecool-cli drama script import --project-id <projectId> --path ./script.txt --next-stage
|
|
116
|
+
|
|
117
|
+
# 3. Review chapters and extract subjects (Stage 20 -> 30)
|
|
118
|
+
seecool-cli drama chapter list --project-id <projectId>
|
|
119
|
+
seecool-cli drama subject extract --project-id <projectId> --wait --next-stage
|
|
120
|
+
|
|
121
|
+
# 4. Save/confirm subject prompts, generate & select images, then split storyboards (Stage 30 -> 40)
|
|
122
|
+
seecool-cli drama subject list --project-id <projectId> --type character
|
|
123
|
+
seecool-cli drama subject save --project-id <projectId> --id <subjectId> --description "<prompt>"
|
|
124
|
+
seecool-cli drama subject generate-images --project-id <projectId> --kind character --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
125
|
+
seecool-cli drama subject select-image <subjectId> --project-id <projectId> --url <imageUrl>
|
|
126
|
+
seecool-cli drama storyboard split --project-id <projectId> --scope first --wait --next-stage
|
|
127
|
+
|
|
128
|
+
# 5. Storyboards, voices, frames, videos, dubbing, subtitles & super-res (Stage 40)
|
|
129
|
+
seecool-cli drama voice list
|
|
130
|
+
seecool-cli drama voice list --provider seedaudio
|
|
131
|
+
seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
|
|
132
|
+
seecool-cli drama storyboard render-images --project-id <projectId> --episode-id <episodeId> --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
133
|
+
seecool-cli drama storyboard select-image <frameId> --url <imageUrl>
|
|
134
|
+
seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
135
|
+
seecool-cli drama storyboard select-video <videoId> --url <videoUrl> --pool-id <poolId>
|
|
136
|
+
seecool-cli drama storyboard post --action dub --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
|
|
137
|
+
seecool-cli drama storyboard post --action subtitle --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
|
|
138
|
+
|
|
139
|
+
# 6. Independent BGM workflow (Stage 40)
|
|
140
|
+
seecool-cli drama bgm list --project-id <projectId> --episode-id <episodeId> --round-id <roundId>
|
|
141
|
+
seecool-cli drama bgm create --project-id <projectId> --round-id <roundId> --source-id <videoId> --prompt "Tense noir synth" --wait --dry-run
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Agent-Friendly Flags & Command Schema
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Structured JSON output (ideal for AI Agents and scripts)
|
|
148
|
+
seecool-cli drama project list --json
|
|
149
|
+
|
|
150
|
+
# Project only specific fields from JSON output
|
|
151
|
+
seecool-cli drama project list --json --fields id,name,project_stage
|
|
152
|
+
|
|
153
|
+
# Preview billable batch operations without submitting tasks
|
|
154
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
155
|
+
|
|
156
|
+
# Inspect the full machine-readable command & option schema
|
|
157
|
+
seecool-cli schema drama --json
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## 4. Headless / CI / Remote Sandbox Usage
|
|
161
|
+
|
|
162
|
+
In environments where a local browser callback cannot be opened (SSH, Docker, CI pipelines, cloud sandboxes):
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
# Persist a token via stdin (keeps secrets out of shell history)
|
|
166
|
+
printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
|
|
167
|
+
|
|
168
|
+
# Or run statelessly with environment variables
|
|
169
|
+
export SEECOOL_REGION="cn" # or "global"
|
|
170
|
+
export SEECOOL_TOKEN="<token>"
|
|
171
|
+
export SEECOOL_ORG_ID="<orgId>"
|
|
172
|
+
export SEECOOL_OUTPUT="json"
|
|
173
|
+
seecool-cli status --verify
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## 5. Bundled Agent Skills
|
|
177
|
+
|
|
178
|
+
| Skill | Stage / Scope | Description |
|
|
179
|
+
| --- | --- | --- |
|
|
180
|
+
| `seecool-drama` | Platform & Router | Auth, region/org, auto-update detection, uploads, models, `drama inspect` & stage routing |
|
|
181
|
+
| `seecool-drama-script` | Stage `10` (Script) | Project creation, styles, script upload/bind, mandatory script split & advance to Stage 20 |
|
|
182
|
+
| `seecool-drama-chapter` | Stage `20` (Chapter) | Chapter/round editing, formatting, supplement split & subject extraction to Stage 30 |
|
|
183
|
+
| `seecool-drama-subject` | Stage `30` (Subject) | Characters/scenes/items, mandatory prompt persistence before image generation, `final_image` & voices |
|
|
184
|
+
| `seecool-drama-storyboard` | Stage `40` (Storyboard) | Storyboard split, frames/videos with prompt gates, dialogues/TTS, dubbing, subtitles & super-res |
|
|
185
|
+
| `seecool-drama-bgm` | Stage `40` (BGM) | Independent AI BGM creation, round video uploads, BGM records & status polling |
|
|
186
|
+
| `seecool-canvas` | `/flow` Canvas | Canvas workflow boundary & future node-graph operations |
|
|
187
|
+
|
|
188
|
+
Inspect bundled skills anytime:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
seecool-cli skill list
|
|
192
|
+
```
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# @seecoolai/cli
|
|
2
|
+
|
|
3
|
+
> **Seecool** 官方命令行工具与内置 Agent Skills(支持 `/drama` 短剧制作与 `/flow` 工作流)。
|
|
4
|
+
|
|
5
|
+
[English](./README.md) | **简体中文**
|
|
6
|
+
|
|
7
|
+
`@seecoolai/cli` 提供官方命令行工具 `seecool-cli` 以及内置 Agent Skills(`seecool-drama`、`seecool-canvas`),既适合开发者在终端直接使用,也专为各类 AI Agent 提供稳定、结构化的 JSON 自动化操作能力,覆盖 Seecool 短剧(`/drama`)等全流程。
|
|
8
|
+
|
|
9
|
+
## 环境要求
|
|
10
|
+
|
|
11
|
+
- **Node.js >= 20**(可通过 `node -v` 查看)
|
|
12
|
+
|
|
13
|
+
## 1. 安装教程
|
|
14
|
+
|
|
15
|
+
### 方式一:直接让任意通用 AI Agent 帮你安装(推荐)
|
|
16
|
+
|
|
17
|
+
你**无需**手动记忆安装命令或配置 Skill 目录。只要你正在使用任意具备终端执行能力的通用 AI Agent —— 例如 **Claude Code、OpenAI Codex、Cursor、Windsurf、Antigravity、OpenCode、Trae、GitHub Copilot** 等 —— 都可以直接让它自动完成安装与配置。
|
|
18
|
+
|
|
19
|
+
直接复制下面这段话发给你的 AI Agent:
|
|
20
|
+
|
|
21
|
+
> 请帮我安装 `@seecoolai/cli`(运行 `npx -y @seecoolai/cli install`),用 `seecool-cli status` 验证安装结果,并引导我完成 Seecool 登录。登录完成后,使用内置的 `seecool-drama` skill 协助我操作 Seecool 短剧(`/drama`)项目。
|
|
22
|
+
|
|
23
|
+
执行 `npx -y @seecoolai/cli install` 会自动完成两件事:
|
|
24
|
+
1. 全局安装 `seecool-cli` 命令。
|
|
25
|
+
2. 自动将内置 Agent Skills(`seecool-drama` 与 `seecool-canvas`)同步到主流 Agent 的标准技能目录(如 `~/.agents/skills`、`~/.codex/skills`、`~/.claude/skills` 等),安装后 Agent 即可直接理解所有命令、阶段流转与防误操作规范。
|
|
26
|
+
|
|
27
|
+
### 方式二:手动安装
|
|
28
|
+
|
|
29
|
+
一条命令同时完成全局 CLI 与内置 Skills 安装:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx -y @seecoolai/cli install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
也可以先通过 `npm` 全局安装,再同步内置 Skills:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g @seecoolai/cli
|
|
39
|
+
seecool-cli skill install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 更新与重新同步 Skills
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# 更新全局 CLI 与内置 Agent Skills
|
|
46
|
+
seecool-cli update
|
|
47
|
+
|
|
48
|
+
# 随时重新同步内置 Skills(默认用户级,也支持项目级)
|
|
49
|
+
seecool-cli skill install
|
|
50
|
+
seecool-cli skill install --scope project
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 2. 登录、区域切换(国内 / 海外)与组织选择
|
|
54
|
+
|
|
55
|
+
Seecool 提供相互独立的国内与海外环境,不同区域的登录态与默认组织相互隔离:
|
|
56
|
+
- **国内(`cn`)** — Seecool 国内站(`seecoolai.cn`)
|
|
57
|
+
- **海外(`global`)** — Seecool 海外站(`seecool.ai`)
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# 交互式浏览器登录(终端内用 ↑/↓ 选择国内或海外,授权成功后本地自动记住选择)
|
|
61
|
+
seecool-cli login
|
|
62
|
+
|
|
63
|
+
# 或直接指定区域登录
|
|
64
|
+
seecool-cli login --region cn
|
|
65
|
+
seecool-cli login --region global
|
|
66
|
+
|
|
67
|
+
# 已记住默认区域时,重新弹出区域选择菜单
|
|
68
|
+
seecool-cli login --choose-region
|
|
69
|
+
|
|
70
|
+
# 随时查看或切换当前默认区域
|
|
71
|
+
seecool-cli region list
|
|
72
|
+
seecool-cli region use cn # 或切换海外:seecool-cli region use global
|
|
73
|
+
|
|
74
|
+
# 查看并设置默认组织
|
|
75
|
+
seecool-cli org list
|
|
76
|
+
seecool-cli org use <orgId>
|
|
77
|
+
|
|
78
|
+
# 检查登录状态、区域和当前组织是否有效
|
|
79
|
+
seecool-cli status --verify
|
|
80
|
+
|
|
81
|
+
# 退出当前区域的本地登录态
|
|
82
|
+
seecool-cli logout
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
> **说明:** 在交互式终端中,`seecool-cli login` 会自动根据你上次保存的区域或本机时区预选默认项,并支持键盘直接切换,授权成功后持久化到本地配置。在非交互 / Agent / `--json` 模式下不会阻塞等待按键,需要切换区域时直接传 `--region cn|global` 即可。
|
|
86
|
+
|
|
87
|
+
## 3. 使用教程
|
|
88
|
+
|
|
89
|
+
### 查询可用模型与上传本地素材
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# 查询可用 AI 模型列表(支持 image / video / text)
|
|
93
|
+
seecool-cli model list --type image
|
|
94
|
+
seecool-cli model list --type video
|
|
95
|
+
seecool-cli model list --type text
|
|
96
|
+
|
|
97
|
+
# 上传本地图片、剧本或音视频素材
|
|
98
|
+
seecool-cli upload --path ./reference.png
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 短剧(`/drama`)项目操作流程
|
|
102
|
+
|
|
103
|
+
Seecool `/drama` 项目按 4 个阶段严格顺序推进:`10` 剧本 → `20` 章节 → `30` 主体 → `40` 分镜与 BGM。CLI 内置阶段门禁与提示词前置校验(禁止跨步骤调用,生图/生视频/BGM 前必须先写入并确认提示词保存成功)。
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 1. 查看项目列表或诊断现有项目进度(接手旧项目推荐第一步)
|
|
107
|
+
seecool-cli drama project list
|
|
108
|
+
seecool-cli drama inspect <projectId>
|
|
109
|
+
|
|
110
|
+
# 2. 查看画面风格、创建项目并导入/自动拆分剧本(阶段 10 -> 20)
|
|
111
|
+
seecool-cli drama style list
|
|
112
|
+
seecool-cli drama project create --name "我的短剧" --aspect-ratio 9:16 --style-id <styleId>
|
|
113
|
+
seecool-cli drama script import --project-id <projectId> --path ./script.txt --next-stage
|
|
114
|
+
|
|
115
|
+
# 3. 查看章节并提取角色/场景/道具主体(阶段 20 -> 30)
|
|
116
|
+
seecool-cli drama chapter list --project-id <projectId>
|
|
117
|
+
seecool-cli drama subject extract --project-id <projectId> --wait --next-stage
|
|
118
|
+
|
|
119
|
+
# 4. 写入并确认主体提示词、批量生图、选定最终主体图并拆分分镜(阶段 30 -> 40)
|
|
120
|
+
seecool-cli drama subject list --project-id <projectId> --type character
|
|
121
|
+
seecool-cli drama subject save --project-id <projectId> --id <subjectId> --description "<提示词>"
|
|
122
|
+
seecool-cli drama subject generate-images --project-id <projectId> --kind character --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
123
|
+
seecool-cli drama subject select-image <subjectId> --project-id <projectId> --url <imageUrl>
|
|
124
|
+
seecool-cli drama storyboard split --project-id <projectId> --scope first --wait --next-stage
|
|
125
|
+
|
|
126
|
+
# 5. 分镜出图选图、生视频选片、台词配音、字幕与超分(阶段 40)
|
|
127
|
+
seecool-cli drama voice list
|
|
128
|
+
seecool-cli drama voice list --provider seedaudio
|
|
129
|
+
seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
|
|
130
|
+
seecool-cli drama storyboard render-images --project-id <projectId> --episode-id <episodeId> --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
131
|
+
seecool-cli drama storyboard select-image <frameId> --url <imageUrl>
|
|
132
|
+
seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --prepare-prompts --wait --dry-run
|
|
133
|
+
seecool-cli drama storyboard select-video <videoId> --url <videoUrl> --pool-id <poolId>
|
|
134
|
+
seecool-cli drama storyboard post --action dub --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
|
|
135
|
+
seecool-cli drama storyboard post --action subtitle --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
|
|
136
|
+
|
|
137
|
+
# 6. 独立 BGM 工作流(阶段 40)
|
|
138
|
+
seecool-cli drama bgm list --project-id <projectId> --episode-id <episodeId> --round-id <roundId>
|
|
139
|
+
seecool-cli drama bgm create --project-id <projectId> --round-id <roundId> --source-id <videoId> --prompt "紧张悬疑电子弦乐" --wait --dry-run
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### 面向 AI Agent 与脚本的常用参数
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# 输出结构化 JSON(便于 Agent 或脚本解析)
|
|
146
|
+
seecool-cli drama project list --json
|
|
147
|
+
|
|
148
|
+
# 仅保留指定输出字段
|
|
149
|
+
seecool-cli drama project list --json --fields id,name,project_stage
|
|
150
|
+
|
|
151
|
+
# 预演批量生成任务(不实际发起扣费请求)
|
|
152
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
153
|
+
|
|
154
|
+
# 导出完整的命令与参数 Schema,方便 Agent 精确自省
|
|
155
|
+
seecool-cli schema drama --json
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## 4. 无头环境 / CI / 远程沙箱使用
|
|
159
|
+
|
|
160
|
+
在 SSH、Docker、CI 流水线或云端沙箱等无法打开本地浏览器回调的环境中,可以通过标准输入或环境变量完成鉴权:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# 通过 stdin 写入凭证(避免敏感 Token 留在命令行历史中)
|
|
164
|
+
printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
|
|
165
|
+
|
|
166
|
+
# 或通过环境变量无状态运行
|
|
167
|
+
export SEECOOL_REGION="cn" # 国内填 cn,海外填 global
|
|
168
|
+
export SEECOOL_TOKEN="<token>"
|
|
169
|
+
export SEECOOL_ORG_ID="<orgId>"
|
|
170
|
+
export SEECOOL_OUTPUT="json"
|
|
171
|
+
seecool-cli status --verify
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## 5. 内置 Agent Skills
|
|
175
|
+
|
|
176
|
+
| Skill 名称 | 阶段 / 范围 | 说明 |
|
|
177
|
+
| --- | --- | --- |
|
|
178
|
+
| `seecool-drama` | 平台与总控路由 | 登录鉴权、区域/组织、自动更新检测、上传、模型查询、`drama inspect` 与阶段路由 |
|
|
179
|
+
| `seecool-drama-script` | 阶段 `10`(剧本管理) | 建项、画面风格、剧本上传/绑定、强制剧本拆分并推进至阶段 20 |
|
|
180
|
+
| `seecool-drama-chapter` | 阶段 `20`(章节管理) | 章节/场次编辑、格式化、补充拆分与触发主体提取进入阶段 30 |
|
|
181
|
+
| `seecool-drama-subject` | 阶段 `30`(主体管理) | 角色/场景/道具管理、生图前强制提示词持久化校验、`final_image` 选图与角色音色 |
|
|
182
|
+
| `seecool-drama-storyboard` | 阶段 `40`(分镜管理) | 拆镜、带提示词门禁的分镜生图/生视频、台词配音、配音合成、字幕合成/擦除与超分 |
|
|
183
|
+
| `seecool-drama-bgm` | 阶段 `40`(BGM 管理) | 独立 BGM 工作流:场次视频管理、AI BGM 创建、记录查询与状态轮询 |
|
|
184
|
+
| `seecool-canvas` | `/flow` 画布 | 画布工作流边界说明及后续节点编排能力 |
|
|
185
|
+
|
|
186
|
+
查看当前包内置的 Skills:
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
seecool-cli skill list
|
|
190
|
+
```
|