cerevox 4.69.2 → 4.70.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 +28 -7
- package/dist/core/ai.js.map +1 -1
- package/dist/mcp/servers/prompts/skills//344/270/200/351/224/256/346/210/220/347/211/207.md +14 -14
- package/dist/mcp/servers/zerocut.d.ts.map +1 -1
- package/dist/mcp/servers/zerocut.js +12 -9
- package/dist/mcp/servers/zerocut.js.map +1 -1
- package/dist/utils/optimize-camer-tpl.d.ts +2 -0
- package/dist/utils/optimize-camer-tpl.d.ts.map +1 -1
- package/dist/utils/optimize-camer-tpl.js +8 -1
- package/dist/utils/optimize-camer-tpl.js.map +1 -1
- package/dist/utils/storyboard-sketch-tpl.d.ts +26 -0
- package/dist/utils/storyboard-sketch-tpl.d.ts.map +1 -0
- package/dist/utils/storyboard-sketch-tpl.js +177 -0
- package/dist/utils/storyboard-sketch-tpl.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storyboardSketchTemplate = storyboardSketchTemplate;
|
|
4
|
+
const sketchIntensityMap = {
|
|
5
|
+
balanced: `【镜头强度】以清晰叙事为先,镜头变化克制,适合稳定可读的草图预演。`,
|
|
6
|
+
strong: `【镜头强度】镜头反差更明显,强调视觉重音和叙事节奏,但仍保持草图简洁。`,
|
|
7
|
+
aggressive: `【镜头强度】镜头冲击力更强,节奏起伏更大,适合短视频感的草图分镜。`,
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 生成适合 gpt-image-2 的黑白手绘宫格草图提示词。
|
|
11
|
+
*
|
|
12
|
+
* @param params 模板参数,包括用户剧情、页宽高比、格数限制、参考视频时长和镜头强度。
|
|
13
|
+
* @returns 适合用于生成单页黑白手绘分镜草图的英文主提示词。
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const prompt = storyboardSketchTemplate({
|
|
18
|
+
* userPrompt: '少女在雨夜追逐一辆失控的列车,最后纵身跃上车尾。',
|
|
19
|
+
* page_aspect_ratio: '1:1',
|
|
20
|
+
* maxPanels: 6,
|
|
21
|
+
* forVideoDuration: 18,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function storyboardSketchTemplate(params) {
|
|
26
|
+
const { userPrompt, page_aspect_ratio = '1:1', maxPanels, forVideoDuration, cinematicIntensity = 'strong', } = params;
|
|
27
|
+
const safeMaxPanels = typeof maxPanels === 'number' && Number.isFinite(maxPanels)
|
|
28
|
+
? Math.max(3, Math.min(12, Math.floor(maxPanels)))
|
|
29
|
+
: undefined;
|
|
30
|
+
const intensityBlock = sketchIntensityMap[cinematicIntensity] ?? sketchIntensityMap.strong;
|
|
31
|
+
const panelCountRule = safeMaxPanels
|
|
32
|
+
? `
|
|
33
|
+
【画格数量基本规则】
|
|
34
|
+
- 实际可识别的叙事画格数量不多于 ${safeMaxPanels}
|
|
35
|
+
- 可以少于 ${safeMaxPanels},但不要多于 ${safeMaxPanels}
|
|
36
|
+
- 根据剧情节奏自然分格,不要为了凑数而平均切分
|
|
37
|
+
`.trim()
|
|
38
|
+
: `
|
|
39
|
+
【画格数量基本规则】
|
|
40
|
+
- 根据剧情信息量、动作复杂度和阅读清晰度自动决定画格数量
|
|
41
|
+
- 最终画格数量通常控制在 3~12 格
|
|
42
|
+
- 优先保证单页可读性和镜头节奏,不要使用过碎分格
|
|
43
|
+
`.trim();
|
|
44
|
+
const videoDurationRule = forVideoDuration !== undefined && forVideoDuration !== null
|
|
45
|
+
? `
|
|
46
|
+
【参考目标视频时长】
|
|
47
|
+
- 目标视频时长:${forVideoDuration} 秒
|
|
48
|
+
- 结合该时长决定镜头密度与格数
|
|
49
|
+
- 单镜头通常对应 2~5 秒,特殊情况下可更短或更长
|
|
50
|
+
- 时长越短,越应压缩无效过渡;时长越长,可适度增加信息镜头
|
|
51
|
+
`.trim()
|
|
52
|
+
: `
|
|
53
|
+
【节奏控制】
|
|
54
|
+
- 根据剧情内容自动判断镜头密度,避免镜头过碎或叙事松散
|
|
55
|
+
`.trim();
|
|
56
|
+
const finalOutputRule = safeMaxPanels
|
|
57
|
+
? `
|
|
58
|
+
【最终输出】
|
|
59
|
+
- 一张比例为 ${page_aspect_ratio} 的黑白手绘分镜草图页
|
|
60
|
+
- 画格数量不多于 ${safeMaxPanels}
|
|
61
|
+
- 明确阅读顺序,适合作为导演草图和后续视频分镜参考
|
|
62
|
+
`.trim()
|
|
63
|
+
: `
|
|
64
|
+
【最终输出】
|
|
65
|
+
- 一张比例为 ${page_aspect_ratio} 的黑白手绘分镜草图页
|
|
66
|
+
- 画格数量由你根据剧情和节奏自动决定,通常控制在 3~12 格
|
|
67
|
+
- 明确阅读顺序,适合作为导演草图和后续视频分镜参考
|
|
68
|
+
`.trim();
|
|
69
|
+
return `You are a professional film storyboard sketch artist creating a single page of black-and-white hand-drawn storyboard thumbnails for GPT Image 2.
|
|
70
|
+
|
|
71
|
+
【Core Goal】
|
|
72
|
+
- Create one single composed storyboard page, not multiple separate images
|
|
73
|
+
- The page must read like a director's planning sketch, with clear sequential storytelling
|
|
74
|
+
- Keep it simple, rough, readable, cinematic, and production-friendly
|
|
75
|
+
|
|
76
|
+
【Visual Style Requirements】
|
|
77
|
+
- monochrome black and white storyboard sketch
|
|
78
|
+
- hand-drawn pencil and ink line art
|
|
79
|
+
- white paper background
|
|
80
|
+
- rough but confident construction lines
|
|
81
|
+
- simple shading only when necessary for depth
|
|
82
|
+
- no color
|
|
83
|
+
- no painterly rendering
|
|
84
|
+
- no photorealism
|
|
85
|
+
- no polished illustration finish
|
|
86
|
+
- no complex textures
|
|
87
|
+
- use clear silhouettes, readable gestures, and simple environment blocking
|
|
88
|
+
- preserve the feeling of fast previsualization sketches made by a film storyboard artist
|
|
89
|
+
|
|
90
|
+
【Layout Requirements】
|
|
91
|
+
- Output one complete storyboard sheet
|
|
92
|
+
- Overall page aspect ratio: ${page_aspect_ratio}
|
|
93
|
+
- Use a clear comic-grid or storyboard-grid layout
|
|
94
|
+
- Reading order must be obvious at a glance
|
|
95
|
+
- Panels may vary in size, but the page must stay organized and readable
|
|
96
|
+
- Reserve a clean horizontal area at the bottom of the page for director notes
|
|
97
|
+
- The bottom note area must be visually separated from the storyboard panels and remain easy to read
|
|
98
|
+
|
|
99
|
+
${panelCountRule}
|
|
100
|
+
|
|
101
|
+
${videoDurationRule}
|
|
102
|
+
|
|
103
|
+
【Panel Content Rules】
|
|
104
|
+
- Every panel must feel like a real camera shot from a film
|
|
105
|
+
- Each panel should clearly show:
|
|
106
|
+
- shot size
|
|
107
|
+
- camera angle
|
|
108
|
+
- subject action
|
|
109
|
+
- staging and spatial relationship
|
|
110
|
+
- emotional beat
|
|
111
|
+
- story purpose
|
|
112
|
+
- Use strong silhouette design so the action reads immediately even in rough sketch form
|
|
113
|
+
- Reduce costume, texture, and prop detail to only what is necessary for recognition
|
|
114
|
+
- Faces can be simplified, but expression and head direction should remain readable
|
|
115
|
+
- Beside every panel, add a small Chinese annotation block
|
|
116
|
+
- The annotation block should feel like professional storyboard notes written by a Chinese-speaking director or storyboard artist
|
|
117
|
+
- Each annotation block should preferably follow this structure in Chinese:
|
|
118
|
+
- panel number
|
|
119
|
+
- interior or exterior
|
|
120
|
+
- scene/location
|
|
121
|
+
- time of day
|
|
122
|
+
- shot size
|
|
123
|
+
- brief action description
|
|
124
|
+
- emotional tone
|
|
125
|
+
- Example structure in Chinese only:
|
|
126
|
+
- 1. 外景·废墟街道·夜
|
|
127
|
+
- 远景建立镜头
|
|
128
|
+
- 女孩直面远处逼近的异形轮廓
|
|
129
|
+
- 气氛紧张
|
|
130
|
+
- Keep the annotation concise, readable, and placed beside or just outside the panel without blocking important drawing content
|
|
131
|
+
|
|
132
|
+
【Cinematic Rules】
|
|
133
|
+
- Use meaningful variation in wide, medium, close-up, and extreme close-up shots
|
|
134
|
+
- Build a clear progression: establish, develop, turn, react, resolve
|
|
135
|
+
- Use reaction shots, inserts, and impact beats when helpful
|
|
136
|
+
- Keep continuity of character position, screen direction, props, and action flow
|
|
137
|
+
|
|
138
|
+
${intensityBlock}
|
|
139
|
+
|
|
140
|
+
【Director Notes Area】
|
|
141
|
+
- In the reserved bottom area, include concise professional director notes
|
|
142
|
+
- The bottom area must include 2 to 3 highlighted key-shot mini sketches
|
|
143
|
+
- These highlighted key-shot mini sketches can be simplified stick-figure or mannequin-style thumbnail sketches
|
|
144
|
+
- Each highlighted mini sketch should correspond to one important cinematic beat from the main storyboard
|
|
145
|
+
- The note area should describe:
|
|
146
|
+
- highlight shots
|
|
147
|
+
- key performance beats
|
|
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
|
|
152
|
+
- Director notes must support the storyboard rather than replace it
|
|
153
|
+
- Keep the notes compact, readable, and production-oriented
|
|
154
|
+
|
|
155
|
+
【Text Rules】
|
|
156
|
+
- No dialogue balloons
|
|
157
|
+
- No captions
|
|
158
|
+
- No large text blocks
|
|
159
|
+
- Only the bottom director notes area may contain brief professional instruction text
|
|
160
|
+
- If panel labels are needed, keep them tiny and unobtrusive in the lower-right corner of each panel
|
|
161
|
+
- Any visible text generated inside the image must be in Chinese only
|
|
162
|
+
- Panel labels, shot annotations, and director notes must all use professional Chinese wording
|
|
163
|
+
- Do not generate any English words, roman letters, or mixed-language labels inside the image
|
|
164
|
+
|
|
165
|
+
【Model Guidance For GPT Image 2】
|
|
166
|
+
- Favor simple composition over excessive detail
|
|
167
|
+
- Favor readable storyboard sketch language over beautiful final art
|
|
168
|
+
- Favor black line clarity over rendering
|
|
169
|
+
- Keep the image clean, flat, and easy to parse as a storyboard page
|
|
170
|
+
- Do not turn this into a finished comic page or a realistic movie still
|
|
171
|
+
|
|
172
|
+
【User Input】
|
|
173
|
+
${userPrompt}
|
|
174
|
+
|
|
175
|
+
${finalOutputRule}`.trim();
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=storyboard-sketch-tpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storyboard-sketch-tpl.js","sourceRoot":"","sources":["../../src/utils/storyboard-sketch-tpl.ts"],"names":[],"mappings":";;AAgCA,4DAwKC;AA9LD,MAAM,kBAAkB,GAAuC;IAC7D,QAAQ,EAAE,mCAAmC;IAC7C,MAAM,EAAE,qCAAqC;IAC7C,UAAU,EAAE,mCAAmC;CAChD,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,wBAAwB,CACtC,MAAsC;IAEtC,MAAM,EACJ,UAAU,EACV,iBAAiB,GAAG,KAAK,EACzB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,GAAG,QAAQ,GAC9B,GAAG,MAAM,CAAC;IAEX,MAAM,aAAa,GACjB,OAAO,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACzD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,cAAc,GAClB,kBAAkB,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC;IAEtE,MAAM,cAAc,GAAG,aAAa;QAClC,CAAC,CAAC;;oBAEc,aAAa;SACxB,aAAa,UAAU,aAAa;;CAE5C,CAAC,IAAI,EAAE;QACJ,CAAC,CAAC;;;;;CAKL,CAAC,IAAI,EAAE,CAAC;IAEP,MAAM,iBAAiB,GACrB,gBAAgB,KAAK,SAAS,IAAI,gBAAgB,KAAK,IAAI;QACzD,CAAC,CAAC;;WAEG,gBAAgB;;;;CAI1B,CAAC,IAAI,EAAE;QACF,CAAC,CAAC;;;CAGP,CAAC,IAAI,EAAE,CAAC;IAEP,MAAM,eAAe,GAAG,aAAa;QACnC,CAAC,CAAC;;UAEI,iBAAiB;YACf,aAAa;;CAExB,CAAC,IAAI,EAAE;QACJ,CAAC,CAAC;;UAEI,iBAAiB;;;CAG1B,CAAC,IAAI,EAAE,CAAC;IAEP,OAAO;;;;;;;;;;;;;;;;;;;;;;;+BAuBsB,iBAAiB;;;;;;;EAO9C,cAAc;;EAEd,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCjB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCd,UAAU;;EAEV,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cerevox",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.70.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",
|