openclaw/test/helpers
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
..
extensions feat: add video generation core infrastructure and extend image generation parameters (#53681) 2026-03-25 18:45:06 -07:00
auth-wizard.ts refactor: move provider auth-choice helpers into plugins 2026-03-16 22:40:33 -07:00
captured-io.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
envelope-timestamp.ts
fast-short-timeouts.ts test: harden vitest no-isolate coverage 2026-03-22 10:48:21 -07:00
gateway-e2e-harness.ts refactor: unify gateway handshake timeout wiring 2026-03-24 22:53:55 -07:00
http-test-server.ts refactor(test): dedupe shared test helpers 2026-03-21 23:07:51 +00:00
import-fresh.ts fix(runtime): duplicate messages, share singleton state across bundled chunks (#43683) 2026-03-12 14:59:27 -04:00
memory-tool-manager-mock.ts perf: lazy-load memory runtime surfaces 2026-03-22 22:06:45 +00:00
mock-incoming-request.ts
normalize-text.ts
pairing-reply.ts refactor: align pairing replies, daemon hints, and feishu mention policy 2026-03-25 04:22:53 -07:00
paths.ts
pattern-file.ts refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
poll.ts
temp-home.ts test: harden threaded shared-worker suites 2026-03-24 08:37:00 +00:00
wizard-prompter.ts