vidspotai-shared 1.0.100 → 1.0.101-dev.0
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/globals/aiModels/enums.d.ts +1 -0
- package/lib/globals/aiModels/enums.d.ts.map +1 -1
- package/lib/globals/aiModels/enums.js +3 -0
- package/lib/globals/aiModels/extendCapability.d.ts +26 -0
- package/lib/globals/aiModels/extendCapability.d.ts.map +1 -0
- package/lib/globals/aiModels/extendCapability.js +42 -0
- package/lib/globals/aiModels/index.d.ts +1 -0
- package/lib/globals/aiModels/index.d.ts.map +1 -1
- package/lib/globals/aiModels/index.js +1 -0
- package/lib/globals/aiModels/providers/google.d.ts.map +1 -1
- package/lib/globals/aiModels/providers/google.js +6 -9
- package/lib/globals/aiModels/providers/hostedAvatars.js +10 -10
- package/lib/globals/creditUnit.d.ts +20 -33
- package/lib/globals/creditUnit.d.ts.map +1 -1
- package/lib/globals/creditUnit.js +20 -33
- package/lib/globals/types.d.ts +34 -2
- package/lib/globals/types.d.ts.map +1 -1
- package/lib/globals/types.js +37 -0
- package/lib/models/demoVideoProject.model.d.ts +213 -0
- package/lib/models/demoVideoProject.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -0
- package/lib/models/mediaUpload.model.d.ts +25 -0
- package/lib/models/mediaUpload.model.d.ts.map +1 -1
- package/lib/models/productConnection.model.d.ts +57 -0
- package/lib/models/productConnection.model.d.ts.map +1 -0
- package/lib/models/productConnection.model.js +7 -0
- package/lib/models/video.model.d.ts +11 -0
- package/lib/models/video.model.d.ts.map +1 -1
- package/lib/models/videoQaJob.model.d.ts +61 -0
- package/lib/models/videoQaJob.model.d.ts.map +1 -0
- package/lib/models/videoQaJob.model.js +16 -0
- package/lib/schemas/brandKit.schema.d.ts +3 -1
- package/lib/schemas/brandKit.schema.d.ts.map +1 -1
- package/lib/schemas/brandKit.schema.js +9 -0
- package/lib/schemas/brief.schema.d.ts +5 -4
- package/lib/schemas/brief.schema.d.ts.map +1 -1
- package/lib/schemas/brief.schema.js +23 -1
- package/lib/schemas/demoQuestion.schema.d.ts +24 -4
- package/lib/schemas/demoQuestion.schema.d.ts.map +1 -1
- package/lib/schemas/demoQuestion.schema.js +8 -2
- package/lib/schemas/demoSpec.schema.d.ts +40 -6
- package/lib/schemas/demoSpec.schema.d.ts.map +1 -1
- package/lib/schemas/demoSpec.schema.js +46 -1
- package/lib/schemas/project.schema.d.ts +33 -3
- package/lib/schemas/project.schema.d.ts.map +1 -1
- package/lib/schemas/project.schema.js +22 -0
- package/lib/schemas/social.schema.d.ts +1 -1
- package/lib/schemas/videoPlan.schema.d.ts +22 -20
- package/lib/schemas/videoPlan.schema.d.ts.map +1 -1
- package/lib/schemas/videoPlan.schema.js +19 -0
- package/lib/services/agent/editClassifier.d.ts +10 -10
- package/lib/services/agent/eval/types.d.ts +3 -2
- package/lib/services/agent/eval/types.d.ts.map +1 -1
- package/lib/services/agent/executor/core.d.ts.map +1 -1
- package/lib/services/agent/executor/core.js +11 -0
- package/lib/services/agent/planner/Planner.d.ts.map +1 -1
- package/lib/services/agent/planner/Planner.js +5 -0
- package/lib/services/agent/planner/overlayRegen.d.ts.map +1 -1
- package/lib/services/agent/planner/overlayRegen.js +5 -0
- package/lib/services/agent/planner/plannerMessages.d.ts.map +1 -1
- package/lib/services/agent/planner/plannerMessages.js +10 -1
- package/lib/services/agent/planner/scriptFirstPlanner.d.ts.map +1 -1
- package/lib/services/agent/planner/scriptFirstPlanner.js +2 -0
- package/lib/services/agent/regenCore.d.ts.map +1 -1
- package/lib/services/agent/regenCore.js +11 -1
- package/lib/services/agent/runHelpers.d.ts +8 -0
- package/lib/services/agent/runHelpers.d.ts.map +1 -1
- package/lib/services/agent/runHelpers.js +5 -1
- package/lib/services/agent/tools/chapterOutline.tool.d.ts +8 -0
- package/lib/services/agent/tools/chapterOutline.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/chapterOutline.tool.js +21 -8
- package/lib/services/agent/tools/composeScene.tool.d.ts +32 -2
- package/lib/services/agent/tools/composeScene.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/estimateCost.tool.d.ts +11 -1
- package/lib/services/agent/tools/estimateCost.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/extendVideo.tool.d.ts +9 -3
- package/lib/services/agent/tools/extendVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/extendVideo.tool.js +12 -27
- package/lib/services/agent/tools/generateAvatarVideo.tool.d.ts +1 -1
- package/lib/services/agent/tools/generateScript.tool.d.ts +3 -2
- package/lib/services/agent/tools/generateScript.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/generateScript.tool.js +16 -7
- package/lib/services/agent/tools/generateVoiceover.tool.d.ts +1 -1
- package/lib/services/agent/tools/planVideo.tool.d.ts +11 -8
- package/lib/services/agent/tools/planVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/render.tool.d.ts +11 -1
- package/lib/services/agent/tools/render.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/searchStock.tool.d.ts +1 -1
- package/lib/services/agent/tools/searchUserLibrary.tool.d.ts +4 -4
- package/lib/services/aiGen/providers/alibaba/alibaba.d.ts +0 -6
- package/lib/services/aiGen/providers/alibaba/alibaba.d.ts.map +1 -1
- package/lib/services/aiGen/providers/alibaba/alibaba.js +5 -103
- package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/bytedance/bytedance.service.js +1 -9
- package/lib/services/aiGen/providers/google/google.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/google/google.service.js +26 -142
- package/lib/services/aiGen/providers/google/googleErrors.d.ts.map +1 -1
- package/lib/services/aiGen/providers/google/googleErrors.js +7 -17
- package/lib/services/aiGen/providers/kling/kling.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/kling/kling.service.js +22 -3
- package/lib/services/aiGen/providers/kling/klingStatus.d.ts +7 -0
- package/lib/services/aiGen/providers/kling/klingStatus.d.ts.map +1 -1
- package/lib/services/aiGen/providers/kling/klingStatus.js +41 -4
- package/lib/services/aiGen/providers/pixverse/pixverse.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/pixverse/pixverse.service.js +25 -0
- package/lib/services/aiGen/providers/types.d.ts +20 -0
- package/lib/services/aiGen/providers/types.d.ts.map +1 -1
- package/lib/services/avatarGen/avatarProviderFactory.d.ts.map +1 -1
- package/lib/services/avatarGen/avatarProviderFactory.js +3 -0
- package/lib/services/avatarGen/index.d.ts +1 -0
- package/lib/services/avatarGen/index.d.ts.map +1 -1
- package/lib/services/avatarGen/index.js +1 -0
- package/lib/services/avatarGen/providers/synthesiaAvatarProvider.d.ts +53 -0
- package/lib/services/avatarGen/providers/synthesiaAvatarProvider.d.ts.map +1 -0
- package/lib/services/avatarGen/providers/synthesiaAvatarProvider.js +176 -0
- package/lib/services/demo/demoAuthor.d.ts +7 -0
- package/lib/services/demo/demoAuthor.d.ts.map +1 -1
- package/lib/services/demo/demoAuthor.js +2 -0
- package/lib/services/demo/demoAuthorPrompt.d.ts +6 -0
- package/lib/services/demo/demoAuthorPrompt.d.ts.map +1 -1
- package/lib/services/demo/demoAuthorPrompt.js +24 -2
- package/lib/services/demo/demoCaptions.d.ts +69 -0
- package/lib/services/demo/demoCaptions.d.ts.map +1 -0
- package/lib/services/demo/demoCaptions.js +152 -0
- package/lib/services/demo/demoMusic.d.ts +8 -1
- package/lib/services/demo/demoMusic.d.ts.map +1 -1
- package/lib/services/demo/demoMusic.js +32 -16
- package/lib/services/demo/demoScriptPrompt.d.ts +2 -1
- package/lib/services/demo/demoScriptPrompt.d.ts.map +1 -1
- package/lib/services/demo/demoScriptPrompt.js +29 -2
- package/lib/services/demo/demoStockAssets.d.ts +29 -0
- package/lib/services/demo/demoStockAssets.d.ts.map +1 -0
- package/lib/services/demo/demoStockAssets.js +107 -0
- package/lib/services/demo/index.d.ts +3 -0
- package/lib/services/demo/index.d.ts.map +1 -1
- package/lib/services/demo/index.js +3 -0
- package/lib/services/demo/productConnection.service.d.ts +78 -0
- package/lib/services/demo/productConnection.service.d.ts.map +1 -0
- package/lib/services/demo/productConnection.service.js +125 -0
- package/lib/services/editor/planToProject.d.ts.map +1 -1
- package/lib/services/editor/planToProject.helpers.d.ts +1 -0
- package/lib/services/editor/planToProject.helpers.d.ts.map +1 -1
- package/lib/services/editor/planToProject.helpers.js +3 -0
- package/lib/services/editor/planToProject.js +39 -0
- package/lib/services/editor/projectToDesign.js +13 -1
- package/lib/services/firestore.service.d.ts +14 -0
- package/lib/services/firestore.service.d.ts.map +1 -1
- package/lib/services/firestore.service.js +16 -0
- package/lib/services/translation/index.d.ts +1 -0
- package/lib/services/translation/index.d.ts.map +1 -1
- package/lib/services/translation/index.js +8 -1
- package/lib/services/translation/outputLanguage.d.ts +75 -0
- package/lib/services/translation/outputLanguage.d.ts.map +1 -0
- package/lib/services/translation/outputLanguage.js +190 -0
- package/lib/services/translation/translation.service.d.ts +13 -2
- package/lib/services/translation/translation.service.d.ts.map +1 -1
- package/lib/services/translation/translation.service.js +73 -31
- package/lib/services/tts/index.d.ts +1 -0
- package/lib/services/tts/index.d.ts.map +1 -1
- package/lib/services/tts/index.js +1 -0
- package/lib/services/tts/providers/elevenlabs.service.d.ts +7 -0
- package/lib/services/tts/providers/elevenlabs.service.d.ts.map +1 -1
- package/lib/services/tts/providers/elevenlabs.service.js +69 -13
- package/lib/services/tts/types.d.ts +29 -0
- package/lib/services/tts/types.d.ts.map +1 -1
- package/lib/services/tts/wordTimings.d.ts +27 -0
- package/lib/services/tts/wordTimings.d.ts.map +1 -0
- package/lib/services/tts/wordTimings.js +57 -0
- package/lib/utils/billableDuration.d.ts +11 -0
- package/lib/utils/billableDuration.d.ts.map +1 -0
- package/lib/utils/billableDuration.js +91 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +3 -0
- package/lib/utils/mp4Duration.d.ts +38 -0
- package/lib/utils/mp4Duration.d.ts.map +1 -0
- package/lib/utils/mp4Duration.js +164 -0
- package/lib/utils/socialEntitlements.d.ts +51 -0
- package/lib/utils/socialEntitlements.d.ts.map +1 -0
- package/lib/utils/socialEntitlements.js +65 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ const llmCallerRegistry_1 = require("../llmCallerRegistry");
|
|
|
8
8
|
const modelRouter_1 = require("../modelRouter");
|
|
9
9
|
const ttsDuration_1 = require("../ttsDuration");
|
|
10
10
|
const toolRegistry_1 = require("../toolRegistry");
|
|
11
|
+
const outputLanguage_1 = require("../../translation/outputLanguage");
|
|
11
12
|
/**
|
|
12
13
|
* Stream L (L-4) — chapter_outline. Second pass of script-first authoring:
|
|
13
14
|
* segments a full narration script (from generate_script, or user-supplied)
|
|
@@ -31,6 +32,10 @@ const InputSchema = zod_1.z.object({
|
|
|
31
32
|
targetChapterCount: zod_1.z.number().int().min(1).max(30).optional(),
|
|
32
33
|
/** wpm used for per-chapter duration estimates; defaults to TTS calibration. */
|
|
33
34
|
wpm: zod_1.z.number().int().positive().optional(),
|
|
35
|
+
outputLanguage: zod_1.z
|
|
36
|
+
.string()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Language for the chapter titles, e.g. "es". Omit for English. Chapter narration is verbatim from the script, so only titles are affected.'),
|
|
34
39
|
});
|
|
35
40
|
/** The model returns split points + titles; we stamp ids + durations. */
|
|
36
41
|
const LlmOutlineSchema = zod_1.z.object({
|
|
@@ -59,14 +64,21 @@ async function chapterOutlineCore(llm, args) {
|
|
|
59
64
|
const defaultTarget = Math.min(12, Math.max(2, Math.round(wordCount / 120)));
|
|
60
65
|
const target = args.targetChapterCount ?? defaultTarget;
|
|
61
66
|
const system = [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
[
|
|
68
|
+
"You are a video editor structuring a narration script into chapters for a",
|
|
69
|
+
"long-form video. Split the script at NATURAL topic boundaries into coherent",
|
|
70
|
+
"sections, each with a short, specific title. CRITICAL: each chapter's",
|
|
71
|
+
"narration must be the EXACT verbatim text from the script — do not rewrite,",
|
|
72
|
+
"summarize, add, or drop words. The chapters concatenated in order must",
|
|
73
|
+
"reproduce the original script exactly. Open with a hook chapter and close",
|
|
74
|
+
"with a payoff/CTA chapter.",
|
|
75
|
+
].join(" "),
|
|
76
|
+
// Titles only — the verbatim-narration rule above already pins the body
|
|
77
|
+
// text to whatever language the script was written in.
|
|
78
|
+
(0, outputLanguage_1.buildOutputLanguageSection)(args.outputLanguage, "each chapter title"),
|
|
79
|
+
]
|
|
80
|
+
.filter(Boolean)
|
|
81
|
+
.join("\n");
|
|
70
82
|
const user = [
|
|
71
83
|
`Aim for about ${target} chapters (deviate by ±1 only if the topic structure demands it).`,
|
|
72
84
|
"",
|
|
@@ -110,6 +122,7 @@ exports.chapterOutlineTool = {
|
|
|
110
122
|
script: input.script,
|
|
111
123
|
targetChapterCount: input.targetChapterCount,
|
|
112
124
|
wpm: input.wpm,
|
|
125
|
+
outputLanguage: input.outputLanguage,
|
|
113
126
|
}),
|
|
114
127
|
};
|
|
115
128
|
(0, toolRegistry_1.registerTool)(exports.chapterOutlineTool);
|
|
@@ -29,8 +29,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
29
29
|
tracks: z.ZodArray<z.ZodObject<{
|
|
30
30
|
id: z.ZodString;
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
|
-
audio: "audio";
|
|
33
32
|
video: "video";
|
|
33
|
+
audio: "audio";
|
|
34
34
|
text: "text";
|
|
35
35
|
caption: "caption";
|
|
36
36
|
fx: "fx";
|
|
@@ -124,6 +124,16 @@ declare const InputSchema: z.ZodObject<{
|
|
|
124
124
|
saturation: z.ZodDefault<z.ZodNumber>;
|
|
125
125
|
warmth: z.ZodDefault<z.ZodNumber>;
|
|
126
126
|
}, z.core.$strip>>;
|
|
127
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
left: z.ZodNumber;
|
|
129
|
+
top: z.ZodNumber;
|
|
130
|
+
width: z.ZodNumber;
|
|
131
|
+
height: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
cover: "cover";
|
|
135
|
+
contain: "contain";
|
|
136
|
+
}>>;
|
|
127
137
|
id: z.ZodString;
|
|
128
138
|
trackId: z.ZodString;
|
|
129
139
|
display: z.ZodObject<{
|
|
@@ -458,6 +468,16 @@ declare const InputSchema: z.ZodObject<{
|
|
|
458
468
|
saturation: z.ZodDefault<z.ZodNumber>;
|
|
459
469
|
warmth: z.ZodDefault<z.ZodNumber>;
|
|
460
470
|
}, z.core.$strip>>;
|
|
471
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
left: z.ZodNumber;
|
|
473
|
+
top: z.ZodNumber;
|
|
474
|
+
width: z.ZodNumber;
|
|
475
|
+
height: z.ZodNumber;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
478
|
+
cover: "cover";
|
|
479
|
+
contain: "contain";
|
|
480
|
+
}>>;
|
|
461
481
|
id: z.ZodString;
|
|
462
482
|
trackId: z.ZodString;
|
|
463
483
|
display: z.ZodObject<{
|
|
@@ -734,8 +754,8 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
734
754
|
tracks: z.ZodArray<z.ZodObject<{
|
|
735
755
|
id: z.ZodString;
|
|
736
756
|
kind: z.ZodEnum<{
|
|
737
|
-
audio: "audio";
|
|
738
757
|
video: "video";
|
|
758
|
+
audio: "audio";
|
|
739
759
|
text: "text";
|
|
740
760
|
caption: "caption";
|
|
741
761
|
fx: "fx";
|
|
@@ -829,6 +849,16 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
829
849
|
saturation: z.ZodDefault<z.ZodNumber>;
|
|
830
850
|
warmth: z.ZodDefault<z.ZodNumber>;
|
|
831
851
|
}, z.core.$strip>>;
|
|
852
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
853
|
+
left: z.ZodNumber;
|
|
854
|
+
top: z.ZodNumber;
|
|
855
|
+
width: z.ZodNumber;
|
|
856
|
+
height: z.ZodNumber;
|
|
857
|
+
}, z.core.$strip>>;
|
|
858
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
859
|
+
cover: "cover";
|
|
860
|
+
contain: "contain";
|
|
861
|
+
}>>;
|
|
832
862
|
id: z.ZodString;
|
|
833
863
|
trackId: z.ZodString;
|
|
834
864
|
display: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeScene.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/composeScene.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAiC/D,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"composeScene.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/composeScene.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAiC/D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhB,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAC3C,OAAO,WAAW,EAClB,OAAO,YAAY,CA4DpB,CAAC"}
|
|
@@ -29,8 +29,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
29
29
|
tracks: z.ZodArray<z.ZodObject<{
|
|
30
30
|
id: z.ZodString;
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
|
-
audio: "audio";
|
|
33
32
|
video: "video";
|
|
33
|
+
audio: "audio";
|
|
34
34
|
text: "text";
|
|
35
35
|
caption: "caption";
|
|
36
36
|
fx: "fx";
|
|
@@ -124,6 +124,16 @@ declare const InputSchema: z.ZodObject<{
|
|
|
124
124
|
saturation: z.ZodDefault<z.ZodNumber>;
|
|
125
125
|
warmth: z.ZodDefault<z.ZodNumber>;
|
|
126
126
|
}, z.core.$strip>>;
|
|
127
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
left: z.ZodNumber;
|
|
129
|
+
top: z.ZodNumber;
|
|
130
|
+
width: z.ZodNumber;
|
|
131
|
+
height: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
cover: "cover";
|
|
135
|
+
contain: "contain";
|
|
136
|
+
}>>;
|
|
127
137
|
id: z.ZodString;
|
|
128
138
|
trackId: z.ZodString;
|
|
129
139
|
display: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateCost.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/estimateCost.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"estimateCost.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/estimateCost.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;iBAmBhB,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAC3C,OAAO,WAAW,EAClB,OAAO,YAAY,CAgEpB,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { EVideoGenModels } from "../../../globals/aiModels";
|
|
3
3
|
import { ToolDefinition } from "../toolRegistry";
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* AG-2: the extend-capable model list moved to
|
|
6
|
+
* `globals/aiModels/extendCapability.ts` so the HTTP request schema can consult
|
|
7
|
+
* it too — it previously lived here, which meant only the agent enforced it and
|
|
8
|
+
* `POST /v1/video/generate` accepted `endpoint:"extend"` for ANY model.
|
|
9
|
+
* Re-exported so `extendChain.ts` and `planner/validators.ts` keep importing
|
|
10
|
+
* `modelSupportsExtend` from this module unchanged.
|
|
11
|
+
*/
|
|
12
|
+
export { EXTEND_CAPABLE_MODELS, modelSupportsExtend } from "../../../globals/aiModels/extendCapability";
|
|
6
13
|
declare const InputSchema: z.ZodObject<{
|
|
7
14
|
previousTaskId: z.ZodString;
|
|
8
15
|
modelKey: z.ZodEnum<typeof EVideoGenModels>;
|
|
@@ -22,5 +29,4 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
22
29
|
modelKeyUsed: z.ZodOptional<z.ZodString>;
|
|
23
30
|
}, z.core.$strip>;
|
|
24
31
|
export declare const extendVideoTool: ToolDefinition<typeof InputSchema, typeof OutputSchema>;
|
|
25
|
-
export {};
|
|
26
32
|
//# sourceMappingURL=extendVideo.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extendVideo.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/extendVideo.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAI5D,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"extendVideo.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/extendVideo.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAI5D,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;;;;;GAOG;AACH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGxG,QAAA,MAAM,WAAW;;;;;;;;;;;iBAsCf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;iBAMhB,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,cAAc,CAC1C,OAAO,WAAW,EAClB,OAAO,YAAY,CA6EpB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extendVideoTool = void 0;
|
|
4
|
-
exports.modelSupportsExtend = modelSupportsExtend;
|
|
3
|
+
exports.extendVideoTool = exports.modelSupportsExtend = exports.EXTEND_CAPABLE_MODELS = void 0;
|
|
5
4
|
const zod_1 = require("zod");
|
|
6
5
|
const aiModels_1 = require("../../../globals/aiModels");
|
|
7
6
|
const logger_1 = require("../../../utils/logger");
|
|
@@ -9,31 +8,17 @@ const aiGenFactory_service_1 = require("../../aiGen/aiGenFactory.service");
|
|
|
9
8
|
const rateLimiter_1 = require("../../rateLimiter");
|
|
10
9
|
const toolRegistry_1 = require("../toolRegistry");
|
|
11
10
|
/**
|
|
12
|
-
* AG-2:
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Kling variants (avatar, omni-video, motion-control, lip-sync) are excluded —
|
|
19
|
-
* the generic video-extend endpoint does not accept their tasks.
|
|
11
|
+
* AG-2: the extend-capable model list moved to
|
|
12
|
+
* `globals/aiModels/extendCapability.ts` so the HTTP request schema can consult
|
|
13
|
+
* it too — it previously lived here, which meant only the agent enforced it and
|
|
14
|
+
* `POST /v1/video/generate` accepted `endpoint:"extend"` for ANY model.
|
|
15
|
+
* Re-exported so `extendChain.ts` and `planner/validators.ts` keep importing
|
|
16
|
+
* `modelSupportsExtend` from this module unchanged.
|
|
20
17
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
aiModels_1.EVideoGenModels.KLING_V2_5_TURBO,
|
|
26
|
-
aiModels_1.EVideoGenModels.KLING_V2_6,
|
|
27
|
-
aiModels_1.EVideoGenModels.KLING_V3_0,
|
|
28
|
-
aiModels_1.EVideoGenModels.PIXVERSE_V5,
|
|
29
|
-
aiModels_1.EVideoGenModels.PIXVERSE_V5_5,
|
|
30
|
-
aiModels_1.EVideoGenModels.PIXVERSE_V5_6,
|
|
31
|
-
aiModels_1.EVideoGenModels.PIXVERSE_V6,
|
|
32
|
-
]);
|
|
33
|
-
/** Whether a model key can be extended via its provider's extend endpoint. */
|
|
34
|
-
function modelSupportsExtend(modelKey) {
|
|
35
|
-
return EXTEND_CAPABLE_MODELS.has(modelKey);
|
|
36
|
-
}
|
|
18
|
+
var extendCapability_1 = require("../../../globals/aiModels/extendCapability");
|
|
19
|
+
Object.defineProperty(exports, "EXTEND_CAPABLE_MODELS", { enumerable: true, get: function () { return extendCapability_1.EXTEND_CAPABLE_MODELS; } });
|
|
20
|
+
Object.defineProperty(exports, "modelSupportsExtend", { enumerable: true, get: function () { return extendCapability_1.modelSupportsExtend; } });
|
|
21
|
+
const extendCapability_2 = require("../../../globals/aiModels/extendCapability");
|
|
37
22
|
const InputSchema = zod_1.z.object({
|
|
38
23
|
previousTaskId: zod_1.z
|
|
39
24
|
.string()
|
|
@@ -98,7 +83,7 @@ exports.extendVideoTool = {
|
|
|
98
83
|
return Math.ceil(input.extraDurationSec * (isPremium ? 12 : 4));
|
|
99
84
|
},
|
|
100
85
|
handler: async (input) => {
|
|
101
|
-
if (!modelSupportsExtend(input.modelKey)) {
|
|
86
|
+
if (!(0, extendCapability_2.modelSupportsExtend)(input.modelKey)) {
|
|
102
87
|
throw new Error(`extend_video: model "${input.modelKey}" has no extension endpoint. ` +
|
|
103
88
|
"Extend-capable: Kling (v2-master/v2.1/v2.1-master/v2.5-turbo/v2.6/v3.0), " +
|
|
104
89
|
"Pixverse (v5/v5.5/v5.6/v6).");
|
|
@@ -29,8 +29,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
29
29
|
voiceId: z.ZodOptional<z.ZodString>;
|
|
30
30
|
languageCode: z.ZodOptional<z.ZodString>;
|
|
31
31
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
32
|
-
pro: "pro";
|
|
33
32
|
std: "std";
|
|
33
|
+
pro: "pro";
|
|
34
34
|
}>>;
|
|
35
35
|
prompt: z.ZodOptional<z.ZodString>;
|
|
36
36
|
}, z.core.$strip>;
|
|
@@ -60,8 +60,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
60
60
|
"voiceover-only": "voiceover-only";
|
|
61
61
|
}>>;
|
|
62
62
|
pacing: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
medium: "medium";
|
|
64
63
|
fast: "fast";
|
|
64
|
+
medium: "medium";
|
|
65
65
|
slow: "slow";
|
|
66
66
|
"very-fast": "very-fast";
|
|
67
67
|
}>>;
|
|
@@ -80,6 +80,7 @@ declare const InputSchema: z.ZodObject<{
|
|
|
80
80
|
L2: "L2";
|
|
81
81
|
L3: "L3";
|
|
82
82
|
}>>;
|
|
83
|
+
outputLanguage: z.ZodOptional<z.ZodString>;
|
|
83
84
|
voice: z.ZodOptional<z.ZodObject<{
|
|
84
85
|
gender: z.ZodOptional<z.ZodEnum<{
|
|
85
86
|
male: "male";
|
|
@@ -94,7 +95,7 @@ declare const InputSchema: z.ZodObject<{
|
|
|
94
95
|
senior: "senior";
|
|
95
96
|
}>>;
|
|
96
97
|
accent: z.ZodOptional<z.ZodString>;
|
|
97
|
-
language: z.
|
|
98
|
+
language: z.ZodOptional<z.ZodString>;
|
|
98
99
|
voiceId: z.ZodOptional<z.ZodString>;
|
|
99
100
|
style: z.ZodOptional<z.ZodEnum<{
|
|
100
101
|
energetic: "energetic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateScript.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/generateScript.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAoB,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAgB,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"generateScript.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/generateScript.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAoB,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAgB,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAG/D;;;;;;;;;;;;;;;GAeG;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUf,CAAC;AAeH,QAAA,MAAM,YAAY;;;;;;;;iBAGhB,CAAC;AAEH;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,UAAU,EACjB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoEtD;AAED,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAC7C,OAAO,WAAW,EAClB,OAAO,YAAY,CAcpB,CAAC"}
|
|
@@ -9,6 +9,7 @@ const llmCallerRegistry_1 = require("../llmCallerRegistry");
|
|
|
9
9
|
const modelRouter_1 = require("../modelRouter");
|
|
10
10
|
const ttsDuration_1 = require("../ttsDuration");
|
|
11
11
|
const toolRegistry_1 = require("../toolRegistry");
|
|
12
|
+
const outputLanguage_1 = require("../../translation/outputLanguage");
|
|
12
13
|
/**
|
|
13
14
|
* Stream L (L-4) — generate_script. Script-first authoring for long-form (L1+):
|
|
14
15
|
* the FIRST pass of L-3's two-pass flow. Produces the full spoken narration for
|
|
@@ -61,13 +62,21 @@ async function generateScriptCore(llm, brief, wpmOverride) {
|
|
|
61
62
|
const durationSec = brief.durationSec ?? 300;
|
|
62
63
|
const targetWords = Math.max(80, Math.round((durationSec / 60) * wpm));
|
|
63
64
|
const system = [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
[
|
|
66
|
+
"You are a senior long-form video scriptwriter (YouTube essays, explainers,",
|
|
67
|
+
"documentaries). Write spoken narration that one narrator reads start to",
|
|
68
|
+
"finish: a strong hook, a clear through-line, signposted transitions between",
|
|
69
|
+
"ideas, and a payoff/CTA at the end. Use natural spoken rhythm and normal",
|
|
70
|
+
"punctuation. Do NOT write scene directions, shot lists, headings, or",
|
|
71
|
+
"bracketed visual notes — ONLY the words spoken aloud.",
|
|
72
|
+
].join(" "),
|
|
73
|
+
// "" on English. The word-count budget below is language-agnostic — it's
|
|
74
|
+
// computed from wpm, and the ±15% band absorbs the density differences
|
|
75
|
+
// between languages well enough that no per-language wpm table is needed.
|
|
76
|
+
(0, outputLanguage_1.buildOutputLanguageSection)(brief.outputLanguage, "the narration and the suggested title"),
|
|
77
|
+
]
|
|
78
|
+
.filter(Boolean)
|
|
79
|
+
.join("\n");
|
|
71
80
|
const user = [
|
|
72
81
|
`Topic / request: ${brief.rawPrompt}`,
|
|
73
82
|
brief.goal ? `Goal: ${brief.goal}` : "",
|
|
@@ -27,9 +27,9 @@ declare const InputSchema: z.ZodObject<{
|
|
|
27
27
|
previousRequestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
28
|
nextRequestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
29
|
applyTextNormalization: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
auto: "auto";
|
|
30
31
|
on: "on";
|
|
31
32
|
off: "off";
|
|
32
|
-
auto: "auto";
|
|
33
33
|
}>>;
|
|
34
34
|
applyLanguageTextNormalization: z.ZodOptional<z.ZodBoolean>;
|
|
35
35
|
optimizeStreamingLatency: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
@@ -43,8 +43,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
43
43
|
"voiceover-only": "voiceover-only";
|
|
44
44
|
}>>;
|
|
45
45
|
pacing: z.ZodOptional<z.ZodEnum<{
|
|
46
|
-
medium: "medium";
|
|
47
46
|
fast: "fast";
|
|
47
|
+
medium: "medium";
|
|
48
48
|
slow: "slow";
|
|
49
49
|
"very-fast": "very-fast";
|
|
50
50
|
}>>;
|
|
@@ -63,6 +63,7 @@ declare const InputSchema: z.ZodObject<{
|
|
|
63
63
|
L2: "L2";
|
|
64
64
|
L3: "L3";
|
|
65
65
|
}>>;
|
|
66
|
+
outputLanguage: z.ZodOptional<z.ZodString>;
|
|
66
67
|
voice: z.ZodOptional<z.ZodObject<{
|
|
67
68
|
gender: z.ZodOptional<z.ZodEnum<{
|
|
68
69
|
male: "male";
|
|
@@ -77,7 +78,7 @@ declare const InputSchema: z.ZodObject<{
|
|
|
77
78
|
senior: "senior";
|
|
78
79
|
}>>;
|
|
79
80
|
accent: z.ZodOptional<z.ZodString>;
|
|
80
|
-
language: z.
|
|
81
|
+
language: z.ZodOptional<z.ZodString>;
|
|
81
82
|
voiceId: z.ZodOptional<z.ZodString>;
|
|
82
83
|
style: z.ZodOptional<z.ZodEnum<{
|
|
83
84
|
energetic: "energetic";
|
|
@@ -213,8 +214,8 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
213
214
|
overlays: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
215
|
text: z.ZodString;
|
|
215
216
|
role: z.ZodEnum<{
|
|
216
|
-
body: "body";
|
|
217
217
|
watermark: "watermark";
|
|
218
|
+
body: "body";
|
|
218
219
|
cta: "cta";
|
|
219
220
|
headline: "headline";
|
|
220
221
|
subheadline: "subheadline";
|
|
@@ -222,8 +223,8 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
222
223
|
label: "label";
|
|
223
224
|
}>;
|
|
224
225
|
position: z.ZodOptional<z.ZodEnum<{
|
|
225
|
-
center: "center";
|
|
226
226
|
top: "top";
|
|
227
|
+
center: "center";
|
|
227
228
|
"top-left": "top-left";
|
|
228
229
|
"top-right": "top-right";
|
|
229
230
|
"top-banner": "top-banner";
|
|
@@ -242,10 +243,10 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
242
243
|
fontSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
|
|
243
244
|
sizePct: z.ZodOptional<z.ZodNumber>;
|
|
244
245
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
245
|
-
regular: "regular";
|
|
246
246
|
bold: "bold";
|
|
247
|
-
black: "black";
|
|
248
247
|
medium: "medium";
|
|
248
|
+
regular: "regular";
|
|
249
|
+
black: "black";
|
|
249
250
|
}>>;
|
|
250
251
|
color: z.ZodOptional<z.ZodString>;
|
|
251
252
|
bgColor: z.ZodOptional<z.ZodString>;
|
|
@@ -257,8 +258,8 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
257
258
|
outline: "outline";
|
|
258
259
|
}>>;
|
|
259
260
|
animation: z.ZodOptional<z.ZodEnum<{
|
|
260
|
-
type: "type";
|
|
261
261
|
pop: "pop";
|
|
262
|
+
type: "type";
|
|
262
263
|
none: "none";
|
|
263
264
|
fade: "fade";
|
|
264
265
|
"slide-up": "slide-up";
|
|
@@ -318,8 +319,8 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
318
319
|
broll: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
320
|
assetUrl: z.ZodString;
|
|
320
321
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
321
|
-
image: "image";
|
|
322
322
|
video: "video";
|
|
323
|
+
image: "image";
|
|
323
324
|
}>>;
|
|
324
325
|
startMs: z.ZodDefault<z.ZodNumber>;
|
|
325
326
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -355,7 +356,9 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
355
356
|
}, z.core.$strip>>;
|
|
356
357
|
voiceId: z.ZodOptional<z.ZodString>;
|
|
357
358
|
voiceStyle: z.ZodOptional<z.ZodString>;
|
|
359
|
+
outputLanguage: z.ZodOptional<z.ZodString>;
|
|
358
360
|
notes: z.ZodOptional<z.ZodString>;
|
|
361
|
+
brandLogoUrl: z.ZodOptional<z.ZodString>;
|
|
359
362
|
captionStyle: z.ZodOptional<z.ZodObject<{
|
|
360
363
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
361
364
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planVideo.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/planVideo.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAExD;AAED,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"planVideo.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/planVideo.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAExD;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhB,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,cAAc,CACxC,OAAO,WAAW,EAClB,OAAO,YAAY,CAuBpB,CAAC"}
|
|
@@ -44,8 +44,8 @@ declare const InputSchema: z.ZodObject<{
|
|
|
44
44
|
tracks: z.ZodArray<z.ZodObject<{
|
|
45
45
|
id: z.ZodString;
|
|
46
46
|
kind: z.ZodEnum<{
|
|
47
|
-
audio: "audio";
|
|
48
47
|
video: "video";
|
|
48
|
+
audio: "audio";
|
|
49
49
|
text: "text";
|
|
50
50
|
caption: "caption";
|
|
51
51
|
fx: "fx";
|
|
@@ -139,6 +139,16 @@ declare const InputSchema: z.ZodObject<{
|
|
|
139
139
|
saturation: z.ZodDefault<z.ZodNumber>;
|
|
140
140
|
warmth: z.ZodDefault<z.ZodNumber>;
|
|
141
141
|
}, z.core.$strip>>;
|
|
142
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
left: z.ZodNumber;
|
|
144
|
+
top: z.ZodNumber;
|
|
145
|
+
width: z.ZodNumber;
|
|
146
|
+
height: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
cover: "cover";
|
|
150
|
+
contain: "contain";
|
|
151
|
+
}>>;
|
|
142
152
|
id: z.ZodString;
|
|
143
153
|
trackId: z.ZodString;
|
|
144
154
|
display: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/render.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CAC3C,KAAK,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAGvC,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,eAAe,GAAG,IAAI,CAE5D;AAED,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"render.tool.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/tools/render.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CAC3C,KAAK,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAGvC,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,eAAe,GAAG,IAAI,CAE5D;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQf,CAAC;AAEH,QAAA,MAAM,YAAY;;;iBAGhB,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,cAAc,CACrC,OAAO,WAAW,EAClB,OAAO,YAAY,CA2BpB,CAAC"}
|
|
@@ -5,8 +5,8 @@ export declare function _clearStockDedupForTesting(): void;
|
|
|
5
5
|
declare const InputSchema: z.ZodObject<{
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
kind: z.ZodEnum<{
|
|
8
|
-
image: "image";
|
|
9
8
|
video: "video";
|
|
9
|
+
image: "image";
|
|
10
10
|
}>;
|
|
11
11
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
12
12
|
"9:16": "9:16";
|
|
@@ -28,9 +28,9 @@ export declare function setUserLibrarySearch(fn: UserLibrarySearchFn): void;
|
|
|
28
28
|
declare const InputSchema: z.ZodObject<{
|
|
29
29
|
query: z.ZodString;
|
|
30
30
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
31
|
-
audio: "audio";
|
|
32
|
-
image: "image";
|
|
33
31
|
video: "video";
|
|
32
|
+
image: "image";
|
|
33
|
+
audio: "audio";
|
|
34
34
|
"stock-video": "stock-video";
|
|
35
35
|
"stock-image": "stock-image";
|
|
36
36
|
}>>;
|
|
@@ -40,9 +40,9 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
40
40
|
assets: z.ZodArray<z.ZodObject<{
|
|
41
41
|
id: z.ZodString;
|
|
42
42
|
kind: z.ZodEnum<{
|
|
43
|
-
audio: "audio";
|
|
44
|
-
image: "image";
|
|
45
43
|
video: "video";
|
|
44
|
+
image: "image";
|
|
45
|
+
audio: "audio";
|
|
46
46
|
"stock-video": "stock-video";
|
|
47
47
|
"stock-image": "stock-image";
|
|
48
48
|
}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { BaseAiGenProviderService } from "../baseAiGenProvider.service";
|
|
2
2
|
import { CreditUsageParams, ImageGenerationParams, ImageGenerationResult, VideoGenerationParams, VideoGenerationResult, VideoStatusParams, VideoStatusResult } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Map a canonical "W:H" aspect ratio to a DashScope pixel `size` string.
|
|
5
|
-
* Returns undefined for unparseable input so the caller simply omits `size`
|
|
6
|
-
* and lets DashScope apply its own default (better than sending a bad value).
|
|
7
|
-
*/
|
|
8
|
-
export declare function resolveDashScopeSize(modelId: string, aspectRatio: string): string | undefined;
|
|
9
3
|
export declare class AlibabaService extends BaseAiGenProviderService {
|
|
10
4
|
private readonly baseUrl;
|
|
11
5
|
private readonly timeout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alibaba.d.ts","sourceRoot":"","sources":["../../../../../src/services/aiGen/providers/alibaba/alibaba.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"alibaba.d.ts","sourceRoot":"","sources":["../../../../../src/services/aiGen/providers/alibaba/alibaba.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AA2DlB,qBAAa,cAAe,SAAQ,wBAAwB;IAE1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;;IAiBjC;;;;OAIG;YACW,OAAO;IAwBf,aAAa,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;IAiE3B,gBAAgB,CAAC,EACrB,IAAI,EACJ,cAAc,EACd,cAAyB,EACzB,QAAQ,GACT,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA0EjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,aAAa,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;IA4EjC;;;OAGG;YACW,iBAAiB;IAuC/B;;;OAGG;YACW,kBAAkB;IAuDhC,aAAa,CAAC,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,QAAQ,EACR,SAAiB,EACjB,SAAa,EACb,WAAW,GACZ,EAAE,iBAAiB,GAAG,MAAM;CAoB9B"}
|