mulmocast 1.2.24 → 1.2.25
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.
|
@@ -9,7 +9,7 @@ const processVision = async (params) => {
|
|
|
9
9
|
return;
|
|
10
10
|
const handler = new htmlPlugin({ rootDir });
|
|
11
11
|
await handler[templateNameTofunctionName(beat.image.style)](beat.image.data, {
|
|
12
|
-
|
|
12
|
+
functionName: beat.image.style,
|
|
13
13
|
imageFilePath: imagePath,
|
|
14
14
|
htmlFilePath: imagePath.replace(/\.png$/, ".html"),
|
|
15
15
|
});
|
package/lib/utils/prompt.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const graphDataScriptGeneratePrompt: (scene: string) => string;
|
|
|
5
5
|
export declare const getMulmoScriptTemplateSystemPrompt: (template: MulmoPromptTemplate, script?: MulmoScript) => string;
|
|
6
6
|
export declare const interactiveClarificationPrompt = "If there are any unclear points, be sure to ask the user questions and clarify them before generating the script.";
|
|
7
7
|
export declare const prefixPrompt = "Here is the web content that can be used as reference material for the script:";
|
|
8
|
-
export declare const translateSystemPrompt = "Please translate the
|
|
8
|
+
export declare const translateSystemPrompt = "Please translate ONLY the text content from ## Original Language to ## Target Language (in locale format, like en, ja, fr, ch). Return ONLY the translated text without any formatting markers, language labels, or additional content.";
|
|
9
9
|
export declare const translatePrompts: string[];
|
|
10
10
|
export declare const sceneToBeatsPrompt: ({ sampleBeats, beatsPerScene, allScenes, }: {
|
|
11
11
|
sampleBeats: MulmoScript["beats"];
|
package/lib/utils/prompt.js
CHANGED
|
@@ -24,8 +24,20 @@ export const getMulmoScriptTemplateSystemPrompt = (template, script) => {
|
|
|
24
24
|
};
|
|
25
25
|
export const interactiveClarificationPrompt = `If there are any unclear points, be sure to ask the user questions and clarify them before generating the script.`;
|
|
26
26
|
export const prefixPrompt = "Here is the web content that can be used as reference material for the script:";
|
|
27
|
-
export const translateSystemPrompt = "Please translate the
|
|
28
|
-
export const translatePrompts = [
|
|
27
|
+
export const translateSystemPrompt = "Please translate ONLY the text content from ## Original Language to ## Target Language (in locale format, like en, ja, fr, ch). Return ONLY the translated text without any formatting markers, language labels, or additional content.";
|
|
28
|
+
export const translatePrompts = [
|
|
29
|
+
"## Original Language",
|
|
30
|
+
":lang",
|
|
31
|
+
"",
|
|
32
|
+
"## Original Text",
|
|
33
|
+
":beat.text",
|
|
34
|
+
"",
|
|
35
|
+
"## Target Language",
|
|
36
|
+
":targetLang",
|
|
37
|
+
"",
|
|
38
|
+
"## Target Text",
|
|
39
|
+
"",
|
|
40
|
+
];
|
|
29
41
|
export const sceneToBeatsPrompt = ({ sampleBeats, beatsPerScene, allScenes, }) => {
|
|
30
42
|
return `Generate scripts for the given scenes, following the structure of the sample scripts below.
|
|
31
43
|
\`\`\`JSON
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mulmocast",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.node.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"homepage": "https://github.com/receptron/mulmocast-cli#readme",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@google-cloud/text-to-speech": "^6.3.0",
|
|
70
|
-
"@google/genai": "^1.
|
|
70
|
+
"@google/genai": "^1.17.0",
|
|
71
71
|
"@graphai/anthropic_agent": "^2.0.11",
|
|
72
72
|
"@graphai/browserless_agent": "^2.0.1",
|
|
73
73
|
"@graphai/gemini_agent": "^2.0.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"graphai": "^2.0.14",
|
|
89
89
|
"jsdom": "^26.1.0",
|
|
90
90
|
"marked": "^16.2.1",
|
|
91
|
-
"mulmocast-vision": "^0.0.
|
|
91
|
+
"mulmocast-vision": "^0.0.9",
|
|
92
92
|
"ora": "^8.2.0",
|
|
93
93
|
"puppeteer": "^24.19.0",
|
|
94
94
|
"replicate": "^1.1.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/fluent-ffmpeg": "^2.1.26",
|
|
103
103
|
"@types/jsdom": "^21.1.7",
|
|
104
104
|
"@types/yargs": "^17.0.33",
|
|
105
|
-
"eslint": "^9.
|
|
105
|
+
"eslint": "^9.35.0",
|
|
106
106
|
"eslint-config-prettier": "^10.1.8",
|
|
107
107
|
"eslint-plugin-prettier": "^5.5.4",
|
|
108
108
|
"eslint-plugin-sonarjs": "^3.0.5",
|