@mulmocast/types 0.0.1
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/agent.d.ts +134 -0
- package/lib/agent.d.ts.map +1 -0
- package/lib/agent.js +3 -0
- package/lib/agent.js.map +1 -0
- package/lib/cli_types.d.ts +15 -0
- package/lib/cli_types.d.ts.map +1 -0
- package/lib/cli_types.js +2 -0
- package/lib/cli_types.js.map +1 -0
- package/lib/const.d.ts +16 -0
- package/lib/const.d.ts.map +1 -0
- package/lib/const.js +16 -0
- package/lib/const.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/provider2agent.d.ts +192 -0
- package/lib/provider2agent.d.ts.map +1 -0
- package/lib/provider2agent.js +327 -0
- package/lib/provider2agent.js.map +1 -0
- package/lib/schema.d.ts +3881 -0
- package/lib/schema.d.ts.map +1 -0
- package/lib/schema.js +519 -0
- package/lib/schema.js.map +1 -0
- package/lib/schema_video_filter.d.ts +424 -0
- package/lib/schema_video_filter.d.ts.map +1 -0
- package/lib/schema_video_filter.js +254 -0
- package/lib/schema_video_filter.js.map +1 -0
- package/lib/type.d.ts +159 -0
- package/lib/type.d.ts.map +1 -0
- package/lib/type.js +2 -0
- package/lib/type.js.map +1 -0
- package/package.json +39 -0
package/lib/agent.d.ts
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export type OpenAIImageSize = "1792x1024" | "1024x1792" | "1024x1024" | "1536x1024" | "1024x1536";
|
|
2
|
+
export type OpenAIImageModeration = "low" | "auto";
|
|
3
|
+
export type OpenAIImageQuality = "low" | "medium" | "high" | "auto";
|
|
4
|
+
export type OpenAIImageOptions = {
|
|
5
|
+
model: string;
|
|
6
|
+
prompt: string;
|
|
7
|
+
n: number;
|
|
8
|
+
size: OpenAIImageSize;
|
|
9
|
+
moderation?: OpenAIImageModeration;
|
|
10
|
+
quality?: OpenAIImageQuality;
|
|
11
|
+
background?: "opaque" | "transparent" | "auto";
|
|
12
|
+
};
|
|
13
|
+
export type AgentBufferResult = {
|
|
14
|
+
buffer?: Buffer;
|
|
15
|
+
saved?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AgentPromptInputs = {
|
|
19
|
+
prompt: string;
|
|
20
|
+
};
|
|
21
|
+
export type AgentTextInputs = {
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
export type AgentErrorResult = {
|
|
25
|
+
error: unknown;
|
|
26
|
+
};
|
|
27
|
+
export type AgentConfig = {
|
|
28
|
+
apiKey?: string;
|
|
29
|
+
};
|
|
30
|
+
export type ImageAgentInputs = AgentPromptInputs & {
|
|
31
|
+
referenceImages: string[] | null | undefined;
|
|
32
|
+
};
|
|
33
|
+
export type OpenAIImageAgentInputs = AgentPromptInputs & {
|
|
34
|
+
referenceImages: string[] | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
export type ImageAgentParams = {
|
|
37
|
+
model: string;
|
|
38
|
+
canvasSize: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type OpenAIImageAgentParams = ImageAgentParams & {
|
|
44
|
+
moderation: OpenAIImageModeration | null | undefined;
|
|
45
|
+
quality?: OpenAIImageQuality;
|
|
46
|
+
};
|
|
47
|
+
export type ReplicateImageAgentParams = {
|
|
48
|
+
model: `${string}/${string}` | undefined;
|
|
49
|
+
canvasSize: {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
aspectRatio?: string;
|
|
54
|
+
outputSize?: number;
|
|
55
|
+
steps?: number;
|
|
56
|
+
guidanceScale?: number;
|
|
57
|
+
};
|
|
58
|
+
export type OpenAIImageAgentConfig = {
|
|
59
|
+
baseURL?: string;
|
|
60
|
+
apiKey?: string;
|
|
61
|
+
};
|
|
62
|
+
export type GoogleImageAgentConfig = {
|
|
63
|
+
projectId?: string;
|
|
64
|
+
token?: string;
|
|
65
|
+
};
|
|
66
|
+
export type GenAIImageAgentConfig = {
|
|
67
|
+
apiKey?: string;
|
|
68
|
+
};
|
|
69
|
+
export type ReplicateImageAgentConfig = AgentConfig;
|
|
70
|
+
export type MovieAgentInputs = AgentPromptInputs & {
|
|
71
|
+
imagePath?: string;
|
|
72
|
+
movieFile: string;
|
|
73
|
+
};
|
|
74
|
+
export type GoogleMovieAgentParams = ImageAgentParams & {
|
|
75
|
+
duration?: number;
|
|
76
|
+
};
|
|
77
|
+
export type ReplicateMovieAgentParams = {
|
|
78
|
+
model: `${string}/${string}` | undefined;
|
|
79
|
+
canvasSize: {
|
|
80
|
+
width: number;
|
|
81
|
+
height: number;
|
|
82
|
+
};
|
|
83
|
+
duration?: number;
|
|
84
|
+
};
|
|
85
|
+
export type ReplicateSoundEffectAgentParams = {
|
|
86
|
+
model: `${string}/${string}` | undefined;
|
|
87
|
+
duration?: number;
|
|
88
|
+
};
|
|
89
|
+
export type SoundEffectAgentInputs = AgentPromptInputs & {
|
|
90
|
+
soundEffectFile: string;
|
|
91
|
+
movieFile: string;
|
|
92
|
+
};
|
|
93
|
+
export type ReplicateLipSyncAgentParams = {
|
|
94
|
+
model: `${string}/${string}` | undefined;
|
|
95
|
+
duration?: number;
|
|
96
|
+
};
|
|
97
|
+
export type LipSyncAgentInputs = {
|
|
98
|
+
lipSyncFile: string;
|
|
99
|
+
movieFile: string;
|
|
100
|
+
audioFile: string;
|
|
101
|
+
imageFile: string;
|
|
102
|
+
};
|
|
103
|
+
export type GoogleMovieAgentConfig = GoogleImageAgentConfig;
|
|
104
|
+
export type ReplicateMovieAgentConfig = AgentConfig;
|
|
105
|
+
export type ReplicateSoundEffectAgentConfig = AgentConfig;
|
|
106
|
+
export type ReplicateLipSyncAgentConfig = AgentConfig;
|
|
107
|
+
export type TTSAgentParams = {
|
|
108
|
+
suppressError: boolean;
|
|
109
|
+
voice: string;
|
|
110
|
+
};
|
|
111
|
+
export type OpenAITTSAgentParams = TTSAgentParams & {
|
|
112
|
+
instructions: string;
|
|
113
|
+
model: string;
|
|
114
|
+
speed: number;
|
|
115
|
+
};
|
|
116
|
+
export type NijivoiceTTSAgentParams = TTSAgentParams & {
|
|
117
|
+
speed: number;
|
|
118
|
+
speed_global: number;
|
|
119
|
+
};
|
|
120
|
+
export type KotodamaTTSAgentParams = TTSAgentParams & {
|
|
121
|
+
decoration: string;
|
|
122
|
+
};
|
|
123
|
+
export type GoogleTTSAgentParams = TTSAgentParams & {
|
|
124
|
+
speed: number;
|
|
125
|
+
model: string;
|
|
126
|
+
instructions: string;
|
|
127
|
+
};
|
|
128
|
+
export type ElevenlabsTTSAgentParams = TTSAgentParams & {
|
|
129
|
+
model: string;
|
|
130
|
+
stability: number;
|
|
131
|
+
similarityBoost: number;
|
|
132
|
+
speed: number;
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAClG,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,UAAU,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;CAChD,CAAC;AAEF,M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AC;CACf,CAAC"}
|
package/lib/agent.js
ADDED
package/lib/agent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,kBAAkB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Arguments } from "yargs";
|
|
2
|
+
export type ToolGlobalOptions = {
|
|
3
|
+
v?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type ToolCliArgs<T = object> = Arguments<T & ToolGlobalOptions>;
|
|
6
|
+
export type GlobalOptions = {
|
|
7
|
+
v?: boolean;
|
|
8
|
+
o?: string;
|
|
9
|
+
b?: string;
|
|
10
|
+
l?: string;
|
|
11
|
+
f?: boolean;
|
|
12
|
+
file?: string;
|
|
13
|
+
};
|
|
14
|
+
export type CliArgs<T = object> = Arguments<T & GlobalOptions>;
|
|
15
|
+
//# sourceMappingURL=cli_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli_types.d.ts","sourceRoot":"","sources":["../src/cli_types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,CAAC,EAAE,OAAO,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG;IAC1B,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC"}
|
package/lib/cli_types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli_types.js","sourceRoot":"","sources":["../src/cli_types.ts"],"names":[],"mappings":""}
|
package/lib/const.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const currentMulmoScriptVersion = "1.1";
|
|
2
|
+
export declare const outDirName = "output";
|
|
3
|
+
export declare const audioDirName = "audio";
|
|
4
|
+
export declare const imageDirName = "images";
|
|
5
|
+
export declare const cacheDirName = "cache";
|
|
6
|
+
export declare const pdf_modes: string[];
|
|
7
|
+
export declare const pdf_sizes: string[];
|
|
8
|
+
export declare const languages: string[];
|
|
9
|
+
export declare const storyToScriptGenerateMode: {
|
|
10
|
+
stepWise: string;
|
|
11
|
+
oneStep: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const bundleTargetLang: string[];
|
|
14
|
+
export declare const ASPECT_RATIOS: string[];
|
|
15
|
+
export declare const PRO_ASPECT_RATIOS: string[];
|
|
16
|
+
//# sourceMappingURL=const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC,eAAO,MAAM,SAAS,UAA+B,CAAC;AACtD,eAAO,MAAM,SAAS,UAAmB,CAAC;AAC1C,eAAO,MAAM,SAAS,UAAiF,CAAC;AAExG,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAe,CAAC;AAE7C,eAAO,MAAM,aAAa,UAA0B,CAAC;AACrD,eAAO,MAAM,iBAAiB,UAA4E,CAAC"}
|
package/lib/const.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const currentMulmoScriptVersion = "1.1";
|
|
2
|
+
export const outDirName = "output";
|
|
3
|
+
export const audioDirName = "audio";
|
|
4
|
+
export const imageDirName = "images";
|
|
5
|
+
export const cacheDirName = "cache";
|
|
6
|
+
export const pdf_modes = ["slide", "talk", "handout"];
|
|
7
|
+
export const pdf_sizes = ["letter", "a4"];
|
|
8
|
+
export const languages = ["en", "ja", "fr", "es", "de", "zh-CN", "zh-TW", "ko", "it", "pt", "ar", "hi"];
|
|
9
|
+
export const storyToScriptGenerateMode = {
|
|
10
|
+
stepWise: "step_wise",
|
|
11
|
+
oneStep: "one_step",
|
|
12
|
+
};
|
|
13
|
+
export const bundleTargetLang = ["ja", "en"];
|
|
14
|
+
export const ASPECT_RATIOS = ["1:1", "9:16", "16:9"];
|
|
15
|
+
export const PRO_ASPECT_RATIOS = ["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"];
|
|
16
|
+
//# sourceMappingURL=const.js.map
|
package/lib/const.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.js","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC;AACpC,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export declare const provider2TTSAgent: {
|
|
2
|
+
nijivoice: {
|
|
3
|
+
agentName: string;
|
|
4
|
+
hasLimitedConcurrency: boolean;
|
|
5
|
+
keyName: string;
|
|
6
|
+
};
|
|
7
|
+
openai: {
|
|
8
|
+
agentName: string;
|
|
9
|
+
hasLimitedConcurrency: boolean;
|
|
10
|
+
defaultModel: string;
|
|
11
|
+
defaultVoice: string;
|
|
12
|
+
keyName: string;
|
|
13
|
+
baseURLKeyName: string;
|
|
14
|
+
};
|
|
15
|
+
google: {
|
|
16
|
+
agentName: string;
|
|
17
|
+
hasLimitedConcurrency: boolean;
|
|
18
|
+
keyName: string;
|
|
19
|
+
};
|
|
20
|
+
gemini: {
|
|
21
|
+
agentName: string;
|
|
22
|
+
hasLimitedConcurrency: boolean;
|
|
23
|
+
defaultModel: string;
|
|
24
|
+
defaultVoice: string;
|
|
25
|
+
models: string[];
|
|
26
|
+
keyName: string;
|
|
27
|
+
};
|
|
28
|
+
elevenlabs: {
|
|
29
|
+
agentName: string;
|
|
30
|
+
hasLimitedConcurrency: boolean;
|
|
31
|
+
defaultModel: string;
|
|
32
|
+
models: string[];
|
|
33
|
+
keyName: string;
|
|
34
|
+
};
|
|
35
|
+
kotodama: {
|
|
36
|
+
agentName: string;
|
|
37
|
+
hasLimitedConcurrency: boolean;
|
|
38
|
+
defaultVoice: string;
|
|
39
|
+
defaultDecoration: string;
|
|
40
|
+
keyName: string;
|
|
41
|
+
};
|
|
42
|
+
mock: {
|
|
43
|
+
agentName: string;
|
|
44
|
+
hasLimitedConcurrency: boolean;
|
|
45
|
+
defaultModel: string;
|
|
46
|
+
models: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const gptImages: string[];
|
|
50
|
+
export declare const provider2ImageAgent: {
|
|
51
|
+
openai: {
|
|
52
|
+
agentName: string;
|
|
53
|
+
defaultModel: string;
|
|
54
|
+
models: string[];
|
|
55
|
+
keyName: string;
|
|
56
|
+
baseURLKeyName: string;
|
|
57
|
+
};
|
|
58
|
+
google: {
|
|
59
|
+
agentName: string;
|
|
60
|
+
defaultModel: string;
|
|
61
|
+
models: string[];
|
|
62
|
+
keyName: string;
|
|
63
|
+
};
|
|
64
|
+
replicate: {
|
|
65
|
+
agentName: string;
|
|
66
|
+
defaultModel: string;
|
|
67
|
+
models: string[];
|
|
68
|
+
keyName: string;
|
|
69
|
+
};
|
|
70
|
+
mock: {
|
|
71
|
+
agentName: string;
|
|
72
|
+
defaultModel: string;
|
|
73
|
+
models: string[];
|
|
74
|
+
keyName: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type ReplicateModel = `${string}/${string}`;
|
|
78
|
+
export declare const provider2MovieAgent: {
|
|
79
|
+
replicate: {
|
|
80
|
+
agentName: string;
|
|
81
|
+
defaultModel: ReplicateModel;
|
|
82
|
+
keyName: string;
|
|
83
|
+
models: string[];
|
|
84
|
+
modelParams: Record<ReplicateModel, {
|
|
85
|
+
durations: number[];
|
|
86
|
+
start_image: string | undefined;
|
|
87
|
+
last_image?: string;
|
|
88
|
+
price_per_sec: number;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
google: {
|
|
92
|
+
agentName: string;
|
|
93
|
+
defaultModel: string;
|
|
94
|
+
models: string[];
|
|
95
|
+
keyName: string;
|
|
96
|
+
modelParams: {
|
|
97
|
+
"veo-3.1-generate-preview": {
|
|
98
|
+
durations: number[];
|
|
99
|
+
};
|
|
100
|
+
"veo-3.0-generate-001": {
|
|
101
|
+
durations: number[];
|
|
102
|
+
};
|
|
103
|
+
"veo-2.0-generate-001": {
|
|
104
|
+
durations: number[];
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
mock: {
|
|
109
|
+
agentName: string;
|
|
110
|
+
defaultModel: string;
|
|
111
|
+
models: string[];
|
|
112
|
+
keyName: string;
|
|
113
|
+
modelParams: {};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare const provider2SoundEffectAgent: {
|
|
117
|
+
replicate: {
|
|
118
|
+
agentName: string;
|
|
119
|
+
defaultModel: ReplicateModel;
|
|
120
|
+
keyName: string;
|
|
121
|
+
models: ReplicateModel[];
|
|
122
|
+
modelParams: Record<ReplicateModel, {
|
|
123
|
+
identifier?: `${string}/${string}:${string}`;
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const provider2LipSyncAgent: {
|
|
128
|
+
replicate: {
|
|
129
|
+
agentName: string;
|
|
130
|
+
defaultModel: ReplicateModel;
|
|
131
|
+
keyName: string;
|
|
132
|
+
models: ReplicateModel[];
|
|
133
|
+
modelParams: Record<ReplicateModel, {
|
|
134
|
+
identifier?: `${string}/${string}:${string}` | `${string}/${string}`;
|
|
135
|
+
video?: string;
|
|
136
|
+
audio: string;
|
|
137
|
+
image?: string;
|
|
138
|
+
}>;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export declare const provider2LLMAgent: {
|
|
142
|
+
readonly openai: {
|
|
143
|
+
readonly agentName: "openAIAgent";
|
|
144
|
+
readonly defaultModel: "gpt-5";
|
|
145
|
+
readonly keyName: "OPENAI_API_KEY";
|
|
146
|
+
readonly baseURLKeyName: "OPENAI_BASE_URL";
|
|
147
|
+
readonly max_tokens: 8192;
|
|
148
|
+
readonly models: readonly ["gpt-5", "gpt-5-nano", "gpt-5-mini", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "o3", "o3-mini", "o3-pro", "o1", "o1-pro", "gpt-4o", "gpt-4o-mini"];
|
|
149
|
+
};
|
|
150
|
+
readonly anthropic: {
|
|
151
|
+
readonly agentName: "anthropicAgent";
|
|
152
|
+
readonly defaultModel: "claude-sonnet-4-5-20250929";
|
|
153
|
+
readonly max_tokens: 8192;
|
|
154
|
+
readonly models: readonly ["claude-opus-4-1-20250805", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929", "claude-haiku-4-5-20251001"];
|
|
155
|
+
readonly keyName: "ANTHROPIC_API_KEY";
|
|
156
|
+
readonly apiKeyNameOverride: "ANTHROPIC_API_TOKEN";
|
|
157
|
+
};
|
|
158
|
+
readonly gemini: {
|
|
159
|
+
readonly agentName: "geminiAgent";
|
|
160
|
+
readonly defaultModel: "gemini-2.5-flash";
|
|
161
|
+
readonly max_tokens: 8192;
|
|
162
|
+
readonly models: readonly ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.0-flash"];
|
|
163
|
+
readonly keyName: "GEMINI_API_KEY";
|
|
164
|
+
};
|
|
165
|
+
readonly groq: {
|
|
166
|
+
readonly agentName: "groqAgent";
|
|
167
|
+
readonly defaultModel: "llama-3.1-8b-instant";
|
|
168
|
+
readonly keyName: "GROQ_API_KEY";
|
|
169
|
+
readonly max_tokens: 4096;
|
|
170
|
+
readonly models: readonly ["llama-3.1-8b-instant", "llama-3.3-70b-versatile", "deepseek-r1-distill-llama-70b", "openai/gpt-oss-120b", "openai/gpt-oss-20b"];
|
|
171
|
+
};
|
|
172
|
+
readonly mock: {
|
|
173
|
+
readonly agentName: "mediaMockAgent";
|
|
174
|
+
readonly defaultModel: "mock";
|
|
175
|
+
readonly max_tokens: 4096;
|
|
176
|
+
readonly models: readonly ["mock"];
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export declare const defaultProviders: {
|
|
180
|
+
tts: keyof typeof provider2TTSAgent;
|
|
181
|
+
text2image: keyof typeof provider2ImageAgent;
|
|
182
|
+
text2movie: keyof typeof provider2MovieAgent;
|
|
183
|
+
text2Html: keyof typeof provider2LLMAgent;
|
|
184
|
+
llm: keyof typeof provider2LLMAgent;
|
|
185
|
+
soundEffect: keyof typeof provider2SoundEffectAgent;
|
|
186
|
+
lipSync: keyof typeof provider2LipSyncAgent;
|
|
187
|
+
};
|
|
188
|
+
export declare const llm: (keyof typeof provider2LLMAgent)[];
|
|
189
|
+
export type LLM = keyof typeof provider2LLMAgent;
|
|
190
|
+
export declare const htmlLLMProvider: string[];
|
|
191
|
+
export declare const getModelDuration: (provider: keyof typeof provider2MovieAgent, model: string, movieDuration?: number) => number | undefined;
|
|
192
|
+
//# sourceMappingURL=provider2agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider2agent.d.ts","sourceRoot":"","sources":["../src/provider2agent.ts"],"names":[],"mappings":"AAEA,eAAO,MA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