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.
@@ -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: ZodSchema;
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 { zodToJsonSchema } from "zod-to-json-schema";
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 = zodToJsonSchema(mulmoScriptSchema, {
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;