openclaw/scripts/lib
xieyongliang 4cb8dde894
feat: add video generation core infrastructure and extend image generation parameters (#53681)
* feat: add video generation core infrastructure and extend image generation parameters

Add full video generation capability to OpenClaw core:

- New `video_generate` agent tool with support for prompt, duration, aspect ratio,
  resolution, seed, watermark, I2V (first/last frame), camerafixed, and draft mode
- New `VideoGenerationProvider` plugin SDK type and `registerVideoGenerationProvider` API
- New `src/video-generation/` module (types, runtime with fallback, provider registry)
- New `openclaw/plugin-sdk/video-generation` export for external plugins
- 200MB max file size for generated videos (vs default 5MB for images)

Extend image generation with additional parameters:
- `seed`, `watermark`, `guidanceScale`, `optimizePrompt`, `providerOptions`
- New `readBooleanParam()` helper in tool common utilities

Update plugin registry, contracts, and all test mocks to include
`videoGenerationProviders` and `videoGenerationProviderIds`.

Made-with: Cursor

* fix: validate aspect ratio against target provider when model override is set

* cleanup: remove redundant ?? undefined from video/image generate tools

* chore: regenerate plugin SDK API baseline after video generation additions

---------

Co-authored-by: yongliang.xie <yongliang.xie@bytedance.com>
2026-03-25 18:45:06 -07:00
..
arg-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
bundled-extension-manifest.ts fix(plugins): enforce minimum host versions for installable plugins (#52094) 2026-03-22 09:12:08 -07:00
bundled-plugin-build-entries.d.mts fix(release): preserve shipped channel surfaces in npm tar (#52913) 2026-03-23 17:39:22 +02:00
bundled-plugin-build-entries.d.ts fix(release): preserve shipped channel surfaces in npm tar (#52913) 2026-03-23 17:39:22 +02:00
bundled-plugin-build-entries.mjs fix: ship bundled plugin runtime sidecars 2026-03-23 17:38:08 -07:00
bundled-plugin-source-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
callsite-guard.mjs
format-generated-module.mjs test: stabilize low-profile parallel gate 2026-03-24 18:40:46 +00:00
generated-output-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
guard-inventory-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
live-docker-auth.sh test: trim docker live auth mounts 2026-03-23 06:31:41 +00:00
optional-bundled-clusters.d.mts fix(release): ship bundled plugins in pack artifacts 2026-03-23 08:22:00 -07:00
optional-bundled-clusters.d.ts fix(release): ship bundled plugins in pack artifacts 2026-03-23 08:22:00 -07:00
optional-bundled-clusters.mjs fix(release): preserve shipped channel surfaces in npm tar (#52913) 2026-03-23 17:39:22 +02:00
pairing-guard-context.mjs
plugin-npm-release.ts fix: ship bundled plugin runtime sidecars 2026-03-23 17:38:08 -07:00
plugin-sdk-doc-metadata.ts Docs: prototype generated plugin SDK reference (#51877) 2026-03-22 09:19:00 -07:00
plugin-sdk-entries.d.mts fix: restore ci type checks 2026-03-16 02:23:44 +00:00
plugin-sdk-entries.mjs feat: add nostr setup and unify channel setup discovery 2026-03-15 19:58:22 -07:00
plugin-sdk-entrypoints.json feat: add video generation core infrastructure and extend image generation parameters (#53681) 2026-03-25 18:45:06 -07:00
ts-guard-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
vitest-report-cli-utils.mjs refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00