openclaw/test/helpers/extensions
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
..
bluebubbles-monitor.ts refactor(test): dedupe bluebubbles monitor helpers 2026-03-22 02:18:00 +00:00
chunk-test-helpers.ts
configured-binding-runtime.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
directory.ts
discord-component-runtime.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
discord-provider.test-support.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
env.ts
feishu-lifecycle.ts refactor: dedupe tests and harden suite isolation 2026-03-24 19:16:19 +00:00
fetch-mock.ts
frozen-time.ts
jiti-runtime-api.ts test: harden linux runtime smoke guards 2026-03-24 03:23:52 +00:00
matrix-monitor-route.ts fix(ci): repair main type and boundary regressions 2026-03-19 08:00:33 -07:00
matrix-route-test.ts Matrix: fix typecheck and boundary drift 2026-03-19 08:03:56 -04:00
mock-http-response.ts
plugin-api.ts feat: add video generation core infrastructure and extend image generation parameters (#53681) 2026-03-25 18:45:06 -07:00
plugin-command.ts
plugin-registration.ts
plugin-routing.ts fix(extensions): repair matrix contracts and test boundaries 2026-03-19 13:33:32 -07:00
plugin-runtime-mock.ts plugin-runtime: expose runHeartbeatOnce in system API (#40299) 2026-03-25 10:47:01 -07:00
plugin-sdk-stub.cjs fix: unblock runtime-api smoke checks 2026-03-24 03:00:51 +00:00
provider-registration.ts refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
provider-usage-fetch.ts
runtime-env.ts fix(plugin-sdk): keep testing barrel narrow 2026-03-22 23:30:59 +00:00
send-config.ts
setup-wizard.ts refactor(test): dedupe setup wizard helpers 2026-03-22 00:16:31 +00:00
start-account-context.ts refactor(test): dedupe startup and nostr test fixtures 2026-03-22 01:12:31 +00:00
start-account-lifecycle.ts refactor(test): dedupe startup and nostr test fixtures 2026-03-22 01:12:31 +00:00
status-issues.ts
subagent-hooks.ts
telegram-plugin-command.ts
temp-dir.ts
typed-cases.ts
zalo-lifecycle.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00