mulmocast 1.2.26 → 1.2.28

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.
Files changed (37) hide show
  1. package/assets/templates/documentary.json +19 -0
  2. package/assets/templates/image_prompt.json +16 -0
  3. package/lib/actions/image_agents.d.ts +13 -31
  4. package/lib/actions/image_agents.js +3 -5
  5. package/lib/actions/image_references.js +2 -2
  6. package/lib/actions/images.d.ts +12 -30
  7. package/lib/actions/images.js +2 -1
  8. package/lib/agents/image_replicate_agent.d.ts +7 -0
  9. package/lib/agents/image_replicate_agent.js +84 -0
  10. package/lib/agents/index.d.ts +2 -1
  11. package/lib/agents/index.js +2 -1
  12. package/lib/data/promptTemplates.d.ts +10 -40
  13. package/lib/data/promptTemplates.js +85 -48
  14. package/lib/data/scriptTemplates.js +160 -160
  15. package/lib/data/templateDataSet.d.ts +2 -0
  16. package/lib/data/templateDataSet.js +9 -1
  17. package/lib/mcp/aaa.js +1 -1
  18. package/lib/mcp/server.js +0 -1
  19. package/lib/types/agent.d.ts +12 -0
  20. package/lib/types/schema.d.ts +98 -98
  21. package/lib/types/schema.js +1 -3
  22. package/lib/utils/context.d.ts +33 -33
  23. package/lib/utils/image_plugins/image.d.ts +1 -1
  24. package/lib/utils/image_plugins/image.js +2 -2
  25. package/lib/utils/image_plugins/movie.d.ts +1 -1
  26. package/lib/utils/image_plugins/movie.js +2 -2
  27. package/lib/utils/image_plugins/source.d.ts +2 -1
  28. package/lib/utils/image_plugins/source.js +34 -1
  29. package/lib/utils/image_plugins/vision.js +1 -1
  30. package/lib/utils/provider2agent.d.ts +5 -0
  31. package/lib/utils/provider2agent.js +5 -0
  32. package/lib/utils/utils.js +3 -0
  33. package/package.json +3 -3
  34. package/scripts/templates/vision.json +160 -160
  35. package/scripts/test/test_mv.json +6 -4
  36. package/scripts/test/test_replicate.json +18 -0
  37. package/scripts/test/test_vision.json +1 -1
@@ -32,9 +32,6 @@ export const promptTemplates = [
32
32
  },
33
33
  style: "<style>AKIRA aesthetic.</style>",
34
34
  },
35
- movieParams: {
36
- provider: "replicate",
37
- },
38
35
  soundEffectParams: {
39
36
  provider: "replicate",
40
37
  },
@@ -150,9 +147,6 @@ export const promptTemplates = [
150
147
  images: {},
151
148
  provider: "openai",
152
149
  },
153
- movieParams: {
154
- provider: "replicate",
155
- },
156
150
  soundEffectParams: {
157
151
  provider: "replicate",
158
152
  },
@@ -195,9 +189,6 @@ export const promptTemplates = [
195
189
  imageParams: {
196
190
  style: "A hand-drawn style illustration with a warm, nostalgic atmosphere. The background is rich with natural scenery—lush forests, cloudy skies, and traditional Japanese architecture. Characters have expressive eyes, soft facial features, and are portrayed with gentle lighting and subtle shading. The color palette is muted yet vivid, using earthy tones and watercolor-like textures. The overall scene feels magical and peaceful, with a sense of quiet wonder and emotional depth, reminiscent of classic 1980s and 1990s Japanese animation.",
197
191
  },
198
- movieParams: {
199
- provider: "replicate",
200
- },
201
192
  soundEffectParams: {
202
193
  provider: "replicate",
203
194
  },
@@ -247,9 +238,6 @@ export const promptTemplates = [
247
238
  imageParams: {
248
239
  style: "<style>A multi panel comic strips. 1990s American workplace humor. Clean, minimalist line art with muted colors. One character is a nerdy office worker with glasses</style>",
249
240
  },
250
- movieParams: {
251
- provider: "replicate",
252
- },
253
241
  soundEffectParams: {
254
242
  provider: "replicate",
255
243
  },
@@ -268,6 +256,48 @@ export const promptTemplates = [
268
256
  systemPrompt: "Another AI will generate comic strips for each beat based on the text description of that beat. Mention the reference in one of beats, if it exists. Use the JSON below as a template.",
269
257
  title: "American Comic Strips",
270
258
  },
259
+ {
260
+ description: "Template for documentary, biography, and other long form content.",
261
+ filename: "documentary",
262
+ presentationStyle: {
263
+ $mulmocast: {
264
+ credit: "closing",
265
+ version: "1.1",
266
+ },
267
+ audioParams: {
268
+ audioVolume: 1,
269
+ bgmVolume: 0.2,
270
+ closingPadding: 0.8,
271
+ introPadding: 1,
272
+ outroPadding: 1,
273
+ padding: 0.3,
274
+ suppressSpeech: false,
275
+ },
276
+ canvasSize: {
277
+ height: 1024,
278
+ width: 1536,
279
+ },
280
+ imageParams: {
281
+ style: "<style>Photo realistic and cinematic. Let the art convey the story and emotions without text. Use the image for the aspect ratio</style>",
282
+ },
283
+ soundEffectParams: {
284
+ provider: "replicate",
285
+ },
286
+ speechParams: {
287
+ speakers: {
288
+ Presenter: {
289
+ displayName: {
290
+ en: "Presenter",
291
+ },
292
+ voiceId: "shimmer",
293
+ },
294
+ },
295
+ },
296
+ },
297
+ scriptName: "text_only_template.json",
298
+ systemPrompt: "Generate 30 to 40 beats. Another AI will generate image for each beat based on the text description of that beat. Mention the reference in one of beats, if it exists. Use the JSON below as a template.",
299
+ title: "Documentary",
300
+ },
271
301
  {
272
302
  description: "Template for Dr. Slump style comic presentation.",
273
303
  filename: "drslump_comic",
@@ -301,9 +331,6 @@ export const promptTemplates = [
301
331
  },
302
332
  style: "<style>Dragon Ball/Dr. Slump aesthetic.</style>",
303
333
  },
304
- movieParams: {
305
- provider: "replicate",
306
- },
307
334
  soundEffectParams: {
308
335
  provider: "replicate",
309
336
  },
@@ -355,9 +382,6 @@ export const promptTemplates = [
355
382
  },
356
383
  style: "<style>Ghibli style</style>",
357
384
  },
358
- movieParams: {
359
- provider: "replicate",
360
- },
361
385
  soundEffectParams: {
362
386
  provider: "replicate",
363
387
  },
@@ -411,9 +435,6 @@ export const promptTemplates = [
411
435
  provider: "google",
412
436
  style: "<style>Ghibli style multi-panel comic strips in landscape mode. Use speech bubbles with short, natural dialogue (1–6 words). Keep text minimal, like real comics. Let the art convey the story and emotions. Use the input image as the presenter.</style>",
413
437
  },
414
- movieParams: {
415
- provider: "replicate",
416
- },
417
438
  soundEffectParams: {
418
439
  provider: "replicate",
419
440
  },
@@ -472,9 +493,6 @@ export const promptTemplates = [
472
493
  },
473
494
  style: "<style>Ghost in the shell aesthetic.</style>",
474
495
  },
475
- movieParams: {
476
- provider: "replicate",
477
- },
478
496
  soundEffectParams: {
479
497
  provider: "replicate",
480
498
  },
@@ -518,9 +536,6 @@ export const promptTemplates = [
518
536
  images: {},
519
537
  provider: "openai",
520
538
  },
521
- movieParams: {
522
- provider: "replicate",
523
- },
524
539
  soundEffectParams: {
525
540
  provider: "replicate",
526
541
  },
@@ -539,6 +554,49 @@ export const promptTemplates = [
539
554
  systemPrompt: "Another LLM will generate actual slides from the prompt and data for each beat. Adding optional data would help it to generate more compelling slide. Mention the reference in one of beats, if it exists. The valid type of reference is 'article', 'paper', 'image', 'video', 'audio'. Use the JSON below as a template.",
540
555
  title: "Business presentation in HTML",
541
556
  },
557
+ {
558
+ description: "Template for image prompt (no style, no images).",
559
+ filename: "image_prompt",
560
+ presentationStyle: {
561
+ $mulmocast: {
562
+ credit: "closing",
563
+ version: "1.1",
564
+ },
565
+ audioParams: {
566
+ audioVolume: 1,
567
+ bgmVolume: 0.2,
568
+ closingPadding: 0.8,
569
+ introPadding: 1,
570
+ outroPadding: 1,
571
+ padding: 0.3,
572
+ suppressSpeech: false,
573
+ },
574
+ canvasSize: {
575
+ height: 1024,
576
+ width: 1536,
577
+ },
578
+ imageParams: {
579
+ images: {},
580
+ provider: "openai",
581
+ },
582
+ soundEffectParams: {
583
+ provider: "replicate",
584
+ },
585
+ speechParams: {
586
+ speakers: {
587
+ Presenter: {
588
+ displayName: {
589
+ en: "Presenter",
590
+ },
591
+ voiceId: "shimmer",
592
+ },
593
+ },
594
+ },
595
+ },
596
+ scriptName: "image_prompts_template.json",
597
+ systemPrompt: "Another AI will generate images for each beat based on the image prompt of that beat. Movie prompts must be written in English. Mention the reference in one of beats, if it exists. Use the JSON below as a template.",
598
+ title: "Plain Image Prompt",
599
+ },
542
600
  {
543
601
  description: "Template for One Piece style comic presentation.",
544
602
  filename: "onepiece_comic",
@@ -572,9 +630,6 @@ export const promptTemplates = [
572
630
  },
573
631
  style: "<style>One Piece aesthetic.</style>",
574
632
  },
575
- movieParams: {
576
- provider: "replicate",
577
- },
578
633
  soundEffectParams: {
579
634
  provider: "replicate",
580
635
  },
@@ -626,9 +681,6 @@ export const promptTemplates = [
626
681
  },
627
682
  style: "<style>Photo realistic, cinematic.</style>",
628
683
  },
629
- movieParams: {
630
- provider: "replicate",
631
- },
632
684
  soundEffectParams: {
633
685
  provider: "replicate",
634
686
  },
@@ -680,9 +732,6 @@ export const promptTemplates = [
680
732
  },
681
733
  style: "<style>Photo realistic, cinematic.</style>",
682
734
  },
683
- movieParams: {
684
- provider: "replicate",
685
- },
686
735
  soundEffectParams: {
687
736
  provider: "replicate",
688
737
  },
@@ -725,9 +774,6 @@ export const promptTemplates = [
725
774
  imageParams: {
726
775
  style: "<style>Ghibli style. Student (Taro) is a young teenager with a dark short hair with glasses. Teacher is a middle-aged man with grey hair and moustache.</style>",
727
776
  },
728
- movieParams: {
729
- provider: "replicate",
730
- },
731
777
  soundEffectParams: {
732
778
  provider: "replicate",
733
779
  },
@@ -784,9 +830,6 @@ export const promptTemplates = [
784
830
  imageParams: {
785
831
  style: "<style>Photo realistic, cinematic.</style>",
786
832
  },
787
- movieParams: {
788
- provider: "replicate",
789
- },
790
833
  soundEffectParams: {
791
834
  provider: "replicate",
792
835
  },
@@ -839,9 +882,6 @@ export const promptTemplates = [
839
882
  },
840
883
  style: "<style>A dreamy, hyper-detailed anime style that blends photorealistic backgrounds with vibrant, saturated colors. The skies are often filled with luminous clouds, dazzling sunsets, or star-filled nights, rendered with a glowing, almost ethereal quality. Urban landscapes and rural scenery are meticulously illustrated, with attention to tiny details like reflections in puddles, neon lights, or the texture of grass swaying in the wind. Characters are drawn with soft, expressive features, standing out against the breathtaking environments, creating a sense of emotional depth and lyrical atmosphere. The overall mood is cinematic, romantic, and filled with a sense of fleeting beauty and longing.</style>",
841
884
  },
842
- movieParams: {
843
- provider: "replicate",
844
- },
845
885
  soundEffectParams: {
846
886
  provider: "replicate",
847
887
  },
@@ -887,9 +927,6 @@ export const promptTemplates = [
887
927
  imageParams: {
888
928
  style: "<style>Photo realistic, cinematic.</style>",
889
929
  },
890
- movieParams: {
891
- provider: "replicate",
892
- },
893
930
  soundEffectParams: {
894
931
  provider: "replicate",
895
932
  },