mulmocast 1.1.11 → 1.2.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.
@@ -1078,7 +1078,7 @@ export declare const mulmoFillOptionSchema: z.ZodObject<{
1078
1078
  }, {
1079
1079
  style?: "aspectFit" | "aspectFill" | undefined;
1080
1080
  }>;
1081
- export declare const text2ImageProviderSchema: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
1081
+ export declare const text2ImageProviderSchema: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
1082
1082
  export declare const mulmoOpenAIImageModelSchema: z.ZodObject<{
1083
1083
  provider: z.ZodLiteral<"openai">;
1084
1084
  model: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
@@ -1103,7 +1103,7 @@ export declare const mulmoGoogleImageModelSchema: z.ZodObject<{
1103
1103
  model?: string | undefined;
1104
1104
  }>;
1105
1105
  export declare const mulmoImageParamsSchema: z.ZodObject<{
1106
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
1106
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
1107
1107
  model: z.ZodOptional<z.ZodString>;
1108
1108
  quality: z.ZodOptional<z.ZodString>;
1109
1109
  style: z.ZodOptional<z.ZodString>;
@@ -1188,7 +1188,6 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1188
1188
  prompt: string;
1189
1189
  }>]>>>;
1190
1190
  }, "strict", z.ZodTypeAny, {
1191
- provider: string;
1192
1191
  images?: Record<string, {
1193
1192
  type: "image";
1194
1193
  source: {
@@ -1208,6 +1207,7 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1208
1207
  type: "imagePrompt";
1209
1208
  prompt: string;
1210
1209
  }> | undefined;
1210
+ provider?: string | undefined;
1211
1211
  model?: string | undefined;
1212
1212
  style?: string | undefined;
1213
1213
  quality?: string | undefined;
@@ -1912,7 +1912,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1912
1912
  }>]>>;
1913
1913
  duration: z.ZodOptional<z.ZodNumber>;
1914
1914
  imageParams: z.ZodOptional<z.ZodObject<{
1915
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
1915
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
1916
1916
  model: z.ZodOptional<z.ZodString>;
1917
1917
  quality: z.ZodOptional<z.ZodString>;
1918
1918
  style: z.ZodOptional<z.ZodString>;
@@ -1997,7 +1997,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1997
1997
  prompt: string;
1998
1998
  }>]>>>;
1999
1999
  }, "strict", z.ZodTypeAny, {
2000
- provider: string;
2001
2000
  images?: Record<string, {
2002
2001
  type: "image";
2003
2002
  source: {
@@ -2017,6 +2016,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2017
2016
  type: "imagePrompt";
2018
2017
  prompt: string;
2019
2018
  }> | undefined;
2019
+ provider?: string | undefined;
2020
2020
  model?: string | undefined;
2021
2021
  style?: string | undefined;
2022
2022
  quality?: string | undefined;
@@ -2293,7 +2293,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2293
2293
  speaker?: string | undefined;
2294
2294
  description?: string | undefined;
2295
2295
  imageParams?: {
2296
- provider: string;
2297
2296
  images?: Record<string, {
2298
2297
  type: "image";
2299
2298
  source: {
@@ -2313,6 +2312,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2313
2312
  type: "imagePrompt";
2314
2313
  prompt: string;
2315
2314
  }> | undefined;
2315
+ provider?: string | undefined;
2316
2316
  model?: string | undefined;
2317
2317
  style?: string | undefined;
2318
2318
  quality?: string | undefined;
@@ -2818,7 +2818,7 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2818
2818
  }>;
2819
2819
  }>>;
2820
2820
  imageParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2821
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
2821
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
2822
2822
  model: z.ZodOptional<z.ZodString>;
2823
2823
  quality: z.ZodOptional<z.ZodString>;
2824
2824
  style: z.ZodOptional<z.ZodString>;
@@ -2903,7 +2903,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2903
2903
  prompt: string;
2904
2904
  }>]>>>;
2905
2905
  }, "strict", z.ZodTypeAny, {
2906
- provider: string;
2907
2906
  images?: Record<string, {
2908
2907
  type: "image";
2909
2908
  source: {
@@ -2923,6 +2922,7 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2923
2922
  type: "imagePrompt";
2924
2923
  prompt: string;
2925
2924
  }> | undefined;
2925
+ provider?: string | undefined;
2926
2926
  model?: string | undefined;
2927
2927
  style?: string | undefined;
2928
2928
  quality?: string | undefined;
@@ -3132,7 +3132,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
3132
3132
  }>>;
3133
3133
  }, "strip", z.ZodTypeAny, {
3134
3134
  imageParams: {
3135
- provider: string;
3136
3135
  images?: Record<string, {
3137
3136
  type: "image";
3138
3137
  source: {
@@ -3152,6 +3151,7 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
3152
3151
  type: "imagePrompt";
3153
3152
  prompt: string;
3154
3153
  }> | undefined;
3154
+ provider?: string | undefined;
3155
3155
  model?: string | undefined;
3156
3156
  style?: string | undefined;
3157
3157
  quality?: string | undefined;
@@ -3536,7 +3536,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3536
3536
  }>;
3537
3537
  }>>;
3538
3538
  imageParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
3539
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
3539
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
3540
3540
  model: z.ZodOptional<z.ZodString>;
3541
3541
  quality: z.ZodOptional<z.ZodString>;
3542
3542
  style: z.ZodOptional<z.ZodString>;
@@ -3621,7 +3621,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3621
3621
  prompt: string;
3622
3622
  }>]>>>;
3623
3623
  }, "strict", z.ZodTypeAny, {
3624
- provider: string;
3625
3624
  images?: Record<string, {
3626
3625
  type: "image";
3627
3626
  source: {
@@ -3641,6 +3640,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3641
3640
  type: "imagePrompt";
3642
3641
  prompt: string;
3643
3642
  }> | undefined;
3643
+ provider?: string | undefined;
3644
3644
  model?: string | undefined;
3645
3645
  style?: string | undefined;
3646
3646
  quality?: string | undefined;
@@ -4392,7 +4392,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4392
4392
  }>]>>;
4393
4393
  duration: z.ZodOptional<z.ZodNumber>;
4394
4394
  imageParams: z.ZodOptional<z.ZodObject<{
4395
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
4395
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
4396
4396
  model: z.ZodOptional<z.ZodString>;
4397
4397
  quality: z.ZodOptional<z.ZodString>;
4398
4398
  style: z.ZodOptional<z.ZodString>;
@@ -4477,7 +4477,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4477
4477
  prompt: string;
4478
4478
  }>]>>>;
4479
4479
  }, "strict", z.ZodTypeAny, {
4480
- provider: string;
4481
4480
  images?: Record<string, {
4482
4481
  type: "image";
4483
4482
  source: {
@@ -4497,6 +4496,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4497
4496
  type: "imagePrompt";
4498
4497
  prompt: string;
4499
4498
  }> | undefined;
4499
+ provider?: string | undefined;
4500
4500
  model?: string | undefined;
4501
4501
  style?: string | undefined;
4502
4502
  quality?: string | undefined;
@@ -4773,7 +4773,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4773
4773
  speaker?: string | undefined;
4774
4774
  description?: string | undefined;
4775
4775
  imageParams?: {
4776
- provider: string;
4777
4776
  images?: Record<string, {
4778
4777
  type: "image";
4779
4778
  source: {
@@ -4793,6 +4792,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4793
4792
  type: "imagePrompt";
4794
4793
  prompt: string;
4795
4794
  }> | undefined;
4795
+ provider?: string | undefined;
4796
4796
  model?: string | undefined;
4797
4797
  style?: string | undefined;
4798
4798
  quality?: string | undefined;
@@ -5044,7 +5044,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
5044
5044
  }, "strict", z.ZodTypeAny, {
5045
5045
  lang: string;
5046
5046
  imageParams: {
5047
- provider: string;
5048
5047
  images?: Record<string, {
5049
5048
  type: "image";
5050
5049
  source: {
@@ -5064,6 +5063,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
5064
5063
  type: "imagePrompt";
5065
5064
  prompt: string;
5066
5065
  }> | undefined;
5066
+ provider?: string | undefined;
5067
5067
  model?: string | undefined;
5068
5068
  style?: string | undefined;
5069
5069
  quality?: string | undefined;
@@ -5273,7 +5273,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
5273
5273
  speaker?: string | undefined;
5274
5274
  description?: string | undefined;
5275
5275
  imageParams?: {
5276
- provider: string;
5277
5276
  images?: Record<string, {
5278
5277
  type: "image";
5279
5278
  source: {
@@ -5293,6 +5292,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
5293
5292
  type: "imagePrompt";
5294
5293
  prompt: string;
5295
5294
  }> | undefined;
5295
+ provider?: string | undefined;
5296
5296
  model?: string | undefined;
5297
5297
  style?: string | undefined;
5298
5298
  quality?: string | undefined;
@@ -6158,7 +6158,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6158
6158
  }>;
6159
6159
  }>>;
6160
6160
  imageParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
6161
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
6161
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
6162
6162
  model: z.ZodOptional<z.ZodString>;
6163
6163
  quality: z.ZodOptional<z.ZodString>;
6164
6164
  style: z.ZodOptional<z.ZodString>;
@@ -6243,7 +6243,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6243
6243
  prompt: string;
6244
6244
  }>]>>>;
6245
6245
  }, "strict", z.ZodTypeAny, {
6246
- provider: string;
6247
6246
  images?: Record<string, {
6248
6247
  type: "image";
6249
6248
  source: {
@@ -6263,6 +6262,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6263
6262
  type: "imagePrompt";
6264
6263
  prompt: string;
6265
6264
  }> | undefined;
6265
+ provider?: string | undefined;
6266
6266
  model?: string | undefined;
6267
6267
  style?: string | undefined;
6268
6268
  quality?: string | undefined;
@@ -7014,7 +7014,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7014
7014
  }>]>>;
7015
7015
  duration: z.ZodOptional<z.ZodNumber>;
7016
7016
  imageParams: z.ZodOptional<z.ZodObject<{
7017
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
7017
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
7018
7018
  model: z.ZodOptional<z.ZodString>;
7019
7019
  quality: z.ZodOptional<z.ZodString>;
7020
7020
  style: z.ZodOptional<z.ZodString>;
@@ -7099,7 +7099,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7099
7099
  prompt: string;
7100
7100
  }>]>>>;
7101
7101
  }, "strict", z.ZodTypeAny, {
7102
- provider: string;
7103
7102
  images?: Record<string, {
7104
7103
  type: "image";
7105
7104
  source: {
@@ -7119,6 +7118,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7119
7118
  type: "imagePrompt";
7120
7119
  prompt: string;
7121
7120
  }> | undefined;
7121
+ provider?: string | undefined;
7122
7122
  model?: string | undefined;
7123
7123
  style?: string | undefined;
7124
7124
  quality?: string | undefined;
@@ -7395,7 +7395,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7395
7395
  speaker?: string | undefined;
7396
7396
  description?: string | undefined;
7397
7397
  imageParams?: {
7398
- provider: string;
7399
7398
  images?: Record<string, {
7400
7399
  type: "image";
7401
7400
  source: {
@@ -7415,6 +7414,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7415
7414
  type: "imagePrompt";
7416
7415
  prompt: string;
7417
7416
  }> | undefined;
7417
+ provider?: string | undefined;
7418
7418
  model?: string | undefined;
7419
7419
  style?: string | undefined;
7420
7420
  quality?: string | undefined;
@@ -7666,7 +7666,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7666
7666
  }, "strict", z.ZodTypeAny, {
7667
7667
  lang: string;
7668
7668
  imageParams: {
7669
- provider: string;
7670
7669
  images?: Record<string, {
7671
7670
  type: "image";
7672
7671
  source: {
@@ -7686,6 +7685,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7686
7685
  type: "imagePrompt";
7687
7686
  prompt: string;
7688
7687
  }> | undefined;
7688
+ provider?: string | undefined;
7689
7689
  model?: string | undefined;
7690
7690
  style?: string | undefined;
7691
7691
  quality?: string | undefined;
@@ -7895,7 +7895,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7895
7895
  speaker?: string | undefined;
7896
7896
  description?: string | undefined;
7897
7897
  imageParams?: {
7898
- provider: string;
7899
7898
  images?: Record<string, {
7900
7899
  type: "image";
7901
7900
  source: {
@@ -7915,6 +7914,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7915
7914
  type: "imagePrompt";
7916
7915
  prompt: string;
7917
7916
  }> | undefined;
7917
+ provider?: string | undefined;
7918
7918
  model?: string | undefined;
7919
7919
  style?: string | undefined;
7920
7920
  quality?: string | undefined;
@@ -8373,7 +8373,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
8373
8373
  script: {
8374
8374
  lang: string;
8375
8375
  imageParams: {
8376
- provider: string;
8377
8376
  images?: Record<string, {
8378
8377
  type: "image";
8379
8378
  source: {
@@ -8393,6 +8392,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
8393
8392
  type: "imagePrompt";
8394
8393
  prompt: string;
8395
8394
  }> | undefined;
8395
+ provider?: string | undefined;
8396
8396
  model?: string | undefined;
8397
8397
  style?: string | undefined;
8398
8398
  quality?: string | undefined;
@@ -8602,7 +8602,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
8602
8602
  speaker?: string | undefined;
8603
8603
  description?: string | undefined;
8604
8604
  imageParams?: {
8605
- provider: string;
8606
8605
  images?: Record<string, {
8607
8606
  type: "image";
8608
8607
  source: {
@@ -8622,6 +8621,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
8622
8621
  type: "imagePrompt";
8623
8622
  prompt: string;
8624
8623
  }> | undefined;
8624
+ provider?: string | undefined;
8625
8625
  model?: string | undefined;
8626
8626
  style?: string | undefined;
8627
8627
  quality?: string | undefined;
@@ -9209,7 +9209,7 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9209
9209
  }>;
9210
9210
  }>>;
9211
9211
  imageParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
9212
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
9212
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
9213
9213
  model: z.ZodOptional<z.ZodString>;
9214
9214
  quality: z.ZodOptional<z.ZodString>;
9215
9215
  style: z.ZodOptional<z.ZodString>;
@@ -9294,7 +9294,6 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9294
9294
  prompt: string;
9295
9295
  }>]>>>;
9296
9296
  }, "strict", z.ZodTypeAny, {
9297
- provider: string;
9298
9297
  images?: Record<string, {
9299
9298
  type: "image";
9300
9299
  source: {
@@ -9314,6 +9313,7 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9314
9313
  type: "imagePrompt";
9315
9314
  prompt: string;
9316
9315
  }> | undefined;
9316
+ provider?: string | undefined;
9317
9317
  model?: string | undefined;
9318
9318
  style?: string | undefined;
9319
9319
  quality?: string | undefined;
@@ -9523,7 +9523,6 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9523
9523
  }>>;
9524
9524
  }, "strip", z.ZodTypeAny, {
9525
9525
  imageParams: {
9526
- provider: string;
9527
9526
  images?: Record<string, {
9528
9527
  type: "image";
9529
9528
  source: {
@@ -9543,6 +9542,7 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9543
9542
  type: "imagePrompt";
9544
9543
  prompt: string;
9545
9544
  }> | undefined;
9545
+ provider?: string | undefined;
9546
9546
  model?: string | undefined;
9547
9547
  style?: string | undefined;
9548
9548
  quality?: string | undefined;
@@ -9751,7 +9751,6 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9751
9751
  scriptName?: string | undefined;
9752
9752
  presentationStyle?: {
9753
9753
  imageParams: {
9754
- provider: string;
9755
9754
  images?: Record<string, {
9756
9755
  type: "image";
9757
9756
  source: {
@@ -9771,6 +9770,7 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
9771
9770
  type: "imagePrompt";
9772
9771
  prompt: string;
9773
9772
  }> | undefined;
9773
+ provider?: string | undefined;
9774
9774
  model?: string | undefined;
9775
9775
  style?: string | undefined;
9776
9776
  quality?: string | undefined;
@@ -10151,7 +10151,7 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10151
10151
  }>;
10152
10152
  }>>;
10153
10153
  imageParams: z.ZodDefault<z.ZodOptional<z.ZodObject<{
10154
- provider: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
10154
+ provider: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
10155
10155
  model: z.ZodOptional<z.ZodString>;
10156
10156
  quality: z.ZodOptional<z.ZodString>;
10157
10157
  style: z.ZodOptional<z.ZodString>;
@@ -10236,7 +10236,6 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10236
10236
  prompt: string;
10237
10237
  }>]>>>;
10238
10238
  }, "strict", z.ZodTypeAny, {
10239
- provider: string;
10240
10239
  images?: Record<string, {
10241
10240
  type: "image";
10242
10241
  source: {
@@ -10256,6 +10255,7 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10256
10255
  type: "imagePrompt";
10257
10256
  prompt: string;
10258
10257
  }> | undefined;
10258
+ provider?: string | undefined;
10259
10259
  model?: string | undefined;
10260
10260
  style?: string | undefined;
10261
10261
  quality?: string | undefined;
@@ -10465,7 +10465,6 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10465
10465
  }>>;
10466
10466
  }, "strip", z.ZodTypeAny, {
10467
10467
  imageParams: {
10468
- provider: string;
10469
10468
  images?: Record<string, {
10470
10469
  type: "image";
10471
10470
  source: {
@@ -10485,6 +10484,7 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10485
10484
  type: "imagePrompt";
10486
10485
  prompt: string;
10487
10486
  }> | undefined;
10487
+ provider?: string | undefined;
10488
10488
  model?: string | undefined;
10489
10489
  style?: string | undefined;
10490
10490
  quality?: string | undefined;
@@ -10696,7 +10696,6 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10696
10696
  scriptName?: string | undefined;
10697
10697
  presentationStyle?: {
10698
10698
  imageParams: {
10699
- provider: string;
10700
10699
  images?: Record<string, {
10701
10700
  type: "image";
10702
10701
  source: {
@@ -10716,6 +10715,7 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
10716
10715
  type: "imagePrompt";
10717
10716
  prompt: string;
10718
10717
  }> | undefined;
10718
+ provider?: string | undefined;
10719
10719
  model?: string | undefined;
10720
10720
  style?: string | undefined;
10721
10721
  quality?: string | undefined;
@@ -170,7 +170,7 @@ export const mulmoFillOptionSchema = z
170
170
  style: z.enum(["aspectFit", "aspectFill"]).default("aspectFit"),
171
171
  })
172
172
  .describe("How to handle aspect ratio differences between image and canvas");
173
- export const text2ImageProviderSchema = z.enum(Object.keys(provider2ImageAgent)).default(defaultProviders.text2image);
173
+ export const text2ImageProviderSchema = z.enum(Object.keys(provider2ImageAgent)).optional();
174
174
  // NOTE: This is for UI only. (until we figure out how to use it in mulmoImageParamsSchema)
175
175
  export const mulmoOpenAIImageModelSchema = z
176
176
  .object({
@@ -188,7 +188,7 @@ export const mulmoGoogleImageModelSchema = z
188
188
  .strict();
189
189
  export const mulmoImageParamsSchema = z
190
190
  .object({
191
- provider: text2ImageProviderSchema, // has default value
191
+ provider: text2ImageProviderSchema, // has no default value (do not change it)
192
192
  model: z.string().optional(), // default: provider specific
193
193
  quality: z.string().optional(), // optional image quality (model specific)
194
194
  style: z.string().optional(), // optional image style
@@ -18,7 +18,6 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
18
18
  script: {
19
19
  lang: string;
20
20
  imageParams: {
21
- provider: string;
22
21
  images?: Record<string, {
23
22
  type: "image";
24
23
  source: {
@@ -38,6 +37,7 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
38
37
  type: "imagePrompt";
39
38
  prompt: string;
40
39
  }> | undefined;
40
+ provider?: string | undefined;
41
41
  model?: string | undefined;
42
42
  style?: string | undefined;
43
43
  quality?: string | undefined;
@@ -247,7 +247,6 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
247
247
  speaker?: string | undefined;
248
248
  description?: string | undefined;
249
249
  imageParams?: {
250
- provider: string;
251
250
  images?: Record<string, {
252
251
  type: "image";
253
252
  source: {
@@ -267,6 +266,7 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
267
266
  type: "imagePrompt";
268
267
  prompt: string;
269
268
  }> | undefined;
269
+ provider?: string | undefined;
270
270
  model?: string | undefined;
271
271
  style?: string | undefined;
272
272
  quality?: string | undefined;
@@ -364,7 +364,6 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
364
364
  script: {
365
365
  lang: string;
366
366
  imageParams: {
367
- provider: string;
368
367
  images?: Record<string, {
369
368
  type: "image";
370
369
  source: {
@@ -384,6 +383,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
384
383
  type: "imagePrompt";
385
384
  prompt: string;
386
385
  }> | undefined;
386
+ provider?: string | undefined;
387
387
  model?: string | undefined;
388
388
  style?: string | undefined;
389
389
  quality?: string | undefined;
@@ -593,7 +593,6 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
593
593
  speaker?: string | undefined;
594
594
  description?: string | undefined;
595
595
  imageParams?: {
596
- provider: string;
597
596
  images?: Record<string, {
598
597
  type: "image";
599
598
  source: {
@@ -613,6 +612,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
613
612
  type: "imagePrompt";
614
613
  prompt: string;
615
614
  }> | undefined;
615
+ provider?: string | undefined;
616
616
  model?: string | undefined;
617
617
  style?: string | undefined;
618
618
  quality?: string | undefined;
@@ -701,7 +701,6 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
701
701
  fileDirs: FileObject;
702
702
  presentationStyle: {
703
703
  imageParams: {
704
- provider: string;
705
704
  images?: Record<string, {
706
705
  type: "image";
707
706
  source: {
@@ -721,6 +720,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
721
720
  type: "imagePrompt";
722
721
  prompt: string;
723
722
  }> | undefined;
723
+ provider?: string | undefined;
724
724
  model?: string | undefined;
725
725
  style?: string | undefined;
726
726
  quality?: string | undefined;
@@ -35,7 +35,10 @@ export const fileCacheAgentFilter = async (context, next) => {
35
35
  try {
36
36
  MulmoStudioContextMethods.setBeatSessionState(mulmoContext, sessionType, index, true);
37
37
  const output = (await next(context)) || undefined;
38
- const { buffer, text } = output ?? {};
38
+ const { buffer, text, saved } = output ?? {};
39
+ if (saved) {
40
+ return true;
41
+ }
39
42
  if (buffer) {
40
43
  writingMessage(file);
41
44
  await fsPromise.writeFile(file, buffer);
@@ -46,6 +49,9 @@ export const fileCacheAgentFilter = async (context, next) => {
46
49
  await fsPromise.writeFile(file, text, "utf-8");
47
50
  return true;
48
51
  }
52
+ else if (saved) {
53
+ return true;
54
+ }
49
55
  GraphAILogger.log("no cache, no buffer: " + file);
50
56
  return false;
51
57
  }
@@ -1,32 +1,25 @@
1
- import inquirer from "inquirer";
1
+ import select from "@inquirer/select";
2
+ import input from "@inquirer/input";
2
3
  import { getAvailablePromptTemplates } from "./file.js";
3
4
  export const selectTemplate = async () => {
4
5
  const availableTemplates = getAvailablePromptTemplates();
5
- const answers = await inquirer.prompt([
6
- {
7
- type: "list",
8
- name: "templateName",
9
- message: "Select a template to use",
10
- choices: availableTemplates.map((t) => ({
11
- name: `${t.filename} - ${t.description}`,
12
- value: t.filename,
13
- })),
14
- },
15
- ]);
16
- return answers.templateName;
6
+ const answers = await select({
7
+ message: "Select a template to use",
8
+ choices: availableTemplates.map((t) => ({
9
+ name: `${t.filename} - ${t.description}`,
10
+ value: t.filename,
11
+ })),
12
+ });
13
+ return answers;
17
14
  };
18
15
  export const getUrlsIfNeeded = async (urls) => {
19
16
  if (urls && urls.length > 0)
20
17
  return urls;
21
- const answers = await inquirer.prompt([
22
- {
23
- type: "input",
24
- name: "urls",
25
- message: "Enter URLs for scripting references (comma separated):",
26
- validate: (input) => input.trim().length > 0 || "At least one URL is required",
27
- },
28
- ]);
29
- return answers.urls
18
+ const answers = await input({
19
+ message: "Enter URLs for scripting references (comma separated):",
20
+ validate: (inputText) => inputText.trim().length > 0 || "At least one URL is required",
21
+ });
22
+ return answers
30
23
  .split(",")
31
24
  .map((u) => u.trim())
32
25
  .filter((u) => u.length > 0);
@@ -17,4 +17,4 @@ export declare const storyToScriptPrompt: (script: MulmoScript, beatsPerScene: n
17
17
  export declare const searchQueryPrompt: (inquiry: string, followUpQueries: string) => string;
18
18
  export declare const reflectionPrompt: (researchTopic: string, searchResults: string) => string;
19
19
  export declare const finalAnswerPrompt: (userInput: string, searchResults: string, researchTopic: string) => string;
20
- export declare const htmlImageSystemPrompt: (canvasSize: MulmoCanvasDimension) => string[];
20
+ export declare const htmlImageSystemPrompt: (canvasSize: MulmoCanvasDimension) => string;
@@ -132,5 +132,5 @@ export const htmlImageSystemPrompt = (canvasSize) => {
132
132
  "Include a balanced mix of comments, graphs, and illustrations to enhance visual impact.",
133
133
  "Output only the HTML code. Do not include any comments, explanations, or additional information outside the HTML.",
134
134
  "If data is provided, use it effectively to populate the slide.",
135
- ];
135
+ ].join("\n");
136
136
  };
@@ -93,7 +93,7 @@ export declare const provider2LipSyncAgent: {
93
93
  export declare const provider2LLMAgent: {
94
94
  readonly openai: {
95
95
  readonly agentName: "openAIAgent";
96
- readonly defaultModel: "gpt-4o";
96
+ readonly defaultModel: "gpt-5";
97
97
  readonly max_tokens: 8192;
98
98
  };
99
99
  readonly anthropic: {
@@ -36,9 +36,9 @@ export const provider2ImageAgent = {
36
36
  models: ["dall-e-3", "gpt-image-1"],
37
37
  },
38
38
  google: {
39
- agentName: "imageGoogleAgent",
40
- defaultModel: "imagen-3.0-fast-generate-001",
41
- models: ["imagen-3.0-fast-generate-001", "imagen-3.0-generate-002", "imagen-3.0-capability-001"],
39
+ agentName: "imageGenAIAgent",
40
+ defaultModel: "imagen-4.0-generate-preview-06-06",
41
+ models: ["imagen-3.0-generate-002", "imagen-4.0-generate-preview-06-06", "imagen-4.0-ultra-generate-preview-06-06"],
42
42
  },
43
43
  mock: {
44
44
  agentName: "mediaMockAgent",
@@ -143,7 +143,7 @@ export const provider2MovieAgent = {
143
143
  },
144
144
  },
145
145
  google: {
146
- agentName: "movieGoogleAgent",
146
+ agentName: "movieGenAIAgent",
147
147
  defaultModel: "veo-2.0-generate-001",
148
148
  models: ["veo-2.0-generate-001"],
149
149
  },
@@ -206,7 +206,7 @@ export const provider2LipSyncAgent = {
206
206
  export const provider2LLMAgent = {
207
207
  openai: {
208
208
  agentName: "openAIAgent",
209
- defaultModel: "gpt-4o",
209
+ defaultModel: "gpt-5",
210
210
  max_tokens: 8192,
211
211
  },
212
212
  anthropic: {