cerevox 2.30.6 → 2.31.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/mcp/servers/prompts/rules/anime-series.md +2 -2
- package/dist/mcp/servers/prompts/rules/general-video.md +2 -2
- package/dist/mcp/servers/prompts/skills/workflows/general-video.md +2 -2
- package/dist/mcp/servers/zerocut.d.ts.map +1 -1
- package/dist/mcp/servers/zerocut.js +12 -11
- package/dist/mcp/servers/zerocut.js.map +1 -1
- package/dist/utils/videokit.d.ts.map +1 -1
- package/dist/utils/videokit.js +71 -210
- package/dist/utils/videokit.js.map +1 -1
- package/package.json +1 -1
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
- 光线:保持光源方向和强度一致
|
|
116
116
|
|
|
117
117
|
### BGM 音量控制
|
|
118
|
-
* 音量:默认BGM音量控制为-
|
|
118
|
+
* 音量:默认BGM音量控制为-25db,通过设置BGM音轨的gain effect控制
|
|
119
119
|
|
|
120
120
|
```json
|
|
121
121
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"effects": [{
|
|
124
124
|
"name": "gain",
|
|
125
125
|
"params": {
|
|
126
|
-
"db": -
|
|
126
|
+
"db": -25
|
|
127
127
|
}
|
|
128
128
|
}]
|
|
129
129
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
- 光线:保持光源方向和强度一致
|
|
116
116
|
|
|
117
117
|
### BGM 音量控制
|
|
118
|
-
* 音量:默认BGM音量控制为-
|
|
118
|
+
* 音量:默认BGM音量控制为-25db,通过设置BGM音轨的gain effect控制
|
|
119
119
|
|
|
120
120
|
```json
|
|
121
121
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"effects": [{
|
|
124
124
|
"name": "gain",
|
|
125
125
|
"params": {
|
|
126
|
-
"db": -
|
|
126
|
+
"db": -25
|
|
127
127
|
}
|
|
128
128
|
}]
|
|
129
129
|
}
|
|
@@ -120,7 +120,7 @@ description: 制作通用视频时,可以根据用户需求,按照这个流
|
|
|
120
120
|
- 光线:保持光源方向和强度一致
|
|
121
121
|
|
|
122
122
|
### BGM 音量控制
|
|
123
|
-
* 音量:默认BGM音量控制为-
|
|
123
|
+
* 音量:默认BGM音量控制为-25db,通过设置BGM音轨的gain effect控制
|
|
124
124
|
|
|
125
125
|
```json
|
|
126
126
|
{
|
|
@@ -128,7 +128,7 @@ description: 制作通用视频时,可以根据用户需求,按照这个流
|
|
|
128
128
|
"effects": [{
|
|
129
129
|
"name": "gain",
|
|
130
130
|
"params": {
|
|
131
|
-
"db": -
|
|
131
|
+
"db": -25
|
|
132
132
|
}
|
|
133
133
|
}]
|
|
134
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zerocut.d.ts","sourceRoot":"","sources":["../../../src/mcp/servers/zerocut.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"zerocut.d.ts","sourceRoot":"","sources":["../../../src/mcp/servers/zerocut.ts"],"names":[],"mappings":";AAmvKA,wBAAsB,GAAG,kBAKxB"}
|
|
@@ -1427,7 +1427,7 @@ server.registerTool('generate-image', {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
const turnaroundMessage = hasTurnaround
|
|
1430
|
-
? '⚠️ 注意**三视图**是指**同一个**人或物体的不同视角合成图,三部分都表示同一个人或物体,只能参考其信息画出**一个人或一个物体**,不要画成多个人或多个物体!\n'
|
|
1430
|
+
? '⚠️ 注意**三视图**是指**同一个**人或物体的不同视角合成图,三部分都表示同一个人或物体,只能参考其信息画出**一个人或一个物体**,不要画成多个人或多个物体!\n\n'
|
|
1431
1431
|
: '';
|
|
1432
1432
|
if (objectPrefix.length > 0) {
|
|
1433
1433
|
processedPrompt = `${objectPrefix.join('\n')}
|
|
@@ -1769,7 +1769,7 @@ server.registerTool('generate-video', {
|
|
|
1769
1769
|
scene.dialog)) {
|
|
1770
1770
|
if (!checkAudioVideoDurationFlag) {
|
|
1771
1771
|
checkAudioVideoDurationFlag = true;
|
|
1772
|
-
return createErrorResponse('请先自我检查 media_logs
|
|
1772
|
+
return createErrorResponse('请先自我检查 media_logs 中的查音频时长,确保音频时长不大于duration指定的视频时长', 'generate-video');
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
@@ -2666,8 +2666,8 @@ server.registerTool('compile-and-run', {
|
|
|
2666
2666
|
success: false,
|
|
2667
2667
|
exitCode: result.exitCode,
|
|
2668
2668
|
outputPath,
|
|
2669
|
-
command: compiled.cmd,
|
|
2670
|
-
stderr: result.stderr
|
|
2669
|
+
// command: compiled.cmd,
|
|
2670
|
+
stderr: result.stderr,
|
|
2671
2671
|
message: `FFmpeg exited with code ${result.exitCode}`,
|
|
2672
2672
|
timestamp: new Date().toISOString(),
|
|
2673
2673
|
};
|
|
@@ -3524,11 +3524,7 @@ server.registerTool('generate-video-by-ref', {
|
|
|
3524
3524
|
.optional()
|
|
3525
3525
|
.default(5)
|
|
3526
3526
|
.describe('The duration of the video in seconds.'),
|
|
3527
|
-
size: zod_1.z
|
|
3528
|
-
.enum(['720x1280', '1280x720'])
|
|
3529
|
-
.optional()
|
|
3530
|
-
.default('720x1280')
|
|
3531
|
-
.describe('The size of the video.'),
|
|
3527
|
+
size: zod_1.z.enum(['720x1280', '1280x720']).describe('The size of the video.'),
|
|
3532
3528
|
watermark: zod_1.z
|
|
3533
3529
|
.boolean()
|
|
3534
3530
|
.optional()
|
|
@@ -3916,11 +3912,16 @@ server.registerTool('run-ffmpeg-command', {
|
|
|
3916
3912
|
command: zod_1.z
|
|
3917
3913
|
.string()
|
|
3918
3914
|
.describe('The ffmpeg or ffprobe command to execute. Only ffmpeg and ffprobe commands are allowed.'),
|
|
3915
|
+
dir: zod_1.z
|
|
3916
|
+
.string()
|
|
3917
|
+
.optional()
|
|
3918
|
+
.default('materials')
|
|
3919
|
+
.describe('The working directory for the command execution. Default is the materials directory.'),
|
|
3919
3920
|
saveToFileName: zod_1.z
|
|
3920
3921
|
.string()
|
|
3921
3922
|
.describe('The filename that matches the output file specified in the ffmpeg command. This file will be downloaded to the local materials directory after command execution.'),
|
|
3922
3923
|
},
|
|
3923
|
-
}, async ({ command, saveToFileName }) => {
|
|
3924
|
+
}, async ({ command, dir, saveToFileName }) => {
|
|
3924
3925
|
try {
|
|
3925
3926
|
// 验证session状态
|
|
3926
3927
|
const currentSession = await validateSession('run-ffmpeg-command');
|
|
@@ -3944,7 +3945,7 @@ server.registerTool('run-ffmpeg-command', {
|
|
|
3944
3945
|
}
|
|
3945
3946
|
console.log(`Running command: ${finalCommand}`);
|
|
3946
3947
|
// 构建工作目录路径 - materials 目录
|
|
3947
|
-
const workDir = `/home/user/cerevox-zerocut/projects/${terminal.id}
|
|
3948
|
+
const workDir = `/home/user/cerevox-zerocut/projects/${terminal.id}/${dir}`;
|
|
3948
3949
|
// 执行命令,用一个独立的命令行以免影响当前会话的cwd
|
|
3949
3950
|
const response = await terminal.create().run(finalCommand, {
|
|
3950
3951
|
cwd: workDir,
|