Repository navigation
feat(video): add Kie AI, Z.AI, and Novita video generation - #160080
Conversation
Add 13 documented Market video models with automatic text/image routing, local image uploads, body-level API errors, and bounded polling/downloads. Register API-key onboarding and discovery, wire live QA and CI filters, and document provider capabilities. Validation: 34 mocked Kie cases pass; core/extension types, bundled registration, inventory, docs, workflow, formatting, and assertion-safety checks pass. Independent review found no actionable issues. The new test command took 186.18s including cold compilation. Live provider proof remains with the lead; Veo awaits API contract reconciliation.
…iders Treat runway and kie as bundled provider overlays so apiKey credentials, including SecretRefs, validate without custom baseUrl or models fields. Keep credential resolution in the existing provider auth owner. Validation: both SecretRef-only schema cases failed before the fix and pass afterward (28 schema cases). All 12 Runway cases pass, including a generated request using the real SDK resolver with a resolved file SecretRef snapshot. Core/extension type checks and the fresh independent review of both requested commits pass.
Extend the Z.AI plugin with regional async CogVideoX text-to-video and image-to-video generation. Reuse provider auth and HTTP helpers, support local image data URIs, and declare duration, geometry, audio, quality, and frame-rate controls. Wire registration, live provider selection, release shards, generated inventory, and provider documentation. Mocked provider flows, focused contracts, typechecks, inventory, docs, formatting, workflow checks, lint, and assertion safety passed. Live proof remains with the lead.
Extend the Novita plugin with native Wan 2.6 and Hailuo 2.3 async video routes, automatic family image routing, data URI image inputs, and model-specific capabilities. Default Wan output to silent and validate Hailuo duration/resolution combinations before submission. Wire registration, live provider selection, release shards, generated inventory, and concise provider documentation. Mocked registered-provider flows, focused contracts, typechecks, inventory, docs, formatting, workflow checks, lint, and assertion safety passed. Live proof remains with the lead.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: blocked before merge. Reviewed September 28, 2026, 8:10 AM ET / 12:10 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch adds Kie AI, Z.AI, and Novita video generation through plugins, enables credential-only Kie and Runway configuration, and updates provider documentation and live checks. Merge readiness⛔ Blocked before merge - 6 items remain Keep this PR open: its provider support is absent from current main and the latest release. Two previously reported credential-redaction defects remain and block merge. Priority: P2 Review scores
Verification
How this fits togetherAn agent's video request enters OpenClaw's shared video tool, which selects a configured provider plugin. The plugin submits a vendor job, polls for completion, and returns a downloaded video or an error. flowchart LR
A[Agent video request] --> B[Model selection]
C[Provider credentials] --> D[Provider plugin]
B --> D
D --> E[Vendor video job]
E --> F[Polling and download]
F --> G[Video or error]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No new third-party package or broader CI permission was found, but introduced provider error paths can expose reflected API credentials. PR surfaceSource +1239, Tests +921, Docs +253, Config +34, Generated 0, Other +6. Total +2453 across 43 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the vendor integrations in their plugins and apply the SDK's exact-secret redactor to HTTP, body-level, and polling errors before they reach the shared video tool. Do we have a high-confidence way to reproduce the issue? Yes, from source: return a synthetic provider error containing the active Bearer key through a registered video provider and inspect the resulting error. This read-only review did not execute that check. Is this the best way to solve the issue? No, not yet: the plugin-owned implementation fits the existing video tool, but its error paths must redact exact active credentials before merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f8ae4fc466a9. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Guard the native-live provider list before splitting and add Kie extension and documentation labeler coverage. Regenerate the config baseline at exactly 4371 plugin entries. The 21 new paths all belong to the shared Kie plugin entry: root/config/enabled (3), hooks (6), llm (8), and subagent (4). Z.AI and Novita add no config entries; existing core, channel, and plugin entries are unchanged. Focused labeler and native-live shard tests, config baseline, lint, formatting, and diff checks pass. The targeted TS2532 is removed; 19 inherited type diagnostics remain in untouched files. Workflow-planning has the same 17 unique failures and 432 passes on this branch and merge-base 7c346c1 because its fixture omits ci-static-step.sh.
158 upstream commits, including the Kie AI, Z.AI and Novita video providers (openclaw#160080) and several CI planner repairs (openclaw#160187, openclaw#160260, openclaw#160324, openclaw#160376). No file outside the generated set and the test routing list changed on both sides. Two conflicts, both generated: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. openclaw#160080 adds plugin settings, so plugin goes from 4353 to 4374. This branch keeps channel at 3788 and core stays at 2464. Both files came from upstream and were regenerated. test/vitest/vitest.extension-database-workers-paths.mjs changed on both sides in separate places and merged cleanly, with upstream's ten new entries and this branch's Feishu entry all kept. build:docker ran in a separate detached checkout of this commit outside the nested node_modules install. Regenerating there changed those two files and nothing else, giving the predicted counts, the upstream core and plugin hashes, this branch's channel hash and a new combined hash. The three generated-file checks pass there. Upstream deleted 38 test files in this range. None of them were added or changed by this branch. Feishu: 106 files and 1853 tests in the extension project, 17 files and 312 tests in the database-workers project. The forwarder test and the routing guards pass, 1980 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
#160080 widened both manifests to ["models", "media"] when it added video generation, which breaks the bundled-plugin rule of exactly one purpose category and fails bundled-plugin-categories on every plugin-touching PR. Both remain model providers first; video generation stays a provider capability without a second catalog category.
…160080) * feat(kie): add Kie AI video generation provider Add 13 documented Market video models with automatic text/image routing, local image uploads, body-level API errors, and bounded polling/downloads. Register API-key onboarding and discovery, wire live QA and CI filters, and document provider capabilities. Validation: 34 mocked Kie cases pass; core/extension types, bundled registration, inventory, docs, workflow, formatting, and assertion-safety checks pass. Independent review found no actionable issues. The new test command took 186.18s including cold compilation. Live provider proof remains with the lead; Veo awaits API contract reconciliation. * fix(config): allow Runway and Kie provider credentials in models.providers Treat runway and kie as bundled provider overlays so apiKey credentials, including SecretRefs, validate without custom baseUrl or models fields. Keep credential resolution in the existing provider auth owner. Validation: both SecretRef-only schema cases failed before the fix and pass afterward (28 schema cases). All 12 Runway cases pass, including a generated request using the real SDK resolver with a resolved file SecretRef snapshot. Core/extension type checks and the fresh independent review of both requested commits pass. * feat(zai): add CogVideoX video generation Extend the Z.AI plugin with regional async CogVideoX text-to-video and image-to-video generation. Reuse provider auth and HTTP helpers, support local image data URIs, and declare duration, geometry, audio, quality, and frame-rate controls. Wire registration, live provider selection, release shards, generated inventory, and provider documentation. Mocked provider flows, focused contracts, typechecks, inventory, docs, formatting, workflow checks, lint, and assertion safety passed. Live proof remains with the lead. * feat(novita): add Wan and Hailuo video generation Extend the Novita plugin with native Wan 2.6 and Hailuo 2.3 async video routes, automatic family image routing, data URI image inputs, and model-specific capabilities. Default Wan output to silent and validate Hailuo duration/resolution combinations before submission. Wire registration, live provider selection, release shards, generated inventory, and concise provider documentation. Mocked registered-provider flows, focused contracts, typechecks, inventory, docs, formatting, workflow checks, lint, and assertion safety passed. Live proof remains with the lead. * fix(ci): repair video provider integration checks Guard the native-live provider list before splitting and add Kie extension and documentation labeler coverage. Regenerate the config baseline at exactly 4371 plugin entries. The 21 new paths all belong to the shared Kie plugin entry: root/config/enabled (3), hooks (6), llm (8), and subagent (4). Z.AI and Novita add no config entries; existing core, channel, and plugin entries are unchanged. Focused labeler and native-live shard tests, config baseline, lint, formatting, and diff checks pass. The targeted TS2532 is removed; 19 inherited type diagnostics remain in untouched files. Workflow-planning has the same 17 unique failures and 432 passes on this branch and merge-base 2f9bb20 because its fixture omits ci-static-step.sh.
openclaw#160080 widened both manifests to ["models", "media"] when it added video generation, which breaks the bundled-plugin rule of exactly one purpose category and fails bundled-plugin-categories on every plugin-touching PR. Both remain model providers first; video generation stays a provider capability without a second catalog category.
What Problem This Solves
Operators with Kie AI, Z.AI, or Novita accounts can't use them for
video_generate, and Runway credentials can't be configured as amodels.providersSecretRef (the schema demands abaseUrlfor non-overlay providers), so Runway only works through env vars or onboarding.User Impact
User impact: three more video backends work out of the box, all with text-to-video and image-to-video, including local images:
kieplugin,KIE_API_KEY): 13 Market models across Kling 2.6, Grok Imagine, Wan 2.6, Hailuo 02/2.3 and Seedance 1.5 Pro. Defaultkie/kling-2.6/text-to-video. Local images are uploaded through Kie's documented base64 upload API.zaiplugin):zai/cogvideox-3, the only video model Z.AI documents for this API. It uses the plugin's existing international/China base URL choice.novitaplugin):wan2.6-t2v/wan2.6-i2vandminimax-hailuo-2.3-t2v/-i2v/-fast-i2v.In all three, supplying one image with a text-to-video model routes to that family's image-to-video model.
models.providers.runway.apiKeyandmodels.providers.kie.apiKeynow accept SecretRefs without abaseUrl, the same wayfalandvydraalready do.Why This Change Was Made
Each provider extends its existing owner where one exists (zai, novita) and uses only public Plugin SDK HTTP, polling, auth and download helpers. Kie is a new media-only plugin, like runway. Capabilities are declared per model so the runtime drops unsupported overrides instead of sending them. Veo on Kie is left out: its docs are mid-migration between a dedicated API and the Market job API. Novita's Kling, Seedance and Vidu slugs aren't routable today, and its unified
/v3/async/video/createrejects documented model names, so those are left out too.Evidence
Live runs of
extensions/video-generation-providers.live.test.tson 2026-09-28 with real keys and full modes (OPENCLAW_LIVE_VIDEO_GENERATION_FULL_MODES=1), before the branches were combined:kling-2.6/text-to-videocogvideox-3wan2.6-t2vwan2.6-i2v)gen4.5(regression)Direct API probes also confirmed the raw contracts: Z.AI submit and
async-resultpolling, Kiejobs/createTaskandrecordInfowithresultJson, and Novitawan2.6-t2vwithtask-result. Each returned a real mp4.On the combined branch: 226 focused tests pass (new provider suites: 34 Kie, 15 Z.AI, 17 Novita, all with mocked HTTP);
pnpm tsgo:core,tsgo:extensionsandtsgo:extensions:testpass; so dopnpm plugins:inventory:check,pnpm check:assertion-safety --base origin/main(no baseline change), docs format and link checks,pnpm check:workflows, and the offline live-suite run. The schema regression for the runway/kie overlay ids fails before the fix. A Runway test exercises the real SDK auth resolver against a resolved file SecretRef.Test cost: the new provider files run in milliseconds of assertion time. Local walls are 50–190 s with
--maxWorkers=1on a loaded machine, and over 90% of that is cold transform. CI seconds will be reported once the run exists. Live CI: Kie joins native live video shard B, Z.AI and Novita join shard C, and no runners were added. TheKIE_API_KEYCI secret is optional, only for live proof.