mulmocast 2.0.0-alpha.0 → 2.0.0-alpha.1
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/lib/cli/commands/tool/schema/handler.js +2 -4
- package/lib/data/promptTemplates.d.ts +1 -1
- package/lib/data/promptTemplates.js +1 -0
- package/lib/methods/mulmo_presentation_style.d.ts +1 -1
- package/lib/types/schema.d.ts +819 -9141
- package/lib/types/schema.js +4 -1
- package/lib/utils/context.d.ts +258 -258
- package/lib/utils/prompt.js +2 -4
- package/package.json +2 -3
package/lib/utils/prompt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mulmoScriptSchema } from "../types/schema.js";
|
|
2
|
-
import {
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
export const imagePrompt = (beat, style) => {
|
|
4
4
|
return (beat.imagePrompt || `generate image appropriate for the text. text: ${beat.text}`) + "\n" + (style || "");
|
|
5
5
|
};
|
|
@@ -16,9 +16,7 @@ export const getMulmoScriptTemplateSystemPrompt = (template, script) => {
|
|
|
16
16
|
return `${template.systemPrompt}\n\`\`\`JSON\n${JSON.stringify(script)}\n\`\`\``;
|
|
17
17
|
}
|
|
18
18
|
// script is not provided, use the default schema
|
|
19
|
-
const defaultSchema =
|
|
20
|
-
strictUnions: true,
|
|
21
|
-
});
|
|
19
|
+
const defaultSchema = z.toJSONSchema(mulmoScriptSchema);
|
|
22
20
|
const specificOutputPrompt = `The output should follow the JSON schema specified below. Please provide your response as valid JSON within \`\`\`json code blocks for clarity.`;
|
|
23
21
|
return `${template.systemPrompt}\n\n${specificOutputPrompt}\n\n\`\`\`JSON\n${JSON.stringify(defaultSchema)}\n\`\`\``;
|
|
24
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mulmocast",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.node.js",
|
|
@@ -102,8 +102,7 @@
|
|
|
102
102
|
"replicate": "^1.3.1",
|
|
103
103
|
"yaml": "^2.8.1",
|
|
104
104
|
"yargs": "^18.0.0",
|
|
105
|
-
"zod": "^4.1.12"
|
|
106
|
-
"zod-to-json-schema": "^3.24.6"
|
|
105
|
+
"zod": "^4.1.12"
|
|
107
106
|
},
|
|
108
107
|
"devDependencies": {
|
|
109
108
|
"@receptron/test_utils": "^2.0.3",
|