mulmocast 1.2.20 → 1.2.22
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/lib/cli/helpers.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export declare const getFileObject: (args: {
|
|
|
9
9
|
audiodir?: string;
|
|
10
10
|
presentationStyle?: string;
|
|
11
11
|
file: string;
|
|
12
|
+
nodeModuleRootPath?: string;
|
|
12
13
|
}) => FileObject;
|
|
13
14
|
export declare const initializeContext: (argv: CliArgs<InitOptions>, raiseError?: boolean) => Promise<MulmoStudioContext | null>;
|
package/lib/cli/helpers.js
CHANGED
|
@@ -29,7 +29,7 @@ export const setGraphAILogger = (verbose, logValues) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
export const getFileObject = (args) => {
|
|
32
|
-
const { basedir, outdir, imagedir, audiodir, file, presentationStyle } = args;
|
|
32
|
+
const { basedir, outdir, imagedir, audiodir, file, presentationStyle, nodeModuleRootPath } = args;
|
|
33
33
|
const baseDirPath = getBaseDirPath(basedir);
|
|
34
34
|
const outDirPath = getFullPath(baseDirPath, outdir ?? outDirName);
|
|
35
35
|
const { fileOrUrl, fileName } = (() => {
|
|
@@ -69,6 +69,7 @@ export const getFileObject = (args) => {
|
|
|
69
69
|
outputMultilingualFilePath,
|
|
70
70
|
presentationStylePath,
|
|
71
71
|
fileName,
|
|
72
|
+
nodeModuleRootPath,
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
75
|
export const initializeContext = async (argv, raiseError = false) => {
|
package/lib/index.node.d.ts
CHANGED
package/lib/index.node.js
CHANGED
package/lib/types/type.d.ts
CHANGED
|
@@ -45,16 +45,8 @@ export type MulmoImageMedia = z.infer<typeof mulmoImageMediaSchema>;
|
|
|
45
45
|
export type MulmoChartMedia = z.infer<typeof mulmoChartMediaSchema>;
|
|
46
46
|
export type MulmoMermaidMedia = z.infer<typeof mulmoMermaidMediaSchema>;
|
|
47
47
|
export type MulmoSessionState = z.infer<typeof mulmoSessionStateSchema>;
|
|
48
|
-
export type FileDirs = {
|
|
49
|
-
mulmoFilePath: string;
|
|
50
|
-
mulmoFileDirPath: string;
|
|
51
|
-
baseDirPath: string;
|
|
52
|
-
outDirPath: string;
|
|
53
|
-
imageDirPath: string;
|
|
54
|
-
audioDirPath: string;
|
|
55
|
-
};
|
|
56
48
|
export type MulmoStudioContext = {
|
|
57
|
-
fileDirs:
|
|
49
|
+
fileDirs: FileObject;
|
|
58
50
|
studio: MulmoStudio;
|
|
59
51
|
lang: string;
|
|
60
52
|
force: boolean;
|
|
@@ -113,6 +105,7 @@ export interface FileObject {
|
|
|
113
105
|
outDirPath: string;
|
|
114
106
|
imageDirPath: string;
|
|
115
107
|
audioDirPath: string;
|
|
108
|
+
nodeModuleRootPath?: string;
|
|
116
109
|
isHttpPath: boolean;
|
|
117
110
|
fileOrUrl: string;
|
|
118
111
|
outputStudioFilePath: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ImageProcessorParams } from "../../types/index.js";
|
|
2
|
-
export declare const updateVisionRootDir: (dir: string) => void;
|
|
3
2
|
export declare const imageType = "vision";
|
|
4
3
|
export declare const process: (params: ImageProcessorParams) => Promise<string | undefined>;
|
|
5
4
|
export declare const path: (params: ImageProcessorParams) => string;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { parrotingImagePath } from "./utils.js";
|
|
2
2
|
import { htmlPlugin } from "mulmocast-vision";
|
|
3
|
-
|
|
4
|
-
export const updateVisionRootDir = (dir) => {
|
|
5
|
-
rootDir = dir;
|
|
6
|
-
};
|
|
3
|
+
import { resolve as resolvePath } from "path";
|
|
7
4
|
export const imageType = "vision";
|
|
8
5
|
const toCreateName = (str) => {
|
|
9
6
|
return "create" + str.charAt(0).toUpperCase() + str.slice(1);
|
|
10
7
|
};
|
|
11
8
|
const processVision = async (params) => {
|
|
12
|
-
const { beat, imagePath } = params;
|
|
9
|
+
const { beat, imagePath, context } = params;
|
|
10
|
+
const rootDir = context.fileDirs.nodeModuleRootPath ? resolvePath(context.fileDirs.nodeModuleRootPath, "mulmocast-vision") : undefined;
|
|
13
11
|
if (!beat?.image || beat.image.type !== imageType)
|
|
14
12
|
return;
|
|
15
13
|
const handler = new htmlPlugin({ rootDir });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mulmocast",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.node.js",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
},
|
|
66
66
|
"homepage": "https://github.com/receptron/mulmocast-cli#readme",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@google-cloud/text-to-speech": "^6.
|
|
69
|
-
"@google/genai": "^1.
|
|
68
|
+
"@google-cloud/text-to-speech": "^6.3.0",
|
|
69
|
+
"@google/genai": "^1.16.0",
|
|
70
70
|
"@graphai/anthropic_agent": "^2.0.11",
|
|
71
71
|
"@graphai/browserless_agent": "^2.0.1",
|
|
72
72
|
"@graphai/gemini_agent": "^2.0.1",
|
|
@@ -78,18 +78,18 @@
|
|
|
78
78
|
"@graphai/vanilla_node_agents": "^2.0.4",
|
|
79
79
|
"@inquirer/input": "^4.2.2",
|
|
80
80
|
"@inquirer/select": "^4.3.2",
|
|
81
|
-
"@modelcontextprotocol/sdk": "^1.17.
|
|
81
|
+
"@modelcontextprotocol/sdk": "^1.17.5",
|
|
82
82
|
"@mozilla/readability": "^0.6.0",
|
|
83
83
|
"@tavily/core": "^0.5.11",
|
|
84
84
|
"clipboardy": "^4.0.0",
|
|
85
|
-
"dotenv": "^17.2.
|
|
85
|
+
"dotenv": "^17.2.2",
|
|
86
86
|
"fluent-ffmpeg": "^2.1.3",
|
|
87
87
|
"graphai": "^2.0.14",
|
|
88
88
|
"jsdom": "^26.1.0",
|
|
89
|
-
"marked": "^16.2.
|
|
90
|
-
"mulmocast-vision": "^0.0.
|
|
89
|
+
"marked": "^16.2.1",
|
|
90
|
+
"mulmocast-vision": "^0.0.4",
|
|
91
91
|
"ora": "^8.2.0",
|
|
92
|
-
"puppeteer": "^24.
|
|
92
|
+
"puppeteer": "^24.18.0",
|
|
93
93
|
"replicate": "^1.1.0",
|
|
94
94
|
"yaml": "^2.8.1",
|
|
95
95
|
"yargs": "^18.0.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"prettier": "^3.6.2",
|
|
109
109
|
"tsx": "^4.20.5",
|
|
110
110
|
"typescript": "^5.9.2",
|
|
111
|
-
"typescript-eslint": "^8.
|
|
111
|
+
"typescript-eslint": "^8.42.0"
|
|
112
112
|
},
|
|
113
113
|
"engines": {
|
|
114
114
|
"node": ">=18.0.0"
|