@openclaw/vydra-provider 2026.11.10 → 2026.11.12
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
CHANGED
|
@@ -11,3 +11,9 @@ openclaw gateway restart
|
|
|
11
11
|
|
|
12
12
|
Set `VYDRA_API_KEY`, then configure an image, video, or speech model. See
|
|
13
13
|
<https://docs.openclaw.ai/providers/vydra> for capability details and examples.
|
|
14
|
+
|
|
15
|
+
`veo3` accepts text-to-video requests. `kling` motion control requires exactly
|
|
16
|
+
one remote HTTPS character image in `inputImages` and one distinct remote HTTPS
|
|
17
|
+
motion video in `inputVideos`. Image-only, buffered, extra and audio references
|
|
18
|
+
are rejected before submission. The image is never reused as the motion video.
|
|
19
|
+
See the [native Kling input contract](https://www.vydra.ai/docs/models/kling).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"capability-catalog.js","source":"extensions/vydra/capability-catalog.ts"},{"output":"defaults.js","source":"extensions/vydra/defaults.ts"},{"output":"index.js","source":"extensions/vydra/index.ts"},{"output":"shared.js","source":"extensions/vydra/shared.ts"},{"output":"speech-provider.js","source":"extensions/vydra/speech-provider.ts"}],"chunks":[{"output":"capability-catalog.js","sha256":"c0c31bd1d174b72f836efe230fe07dd689d977ac52fdfb8ed0b8cb6aff38cc1d","facadeSource":"extensions/vydra/capability-catalog.ts","sources":["extensions/vydra/capability-catalog.ts"]},{"output":"defaults.js","sha256":"75a8fef3a463172d9403acdddbaa50913febcc4a2d325602950d84dbd2f52f81","facadeSource":"extensions/vydra/defaults.ts","sources":["extensions/vydra/defaults.ts"]},{"output":"index.js","sha256":"
|
|
1
|
+
{"version":3,"entries":[{"output":"capability-catalog.js","source":"extensions/vydra/capability-catalog.ts"},{"output":"defaults.js","source":"extensions/vydra/defaults.ts"},{"output":"index.js","source":"extensions/vydra/index.ts"},{"output":"shared.js","source":"extensions/vydra/shared.ts"},{"output":"speech-provider.js","source":"extensions/vydra/speech-provider.ts"}],"chunks":[{"output":"capability-catalog.js","sha256":"c0c31bd1d174b72f836efe230fe07dd689d977ac52fdfb8ed0b8cb6aff38cc1d","facadeSource":"extensions/vydra/capability-catalog.ts","sources":["extensions/vydra/capability-catalog.ts"]},{"output":"defaults.js","sha256":"75a8fef3a463172d9403acdddbaa50913febcc4a2d325602950d84dbd2f52f81","facadeSource":"extensions/vydra/defaults.ts","sources":["extensions/vydra/defaults.ts"]},{"output":"index.js","sha256":"f8ee801fd7311a3a79fa846a50557dc7c2b664cca4077c816da474558ae38b19","facadeSource":"extensions/vydra/index.ts","sources":["extensions/vydra/index.ts"]},{"output":"shared.js","sha256":"d101a7c39f03d7531f12c2a98af77052e979983f26958d6edd91b2b5b944b248","facadeSource":"extensions/vydra/shared.ts","sources":["extensions/vydra/shared.ts"]},{"output":"speech-provider.js","sha256":"7021031a7db3e4b8906055202c0ea5bddda796f0cfe363201836704f07787a18","facadeSource":"extensions/vydra/speech-provider.ts","sources":["extensions/vydra/speech-provider.ts"]}],"unrenderedSources":[]}
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,12 @@ import { applyAgentDefaultMediaModel } from "openclaw/plugin-sdk/provider-onboar
|
|
|
9
9
|
const PROVIDER_ID = "vydra";
|
|
10
10
|
const VYDRA_KLING_MODEL = "kling";
|
|
11
11
|
const DEFAULT_VYDRA_VIDEO_TIMEOUT_MS = 12e4;
|
|
12
|
+
function requireKlingReferenceUrl(value, kind) {
|
|
13
|
+
const url = value?.trim();
|
|
14
|
+
const parsed = url ? URL.parse(url) : null;
|
|
15
|
+
if (!url || url.length > 2048 || /[\s\\]/.test(url) || !parsed || parsed.protocol !== "https:" || parsed.username || parsed.password || parsed.hash) throw new Error(`Vydra kling requires a remote HTTPS ${kind} URL reference.`);
|
|
16
|
+
return url;
|
|
17
|
+
}
|
|
12
18
|
var vydra_default = definePluginEntry({
|
|
13
19
|
id: PROVIDER_ID,
|
|
14
20
|
name: "Vydra Provider",
|
|
@@ -100,29 +106,39 @@ var vydra_default = definePluginEntry({
|
|
|
100
106
|
label: "Vydra",
|
|
101
107
|
defaultModel: DEFAULT_VYDRA_VIDEO_MODEL,
|
|
102
108
|
models: [DEFAULT_VYDRA_VIDEO_MODEL, VYDRA_KLING_MODEL],
|
|
109
|
+
catalogByModel: {
|
|
110
|
+
[DEFAULT_VYDRA_VIDEO_MODEL]: { modes: ["generate"] },
|
|
111
|
+
[VYDRA_KLING_MODEL]: { modes: ["videoToVideo"] }
|
|
112
|
+
},
|
|
103
113
|
isConfiguredAsync: (ctx) => isProviderApiKeyConfiguredAsync({
|
|
104
114
|
provider: "vydra",
|
|
105
115
|
...ctx
|
|
106
116
|
}),
|
|
107
117
|
capabilities: {
|
|
108
118
|
generate: { maxVideos: 1 },
|
|
109
|
-
imageToVideo: {
|
|
119
|
+
imageToVideo: { enabled: false },
|
|
120
|
+
videoToVideo: {
|
|
110
121
|
enabled: true,
|
|
111
122
|
maxVideos: 1,
|
|
112
|
-
maxInputImages:
|
|
113
|
-
|
|
114
|
-
|
|
123
|
+
maxInputImages: 0,
|
|
124
|
+
maxInputImagesByModel: { [VYDRA_KLING_MODEL]: 1 },
|
|
125
|
+
maxInputVideos: 0,
|
|
126
|
+
maxInputVideosByModel: { [VYDRA_KLING_MODEL]: 1 }
|
|
127
|
+
}
|
|
115
128
|
},
|
|
116
129
|
async generateVideo(req) {
|
|
117
|
-
if ((req.
|
|
130
|
+
if ((req.inputAudios?.length ?? 0) > 0) throw new Error("Vydra video generation does not support audio reference inputs.");
|
|
118
131
|
const model = req.model?.trim() || "veo3";
|
|
119
132
|
const body = { prompt: req.prompt };
|
|
120
133
|
if (model === VYDRA_KLING_MODEL) {
|
|
121
|
-
|
|
122
|
-
|
|
134
|
+
if (req.inputImages?.length !== 1 || req.inputVideos?.length !== 1) throw new Error("Vydra kling requires exactly one image and one motion video reference.");
|
|
135
|
+
const imageUrl = requireKlingReferenceUrl(req.inputImages[0]?.url, "image");
|
|
136
|
+
const videoUrl = requireKlingReferenceUrl(req.inputVideos[0]?.url, "video");
|
|
137
|
+
if (new URL(imageUrl).href === new URL(videoUrl).href) throw new Error("Vydra kling requires distinct image and motion video URL references.");
|
|
123
138
|
body.image_url = imageUrl;
|
|
124
|
-
body.video_url =
|
|
125
|
-
} else if ((req.
|
|
139
|
+
body.video_url = videoUrl;
|
|
140
|
+
} else if ((req.inputVideos?.length ?? 0) > 0) throw new Error(`Vydra ${model} does not support video reference inputs in the Vydra plugin.`);
|
|
141
|
+
else if ((req.inputImages?.length ?? 0) > 0) throw new Error(`Vydra ${model} does not support image reference inputs in the Vydra plugin.`);
|
|
126
142
|
const generated = await runVydraGeneration({
|
|
127
143
|
cfg: req.cfg,
|
|
128
144
|
agentDir: req.agentDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/vydra-provider",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.12",
|
|
4
4
|
"description": "OpenClaw Vydra media provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.11.
|
|
21
|
+
"pluginApi": ">=2026.11.12"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.11.
|
|
24
|
+
"openclawVersion": "2026.11.12",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.11.
|
|
43
|
+
"openclaw": ">=2026.11.12"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|