mulmocast 2.0.0-alpha.0 → 2.0.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/lib/agents/validate_schema_agent.d.ts +2 -3
- 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 +871 -9193
- package/lib/types/schema.js +6 -3
- package/lib/utils/context.d.ts +258 -258
- package/lib/utils/prompt.js +2 -4
- package/package.json +3 -4
- package/lib/agents/image_google_agent.d.ts +0 -5
- package/lib/agents/image_google_agent.js +0 -86
- package/lib/agents/movie_google_agent.d.ts +0 -9
- package/lib/agents/movie_google_agent.js +0 -122
- package/lib/mcp/aaa.d.ts +0 -2
- package/lib/mcp/aaa.js +0 -4
- package/lib/utils/aaa.d.ts +0 -1
- package/lib/utils/aaa.js +0 -16
- package/lib/utils/common.d.ts +0 -1
- package/lib/utils/common.js +0 -4
- package/lib/utils/greedy-json-lite.d.ts +0 -2
- package/lib/utils/greedy-json-lite.js +0 -59
- package/scripts/templates/html_sample.json~ +0 -0
- package/scripts/test/test_vision.json~ +0 -0
package/lib/types/schema.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { htmlLLMProvider, provider2TTSAgent, provider2ImageAgent, provider2MovieAgent, defaultProviders, provider2SoundEffectAgent, } from "../utils/provider2agent.js";
|
|
3
3
|
import { currentMulmoScriptVersion } from "../utils/const.js";
|
|
4
4
|
export const langSchema = z.string();
|
|
5
|
-
const URLStringSchema = z.
|
|
5
|
+
const URLStringSchema = z.url();
|
|
6
6
|
export const localizedTextSchema = z
|
|
7
7
|
.object({
|
|
8
8
|
text: z.string(),
|
|
@@ -387,7 +387,10 @@ export const mulmoReferenceSchema = z.object({
|
|
|
387
387
|
url: URLStringSchema,
|
|
388
388
|
title: z.string().optional(),
|
|
389
389
|
description: z.string().optional(),
|
|
390
|
-
type: z
|
|
390
|
+
type: z
|
|
391
|
+
.union([z.enum(["article", "paper", "image", "video", "audio"]), z.string()])
|
|
392
|
+
.optional()
|
|
393
|
+
.default("article"),
|
|
391
394
|
});
|
|
392
395
|
export const mulmoScriptSchema = mulmoPresentationStyleSchema
|
|
393
396
|
.extend({
|
|
@@ -490,4 +493,4 @@ export const mulmoStoryboardSchema = z
|
|
|
490
493
|
})
|
|
491
494
|
.describe("A storyboard for a presentation, a story, a video, etc.")
|
|
492
495
|
.strict();
|
|
493
|
-
export const urlsSchema = z.array(z.
|
|
496
|
+
export const urlsSchema = z.array(z.url({ message: "Invalid URL format" }));
|