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
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type AgentFunction, type AgentFunctionInfo, type DefaultConfigData } from "graphai";
|
|
2
|
-
import { MulmoScript } from "../types/index.js";
|
|
3
|
-
import { ZodSchema } from "zod";
|
|
2
|
+
import { type MulmoScript, mulmoScriptSchema } from "../types/index.js";
|
|
4
3
|
interface ValidateMulmoScriptInputs {
|
|
5
4
|
text: string;
|
|
6
|
-
schema:
|
|
5
|
+
schema: typeof mulmoScriptSchema;
|
|
7
6
|
}
|
|
8
7
|
interface ValidateMulmoScriptResponse {
|
|
9
8
|
isValid: boolean;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { mulmoScriptSchema } from "../../../../types/schema.js";
|
|
2
|
-
import {
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import { GraphAILogger } from "graphai";
|
|
4
4
|
import { setGraphAILogger } from "../../../../cli/helpers.js";
|
|
5
5
|
export const handler = async (argv) => {
|
|
6
6
|
const { v: verbose } = argv;
|
|
7
7
|
setGraphAILogger(verbose);
|
|
8
|
-
const defaultSchema =
|
|
9
|
-
strictUnions: true,
|
|
10
|
-
});
|
|
8
|
+
const defaultSchema = z.toJSONSchema(mulmoScriptSchema);
|
|
11
9
|
GraphAILogger.info(JSON.stringify(defaultSchema, null, 2));
|
|
12
10
|
};
|
|
@@ -123,12 +123,12 @@ export declare const promptTemplates: ({
|
|
|
123
123
|
voiceId: string;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
+
provider: string;
|
|
126
127
|
speechOptions: {
|
|
127
128
|
instruction: string;
|
|
128
129
|
};
|
|
129
130
|
voiceId: string;
|
|
130
131
|
displayName?: undefined;
|
|
131
|
-
provider?: undefined;
|
|
132
132
|
};
|
|
133
133
|
Announcer?: undefined;
|
|
134
134
|
Student?: undefined;
|
|
@@ -104,6 +104,7 @@ export const promptTemplates = [
|
|
|
104
104
|
voiceId: "9d9ed276-49ee-443a-bc19-26e6136d05f0",
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
|
+
provider: "openai",
|
|
107
108
|
speechOptions: {
|
|
108
109
|
instruction: "Speak in a slightly high-pitched, curt tone with sudden flustered shifts—like a tsundere anime girl.",
|
|
109
110
|
},
|
|
@@ -15,12 +15,12 @@ export declare const MulmoPresentationStyleMethods: {
|
|
|
15
15
|
getMovieAgentInfo(presentationStyle: MulmoPresentationStyle, beat?: MulmoBeat): {
|
|
16
16
|
agent: string;
|
|
17
17
|
movieParams: {
|
|
18
|
-
speed?: number | undefined;
|
|
19
18
|
provider?: string | undefined;
|
|
20
19
|
model?: string | undefined;
|
|
21
20
|
fillOption?: {
|
|
22
21
|
style: "aspectFit" | "aspectFill";
|
|
23
22
|
} | undefined;
|
|
23
|
+
speed?: number | undefined;
|
|
24
24
|
transition?: {
|
|
25
25
|
type: "fade" | "slideout_left";
|
|
26
26
|
duration: number;
|