feat(studio): add MiniMax video generation - #84
Conversation
| // Generate a video clip, stream progress over SSE, and store the MP4 as a | ||
| // normal project asset so it can be referenced by later editing steps. | ||
| const genVideoMatch = url.pathname.match(/^\/api\/projects\/([^/]+)\/generate-video$/); | ||
| if (genVideoMatch?.[1] && m === 'POST') { |
There was a problem hiding this comment.
At startStudioServer()'s new /api/projects/:id/generate-video branch, the server-side flow is implemented but nothing in the Studio client calls it yet. packages/project-studio/public/app.js still only posts to /generate-audio and only handles audio_* SSE events, and a repo-wide search shows no fetch to /generate-video or handling for video_started / video_done. That means the feature described by this PR is still unreachable for Studio users even though the backend route exists. Please either wire this endpoint and its SSE events into the Studio UI in the same PR, or explicitly scope the change down to a backend-only API and adjust the feature/tests accordingly.
|
Thanks for the review. I wired the Studio client to |
|
Hey @octo-patch — catching up on the opened-path triage I missed earlier. Thanks for the PR, and thanks for pushing the 💡 To drive this PR to merge hands-free, paste this to your AI coding agent (Claude Code / Codex / opencode / Cursor …): |
Reason: add target video capability using the existing tool and provider pattern
Summary
Validation
pnpm exec biome lint packages/core/src/minimax.ts packages/core/src/index.ts packages/core/test/minimax-video.test.tspnpm --filter @html-video/core testpnpm --filter @html-video/cli... buildpnpm --filter @html-video/cli testpnpm -r typecheckExisting repository issue
pnpm -r testreaches the runtime and core tests, then stops because@html-video/adapter-hyperframesrunsnode --test test/but that package has notest/directory.