cerevox 4.71.1 → 4.72.0
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/dist/core/ai.d.ts +2 -1
- package/dist/core/ai.d.ts.map +1 -1
- package/dist/core/ai.js +15 -0
- package/dist/core/ai.js.map +1 -1
- package/dist/mcp/servers/prompts/skills/core-rules.md +1 -0
- package/dist/mcp/servers/prompts/skills//344/270/200/351/224/256/346/210/220/347/211/207.md +1 -1
- package/dist/mcp/servers/zerocut.d.ts.map +1 -1
- package/dist/mcp/servers/zerocut.js +15 -5
- package/dist/mcp/servers/zerocut.js.map +1 -1
- package/dist/utils/environment-board-tpl.d.ts +24 -0
- package/dist/utils/environment-board-tpl.d.ts.map +1 -0
- package/dist/utils/environment-board-tpl.js +129 -0
- package/dist/utils/environment-board-tpl.js.map +1 -0
- package/dist/utils/storyboard-sketch-tpl.d.ts +3 -2
- package/dist/utils/storyboard-sketch-tpl.d.ts.map +1 -1
- package/dist/utils/storyboard-sketch-tpl.js +134 -46
- package/dist/utils/storyboard-sketch-tpl.js.map +1 -1
- package/dist/utils/subject-card-tpl.d.ts +1 -1
- package/dist/utils/subject-card-tpl.d.ts.map +1 -1
- package/dist/utils/subject-card-tpl.js +62 -34
- package/dist/utils/subject-card-tpl.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ const sketchIntensityMap = {
|
|
|
7
7
|
aggressive: `【镜头强度】镜头冲击力更强,节奏起伏更大,适合短视频感的草图分镜。`,
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* 生成适合 gpt-image-2
|
|
10
|
+
* 生成适合 gpt-image-2 的黑白手绘分镜草稿加导演手册提示词。
|
|
11
11
|
*
|
|
12
12
|
* @param params 模板参数,包括用户剧情、页宽高比、格数限制、参考视频时长和镜头强度。
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns 适合用于生成单页黑白手绘分镜草稿加导演手册的英文主提示词。
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -23,7 +23,24 @@ const sketchIntensityMap = {
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
function storyboardSketchTemplate(params) {
|
|
26
|
-
const { userPrompt, page_aspect_ratio = '1:1', maxPanels, forVideoDuration, cinematicIntensity = 'strong', } = params;
|
|
26
|
+
const { userPrompt, page_aspect_ratio = '1:1', maxPanels, forVideoDuration, maxVideoDuration = 15, cinematicIntensity = 'strong', } = params;
|
|
27
|
+
const normalizePositiveDuration = (value) => {
|
|
28
|
+
if (typeof value === 'number' && Number.isFinite(value) && value > 0) {
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
if (typeof value === 'string') {
|
|
32
|
+
const parsed = Number(value);
|
|
33
|
+
if (Number.isFinite(parsed) && parsed > 0) {
|
|
34
|
+
return parsed;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
};
|
|
39
|
+
const safeMaxVideoDuration = normalizePositiveDuration(maxVideoDuration) ?? 15;
|
|
40
|
+
const normalizedTargetDuration = normalizePositiveDuration(forVideoDuration);
|
|
41
|
+
const effectiveTargetDuration = normalizedTargetDuration !== undefined
|
|
42
|
+
? Math.min(normalizedTargetDuration, safeMaxVideoDuration)
|
|
43
|
+
: undefined;
|
|
27
44
|
const safeMaxPanels = typeof maxPanels === 'number' && Number.isFinite(maxPanels)
|
|
28
45
|
? Math.max(3, Math.min(12, Math.floor(maxPanels)))
|
|
29
46
|
: undefined;
|
|
@@ -41,37 +58,42 @@ function storyboardSketchTemplate(params) {
|
|
|
41
58
|
- 最终画格数量通常控制在 3~12 格
|
|
42
59
|
- 优先保证单页可读性和镜头节奏,不要使用过碎分格
|
|
43
60
|
`.trim();
|
|
44
|
-
const videoDurationRule =
|
|
61
|
+
const videoDurationRule = effectiveTargetDuration !== undefined
|
|
45
62
|
? `
|
|
46
63
|
【参考目标视频时长】
|
|
47
|
-
- 目标视频时长:${
|
|
64
|
+
- 目标视频时长:${effectiveTargetDuration} 秒
|
|
65
|
+
- 允许的最大视频时长:${safeMaxVideoDuration} 秒
|
|
66
|
+
- 如果用户要求超过 ${safeMaxVideoDuration} 秒,必须按 ${safeMaxVideoDuration} 秒处理,不得继续扩展更长版本
|
|
48
67
|
- 结合该时长决定镜头密度与格数
|
|
49
68
|
- 单镜头通常对应 2~5 秒,特殊情况下可更短或更长
|
|
50
69
|
- 时长越短,越应压缩无效过渡;时长越长,可适度增加信息镜头
|
|
51
70
|
`.trim()
|
|
52
71
|
: `
|
|
53
72
|
【节奏控制】
|
|
73
|
+
- 该分镜草稿服务的视频最大时长不能超过 ${safeMaxVideoDuration} 秒
|
|
74
|
+
- 如用户没有明确给出时长,请按不超过 ${safeMaxVideoDuration} 秒的预告片或短片节奏规划镜头
|
|
54
75
|
- 根据剧情内容自动判断镜头密度,避免镜头过碎或叙事松散
|
|
55
76
|
`.trim();
|
|
56
77
|
const finalOutputRule = safeMaxPanels
|
|
57
78
|
? `
|
|
58
79
|
【最终输出】
|
|
59
|
-
- 一张比例为 ${page_aspect_ratio}
|
|
80
|
+
- 一张比例为 ${page_aspect_ratio} 的黑白手绘分镜草稿 + 导演手册页
|
|
60
81
|
- 画格数量不多于 ${safeMaxPanels}
|
|
61
|
-
-
|
|
82
|
+
- 明确阅读顺序,适合作为导演草图、镜头设计手册和后续视频分镜参考
|
|
62
83
|
`.trim()
|
|
63
84
|
: `
|
|
64
85
|
【最终输出】
|
|
65
|
-
- 一张比例为 ${page_aspect_ratio}
|
|
86
|
+
- 一张比例为 ${page_aspect_ratio} 的黑白手绘分镜草稿 + 导演手册页
|
|
66
87
|
- 画格数量由你根据剧情和节奏自动决定,通常控制在 3~12 格
|
|
67
|
-
-
|
|
88
|
+
- 明确阅读顺序,适合作为导演草图、镜头设计手册和后续视频分镜参考
|
|
68
89
|
`.trim();
|
|
69
|
-
return `You are a professional film storyboard sketch artist creating a single page of black-and-white
|
|
90
|
+
return `You are a professional film storyboard sketch artist and director's handbook designer creating a single page of black-and-white storyboard thumbnails plus production notes for GPT Image 2.
|
|
70
91
|
|
|
71
92
|
【Core Goal】
|
|
72
93
|
- Create one single composed storyboard page, not multiple separate images
|
|
73
|
-
- The page must read like a director's
|
|
74
|
-
-
|
|
94
|
+
- The page must read like a director's storyboard draft plus handbook sheet, with clear sequential storytelling and production notes
|
|
95
|
+
- The result should feel close to a printed short-film previsualization manual page
|
|
96
|
+
- Keep it readable, cinematic, structured, information-dense, and production-friendly
|
|
75
97
|
|
|
76
98
|
【Visual Style Requirements】
|
|
77
99
|
- monochrome black and white storyboard sketch
|
|
@@ -87,14 +109,53 @@ function storyboardSketchTemplate(params) {
|
|
|
87
109
|
- use clear silhouettes, readable gestures, and simple environment blocking
|
|
88
110
|
- preserve the feeling of fast previsualization sketches made by a film storyboard artist
|
|
89
111
|
|
|
90
|
-
【Layout Requirements】
|
|
91
|
-
- Output one complete storyboard sheet
|
|
112
|
+
【Master Layout Requirements】
|
|
113
|
+
- Output one complete storyboard handbook sheet
|
|
92
114
|
- Overall page aspect ratio: ${page_aspect_ratio}
|
|
93
|
-
-
|
|
115
|
+
- The page should resemble an A3 or tabloid-style director handout
|
|
116
|
+
- Use a highly structured editorial layout with clear boxes, dividers, column groups, header bars, numbering blocks, note fields, and bottom reference strips
|
|
94
117
|
- Reading order must be obvious at a glance
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
- The
|
|
118
|
+
- The page must feel like one integrated document, not a collage of unrelated sketches
|
|
119
|
+
- The upper area should contain project-level overview information
|
|
120
|
+
- The middle area should contain the main storyboard shot blocks
|
|
121
|
+
- The bottom area should contain supplementary director-manual sections
|
|
122
|
+
|
|
123
|
+
【Top Header Bar Requirements】
|
|
124
|
+
- Create a strong title area across the top of the page
|
|
125
|
+
- The top bar should include:
|
|
126
|
+
- project or trailer title
|
|
127
|
+
- format label such as 分镜脚本 / 导演手册
|
|
128
|
+
- short genre or style notes
|
|
129
|
+
- very brief logline or story summary
|
|
130
|
+
- page metadata fields such as DATE, DIR, PAGE, or similar production-sheet labels
|
|
131
|
+
- This top area should feel like a real printed storyboard document header
|
|
132
|
+
- Use Chinese for main text, but small standard film-document abbreviations such as DATE, PAGE, DIR, WS, MCU, CU, ECU, OTS are allowed when helpful
|
|
133
|
+
|
|
134
|
+
【Main Body Structure】
|
|
135
|
+
- The middle area should be divided into 2 to 4 larger story sections or beats, like acts or story phases
|
|
136
|
+
- Each section should have a bold section header bar
|
|
137
|
+
- Each section should contain multiple numbered shot cards
|
|
138
|
+
- Each shot card should include:
|
|
139
|
+
- a shot number block
|
|
140
|
+
- a timecode range or beat timing
|
|
141
|
+
- a shot-size label such as WS, MCU, CU, ECU, OTS when useful
|
|
142
|
+
- one main rough storyboard sketch
|
|
143
|
+
- a small adjacent note column or note area
|
|
144
|
+
- Each shot card should feel like a documentary production cell, not just a loose thumbnail
|
|
145
|
+
|
|
146
|
+
【Shot Card Layout Rules】
|
|
147
|
+
- Inside each shot card, the sketch must be the visual center
|
|
148
|
+
- Near the sketch, include compact Chinese director notes describing shot intent
|
|
149
|
+
- The note area can include:
|
|
150
|
+
- shot description
|
|
151
|
+
- camera angle
|
|
152
|
+
- focal length or lens suggestion
|
|
153
|
+
- movement suggestion
|
|
154
|
+
- emotional beat
|
|
155
|
+
- action emphasis
|
|
156
|
+
- atmosphere cue
|
|
157
|
+
- Different shot cards may vary in sketch size, but the page must remain disciplined and grid-like
|
|
158
|
+
- The page should feel information-rich yet tidy, similar to a real director prep sheet
|
|
98
159
|
|
|
99
160
|
${panelCountRule}
|
|
100
161
|
|
|
@@ -112,23 +173,32 @@ ${videoDurationRule}
|
|
|
112
173
|
- Use strong silhouette design so the action reads immediately even in rough sketch form
|
|
113
174
|
- Reduce costume, texture, and prop detail to only what is necessary for recognition
|
|
114
175
|
- Faces can be simplified, but expression and head direction should remain readable
|
|
115
|
-
- Beside every panel, add a
|
|
176
|
+
- Beside every panel, add a compact Chinese annotation block or side note field
|
|
116
177
|
- The annotation block should feel like professional storyboard notes written by a Chinese-speaking director or storyboard artist
|
|
117
|
-
- Each annotation block should preferably
|
|
178
|
+
- Each annotation block should preferably contain:
|
|
118
179
|
- panel number
|
|
180
|
+
- timecode or beat range
|
|
119
181
|
- interior or exterior
|
|
120
182
|
- scene/location
|
|
121
183
|
- time of day
|
|
122
184
|
- shot size
|
|
123
185
|
- brief action description
|
|
124
186
|
- emotional tone
|
|
125
|
-
-
|
|
126
|
-
- 1. 外景·废墟街道·夜
|
|
127
|
-
- 远景建立镜头
|
|
128
|
-
- 女孩直面远处逼近的异形轮廓
|
|
129
|
-
- 气氛紧张
|
|
187
|
+
- optional lens or movement note
|
|
130
188
|
- Keep the annotation concise, readable, and placed beside or just outside the panel without blocking important drawing content
|
|
131
189
|
|
|
190
|
+
【Document Realism Rules】
|
|
191
|
+
- The page should feel like a real artifact from a film director's prep package
|
|
192
|
+
- Use ruled lines, table boxes, small labels, separators, and modular blocks to simulate a genuine production handout
|
|
193
|
+
- The three most important things are:
|
|
194
|
+
- clear shot progression
|
|
195
|
+
- believable handbook formatting
|
|
196
|
+
- immediately readable production notes
|
|
197
|
+
- The result should not look like a comic page poster
|
|
198
|
+
- The result should not look like a mood board
|
|
199
|
+
- The result should not look like a random thumbnail sheet
|
|
200
|
+
- It must look like a storyboard draft plus director manual page
|
|
201
|
+
|
|
132
202
|
【Cinematic Rules】
|
|
133
203
|
- Use meaningful variation in wide, medium, close-up, and extreme close-up shots
|
|
134
204
|
- Build a clear progression: establish, develop, turn, react, resolve
|
|
@@ -137,37 +207,55 @@ ${videoDurationRule}
|
|
|
137
207
|
|
|
138
208
|
${intensityBlock}
|
|
139
209
|
|
|
140
|
-
【Director
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
210
|
+
【Bottom Director Manual Area】
|
|
211
|
+
- Reserve a clearly separated lower band across the page for supplementary manual content
|
|
212
|
+
- This lower area should contain multiple boxed modules, not just one note strip
|
|
213
|
+
- Include several of the following modules in a tidy editorial layout:
|
|
214
|
+
- visual style reference strip
|
|
215
|
+
- action or motion reference strip
|
|
216
|
+
- lens / tone / atmosphere notes
|
|
217
|
+
- color or grayscale rhythm guidance
|
|
218
|
+
- sound or music beat bar
|
|
219
|
+
- dialogue or line emphasis block
|
|
220
|
+
- director memo or overall shooting note
|
|
221
|
+
- The bottom area must include 2 to 4 highlighted key-shot mini sketches
|
|
222
|
+
- These highlighted mini sketches can be simplified stick-figure or mannequin-style thumbnails
|
|
144
223
|
- Each highlighted mini sketch should correspond to one important cinematic beat from the main storyboard
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
- camera movement design
|
|
149
|
-
- lens language or staging emphasis when necessary
|
|
150
|
-
- Camera movement descriptions should be professional and practical, and must be written in concise professional Chinese, such as 推近, 拉远, 跟拍, 手持跟随, 甩镜, 焦点转移, 俯拍揭示, 低机位推进, 横向移动
|
|
151
|
-
- Each highlighted mini sketch should be paired with a short Chinese note describing the shot purpose and camera movement
|
|
224
|
+
- Camera movement descriptions should be professional and practical, and should use concise Chinese such as 推近, 拉远, 跟拍, 手持跟随, 甩镜, 焦点转移, 俯拍揭示, 低机位推进, 横向移动
|
|
225
|
+
- If a sound or rhythm module appears, it should feel like a simple hand-drawn timing chart with beats or second marks
|
|
226
|
+
- If a dialogue block appears, it should feel like a key line excerpt, slogan, or emotional line from the trailer, set apart from the storyboard panels
|
|
152
227
|
- Director notes must support the storyboard rather than replace it
|
|
153
228
|
- Keep the notes compact, readable, and production-oriented
|
|
154
229
|
|
|
230
|
+
【Reference Image Similarity Goal】
|
|
231
|
+
- The overall layout should strongly resemble a polished storyboard draft plus director handbook sheet like a short-film previsualization sample
|
|
232
|
+
- Emphasize:
|
|
233
|
+
- top title bar
|
|
234
|
+
- multi-column story sections
|
|
235
|
+
- numbered shot blocks
|
|
236
|
+
- side annotation fields
|
|
237
|
+
- lower handbook modules
|
|
238
|
+
- The page should feel dense, professional, and printable
|
|
239
|
+
- It should look like a page a director could hand to cinematography, art, and editing departments
|
|
240
|
+
|
|
155
241
|
【Text Rules】
|
|
156
242
|
- No dialogue balloons
|
|
157
243
|
- No captions
|
|
158
|
-
- No
|
|
159
|
-
-
|
|
160
|
-
- If panel labels are needed, keep them tiny and unobtrusive
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
244
|
+
- No prose paragraphs
|
|
245
|
+
- Use many small professional text blocks instead of large essay-like text
|
|
246
|
+
- If panel labels are needed, keep them tiny and unobtrusive
|
|
247
|
+
- Visible text should be primarily Chinese
|
|
248
|
+
- Standard film-document shorthand such as WS, MCU, CU, ECU, OTS, DATE, PAGE, DIR is allowed when useful
|
|
249
|
+
- Panel labels, shot annotations, timing notes, and director notes must feel like professional preproduction notation
|
|
250
|
+
- Avoid decorative typography or poster-like slogans except in a small dedicated line block if needed
|
|
164
251
|
|
|
165
252
|
【Model Guidance For GPT Image 2】
|
|
166
|
-
- Favor
|
|
167
|
-
- Favor readable
|
|
168
|
-
- Favor black line clarity
|
|
169
|
-
- Keep the image
|
|
253
|
+
- Favor document structure over painterly beauty
|
|
254
|
+
- Favor readable shot design over excessive rendering
|
|
255
|
+
- Favor black line clarity, white-page organization, and believable handbook layout
|
|
256
|
+
- Keep the image easy to parse as a storyboard manual sheet
|
|
170
257
|
- Do not turn this into a finished comic page or a realistic movie still
|
|
258
|
+
- Do not let the extra handbook information overwhelm the shot readability
|
|
171
259
|
|
|
172
260
|
【User Input】
|
|
173
261
|
${userPrompt}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storyboard-sketch-tpl.js","sourceRoot":"","sources":["../../src/utils/storyboard-sketch-tpl.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"storyboard-sketch-tpl.js","sourceRoot":"","sources":["../../src/utils/storyboard-sketch-tpl.ts"],"names":[],"mappings":";;AAiCA,4DAuQC;AA7RD,MAAM,kBAAkB,GAAuC;IAC7D,QAAQ,EAAE,mCAAmC;IAC7C,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EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,yBAAyB,GAChC,MAAM,
|
|
1
|
+
{"version":3,"file":"subject-card-tpl.d.ts","sourceRoot":"","sources":["../../src/utils/subject-card-tpl.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,yBAAyB,GAChC,MAAM,CA+ER"}
|
|
@@ -5,7 +5,7 @@ exports.buildSubjectCardPrompt = buildSubjectCardPrompt;
|
|
|
5
5
|
* 构建角色卡拼图提示词。
|
|
6
6
|
*
|
|
7
7
|
* @param params 模板参数,包含用户原始角色描述。
|
|
8
|
-
* @returns
|
|
8
|
+
* @returns 适合角色设定卡片拼图的完整提示词。
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
@@ -16,53 +16,81 @@ exports.buildSubjectCardPrompt = buildSubjectCardPrompt;
|
|
|
16
16
|
*/
|
|
17
17
|
function buildSubjectCardPrompt(params) {
|
|
18
18
|
const { userPrompt } = params;
|
|
19
|
-
return
|
|
19
|
+
return `基于用户指令及人物参考图(如有),生成专业角色设定卡片。
|
|
20
20
|
|
|
21
21
|
用户指令:
|
|
22
22
|
${userPrompt}
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
整体是一张信息完整、平铺清晰、导演和美术都能直接使用的角色设定卡片。
|
|
27
|
+
纯白或极浅色干净背景,画面整洁,无水印,无多余装饰元素。
|
|
28
|
+
所有信息块需要合理平铺在整个画面上,版面均衡,不要只堆在某一侧,也不要过于拥挤。
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
人物全身三视图(正面、侧面、背面)
|
|
30
|
-
完整上色的立体角色(非灰模)
|
|
31
|
-
自然站姿,比例准确,结构一致,无面部表情
|
|
32
|
-
材质真实,光照柔和统一
|
|
33
|
-
风格接近游戏角色设定图或高质量3D角色展示
|
|
30
|
+
卡片必须包含以下模块,缺一不可:
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
1. 角色信息卡
|
|
33
|
+
- 在画面显著但不遮挡主体的位置,制作简洁专业的人物设定卡片
|
|
34
|
+
- 至少包含:名字、外号、MBTI性格
|
|
35
|
+
- 这些字段仅在用户提示词明确提到或可以直接合理判断时才填写;无法确定时可留空或弱化,不要胡编乱造
|
|
36
|
+
- 设定卡文字风格要像专业角色设定页中的手写批注或设计笔记
|
|
37
|
+
- 所有可见文字必须为中文,且检查正确无误,不允许错别字、乱码、错误字段或明显错误信息
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
5. 表情包(开心、生气、惊讶、好奇、难过、哭泣、愤怒,结合用户指令任选至少3个,不要重复)
|
|
39
|
+
2. 角色45度脸部特写
|
|
40
|
+
- 必须包含一个角色 45° 脸部特写
|
|
41
|
+
- 特写要求超清晰、写实、五官准确、皮肤与面部结构真实可信
|
|
42
|
+
- 发型、发色、瞳色、肤色、妆容、饰品与角色主体严格一致
|
|
43
|
+
- 脸部特写要足够大,具备“主视觉”地位之一
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
45
|
+
3. 人物三视图
|
|
46
|
+
- 必须包含人物全身正面、全身侧面、全身背面三视图
|
|
47
|
+
- 三个视图使用统一比例、统一角色、统一服装基准款
|
|
48
|
+
- 站姿自然,结构准确,角色年龄感、体型、发型长度、服装廓形前后一致
|
|
49
|
+
- 三视图应清晰展示角色的整体轮廓、层次和服装关系
|
|
50
|
+
|
|
51
|
+
4. 不同场景适用服装
|
|
52
|
+
- 必须展示不同场景下适用的服装小图
|
|
53
|
+
- 每套服装都是完整着装小图,不要只画局部布料碎片
|
|
54
|
+
- 每套服装旁边都要用中文小字标注“启用条件”或“适用场景判断条件”
|
|
55
|
+
- 例如但不限于:战斗时、潜入时、正式场合、日常出行、寒冷环境、雨天环境、节庆场景等
|
|
56
|
+
- 启用条件应依据用户提示词和角色身份合理设计,不要脱离角色世界观
|
|
57
|
+
|
|
58
|
+
5. 主要服装细节展示
|
|
59
|
+
- 必须展示主要服装的关键细节
|
|
60
|
+
- 重点可以包括:领口、肩部、胸甲、袖口、腰带、鞋靴、徽记、扣件、布料层次、材质拼接等
|
|
61
|
+
- 展示方式要像设定板中的完整局部模块,不要碎片化得过细
|
|
62
|
+
- 细节展示要服务于理解服装设计,不要变成杂乱的小零件墙
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
6. 习惯性动作
|
|
65
|
+
- 必须展示 1~3 个角色的习惯性动作
|
|
66
|
+
- 这些动作为角色日常会自动触发的标志性小动作
|
|
67
|
+
- 动作应从角色性格和身份自然推导,例如:整理袖口、摸下巴、抱臂、拨头发、轻敲武器、歪头观察、转笔等
|
|
68
|
+
- 动作需要明显不同,但都必须符合角色本身,不要夸张到脱离人物设定
|
|
69
|
+
|
|
70
|
+
7. 经典表情
|
|
71
|
+
- 必须展示 3 个夸张但经典的表情
|
|
72
|
+
- 表情应清晰体现角色情绪识别度和角色魅力
|
|
73
|
+
- 三个表情必须明显不同,例如:得意、暴怒、无语、震惊、坏笑、委屈、冷笑等
|
|
74
|
+
- 表情可以适度夸张,但角色五官和脸型仍要保持一致性
|
|
75
|
+
|
|
76
|
+
要求:
|
|
77
|
+
- 所有模块内容清晰、完整、互不重复
|
|
78
|
+
- 各模块要像专业角色设定板一样被平铺组织在整个画面中,信息分区明确但整体统一
|
|
79
|
+
- 不要拆分成过多零碎小元素,不要做成杂乱的素材墙
|
|
80
|
+
- 角色在所有模块中的发型、发色、肤色、体型、服装逻辑、材质设定必须保持一致
|
|
81
|
+
- 角色不同服装之间要看得出是同一个人,只是在不同场景切换穿搭
|
|
82
|
+
- 服装启用条件、信息卡字段、功能标注等所有图中文字必须使用中文
|
|
83
|
+
- 小标注可以使用黑色手写批注风格,但必须清楚、专业、正确
|
|
84
|
+
- 画面必须只有角色设定内容,不出现其他无关人物或背景叙事
|
|
85
|
+
- 允许轻微设计感排版,但重点永远是“角色设定信息完整且一眼能读懂”
|
|
60
86
|
|
|
61
87
|
风格:
|
|
62
|
-
|
|
63
|
-
|
|
88
|
+
- 高质量角色设定卡片
|
|
89
|
+
- 游戏、动画或影视前期开发常用的人设板风格
|
|
90
|
+
- 干净、专业、结构清晰、具备高级感
|
|
91
|
+
- 既要有设计展示感,也要有真实可用的设定信息密度
|
|
64
92
|
|
|
65
93
|
严格保持与原角色一致:
|
|
66
|
-
|
|
94
|
+
发型、发色、肤色、脸型、角色气质、服装体系、关键道具全部一致`;
|
|
67
95
|
}
|
|
68
96
|
//# sourceMappingURL=subject-card-tpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-card-tpl.js","sourceRoot":"","sources":["../../src/utils/subject-card-tpl.ts"],"names":[],"mappings":";;AAiBA,
|
|
1
|
+
{"version":3,"file":"subject-card-tpl.js","sourceRoot":"","sources":["../../src/utils/subject-card-tpl.ts"],"names":[],"mappings":";;AAiBA,wDAiFC;AA9FD;;;;;;;;;;;;GAYG;AACH,SAAgB,sBAAsB,CACpC,MAAiC;IAEjC,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE9B,OAAO;;;EAGP,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAwEmB,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cerevox",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.72.0",
|
|
4
4
|
"description": "TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|