@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/LICENSE +21 -0
- package/README.md +185 -2
- package/README.zh-CN.md +184 -0
- package/dist/bin.mjs +12562 -0
- package/package.json +26 -4
- package/skills/seecool-canvas/SKILL.md +30 -0
- package/skills/seecool-drama/SKILL.md +54 -0
- package/skills/seecool-drama/commands/auth-and-region.md +43 -0
- package/skills/seecool-drama/commands/drama-project.md +50 -0
- package/skills/seecool-drama/commands/drama-script-chapter.md +54 -0
- package/skills/seecool-drama/commands/drama-storyboard-and-video.md +130 -0
- package/skills/seecool-drama/commands/drama-subjects-and-rounds.md +78 -0
- package/skills/seecool-drama/commands/drama-voice-and-audio.md +51 -0
- package/skills/seecool-drama/commands/upload-and-models.md +29 -0
- package/skills/seecool-drama/examples/drama-end-to-end.md +52 -0
- package/skills/seecool-drama/scripts/ensure-cli.mjs +39 -0
- package/skills/seecool-drama/workflows/async-delivery.md +19 -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,186 @@
|
|
|
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 through five stages (`10` Script → `20` Chapters → `30` Subjects → `40` Storyboards → `50` Preview / Finished Video).
|
|
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 and create a project (Stage 10)
|
|
113
|
+
seecool-cli drama style list
|
|
114
|
+
seecool-cli drama project create --name "My Short Drama" --ratio 9:16 --style-id <styleId>
|
|
115
|
+
seecool-cli drama chapter import-script --project-id <projectId> --path ./script.txt --split --advance-stage
|
|
116
|
+
|
|
117
|
+
# 3. Review chapters and extract subjects (Stage 20)
|
|
118
|
+
seecool-cli drama chapter list --project-id <projectId>
|
|
119
|
+
seecool-cli drama subject extract-all --project-id <projectId> --advance-stage
|
|
120
|
+
|
|
121
|
+
# 4. Inspect subjects, preview batch generation, generate & select images (Stage 30)
|
|
122
|
+
seecool-cli drama subject list --project-id <projectId>
|
|
123
|
+
seecool-cli drama subject generate-images --project-id <projectId> --model <model> --dry-run
|
|
124
|
+
seecool-cli drama subject update --id <subjectId> --final-image <imageUrl>
|
|
125
|
+
seecool-cli drama storyboard split --project-id <projectId> --scope first --auto-format --advance-stage
|
|
126
|
+
|
|
127
|
+
# 5. Storyboards, voices, frames & videos (Stage 40)
|
|
128
|
+
seecool-cli drama voice providers
|
|
129
|
+
seecool-cli drama voice list --provider seedaudio
|
|
130
|
+
seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
|
|
131
|
+
seecool-cli drama storyboard prompts --project-id <projectId> --round-id <roundId>
|
|
132
|
+
seecool-cli drama storyboard generate-images --project-id <projectId> --round-id <roundId> --dry-run
|
|
133
|
+
seecool-cli drama storyboard frame-update --storyboard-id <shotId> --selected-image-url <imageUrl>
|
|
134
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
135
|
+
seecool-cli drama storyboard select-video --storyboard-id <shotId> --url <videoUrl> --pool-id <poolId>
|
|
136
|
+
|
|
137
|
+
# 6. Post-production & finished cut (Stage 50)
|
|
138
|
+
seecool-cli drama video merge --project-id <projectId> --episode-id <episodeId>
|
|
139
|
+
seecool-cli drama video list --project-id <projectId> --episode-id <episodeId>
|
|
140
|
+
seecool-cli drama video select --project-id <projectId> --episode-id <episodeId> --video-id <videoId>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Agent-Friendly Flags & Command Schema
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Structured JSON output (ideal for AI Agents and scripts)
|
|
147
|
+
seecool-cli drama project list --json
|
|
148
|
+
|
|
149
|
+
# Project only specific fields from JSON output
|
|
150
|
+
seecool-cli drama project list --json --fields id,name,project_stage
|
|
151
|
+
|
|
152
|
+
# Preview billable batch operations without submitting tasks
|
|
153
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
154
|
+
|
|
155
|
+
# Inspect the full machine-readable command & option schema
|
|
156
|
+
seecool-cli schema drama --json
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## 4. Headless / CI / Remote Sandbox Usage
|
|
160
|
+
|
|
161
|
+
In environments where a local browser callback cannot be opened (SSH, Docker, CI pipelines, cloud sandboxes):
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# Persist a token via stdin (keeps secrets out of shell history)
|
|
165
|
+
printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
|
|
166
|
+
|
|
167
|
+
# Or run statelessly with environment variables
|
|
168
|
+
export SEECOOL_REGION="cn" # or "global"
|
|
169
|
+
export SEECOOL_TOKEN="<token>"
|
|
170
|
+
export SEECOOL_ORG_ID="<orgId>"
|
|
171
|
+
export SEECOOL_OUTPUT="json"
|
|
172
|
+
seecool-cli status --verify
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## 5. Bundled Agent Skills
|
|
176
|
+
|
|
177
|
+
| Skill | Scope | Description |
|
|
178
|
+
| --- | --- | --- |
|
|
179
|
+
| `seecool-drama` | Auth, region/org, uploads, models & `/drama` | Full end-to-end short-drama production workflow and stage playbooks |
|
|
180
|
+
| `seecool-canvas` | `/flow` canvas workflow | Canvas workflow boundary & future node-graph operations |
|
|
181
|
+
|
|
182
|
+
Inspect bundled skills anytime:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
seecool-cli skill list
|
|
186
|
+
```
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
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` 项目按 5 个阶段推进:`10` 剧本 → `20` 章节 → `30` 主体 → `40` 分镜与视频 → `50` 成片预览。
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 1. 查看项目列表或诊断现有项目进度(接手旧项目推荐第一步)
|
|
107
|
+
seecool-cli drama project list
|
|
108
|
+
seecool-cli drama inspect <projectId>
|
|
109
|
+
|
|
110
|
+
# 2. 查看画面风格、创建项目并导入/拆分剧本(阶段 10)
|
|
111
|
+
seecool-cli drama style list
|
|
112
|
+
seecool-cli drama project create --name "我的短剧" --ratio 9:16 --style-id <styleId>
|
|
113
|
+
seecool-cli drama chapter import-script --project-id <projectId> --path ./script.txt --split --advance-stage
|
|
114
|
+
|
|
115
|
+
# 3. 查看章节并提取角色/场景/道具主体(阶段 20)
|
|
116
|
+
seecool-cli drama chapter list --project-id <projectId>
|
|
117
|
+
seecool-cli drama subject extract-all --project-id <projectId> --advance-stage
|
|
118
|
+
|
|
119
|
+
# 4. 查看主体、预演批量生图、选定最终主体图并拆分分镜(阶段 30)
|
|
120
|
+
seecool-cli drama subject list --project-id <projectId>
|
|
121
|
+
seecool-cli drama subject generate-images --project-id <projectId> --model <model> --dry-run
|
|
122
|
+
seecool-cli drama subject update --id <subjectId> --final-image <imageUrl>
|
|
123
|
+
seecool-cli drama storyboard split --project-id <projectId> --scope first --auto-format --advance-stage
|
|
124
|
+
|
|
125
|
+
# 5. 配音音色、分镜提示词、分镜出图、选图、生视频与选片(阶段 40)
|
|
126
|
+
seecool-cli drama voice providers
|
|
127
|
+
seecool-cli drama voice list --provider seedaudio
|
|
128
|
+
seecool-cli drama storyboard list --project-id <projectId> --round-id <roundId>
|
|
129
|
+
seecool-cli drama storyboard prompts --project-id <projectId> --round-id <roundId>
|
|
130
|
+
seecool-cli drama storyboard generate-images --project-id <projectId> --round-id <roundId> --dry-run
|
|
131
|
+
seecool-cli drama storyboard frame-update --storyboard-id <shotId> --selected-image-url <imageUrl>
|
|
132
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
133
|
+
seecool-cli drama storyboard select-video --storyboard-id <shotId> --url <videoUrl> --pool-id <poolId>
|
|
134
|
+
|
|
135
|
+
# 6. 成片合成与选择最终版本(阶段 50)
|
|
136
|
+
seecool-cli drama video merge --project-id <projectId> --episode-id <episodeId>
|
|
137
|
+
seecool-cli drama video list --project-id <projectId> --episode-id <episodeId>
|
|
138
|
+
seecool-cli drama video select --project-id <projectId> --episode-id <episodeId> --video-id <videoId>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 面向 AI Agent 与脚本的常用参数
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# 输出结构化 JSON(便于 Agent 或脚本解析)
|
|
145
|
+
seecool-cli drama project list --json
|
|
146
|
+
|
|
147
|
+
# 仅保留指定输出字段
|
|
148
|
+
seecool-cli drama project list --json --fields id,name,project_stage
|
|
149
|
+
|
|
150
|
+
# 预演批量生成任务(不实际发起扣费请求)
|
|
151
|
+
seecool-cli drama storyboard generate-videos --project-id <projectId> --round-id <roundId> --dry-run
|
|
152
|
+
|
|
153
|
+
# 导出完整的命令与参数 Schema,方便 Agent 精确自省
|
|
154
|
+
seecool-cli schema drama --json
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## 4. 无头环境 / CI / 远程沙箱使用
|
|
158
|
+
|
|
159
|
+
在 SSH、Docker、CI 流水线或云端沙箱等无法打开本地浏览器回调的环境中,可以通过标准输入或环境变量完成鉴权:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# 通过 stdin 写入凭证(避免敏感 Token 留在命令行历史中)
|
|
163
|
+
printf '%s' "$SEECOOL_WEB_TOKEN" | seecool-cli login --region cn --token-stdin
|
|
164
|
+
|
|
165
|
+
# 或通过环境变量无状态运行
|
|
166
|
+
export SEECOOL_REGION="cn" # 国内填 cn,海外填 global
|
|
167
|
+
export SEECOOL_TOKEN="<token>"
|
|
168
|
+
export SEECOOL_ORG_ID="<orgId>"
|
|
169
|
+
export SEECOOL_OUTPUT="json"
|
|
170
|
+
seecool-cli status --verify
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## 5. 内置 Agent Skills
|
|
174
|
+
|
|
175
|
+
| Skill 名称 | 覆盖范围 | 说明 |
|
|
176
|
+
| --- | --- | --- |
|
|
177
|
+
| `seecool-drama` | 登录鉴权、区域/组织、上传、模型与 `/drama` | 完整的短剧端到端生产工作流与分阶段操作指南 |
|
|
178
|
+
| `seecool-canvas` | `/flow` 画布工作流 | 画布工作流边界说明及后续节点编排能力 |
|
|
179
|
+
|
|
180
|
+
查看当前包内置的 Skills:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
seecool-cli skill list
|
|
184
|
+
```
|