mulmocast 0.0.10 → 0.0.11
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/README.md +20 -3
- package/assets/templates/shorts.json +18 -0
- package/lib/actions/audio.d.ts +2 -1
- package/lib/actions/audio.js +6 -1
- package/lib/actions/images.d.ts +2 -1
- package/lib/actions/images.js +43 -50
- package/lib/actions/movie.js +9 -5
- package/lib/actions/translate.d.ts +2 -1
- package/lib/actions/translate.js +6 -1
- package/lib/agents/combine_audio_files_agent.js +4 -0
- package/lib/agents/image_google_agent.d.ts +4 -1
- package/lib/agents/image_google_agent.js +3 -2
- package/lib/agents/image_openai_agent.d.ts +5 -3
- package/lib/agents/image_openai_agent.js +29 -4
- package/lib/agents/movie_google_agent.d.ts +9 -2
- package/lib/agents/movie_google_agent.js +24 -16
- package/lib/index.d.ts +5 -0
- package/lib/index.js +5 -0
- package/lib/methods/mulmo_script.d.ts +0 -1
- package/lib/methods/mulmo_script.js +0 -5
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/schema.d.ts +21 -54
- package/lib/types/schema.js +1 -1
- package/lib/utils/file.d.ts +1 -0
- package/lib/utils/file.js +12 -8
- package/lib/utils/image_plugins/image.d.ts +1 -1
- package/lib/utils/image_plugins/movie.d.ts +1 -1
- package/lib/utils/preprocess.d.ts +2 -3
- package/package.json +8 -8
- package/scripts/templates/shorts_template.json +52 -0
package/lib/types/schema.d.ts
CHANGED
|
@@ -827,7 +827,6 @@ export declare const mulmoAudioAssetSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
827
827
|
}>]>;
|
|
828
828
|
export declare const mulmoImageParamsSchema: z.ZodObject<{
|
|
829
829
|
model: z.ZodOptional<z.ZodString>;
|
|
830
|
-
size: z.ZodOptional<z.ZodString>;
|
|
831
830
|
style: z.ZodOptional<z.ZodString>;
|
|
832
831
|
moderation: z.ZodOptional<z.ZodString>;
|
|
833
832
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -902,7 +901,6 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
|
|
|
902
901
|
}>>>;
|
|
903
902
|
}, "strict", z.ZodTypeAny, {
|
|
904
903
|
model?: string | undefined;
|
|
905
|
-
size?: string | undefined;
|
|
906
904
|
style?: string | undefined;
|
|
907
905
|
moderation?: string | undefined;
|
|
908
906
|
images?: Record<string, {
|
|
@@ -923,7 +921,6 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
|
|
|
923
921
|
}> | undefined;
|
|
924
922
|
}, {
|
|
925
923
|
model?: string | undefined;
|
|
926
|
-
size?: string | undefined;
|
|
927
924
|
style?: string | undefined;
|
|
928
925
|
moderation?: string | undefined;
|
|
929
926
|
images?: Record<string, {
|
|
@@ -976,6 +973,7 @@ export declare const audioParamsSchema: z.ZodObject<{
|
|
|
976
973
|
export declare const mulmoBeatSchema: z.ZodObject<{
|
|
977
974
|
speaker: z.ZodDefault<z.ZodString>;
|
|
978
975
|
text: z.ZodString;
|
|
976
|
+
description: z.ZodOptional<z.ZodString>;
|
|
979
977
|
image: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
980
978
|
type: z.ZodLiteral<"markdown">;
|
|
981
979
|
markdown: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
@@ -1482,7 +1480,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
|
|
|
1482
1480
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1483
1481
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
1484
1482
|
model: z.ZodOptional<z.ZodString>;
|
|
1485
|
-
size: z.ZodOptional<z.ZodString>;
|
|
1486
1483
|
style: z.ZodOptional<z.ZodString>;
|
|
1487
1484
|
moderation: z.ZodOptional<z.ZodString>;
|
|
1488
1485
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1557,7 +1554,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
|
|
|
1557
1554
|
}>>>;
|
|
1558
1555
|
}, "strict", z.ZodTypeAny, {
|
|
1559
1556
|
model?: string | undefined;
|
|
1560
|
-
size?: string | undefined;
|
|
1561
1557
|
style?: string | undefined;
|
|
1562
1558
|
moderation?: string | undefined;
|
|
1563
1559
|
images?: Record<string, {
|
|
@@ -1578,7 +1574,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
|
|
|
1578
1574
|
}> | undefined;
|
|
1579
1575
|
}, {
|
|
1580
1576
|
model?: string | undefined;
|
|
1581
|
-
size?: string | undefined;
|
|
1582
1577
|
style?: string | undefined;
|
|
1583
1578
|
moderation?: string | undefined;
|
|
1584
1579
|
images?: Record<string, {
|
|
@@ -1751,9 +1746,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
|
|
|
1751
1746
|
type: "midi";
|
|
1752
1747
|
source: string;
|
|
1753
1748
|
} | undefined;
|
|
1749
|
+
description?: string | undefined;
|
|
1754
1750
|
imageParams?: {
|
|
1755
1751
|
model?: string | undefined;
|
|
1756
|
-
size?: string | undefined;
|
|
1757
1752
|
style?: string | undefined;
|
|
1758
1753
|
moderation?: string | undefined;
|
|
1759
1754
|
images?: Record<string, {
|
|
@@ -1908,9 +1903,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
|
|
|
1908
1903
|
source: string;
|
|
1909
1904
|
} | undefined;
|
|
1910
1905
|
speaker?: string | undefined;
|
|
1906
|
+
description?: string | undefined;
|
|
1911
1907
|
imageParams?: {
|
|
1912
1908
|
model?: string | undefined;
|
|
1913
|
-
size?: string | undefined;
|
|
1914
1909
|
style?: string | undefined;
|
|
1915
1910
|
moderation?: string | undefined;
|
|
1916
1911
|
images?: Record<string, {
|
|
@@ -2098,7 +2093,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
|
|
|
2098
2093
|
}>>;
|
|
2099
2094
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
2100
2095
|
model: z.ZodOptional<z.ZodString>;
|
|
2101
|
-
size: z.ZodOptional<z.ZodString>;
|
|
2102
2096
|
style: z.ZodOptional<z.ZodString>;
|
|
2103
2097
|
moderation: z.ZodOptional<z.ZodString>;
|
|
2104
2098
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2176,7 +2170,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
|
|
|
2176
2170
|
}, "strict", z.ZodTypeAny, {
|
|
2177
2171
|
provider: "openai" | "google";
|
|
2178
2172
|
model?: string | undefined;
|
|
2179
|
-
size?: string | undefined;
|
|
2180
2173
|
style?: string | undefined;
|
|
2181
2174
|
moderation?: string | undefined;
|
|
2182
2175
|
images?: Record<string, {
|
|
@@ -2197,7 +2190,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
|
|
|
2197
2190
|
}> | undefined;
|
|
2198
2191
|
}, {
|
|
2199
2192
|
model?: string | undefined;
|
|
2200
|
-
size?: string | undefined;
|
|
2201
2193
|
style?: string | undefined;
|
|
2202
2194
|
moderation?: string | undefined;
|
|
2203
2195
|
images?: Record<string, {
|
|
@@ -2281,7 +2273,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
|
|
|
2281
2273
|
imageParams?: {
|
|
2282
2274
|
provider: "openai" | "google";
|
|
2283
2275
|
model?: string | undefined;
|
|
2284
|
-
size?: string | undefined;
|
|
2285
2276
|
style?: string | undefined;
|
|
2286
2277
|
moderation?: string | undefined;
|
|
2287
2278
|
images?: Record<string, {
|
|
@@ -2316,7 +2307,6 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
|
|
|
2316
2307
|
};
|
|
2317
2308
|
imageParams?: {
|
|
2318
2309
|
model?: string | undefined;
|
|
2319
|
-
size?: string | undefined;
|
|
2320
2310
|
style?: string | undefined;
|
|
2321
2311
|
moderation?: string | undefined;
|
|
2322
2312
|
images?: Record<string, {
|
|
@@ -2457,7 +2447,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
2457
2447
|
}>>;
|
|
2458
2448
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
2459
2449
|
model: z.ZodOptional<z.ZodString>;
|
|
2460
|
-
size: z.ZodOptional<z.ZodString>;
|
|
2461
2450
|
style: z.ZodOptional<z.ZodString>;
|
|
2462
2451
|
moderation: z.ZodOptional<z.ZodString>;
|
|
2463
2452
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2535,7 +2524,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
2535
2524
|
}, "strict", z.ZodTypeAny, {
|
|
2536
2525
|
provider: "openai" | "google";
|
|
2537
2526
|
model?: string | undefined;
|
|
2538
|
-
size?: string | undefined;
|
|
2539
2527
|
style?: string | undefined;
|
|
2540
2528
|
moderation?: string | undefined;
|
|
2541
2529
|
images?: Record<string, {
|
|
@@ -2556,7 +2544,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
2556
2544
|
}> | undefined;
|
|
2557
2545
|
}, {
|
|
2558
2546
|
model?: string | undefined;
|
|
2559
|
-
size?: string | undefined;
|
|
2560
2547
|
style?: string | undefined;
|
|
2561
2548
|
moderation?: string | undefined;
|
|
2562
2549
|
images?: Record<string, {
|
|
@@ -2634,6 +2621,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
2634
2621
|
beats: z.ZodArray<z.ZodObject<{
|
|
2635
2622
|
speaker: z.ZodDefault<z.ZodString>;
|
|
2636
2623
|
text: z.ZodString;
|
|
2624
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2637
2625
|
image: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2638
2626
|
type: z.ZodLiteral<"markdown">;
|
|
2639
2627
|
markdown: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
@@ -3140,7 +3128,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3140
3128
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
3141
3129
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
3142
3130
|
model: z.ZodOptional<z.ZodString>;
|
|
3143
|
-
size: z.ZodOptional<z.ZodString>;
|
|
3144
3131
|
style: z.ZodOptional<z.ZodString>;
|
|
3145
3132
|
moderation: z.ZodOptional<z.ZodString>;
|
|
3146
3133
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3215,7 +3202,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3215
3202
|
}>>>;
|
|
3216
3203
|
}, "strict", z.ZodTypeAny, {
|
|
3217
3204
|
model?: string | undefined;
|
|
3218
|
-
size?: string | undefined;
|
|
3219
3205
|
style?: string | undefined;
|
|
3220
3206
|
moderation?: string | undefined;
|
|
3221
3207
|
images?: Record<string, {
|
|
@@ -3236,7 +3222,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3236
3222
|
}> | undefined;
|
|
3237
3223
|
}, {
|
|
3238
3224
|
model?: string | undefined;
|
|
3239
|
-
size?: string | undefined;
|
|
3240
3225
|
style?: string | undefined;
|
|
3241
3226
|
moderation?: string | undefined;
|
|
3242
3227
|
images?: Record<string, {
|
|
@@ -3409,9 +3394,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3409
3394
|
type: "midi";
|
|
3410
3395
|
source: string;
|
|
3411
3396
|
} | undefined;
|
|
3397
|
+
description?: string | undefined;
|
|
3412
3398
|
imageParams?: {
|
|
3413
3399
|
model?: string | undefined;
|
|
3414
|
-
size?: string | undefined;
|
|
3415
3400
|
style?: string | undefined;
|
|
3416
3401
|
moderation?: string | undefined;
|
|
3417
3402
|
images?: Record<string, {
|
|
@@ -3566,9 +3551,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3566
3551
|
source: string;
|
|
3567
3552
|
} | undefined;
|
|
3568
3553
|
speaker?: string | undefined;
|
|
3554
|
+
description?: string | undefined;
|
|
3569
3555
|
imageParams?: {
|
|
3570
3556
|
model?: string | undefined;
|
|
3571
|
-
size?: string | undefined;
|
|
3572
3557
|
style?: string | undefined;
|
|
3573
3558
|
moderation?: string | undefined;
|
|
3574
3559
|
images?: Record<string, {
|
|
@@ -3752,9 +3737,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3752
3737
|
type: "midi";
|
|
3753
3738
|
source: string;
|
|
3754
3739
|
} | undefined;
|
|
3740
|
+
description?: string | undefined;
|
|
3755
3741
|
imageParams?: {
|
|
3756
3742
|
model?: string | undefined;
|
|
3757
|
-
size?: string | undefined;
|
|
3758
3743
|
style?: string | undefined;
|
|
3759
3744
|
moderation?: string | undefined;
|
|
3760
3745
|
images?: Record<string, {
|
|
@@ -3786,10 +3771,10 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3786
3771
|
}[];
|
|
3787
3772
|
lang?: string | undefined;
|
|
3788
3773
|
title?: string | undefined;
|
|
3774
|
+
description?: string | undefined;
|
|
3789
3775
|
imageParams?: {
|
|
3790
3776
|
provider: "openai" | "google";
|
|
3791
3777
|
model?: string | undefined;
|
|
3792
|
-
size?: string | undefined;
|
|
3793
3778
|
style?: string | undefined;
|
|
3794
3779
|
moderation?: string | undefined;
|
|
3795
3780
|
images?: Record<string, {
|
|
@@ -3817,7 +3802,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3817
3802
|
provider?: "openai" | "google" | undefined;
|
|
3818
3803
|
} | undefined;
|
|
3819
3804
|
omitCaptions?: boolean | undefined;
|
|
3820
|
-
description?: string | undefined;
|
|
3821
3805
|
references?: {
|
|
3822
3806
|
type: "image" | "audio" | "article" | "paper" | "video";
|
|
3823
3807
|
url: string;
|
|
@@ -3957,9 +3941,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3957
3941
|
source: string;
|
|
3958
3942
|
} | undefined;
|
|
3959
3943
|
speaker?: string | undefined;
|
|
3944
|
+
description?: string | undefined;
|
|
3960
3945
|
imageParams?: {
|
|
3961
3946
|
model?: string | undefined;
|
|
3962
|
-
size?: string | undefined;
|
|
3963
3947
|
style?: string | undefined;
|
|
3964
3948
|
moderation?: string | undefined;
|
|
3965
3949
|
images?: Record<string, {
|
|
@@ -3991,9 +3975,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
3991
3975
|
}[];
|
|
3992
3976
|
lang?: string | undefined;
|
|
3993
3977
|
title?: string | undefined;
|
|
3978
|
+
description?: string | undefined;
|
|
3994
3979
|
imageParams?: {
|
|
3995
3980
|
model?: string | undefined;
|
|
3996
|
-
size?: string | undefined;
|
|
3997
3981
|
style?: string | undefined;
|
|
3998
3982
|
moderation?: string | undefined;
|
|
3999
3983
|
images?: Record<string, {
|
|
@@ -4043,7 +4027,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
|
|
|
4043
4027
|
provider?: "openai" | "google" | undefined;
|
|
4044
4028
|
} | undefined;
|
|
4045
4029
|
omitCaptions?: boolean | undefined;
|
|
4046
|
-
description?: string | undefined;
|
|
4047
4030
|
references?: {
|
|
4048
4031
|
url: string;
|
|
4049
4032
|
type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
|
|
@@ -4299,7 +4282,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
4299
4282
|
}>>;
|
|
4300
4283
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
4301
4284
|
model: z.ZodOptional<z.ZodString>;
|
|
4302
|
-
size: z.ZodOptional<z.ZodString>;
|
|
4303
4285
|
style: z.ZodOptional<z.ZodString>;
|
|
4304
4286
|
moderation: z.ZodOptional<z.ZodString>;
|
|
4305
4287
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -4377,7 +4359,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
4377
4359
|
}, "strict", z.ZodTypeAny, {
|
|
4378
4360
|
provider: "openai" | "google";
|
|
4379
4361
|
model?: string | undefined;
|
|
4380
|
-
size?: string | undefined;
|
|
4381
4362
|
style?: string | undefined;
|
|
4382
4363
|
moderation?: string | undefined;
|
|
4383
4364
|
images?: Record<string, {
|
|
@@ -4398,7 +4379,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
4398
4379
|
}> | undefined;
|
|
4399
4380
|
}, {
|
|
4400
4381
|
model?: string | undefined;
|
|
4401
|
-
size?: string | undefined;
|
|
4402
4382
|
style?: string | undefined;
|
|
4403
4383
|
moderation?: string | undefined;
|
|
4404
4384
|
images?: Record<string, {
|
|
@@ -4476,6 +4456,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
4476
4456
|
beats: z.ZodArray<z.ZodObject<{
|
|
4477
4457
|
speaker: z.ZodDefault<z.ZodString>;
|
|
4478
4458
|
text: z.ZodString;
|
|
4459
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4479
4460
|
image: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4480
4461
|
type: z.ZodLiteral<"markdown">;
|
|
4481
4462
|
markdown: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
@@ -4982,7 +4963,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
4982
4963
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
4983
4964
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
4984
4965
|
model: z.ZodOptional<z.ZodString>;
|
|
4985
|
-
size: z.ZodOptional<z.ZodString>;
|
|
4986
4966
|
style: z.ZodOptional<z.ZodString>;
|
|
4987
4967
|
moderation: z.ZodOptional<z.ZodString>;
|
|
4988
4968
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -5057,7 +5037,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5057
5037
|
}>>>;
|
|
5058
5038
|
}, "strict", z.ZodTypeAny, {
|
|
5059
5039
|
model?: string | undefined;
|
|
5060
|
-
size?: string | undefined;
|
|
5061
5040
|
style?: string | undefined;
|
|
5062
5041
|
moderation?: string | undefined;
|
|
5063
5042
|
images?: Record<string, {
|
|
@@ -5078,7 +5057,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5078
5057
|
}> | undefined;
|
|
5079
5058
|
}, {
|
|
5080
5059
|
model?: string | undefined;
|
|
5081
|
-
size?: string | undefined;
|
|
5082
5060
|
style?: string | undefined;
|
|
5083
5061
|
moderation?: string | undefined;
|
|
5084
5062
|
images?: Record<string, {
|
|
@@ -5251,9 +5229,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5251
5229
|
type: "midi";
|
|
5252
5230
|
source: string;
|
|
5253
5231
|
} | undefined;
|
|
5232
|
+
description?: string | undefined;
|
|
5254
5233
|
imageParams?: {
|
|
5255
5234
|
model?: string | undefined;
|
|
5256
|
-
size?: string | undefined;
|
|
5257
5235
|
style?: string | undefined;
|
|
5258
5236
|
moderation?: string | undefined;
|
|
5259
5237
|
images?: Record<string, {
|
|
@@ -5408,9 +5386,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5408
5386
|
source: string;
|
|
5409
5387
|
} | undefined;
|
|
5410
5388
|
speaker?: string | undefined;
|
|
5389
|
+
description?: string | undefined;
|
|
5411
5390
|
imageParams?: {
|
|
5412
5391
|
model?: string | undefined;
|
|
5413
|
-
size?: string | undefined;
|
|
5414
5392
|
style?: string | undefined;
|
|
5415
5393
|
moderation?: string | undefined;
|
|
5416
5394
|
images?: Record<string, {
|
|
@@ -5594,9 +5572,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5594
5572
|
type: "midi";
|
|
5595
5573
|
source: string;
|
|
5596
5574
|
} | undefined;
|
|
5575
|
+
description?: string | undefined;
|
|
5597
5576
|
imageParams?: {
|
|
5598
5577
|
model?: string | undefined;
|
|
5599
|
-
size?: string | undefined;
|
|
5600
5578
|
style?: string | undefined;
|
|
5601
5579
|
moderation?: string | undefined;
|
|
5602
5580
|
images?: Record<string, {
|
|
@@ -5628,10 +5606,10 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5628
5606
|
}[];
|
|
5629
5607
|
lang?: string | undefined;
|
|
5630
5608
|
title?: string | undefined;
|
|
5609
|
+
description?: string | undefined;
|
|
5631
5610
|
imageParams?: {
|
|
5632
5611
|
provider: "openai" | "google";
|
|
5633
5612
|
model?: string | undefined;
|
|
5634
|
-
size?: string | undefined;
|
|
5635
5613
|
style?: string | undefined;
|
|
5636
5614
|
moderation?: string | undefined;
|
|
5637
5615
|
images?: Record<string, {
|
|
@@ -5659,7 +5637,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5659
5637
|
provider?: "openai" | "google" | undefined;
|
|
5660
5638
|
} | undefined;
|
|
5661
5639
|
omitCaptions?: boolean | undefined;
|
|
5662
|
-
description?: string | undefined;
|
|
5663
5640
|
references?: {
|
|
5664
5641
|
type: "image" | "audio" | "article" | "paper" | "video";
|
|
5665
5642
|
url: string;
|
|
@@ -5799,9 +5776,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5799
5776
|
source: string;
|
|
5800
5777
|
} | undefined;
|
|
5801
5778
|
speaker?: string | undefined;
|
|
5779
|
+
description?: string | undefined;
|
|
5802
5780
|
imageParams?: {
|
|
5803
5781
|
model?: string | undefined;
|
|
5804
|
-
size?: string | undefined;
|
|
5805
5782
|
style?: string | undefined;
|
|
5806
5783
|
moderation?: string | undefined;
|
|
5807
5784
|
images?: Record<string, {
|
|
@@ -5833,9 +5810,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5833
5810
|
}[];
|
|
5834
5811
|
lang?: string | undefined;
|
|
5835
5812
|
title?: string | undefined;
|
|
5813
|
+
description?: string | undefined;
|
|
5836
5814
|
imageParams?: {
|
|
5837
5815
|
model?: string | undefined;
|
|
5838
|
-
size?: string | undefined;
|
|
5839
5816
|
style?: string | undefined;
|
|
5840
5817
|
moderation?: string | undefined;
|
|
5841
5818
|
images?: Record<string, {
|
|
@@ -5885,7 +5862,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
5885
5862
|
provider?: "openai" | "google" | undefined;
|
|
5886
5863
|
} | undefined;
|
|
5887
5864
|
omitCaptions?: boolean | undefined;
|
|
5888
|
-
description?: string | undefined;
|
|
5889
5865
|
references?: {
|
|
5890
5866
|
url: string;
|
|
5891
5867
|
type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
|
|
@@ -6200,9 +6176,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6200
6176
|
type: "midi";
|
|
6201
6177
|
source: string;
|
|
6202
6178
|
} | undefined;
|
|
6179
|
+
description?: string | undefined;
|
|
6203
6180
|
imageParams?: {
|
|
6204
6181
|
model?: string | undefined;
|
|
6205
|
-
size?: string | undefined;
|
|
6206
6182
|
style?: string | undefined;
|
|
6207
6183
|
moderation?: string | undefined;
|
|
6208
6184
|
images?: Record<string, {
|
|
@@ -6234,10 +6210,10 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6234
6210
|
}[];
|
|
6235
6211
|
lang?: string | undefined;
|
|
6236
6212
|
title?: string | undefined;
|
|
6213
|
+
description?: string | undefined;
|
|
6237
6214
|
imageParams?: {
|
|
6238
6215
|
provider: "openai" | "google";
|
|
6239
6216
|
model?: string | undefined;
|
|
6240
|
-
size?: string | undefined;
|
|
6241
6217
|
style?: string | undefined;
|
|
6242
6218
|
moderation?: string | undefined;
|
|
6243
6219
|
images?: Record<string, {
|
|
@@ -6265,7 +6241,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6265
6241
|
provider?: "openai" | "google" | undefined;
|
|
6266
6242
|
} | undefined;
|
|
6267
6243
|
omitCaptions?: boolean | undefined;
|
|
6268
|
-
description?: string | undefined;
|
|
6269
6244
|
references?: {
|
|
6270
6245
|
type: "image" | "audio" | "article" | "paper" | "video";
|
|
6271
6246
|
url: string;
|
|
@@ -6442,9 +6417,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6442
6417
|
source: string;
|
|
6443
6418
|
} | undefined;
|
|
6444
6419
|
speaker?: string | undefined;
|
|
6420
|
+
description?: string | undefined;
|
|
6445
6421
|
imageParams?: {
|
|
6446
6422
|
model?: string | undefined;
|
|
6447
|
-
size?: string | undefined;
|
|
6448
6423
|
style?: string | undefined;
|
|
6449
6424
|
moderation?: string | undefined;
|
|
6450
6425
|
images?: Record<string, {
|
|
@@ -6476,9 +6451,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6476
6451
|
}[];
|
|
6477
6452
|
lang?: string | undefined;
|
|
6478
6453
|
title?: string | undefined;
|
|
6454
|
+
description?: string | undefined;
|
|
6479
6455
|
imageParams?: {
|
|
6480
6456
|
model?: string | undefined;
|
|
6481
|
-
size?: string | undefined;
|
|
6482
6457
|
style?: string | undefined;
|
|
6483
6458
|
moderation?: string | undefined;
|
|
6484
6459
|
images?: Record<string, {
|
|
@@ -6528,7 +6503,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
|
|
|
6528
6503
|
provider?: "openai" | "google" | undefined;
|
|
6529
6504
|
} | undefined;
|
|
6530
6505
|
omitCaptions?: boolean | undefined;
|
|
6531
|
-
description?: string | undefined;
|
|
6532
6506
|
references?: {
|
|
6533
6507
|
url: string;
|
|
6534
6508
|
type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
|
|
@@ -6636,7 +6610,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6636
6610
|
}>>;
|
|
6637
6611
|
imageParams: z.ZodOptional<z.ZodObject<{
|
|
6638
6612
|
model: z.ZodOptional<z.ZodString>;
|
|
6639
|
-
size: z.ZodOptional<z.ZodString>;
|
|
6640
6613
|
style: z.ZodOptional<z.ZodString>;
|
|
6641
6614
|
moderation: z.ZodOptional<z.ZodString>;
|
|
6642
6615
|
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -6714,7 +6687,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6714
6687
|
}, "strict", z.ZodTypeAny, {
|
|
6715
6688
|
provider: "openai" | "google";
|
|
6716
6689
|
model?: string | undefined;
|
|
6717
|
-
size?: string | undefined;
|
|
6718
6690
|
style?: string | undefined;
|
|
6719
6691
|
moderation?: string | undefined;
|
|
6720
6692
|
images?: Record<string, {
|
|
@@ -6735,7 +6707,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6735
6707
|
}> | undefined;
|
|
6736
6708
|
}, {
|
|
6737
6709
|
model?: string | undefined;
|
|
6738
|
-
size?: string | undefined;
|
|
6739
6710
|
style?: string | undefined;
|
|
6740
6711
|
moderation?: string | undefined;
|
|
6741
6712
|
images?: Record<string, {
|
|
@@ -6819,7 +6790,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6819
6790
|
imageParams?: {
|
|
6820
6791
|
provider: "openai" | "google";
|
|
6821
6792
|
model?: string | undefined;
|
|
6822
|
-
size?: string | undefined;
|
|
6823
6793
|
style?: string | undefined;
|
|
6824
6794
|
moderation?: string | undefined;
|
|
6825
6795
|
images?: Record<string, {
|
|
@@ -6854,7 +6824,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6854
6824
|
};
|
|
6855
6825
|
imageParams?: {
|
|
6856
6826
|
model?: string | undefined;
|
|
6857
|
-
size?: string | undefined;
|
|
6858
6827
|
style?: string | undefined;
|
|
6859
6828
|
moderation?: string | undefined;
|
|
6860
6829
|
images?: Record<string, {
|
|
@@ -6939,7 +6908,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6939
6908
|
imageParams?: {
|
|
6940
6909
|
provider: "openai" | "google";
|
|
6941
6910
|
model?: string | undefined;
|
|
6942
|
-
size?: string | undefined;
|
|
6943
6911
|
style?: string | undefined;
|
|
6944
6912
|
moderation?: string | undefined;
|
|
6945
6913
|
images?: Record<string, {
|
|
@@ -6980,7 +6948,6 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
|
|
|
6980
6948
|
};
|
|
6981
6949
|
imageParams?: {
|
|
6982
6950
|
model?: string | undefined;
|
|
6983
|
-
size?: string | undefined;
|
|
6984
6951
|
style?: string | undefined;
|
|
6985
6952
|
moderation?: string | undefined;
|
|
6986
6953
|
images?: Record<string, {
|
package/lib/types/schema.js
CHANGED
|
@@ -134,7 +134,6 @@ const imageIdSchema = z.string();
|
|
|
134
134
|
export const mulmoImageParamsSchema = z
|
|
135
135
|
.object({
|
|
136
136
|
model: z.string().optional(), // default: provider specific
|
|
137
|
-
size: z.string().optional(), // default: provider specific
|
|
138
137
|
style: z.string().optional(), // optional image style
|
|
139
138
|
moderation: z.string().optional(), // optional image style
|
|
140
139
|
images: z.record(imageIdSchema, mulmoImageMediaSchema).optional(),
|
|
@@ -170,6 +169,7 @@ export const mulmoBeatSchema = z
|
|
|
170
169
|
.object({
|
|
171
170
|
speaker: speakerIdSchema.default("Presenter"),
|
|
172
171
|
text: z.string().describe("Text to be spoken. If empty, the audio is not generated."),
|
|
172
|
+
description: z.string().optional(),
|
|
173
173
|
image: mulmoImageAssetSchema.optional(),
|
|
174
174
|
audio: mulmoAudioAssetSchema.optional(),
|
|
175
175
|
duration: z.number().optional().describe("Duration of the beat. Used only when the text is empty"),
|
package/lib/utils/file.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MulmoScript, MulmoScriptTemplate, MulmoMediaSource, MulmoStudioContext } from "../types/index.js";
|
|
2
2
|
import { PDFMode } from "../types/index.js";
|
|
3
3
|
import { ZodSchema } from "zod";
|
|
4
|
+
export declare const updateNpmRoot: (_npmRoot: string) => void;
|
|
4
5
|
export declare function readMulmoScriptFile<T = MulmoScript>(path: string, errorMessage: string): {
|
|
5
6
|
mulmoData: T;
|
|
6
7
|
mulmoDataPath: string;
|
package/lib/utils/file.js
CHANGED
|
@@ -8,6 +8,10 @@ import { MulmoStudioContextMethods } from "../methods/index.js";
|
|
|
8
8
|
import { mulmoScriptTemplateSchema } from "../types/schema.js";
|
|
9
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
const __dirname = path.dirname(__filename);
|
|
11
|
+
let npmRoot = path.resolve(__dirname, "../../");
|
|
12
|
+
export const updateNpmRoot = (_npmRoot) => {
|
|
13
|
+
npmRoot = _npmRoot;
|
|
14
|
+
};
|
|
11
15
|
export function readMulmoScriptFile(arg2, errorMessage) {
|
|
12
16
|
const scriptPath = path.resolve(arg2);
|
|
13
17
|
if (!fs.existsSync(scriptPath)) {
|
|
@@ -85,7 +89,7 @@ export const getOutputPdfFilePath = (outDirPath, fileName, pdfMode, lang) => {
|
|
|
85
89
|
return path.resolve(outDirPath, `${fileName}_${pdfMode}.pdf`);
|
|
86
90
|
};
|
|
87
91
|
export const getTemplateFilePath = (templateName) => {
|
|
88
|
-
return path.resolve(
|
|
92
|
+
return path.resolve(npmRoot, "./assets/templates/" + templateName + ".json");
|
|
89
93
|
};
|
|
90
94
|
export const mkdir = (dirPath) => {
|
|
91
95
|
if (!fs.existsSync(dirPath)) {
|
|
@@ -93,12 +97,12 @@ export const mkdir = (dirPath) => {
|
|
|
93
97
|
fs.mkdirSync(dirPath, { recursive: true });
|
|
94
98
|
}
|
|
95
99
|
};
|
|
96
|
-
export const silentPath = path.resolve(
|
|
97
|
-
export const silentLastPath = path.resolve(
|
|
98
|
-
export const silent60secPath = path.resolve(
|
|
99
|
-
export const defaultBGMPath = path.resolve(
|
|
100
|
+
export const silentPath = path.resolve(npmRoot, "./assets/audio/silent300.mp3");
|
|
101
|
+
export const silentLastPath = path.resolve(npmRoot, "./assets/audio/silent800.mp3");
|
|
102
|
+
export const silent60secPath = path.resolve(npmRoot, "./assets/audio/silent60sec.mp3");
|
|
103
|
+
export const defaultBGMPath = path.resolve(npmRoot, "./assets/music/StarsBeyondEx.mp3");
|
|
100
104
|
export const getHTMLFile = (filename) => {
|
|
101
|
-
const htmlPath = path.resolve(
|
|
105
|
+
const htmlPath = path.resolve(npmRoot, `./assets/html/${filename}.html`);
|
|
102
106
|
return fs.readFileSync(htmlPath, "utf-8");
|
|
103
107
|
};
|
|
104
108
|
// for cli
|
|
@@ -121,7 +125,7 @@ export const getFullPath = (baseDirPath, file) => {
|
|
|
121
125
|
return path.resolve(file);
|
|
122
126
|
};
|
|
123
127
|
export const readScriptTemplateFile = (scriptName) => {
|
|
124
|
-
const scriptPath = path.resolve(
|
|
128
|
+
const scriptPath = path.resolve(npmRoot, "./scripts/templates", scriptName);
|
|
125
129
|
const scriptData = fs.readFileSync(scriptPath, "utf-8");
|
|
126
130
|
// NOTE: We don't want to schema parse the script here to eliminate default values.
|
|
127
131
|
return JSON.parse(scriptData);
|
|
@@ -142,7 +146,7 @@ export const readTemplatePrompt = (templateName) => {
|
|
|
142
146
|
return prompt;
|
|
143
147
|
};
|
|
144
148
|
export const getAvailableTemplates = () => {
|
|
145
|
-
const templatesDir = path.resolve(
|
|
149
|
+
const templatesDir = path.resolve(npmRoot, "./assets/templates");
|
|
146
150
|
if (!fs.existsSync(templatesDir)) {
|
|
147
151
|
return [];
|
|
148
152
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const imageType = "image";
|
|
2
|
-
export declare const process: (params: import("../../
|
|
2
|
+
export declare const process: (params: import("../../index.js").ImageProcessorParams) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const imageType = "movie";
|
|
2
|
-
export declare const process: (params: import("../../
|
|
2
|
+
export declare const process: (params: import("../../index.js").ImageProcessorParams) => string | undefined;
|
|
@@ -169,9 +169,9 @@ export declare const createOrUpdateStudioData: (_mulmoScript: MulmoScript, curre
|
|
|
169
169
|
type: "midi";
|
|
170
170
|
source: string;
|
|
171
171
|
} | undefined;
|
|
172
|
+
description?: string | undefined;
|
|
172
173
|
imageParams?: {
|
|
173
174
|
model?: string | undefined;
|
|
174
|
-
size?: string | undefined;
|
|
175
175
|
style?: string | undefined;
|
|
176
176
|
moderation?: string | undefined;
|
|
177
177
|
images?: Record<string, {
|
|
@@ -203,10 +203,10 @@ export declare const createOrUpdateStudioData: (_mulmoScript: MulmoScript, curre
|
|
|
203
203
|
}[];
|
|
204
204
|
lang?: string | undefined;
|
|
205
205
|
title?: string | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
206
207
|
imageParams?: {
|
|
207
208
|
provider: "openai" | "google";
|
|
208
209
|
model?: string | undefined;
|
|
209
|
-
size?: string | undefined;
|
|
210
210
|
style?: string | undefined;
|
|
211
211
|
moderation?: string | undefined;
|
|
212
212
|
images?: Record<string, {
|
|
@@ -234,7 +234,6 @@ export declare const createOrUpdateStudioData: (_mulmoScript: MulmoScript, curre
|
|
|
234
234
|
provider?: "openai" | "google" | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
omitCaptions?: boolean | undefined;
|
|
237
|
-
description?: string | undefined;
|
|
238
237
|
references?: {
|
|
239
238
|
type: "image" | "audio" | "article" | "paper" | "video";
|
|
240
239
|
url: string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mulmocast",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "lib/
|
|
6
|
+
"main": "lib/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mulmo": "lib/cli/bin.js"
|
|
9
9
|
},
|
|
@@ -69,27 +69,27 @@
|
|
|
69
69
|
"google-auth-library": "^9.15.1",
|
|
70
70
|
"graphai": "^2.0.5",
|
|
71
71
|
"inquirer": "^12.6.1",
|
|
72
|
-
"marked": "^15.0.
|
|
72
|
+
"marked": "^15.0.12",
|
|
73
73
|
"ora": "^8.2.0",
|
|
74
74
|
"pdf-lib": "^1.17.1",
|
|
75
|
-
"puppeteer": "^24.
|
|
75
|
+
"puppeteer": "^24.10.0",
|
|
76
76
|
"yaml": "^2.8.0",
|
|
77
77
|
"yargs": "^17.7.2",
|
|
78
|
-
"zod": "^3.
|
|
78
|
+
"zod": "^3.25.51",
|
|
79
79
|
"zod-to-json-schema": "^3.24.5"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@receptron/test_utils": "^2.0.0",
|
|
83
83
|
"@types/fluent-ffmpeg": "^2.1.26",
|
|
84
84
|
"@types/yargs": "^17.0.33",
|
|
85
|
-
"eslint": "^9.
|
|
85
|
+
"eslint": "^9.28.0",
|
|
86
86
|
"eslint-config-prettier": "^10.1.5",
|
|
87
|
-
"eslint-plugin-prettier": "^5.4.
|
|
87
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
88
88
|
"prettier": "^3.3.3",
|
|
89
89
|
"ts-node": "^10.9.2",
|
|
90
90
|
"tsx": "^4.19.4",
|
|
91
91
|
"typescript": "^5.7.3",
|
|
92
|
-
"typescript-eslint": "^8.
|
|
92
|
+
"typescript-eslint": "^8.33.1"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=16.0.0"
|