zerocut-cli 0.4.1 → 0.4.2

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.
@@ -89,7 +89,7 @@ async function getMaterialUri(session, fileName, options = {}) {
89
89
  }
90
90
  const saveToPath = `/home/user/cerevox-zerocut/projects/${session.terminal.id}/materials/${fileName}`;
91
91
  const files = session.files;
92
- await files.upload(localPath, saveToPath);
92
+ await files.upload(localPath, saveToPath, { overwrite: true });
93
93
  }
94
94
  else if (res.status > 299) {
95
95
  throw new Error(`Failed to get material from ${url}. Details: ${res.statusText}`);
@@ -91,7 +91,7 @@ npx zerocut-cli config --ott <token> --region <cn|us>
91
91
  - If user provides script or key message, keep original intent, wording priority, and brand keywords.
92
92
  - If narration exists for a scene, inject it at the beginning of the scene video prompt with this exact format:
93
93
  - `【narration_tone】Narration:<text_content>\n`
94
- - `narration_tone` must follow the voice design rules in this skill.
94
+ - `narration_tone` must be a concrete tone string derived from the voice formula, not a placeholder.
95
95
  - `text_content` must be written in the user-required language.
96
96
  - Estimate speech duration with normal-slow pace.
97
97
  - Per-scene narration/dialogue total should not exceed 12 seconds.
@@ -103,6 +103,17 @@ npx zerocut-cli config --ott <token> --region <cn|us>
103
103
  - Keep narration voice stable across the full video unless story explicitly changes narrator.
104
104
  - Use voice formula internally:
105
105
  - gender + age range + vocal traits + speaking pace + emotional baseline + language
106
+ - Convert the formula into a concise `narration_tone` label and keep it stable across scenes.
107
+ - `narration_tone` should explicitly encode the same dimensions as the formula.
108
+
109
+ ### Narration Tone Construction Example
110
+
111
+ - Voice formula example:
112
+ - female + 20-25 + bright thin tone with slight breathiness + medium-slow pace + gentle restrained with subtle hesitation + Mandarin Chinese
113
+ - Valid `narration_tone` example:
114
+ - `female_20-25_bright-breathy_medium-slow_gentle-hesitant_mandarin`
115
+ - Prompt prefix example:
116
+ - `【female_20-25_bright-breathy_medium-slow_gentle-hesitant_mandarin】Narration:夜色刚落下,她把那封信重新折好,放回口袋。\n`
106
117
 
107
118
  ## Subject Creation Rules
108
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zerocut-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "ZeroCut CLI: AI assistant CLI for creating and editing images/audio/video",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -96,7 +96,7 @@ export async function getMaterialUri(
96
96
  }
97
97
  const saveToPath = `/home/user/cerevox-zerocut/projects/${session.terminal.id}/materials/${fileName}`;
98
98
  const files = session.files;
99
- await files.upload(localPath, saveToPath);
99
+ await files.upload(localPath, saveToPath, { overwrite: true });
100
100
  } else if (res.status > 299) {
101
101
  throw new Error(`Failed to get material from ${url}. Details: ${res.statusText}`);
102
102
  }
@@ -91,7 +91,7 @@ npx zerocut-cli config --ott <token> --region <cn|us>
91
91
  - If user provides script or key message, keep original intent, wording priority, and brand keywords.
92
92
  - If narration exists for a scene, inject it at the beginning of the scene video prompt with this exact format:
93
93
  - `【narration_tone】Narration:<text_content>\n`
94
- - `narration_tone` must follow the voice design rules in this skill.
94
+ - `narration_tone` must be a concrete tone string derived from the voice formula, not a placeholder.
95
95
  - `text_content` must be written in the user-required language.
96
96
  - Estimate speech duration with normal-slow pace.
97
97
  - Per-scene narration/dialogue total should not exceed 12 seconds.
@@ -103,6 +103,17 @@ npx zerocut-cli config --ott <token> --region <cn|us>
103
103
  - Keep narration voice stable across the full video unless story explicitly changes narrator.
104
104
  - Use voice formula internally:
105
105
  - gender + age range + vocal traits + speaking pace + emotional baseline + language
106
+ - Convert the formula into a concise `narration_tone` label and keep it stable across scenes.
107
+ - `narration_tone` should explicitly encode the same dimensions as the formula.
108
+
109
+ ### Narration Tone Construction Example
110
+
111
+ - Voice formula example:
112
+ - female + 20-25 + bright thin tone with slight breathiness + medium-slow pace + gentle restrained with subtle hesitation + Mandarin Chinese
113
+ - Valid `narration_tone` example:
114
+ - `female_20-25_bright-breathy_medium-slow_gentle-hesitant_mandarin`
115
+ - Prompt prefix example:
116
+ - `【female_20-25_bright-breathy_medium-slow_gentle-hesitant_mandarin】Narration:夜色刚落下,她把那封信重新折好,放回口袋。\n`
106
117
 
107
118
  ## Subject Creation Rules
108
119