@openclaw/vydra-provider 2026.11.11 → 2026.11.13

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":"85528e5c1458586abd6bf678dfb222a8938728eab5a151b6e7dbfe8fe327c514","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":[]}
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":"82580d332c81077de9280e63b3eb6fb579959f28b51546d0ebf64207bf72d1fb","facadeSource":"extensions/vydra/index.ts","sources":["extensions/vydra/index.ts"]},{"output":"shared.js","sha256":"1cc703c9c32b5754b271fb9b2d274ea13ab98cfff5fbd68a746d3faf96753950","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",
@@ -82,6 +88,7 @@ var vydra_default = definePluginEntry({
82
88
  model: "text-to-image"
83
89
  },
84
90
  timeoutMs: req.timeoutMs,
91
+ signal: req.signal,
85
92
  ssrfPolicy: req.ssrfPolicy
86
93
  });
87
94
  return {
@@ -100,29 +107,39 @@ var vydra_default = definePluginEntry({
100
107
  label: "Vydra",
101
108
  defaultModel: DEFAULT_VYDRA_VIDEO_MODEL,
102
109
  models: [DEFAULT_VYDRA_VIDEO_MODEL, VYDRA_KLING_MODEL],
110
+ catalogByModel: {
111
+ [DEFAULT_VYDRA_VIDEO_MODEL]: { modes: ["generate"] },
112
+ [VYDRA_KLING_MODEL]: { modes: ["videoToVideo"] }
113
+ },
103
114
  isConfiguredAsync: (ctx) => isProviderApiKeyConfiguredAsync({
104
115
  provider: "vydra",
105
116
  ...ctx
106
117
  }),
107
118
  capabilities: {
108
119
  generate: { maxVideos: 1 },
109
- imageToVideo: {
120
+ imageToVideo: { enabled: false },
121
+ videoToVideo: {
110
122
  enabled: true,
111
123
  maxVideos: 1,
112
- maxInputImages: 1
113
- },
114
- videoToVideo: { enabled: false }
124
+ maxInputImages: 0,
125
+ maxInputImagesByModel: { [VYDRA_KLING_MODEL]: 1 },
126
+ maxInputVideos: 0,
127
+ maxInputVideosByModel: { [VYDRA_KLING_MODEL]: 1 }
128
+ }
115
129
  },
116
130
  async generateVideo(req) {
117
- if ((req.inputVideos?.length ?? 0) > 0) throw new Error("Vydra video generation does not support video reference inputs.");
131
+ if ((req.inputAudios?.length ?? 0) > 0) throw new Error("Vydra video generation does not support audio reference inputs.");
118
132
  const model = req.model?.trim() || "veo3";
119
133
  const body = { prompt: req.prompt };
120
134
  if (model === VYDRA_KLING_MODEL) {
121
- const imageUrl = req.inputImages?.[0]?.url?.trim();
122
- if (!imageUrl) throw new Error("Vydra kling currently requires a remote image URL reference.");
135
+ if (req.inputImages?.length !== 1 || req.inputVideos?.length !== 1) throw new Error("Vydra kling requires exactly one image and one motion video reference.");
136
+ const imageUrl = requireKlingReferenceUrl(req.inputImages[0]?.url, "image");
137
+ const videoUrl = requireKlingReferenceUrl(req.inputVideos[0]?.url, "video");
138
+ if (new URL(imageUrl).href === new URL(videoUrl).href) throw new Error("Vydra kling requires distinct image and motion video URL references.");
123
139
  body.image_url = imageUrl;
124
- body.video_url = imageUrl;
125
- } else if ((req.inputImages?.length ?? 0) > 0) throw new Error(`Vydra ${model} does not support image reference inputs in the Vydra plugin.`);
140
+ body.video_url = videoUrl;
141
+ } else if ((req.inputVideos?.length ?? 0) > 0) throw new Error(`Vydra ${model} does not support video reference inputs in the Vydra plugin.`);
142
+ else if ((req.inputImages?.length ?? 0) > 0) throw new Error(`Vydra ${model} does not support image reference inputs in the Vydra plugin.`);
126
143
  const generated = await runVydraGeneration({
127
144
  cfg: req.cfg,
128
145
  agentDir: req.agentDir,
package/dist/shared.js CHANGED
@@ -84,6 +84,7 @@ async function downloadVydraAsset(params) {
84
84
  } : policy.ssrfPolicy;
85
85
  const result = await fetchWithTimeoutGuarded(params.url, {
86
86
  method: "GET",
87
+ signal: params.signal,
87
88
  ...headers ? { headers } : {}
88
89
  }, resolveTimeoutMs(), fetch, {
89
90
  ...ssrfPolicy ? { ssrfPolicy } : {},
@@ -146,6 +147,7 @@ async function runVydraGeneration(params) {
146
147
  url: `${baseUrl}/models/${params.model}`,
147
148
  headers: requestPolicy.headers,
148
149
  body: params.body,
150
+ signal: params.signal,
149
151
  timeoutMs,
150
152
  fetchFn,
151
153
  allowPrivateNetwork: requestPolicy.allowPrivateNetwork,
@@ -161,6 +163,7 @@ async function runVydraGeneration(params) {
161
163
  if (!jobId) throw new Error(resolveVydraErrorMessage(submitted) ?? `${operationLabel} response missing job id`);
162
164
  completedPayload = await pollProviderOperationJson({
163
165
  url: `${baseUrl}/jobs/${jobId}`,
166
+ signal: params.signal,
164
167
  headers: requestPolicy.headers,
165
168
  deadline: deadline ?? createProviderOperationDeadline({
166
169
  timeoutMs: params.timeoutMs,
@@ -187,6 +190,7 @@ async function runVydraGeneration(params) {
187
190
  if (!resultUrl) throw new Error(`${operationLabel} completed without a ${params.kind} URL`);
188
191
  const asset = await downloadVydraAsset({
189
192
  url: resultUrl,
193
+ signal: params.signal,
190
194
  kind: params.kind,
191
195
  timeoutMs: deadline ? createProviderOperationTimeoutResolver({
192
196
  deadline,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/vydra-provider",
3
- "version": "2026.11.11",
3
+ "version": "2026.11.13",
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.11"
21
+ "pluginApi": ">=2026.11.13"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.11.11",
24
+ "openclawVersion": "2026.11.13",
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.11"
43
+ "openclaw": ">=2026.11.13"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {