mulmocast 0.0.1 → 0.0.3
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 +129 -15
- package/assets/font/NotoSansJP-Regular.ttf +0 -0
- package/assets/html/chart.html +38 -0
- package/assets/html/mermaid.html +51 -0
- package/assets/templates/business.json +57 -14
- package/assets/templates/children_book.json +1 -3
- package/assets/templates/coding.json +140 -0
- package/lib/actions/audio.d.ts +2 -2
- package/lib/actions/audio.js +88 -101
- package/lib/actions/images.d.ts +1 -1
- package/lib/actions/images.js +50 -88
- package/lib/actions/index.d.ts +5 -0
- package/lib/actions/index.js +5 -0
- package/lib/actions/movie.d.ts +9 -1
- package/lib/actions/movie.js +124 -65
- package/lib/actions/pdf.d.ts +2 -0
- package/lib/actions/pdf.js +211 -0
- package/lib/actions/pdf2.d.ts +2 -0
- package/lib/actions/pdf2.js +203 -0
- package/lib/actions/translate.d.ts +1 -1
- package/lib/actions/translate.js +38 -61
- package/lib/agents/add_bgm_agent.d.ts +1 -1
- package/lib/agents/add_bgm_agent.js +10 -14
- package/lib/agents/anthropic_agent.d.ts +23 -0
- package/lib/agents/anthropic_agent.js +162 -0
- package/lib/agents/combine_audio_files_agent.d.ts +1 -1
- package/lib/agents/combine_audio_files_agent.js +33 -32
- package/lib/agents/image_google_agent.d.ts +1 -1
- package/lib/agents/image_google_agent.js +8 -11
- package/lib/agents/image_openai_agent.js +7 -14
- package/lib/agents/index.d.ts +8 -8
- package/lib/agents/index.js +13 -30
- package/lib/agents/mulmo_prompts_agent.d.ts +1 -1
- package/lib/agents/mulmo_prompts_agent.js +7 -11
- package/lib/agents/nested_agent.d.ts +9 -0
- package/lib/agents/nested_agent.js +138 -0
- package/lib/agents/prompts_data.js +1 -4
- package/lib/agents/tts_nijivoice_agent.d.ts +1 -1
- package/lib/agents/tts_nijivoice_agent.js +8 -12
- package/lib/agents/tts_openai_agent.js +9 -16
- package/lib/agents/validate_mulmo_script_agent.d.ts +1 -1
- package/lib/agents/validate_mulmo_script_agent.js +6 -10
- package/lib/cli/args.d.ts +5 -2
- package/lib/cli/args.js +52 -35
- package/lib/cli/cli.d.ts +14 -0
- package/lib/cli/cli.js +74 -57
- package/lib/cli/common.js +1 -5
- package/lib/cli/tool-args.d.ts +4 -1
- package/lib/cli/tool-args.js +29 -18
- package/lib/cli/tool-cli.js +34 -51
- package/lib/methods/index.d.ts +4 -3
- package/lib/methods/index.js +4 -19
- package/lib/methods/mulmo_media_source.d.ts +4 -0
- package/lib/methods/mulmo_media_source.js +21 -0
- package/lib/methods/mulmo_script.d.ts +6 -5
- package/lib/methods/mulmo_script.js +29 -16
- package/lib/methods/mulmo_script_template.d.ts +1 -1
- package/lib/methods/mulmo_script_template.js +4 -10
- package/lib/methods/mulmo_studio_context.d.ts +1 -1
- package/lib/methods/mulmo_studio_context.js +3 -9
- package/lib/tools/create_mulmo_script_from_url.d.ts +3 -0
- package/lib/tools/create_mulmo_script_from_url.js +152 -0
- package/lib/tools/create_mulmo_script_interactively.d.ts +3 -0
- package/lib/tools/create_mulmo_script_interactively.js +258 -0
- package/lib/tools/dump_prompt.js +5 -8
- package/lib/tools/prompt.js +9 -11
- package/lib/tools/seed_from_url2.d.ts +3 -0
- package/lib/tools/seed_from_url2.js +154 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +2 -17
- package/lib/types/schema.d.ts +3624 -2798
- package/lib/types/schema.js +172 -123
- package/lib/types/type.d.ts +34 -3
- package/lib/types/type.js +1 -2
- package/lib/utils/const.d.ts +4 -1
- package/lib/utils/const.js +6 -6
- package/lib/utils/file.d.ts +22 -4
- package/lib/utils/file.js +100 -79
- package/lib/utils/filters.d.ts +1 -0
- package/lib/utils/filters.js +47 -26
- package/lib/utils/image_plugins/chart.d.ts +3 -0
- package/lib/utils/image_plugins/chart.js +18 -0
- package/lib/utils/image_plugins/image.d.ts +2 -0
- package/lib/utils/image_plugins/image.js +3 -0
- package/lib/utils/image_plugins/index.d.ts +7 -0
- package/lib/utils/image_plugins/index.js +7 -0
- package/lib/utils/image_plugins/markdown.d.ts +3 -0
- package/lib/utils/image_plugins/markdown.js +11 -0
- package/lib/utils/image_plugins/mermaid.d.ts +3 -0
- package/lib/utils/image_plugins/mermaid.js +21 -0
- package/lib/utils/image_plugins/movie.d.ts +2 -0
- package/lib/utils/image_plugins/movie.js +3 -0
- package/lib/utils/image_plugins/source.d.ts +4 -0
- package/lib/utils/image_plugins/source.js +15 -0
- package/lib/utils/image_plugins/text_slide.d.ts +3 -0
- package/lib/utils/image_plugins/text_slide.js +12 -0
- package/lib/utils/image_plugins/type_guards.d.ts +6 -0
- package/lib/utils/image_plugins/type_guards.js +21 -0
- package/lib/utils/image_preprocess.d.ts +14 -0
- package/lib/utils/image_preprocess.js +52 -0
- package/lib/utils/inquirer.d.ts +2 -0
- package/lib/utils/inquirer.js +33 -0
- package/lib/utils/markdown.d.ts +3 -1
- package/lib/utils/markdown.js +20 -19
- package/lib/utils/pdf.d.ts +8 -0
- package/lib/utils/pdf.js +75 -0
- package/lib/utils/plugins.d.ts +5 -0
- package/lib/utils/plugins.js +11 -0
- package/lib/utils/preprocess.d.ts +70 -123
- package/lib/utils/preprocess.js +37 -43
- package/lib/utils/string.js +4 -10
- package/lib/utils/text_hash.js +2 -39
- package/lib/utils/utils.d.ts +12 -0
- package/lib/utils/utils.js +34 -0
- package/package.json +23 -8
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mulmocast",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "lib/cli/cli.js",
|
|
6
7
|
"bin": {
|
|
7
8
|
"mulmo": "lib/cli/cli.js",
|
|
@@ -12,6 +13,8 @@
|
|
|
12
13
|
"./assets/music/StarsBeyondEx.mp3",
|
|
13
14
|
"./assets/audio/silent300.mp3",
|
|
14
15
|
"./assets/audio/silent800.mp3",
|
|
16
|
+
"./assets/html/",
|
|
17
|
+
"./assets/font/",
|
|
15
18
|
"./assets/templates/"
|
|
16
19
|
],
|
|
17
20
|
"types": "./lib/types/index.d.ts",
|
|
@@ -26,39 +29,47 @@
|
|
|
26
29
|
"images": "npx tsx ./src/cli/cli.ts images",
|
|
27
30
|
"preprocess": "npx tsx ./src/cli/cli.ts preprocess",
|
|
28
31
|
"test": "rm -f scratchpad/test*.* && npx tsx ./src/audio.ts scripts/test/test.json && npx tsx ./src/images.ts scripts/test/test.json && npx tsx ./src/movie.ts scripts/test/test.json",
|
|
29
|
-
"ci_test": "
|
|
32
|
+
"ci_test": "tsx --test ./test/*/test_*.ts",
|
|
30
33
|
"lint": "eslint src test",
|
|
31
34
|
"build": "tsc",
|
|
32
35
|
"build_test": "tsc && git checkout -- lib/*",
|
|
33
|
-
"prompt": "npx
|
|
34
|
-
"cli": "npx
|
|
35
|
-
"scripting": "npx
|
|
36
|
+
"prompt": "npx tsx ./src/tools/prompt.ts",
|
|
37
|
+
"cli": "npx tsx ./src/cli/cli.ts",
|
|
38
|
+
"scripting": "npx tsx ./src/cli/tool-cli.ts scripting",
|
|
36
39
|
"dump_prompt": "npx tsx ./src/cli/tool-cli.ts prompt",
|
|
37
40
|
"latest": "yarn upgrade-interactive --latest",
|
|
38
|
-
"format": "prettier --write '{src,scripts,assets/templates,draft,ideason,scripts_mag2,proto,test,graphai,output}/**/*.{ts,json}'"
|
|
41
|
+
"format": "prettier --write '{src,scripts,assets/templates,draft,ideason,scripts_mag2,proto,test,graphai,output,docs/scripts}/**/*.{ts,json,yaml}'"
|
|
39
42
|
},
|
|
40
43
|
"repository": "git+ssh://git@github.com/receptron/mulmocast-cli.git",
|
|
41
44
|
"author": "snakajima",
|
|
42
|
-
"license": "
|
|
45
|
+
"license": "AGPL-3.0-only",
|
|
43
46
|
"bugs": {
|
|
44
47
|
"url": "https://github.com/receptron/mulmocast-cli/issues"
|
|
45
48
|
},
|
|
46
49
|
"homepage": "https://github.com/receptron/mulmocast-cli#readme",
|
|
47
50
|
"dependencies": {
|
|
51
|
+
"@graphai/agent_filters": "^1.0.1",
|
|
52
|
+
"@graphai/anthropic_agent": "^2.0.0",
|
|
48
53
|
"@graphai/browserless_agent": "^2.0.0",
|
|
54
|
+
"@graphai/gemini_agent": "^1.0.1",
|
|
55
|
+
"@graphai/groq_agent": "^1.0.1",
|
|
49
56
|
"@graphai/input_agents": "^1.0.1",
|
|
50
57
|
"@graphai/openai_agent": "^1.0.5",
|
|
51
58
|
"@graphai/vanilla": "^2.0.1",
|
|
52
59
|
"@graphai/vanilla_node_agents": "^2.0.0",
|
|
60
|
+
"@pdf-lib/fontkit": "^1.1.1",
|
|
53
61
|
"@types/fluent-ffmpeg": "^2.1.26",
|
|
54
62
|
"canvas": "^3.1.0",
|
|
55
63
|
"dotenv": "^16.4.7",
|
|
56
64
|
"fluent-ffmpeg": "^2.1.3",
|
|
57
65
|
"google-auth-library": "^9.15.1",
|
|
58
|
-
"graphai": "^1.0.
|
|
66
|
+
"graphai": "^1.0.13",
|
|
59
67
|
"inquirer": "^12.6.0",
|
|
60
68
|
"marked": "^15.0.11",
|
|
69
|
+
"ora": "^8.2.0",
|
|
70
|
+
"pdf-lib": "^1.17.1",
|
|
61
71
|
"puppeteer": "^24.8.1",
|
|
72
|
+
"yaml": "^2.7.1",
|
|
62
73
|
"yargs": "^17.7.2",
|
|
63
74
|
"zod": "^3.24.4",
|
|
64
75
|
"zod-to-json-schema": "^3.24.5"
|
|
@@ -71,7 +82,11 @@
|
|
|
71
82
|
"eslint-plugin-prettier": "^5.4.0",
|
|
72
83
|
"prettier": "^3.3.3",
|
|
73
84
|
"ts-node": "^10.9.2",
|
|
85
|
+
"tsx": "^4.19.4",
|
|
74
86
|
"typescript": "^5.7.3",
|
|
75
87
|
"typescript-eslint": "^8.32.0"
|
|
88
|
+
},
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">=16.0.0"
|
|
76
91
|
}
|
|
77
92
|
}
|