@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.
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,218 @@
1
- # Temporary Holding Version
1
+ # @seecoolai/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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`, `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 using the `seecool` skill. After login, use `seecool-drama` 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`, `seecool-drama`, and `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
+ ### Check Balance, Quotes, Assets, Models & Upload Media
92
+
93
+ ```bash
94
+ # Check organization points balance (and optional project/round budget limits)
95
+ seecool-cli balance
96
+ seecool-cli balance --project-id <projectId>
97
+
98
+ # Query backend SKU pricing before submitting billable batches
99
+ seecool-cli quote --type image --model-id <modelId> --resolution 2K --quantity 4
100
+ seecool-cli quote --type video --model-id <modelId> --resolution 720p --seconds 5
101
+
102
+ # Browse organization or project asset libraries & verify delivered media URLs
103
+ seecool-cli asset const
104
+ seecool-cli asset list --source-type group --media-type image
105
+ seecool-cli asset folders --source-type project --project-id <projectId>
106
+ seecool-cli asset verify "<mediaUrl>" --project-id <projectId> --setting-id <settingId>
107
+
108
+ # List available AI models (image, video, text, or super_resolution_video)
109
+ seecool-cli model list --type image
110
+ seecool-cli model list --type video
111
+ seecool-cli model list --type text
112
+
113
+ # Upload a local file (add --save-asset to register it in the Asset Library, --verify for HTTP HEAD check)
114
+ seecool-cli upload --path ./reference.png
115
+ seecool-cli upload --path ./reference.png --save-asset --source-type project --project-id <projectId> --verify
116
+ ```
117
+
118
+ ### Inspect & Operate `/drama` Projects
119
+
120
+ 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.
121
+
122
+ ```bash
123
+ # 1. List projects or diagnose an existing project (recommended entry point)
124
+ seecool-cli drama project list
125
+ seecool-cli drama inspect <projectId>
126
+
127
+ # 2. Browse visual styles, create a project (with optional budget/subtitle rules), import & split script (Stage 10 -> 20)
128
+ seecool-cli drama style list
129
+ seecool-cli drama project create --name "My Short Drama" --aspect-ratio 9:16 --style-id <styleId> --limit-mode 2 --limit-points 5000
130
+ seecool-cli drama script import --project-id <projectId> --path ./script.txt --next-stage
131
+ # Or upload inline text without splitting yet, then run split separately:
132
+ seecool-cli drama script import --project-id <projectId> --text "Episode 1..." --no-split
133
+ seecool-cli drama script split --project-id <projectId> --next-stage
134
+
135
+ # 3. Review chapters, extract subjects (project-wide), verify them, then advance (Stage 20 -> 30)
136
+ seecool-cli drama chapter list --project-id <projectId>
137
+ seecool-cli drama subject extract --project-id <projectId> --wait
138
+ seecool-cli drama subject list --project-id <projectId> --type character
139
+ seecool-cli drama project next-stage <projectId>
140
+
141
+ # 4. Save/confirm subject prompts, generate & select images, split storyboards, verify, then advance (Stage 30 -> 40)
142
+ seecool-cli drama subject save --project-id <projectId> --id <subjectId> --description "<prompt>"
143
+ seecool-cli drama subject generate-images --project-id <projectId> --kind character --model-id <modelId> --prepare-prompts --wait --dry-run
144
+ seecool-cli drama subject select-image <subjectId> --project-id <projectId> --url <imageUrl>
145
+ seecool-cli drama storyboard split --project-id <projectId> --scope first --wait
146
+ seecool-cli drama storyboard list --project-id <projectId>
147
+ seecool-cli drama project next-stage <projectId>
148
+
149
+ # 5. Storyboards, voices, frames, videos, dubbing, subtitles & super-res (Stage 40)
150
+ seecool-cli drama voice list
151
+ seecool-cli drama voice list --provider seedaudio
152
+ seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
153
+ seecool-cli drama storyboard render-images --project-id <projectId> --episode-id <episodeId> --model-id <modelId> --prepare-prompts --wait --dry-run
154
+ seecool-cli drama storyboard select-image <frameId> --url <imageUrl>
155
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --prepare-prompts --wait --dry-run
156
+ seecool-cli drama storyboard select-video <videoId> --url <videoUrl> --pool-id <poolId>
157
+ seecool-cli drama storyboard post --action dub --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
158
+ seecool-cli drama storyboard post --action subtitle --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
159
+ seecool-cli drama storyboard post --action subtitle-erase --project-id <projectId> --task-id <taskId> --source-profile seedance --dry-run
160
+ seecool-cli drama review prompt-risk --project-id <projectId> --round-id <roundId> --json
161
+ seecool-cli drama review celebrity --project-id <projectId> --pool-ids "9001,9002" --json
162
+
163
+ # 6. Independent BGM workflow (Stage 40)
164
+ seecool-cli drama bgm list --project-id <projectId> --episode-id <episodeId> --round-id <roundId>
165
+ seecool-cli drama bgm create --project-id <projectId> --round-id <roundId> --source-id <videoId> --prompt "Tense noir synth" --wait --dry-run
166
+ ```
167
+
168
+ ### Agent-Friendly Flags & Command Schema
169
+
170
+ ```bash
171
+ # Structured JSON output (ideal for AI Agents and scripts)
172
+ seecool-cli drama project list --json
173
+
174
+ # Project only specific fields from JSON output
175
+ seecool-cli drama project list --json --fields id,name,project_stage
176
+
177
+ # Estimate points & check balance without submitting (--quote), or preview request payloads (--dry-run)
178
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --quote
179
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --dry-run
180
+
181
+ # Inspect the full machine-readable command & option schema
182
+ seecool-cli schema drama --json
183
+ ```
184
+
185
+ ## 4. Headless / CI / Remote Sandbox Usage
186
+
187
+ In environments where a local browser callback cannot be opened (SSH, Docker, CI pipelines, cloud sandboxes):
188
+
189
+ ```bash
190
+ # Persist a token via stdin (keeps secrets out of shell history)
191
+ printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
192
+
193
+ # Or run statelessly with environment variables
194
+ export SEECOOL_REGION="cn" # or "global"
195
+ export SEECOOL_TOKEN="<token>"
196
+ export SEECOOL_ORG_ID="<orgId>"
197
+ export SEECOOL_OUTPUT="json"
198
+ seecool-cli status --verify
199
+ ```
200
+
201
+ ## 5. Bundled Agent Skills
202
+
203
+ | Skill | Stage / Scope | Description |
204
+ | --- | --- | --- |
205
+ | `seecool` | Platform Core | Auth/login, `cn`/`global` region, orgs, auto-update, balance, SKU quote, asset library, uploads, models & business routing |
206
+ | `seecool-drama` | `/drama` Router | Project diagnostics (`drama inspect`), visual styles, projects, sequential stage gates & stage routing |
207
+ | `seecool-drama-script` | Stage `10` (Script) | Project creation, styles, script upload/bind, mandatory script split & advance to Stage 20 |
208
+ | `seecool-drama-chapter` | Stage `20` (Chapter) | Chapter/round editing, formatting, supplement split & subject extraction to Stage 30 |
209
+ | `seecool-drama-subject` | Stage `30` (Subject) | Characters/scenes/items, mandatory prompt persistence before image generation, `final_image` & voices |
210
+ | `seecool-drama-storyboard` | Stage `40` (Storyboard) | Storyboard split, frames/videos with prompt gates, dialogues/TTS, dubbing, subtitles & super-res |
211
+ | `seecool-drama-bgm` | Stage `40` (BGM) | Independent AI BGM creation, round video uploads, BGM records & status polling |
212
+ | `seecool-canvas` | `/flow` Canvas | Canvas workflow boundary & future node-graph operations |
213
+
214
+ Inspect bundled skills anytime:
215
+
216
+ ```bash
217
+ seecool-cli skill list
218
+ ```
@@ -0,0 +1,216 @@
1
+ # @seecoolai/cli
2
+
3
+ > **Seecool** 官方命令行工具与内置 Agent Skills(支持 `/drama` 短剧制作与 `/flow` 工作流)。
4
+
5
+ [English](./README.md) | **简体中文**
6
+
7
+ `@seecoolai/cli` 提供官方命令行工具 `seecool-cli` 以及内置 Agent Skills(`seecool`、`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` skill 引导我完成 Seecool 登录。登录完成后,使用内置的 `seecool-drama` skill 协助我操作 Seecool 短剧(`/drama`)项目。
22
+
23
+ 执行 `npx -y @seecoolai/cli install` 会自动完成两件事:
24
+ 1. 全局安装 `seecool-cli` 命令。
25
+ 2. 自动将内置 Agent Skills(`seecool`、`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
+ # 查询当前组织算力余额(可选查询指定项目与场次的算力上限)
93
+ seecool-cli balance
94
+ seecool-cli balance --project-id <projectId>
95
+
96
+ # 提交扣费任务前基于后端 SKU 计价表做事前估价
97
+ seecool-cli quote --type image --model-id <modelId> --resolution 2K --quantity 4
98
+ seecool-cli quote --type video --model-id <modelId> --resolution 720p --seconds 5
99
+
100
+ # 查询组织/项目素材库与目录,并校验交付产物链接(含 SHA-256 与过期链接自动刷新)
101
+ seecool-cli asset const
102
+ seecool-cli asset list --source-type group --media-type image
103
+ seecool-cli asset folders --source-type project --project-id <projectId>
104
+ seecool-cli asset verify "<mediaUrl>" --project-id <projectId> --setting-id <settingId>
105
+
106
+ # 查询可用 AI 模型列表(支持 image / video / text / super_resolution_video)
107
+ seecool-cli model list --type image
108
+ seecool-cli model list --type video
109
+ seecool-cli model list --type text
110
+
111
+ # 上传本地素材(加 --save-asset 自动入素材库,加 --verify 校验 OSS 可达性)
112
+ seecool-cli upload --path ./reference.png
113
+ seecool-cli upload --path ./reference.png --save-asset --source-type project --project-id <projectId> --verify
114
+ ```
115
+
116
+ ### 短剧(`/drama`)项目操作流程
117
+
118
+ Seecool `/drama` 项目按 4 个阶段严格顺序推进:`10` 剧本 → `20` 章节 → `30` 主体 → `40` 分镜与 BGM。CLI 内置阶段门禁与提示词前置校验(禁止跨步骤调用,生图/生视频/BGM 前必须先写入并确认提示词保存成功)。
119
+
120
+ ```bash
121
+ # 1. 查看项目列表或诊断现有项目进度(接手旧项目推荐第一步)
122
+ seecool-cli drama project list
123
+ seecool-cli drama inspect <projectId>
124
+
125
+ # 2. 查看画面风格、创建项目(支持预算上限与字幕样式)、导入并拆分剧本(阶段 10 -> 20)
126
+ seecool-cli drama style list
127
+ seecool-cli drama project create --name "我的短剧" --aspect-ratio 9:16 --style-id <styleId> --limit-mode 2 --limit-points 5000
128
+ seecool-cli drama script import --project-id <projectId> --path ./script.txt --next-stage
129
+ # 也支持直接传入剧本文本且暂不拆分,再单独触发拆分:
130
+ seecool-cli drama script import --project-id <projectId> --text "第1集 开场..." --no-split
131
+ seecool-cli drama script split --project-id <projectId> --next-stage
132
+
133
+ # 3. 查看章节并全项目提取角色/场景/道具主体,回读确认后再推进阶段(阶段 20 -> 30)
134
+ seecool-cli drama chapter list --project-id <projectId>
135
+ seecool-cli drama subject extract --project-id <projectId> --wait
136
+ seecool-cli drama subject list --project-id <projectId> --type character
137
+ seecool-cli drama project next-stage <projectId>
138
+
139
+ # 4. 写入并确认主体提示词、批量生图、选定最终主体图,拆分分镜并回读确认后再推进(阶段 30 -> 40)
140
+ seecool-cli drama subject save --project-id <projectId> --id <subjectId> --description "<提示词>"
141
+ seecool-cli drama subject generate-images --project-id <projectId> --kind character --model-id <modelId> --prepare-prompts --wait --dry-run
142
+ seecool-cli drama subject select-image <subjectId> --project-id <projectId> --url <imageUrl>
143
+ seecool-cli drama storyboard split --project-id <projectId> --scope first --wait
144
+ seecool-cli drama storyboard list --project-id <projectId>
145
+ seecool-cli drama project next-stage <projectId>
146
+
147
+ # 5. 分镜出图选图、生视频选片、台词配音、字幕与超分(阶段 40)
148
+ seecool-cli drama voice list
149
+ seecool-cli drama voice list --provider seedaudio
150
+ seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
151
+ seecool-cli drama storyboard render-images --project-id <projectId> --episode-id <episodeId> --model-id <modelId> --prepare-prompts --wait --dry-run
152
+ seecool-cli drama storyboard select-image <frameId> --url <imageUrl>
153
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --prepare-prompts --wait --dry-run
154
+ seecool-cli drama storyboard select-video <videoId> --url <videoUrl> --pool-id <poolId>
155
+ seecool-cli drama storyboard post --action dub --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
156
+ seecool-cli drama storyboard post --action subtitle --round-id <roundId> --storyboard-ids "8801,8802" --dry-run
157
+ seecool-cli drama storyboard post --action subtitle-erase --project-id <projectId> --task-id <taskId> --source-profile seedance --dry-run
158
+ seecool-cli drama review prompt-risk --project-id <projectId> --round-id <roundId> --json
159
+ seecool-cli drama review celebrity --project-id <projectId> --pool-ids "9001,9002" --json
160
+
161
+ # 6. 独立 BGM 工作流(阶段 40)
162
+ seecool-cli drama bgm list --project-id <projectId> --episode-id <episodeId> --round-id <roundId>
163
+ seecool-cli drama bgm create --project-id <projectId> --round-id <roundId> --source-id <videoId> --prompt "紧张悬疑电子弦乐" --wait --dry-run
164
+ ```
165
+
166
+ ### 面向 AI Agent 与脚本的常用参数
167
+
168
+ ```bash
169
+ # 输出结构化 JSON(便于 Agent 或脚本解析)
170
+ seecool-cli drama project list --json
171
+
172
+ # 仅保留指定输出字段
173
+ seecool-cli drama project list --json --fields id,name,project_stage
174
+
175
+ # 提交前估价并校验余额(--quote),或预演请求载荷(--dry-run)
176
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --quote
177
+ seecool-cli drama storyboard render-videos --project-id <projectId> --round-id <roundId> --model-id <modelId> --dry-run
178
+
179
+ # 导出完整的命令与参数 Schema,方便 Agent 精确自省
180
+ seecool-cli schema drama --json
181
+ ```
182
+
183
+ ## 4. 无头环境 / CI / 远程沙箱使用
184
+
185
+ 在 SSH、Docker、CI 流水线或云端沙箱等无法打开本地浏览器回调的环境中,可以通过标准输入或环境变量完成鉴权:
186
+
187
+ ```bash
188
+ # 通过 stdin 写入凭证(避免敏感 Token 留在命令行历史中)
189
+ printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
190
+
191
+ # 或通过环境变量无状态运行
192
+ export SEECOOL_REGION="cn" # 国内填 cn,海外填 global
193
+ export SEECOOL_TOKEN="<token>"
194
+ export SEECOOL_ORG_ID="<orgId>"
195
+ export SEECOOL_OUTPUT="json"
196
+ seecool-cli status --verify
197
+ ```
198
+
199
+ ## 5. 内置 Agent Skills
200
+
201
+ | Skill 名称 | 阶段 / 范围 | 说明 |
202
+ | --- | --- | --- |
203
+ | `seecool` | 平台底座与总入口 | 登录鉴权、国内/海外区域与组织切换、自动更新检测、余额/估价、素材库、上传、模型目录与业务路由 |
204
+ | `seecool-drama` | `/drama` 短剧路由 | 短剧项目诊断(`drama inspect`)、画面风格、建项、阶段门禁与子阶段路由 |
205
+ | `seecool-drama-script` | 阶段 `10`(剧本管理) | 建项、画面风格、剧本上传/绑定、强制剧本拆分并推进至阶段 20 |
206
+ | `seecool-drama-chapter` | 阶段 `20`(章节管理) | 章节/场次编辑、格式化、补充拆分与触发主体提取进入阶段 30 |
207
+ | `seecool-drama-subject` | 阶段 `30`(主体管理) | 角色/场景/道具管理、生图前强制提示词持久化校验、`final_image` 选图与角色音色 |
208
+ | `seecool-drama-storyboard` | 阶段 `40`(分镜管理) | 拆镜、带提示词门禁的分镜生图/生视频、台词配音、配音合成、字幕合成/擦除与超分 |
209
+ | `seecool-drama-bgm` | 阶段 `40`(BGM 管理) | 独立 BGM 工作流:场次视频管理、AI BGM 创建、记录查询与状态轮询 |
210
+ | `seecool-canvas` | `/flow` 画布 | 画布工作流边界说明及后续节点编排能力 |
211
+
212
+ 查看当前包内置的 Skills:
213
+
214
+ ```bash
215
+ seecool-cli skill list
216
+ ```