feat(video): PixVerse 视频生成子命令#18
Merged
Merged
Conversation
Add `openapi video pixverse generate` and `openapi video pixverse estimate` covering the public Agent API contract: capability (required), model, language, prompt, quality, aspect-ratio, duration, source-task-id, repeatable image/video/audio assets (url[:duration]), and key nested pixverse fields (agent-type, source-video-id, restyle-id, lip-sync TTS) plus a --pixverse-json escape hatch. Wires SDK createPixVerseVideoGeneration / estimatePixVerseVideoCredits, supports --json and the existing polling pattern. Bilingual README + tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0xFANGO
force-pushed
the
ralph/listenhub-cli--250
branch
from
June 24, 2026 18:22
a0a8ac1 to
5da2df6
Compare
Collaborator
Author
追加修复:lip_sync TTS flag 端到端可用对抗验证(skills #251 交叉核对 api-server 契约)发现: 修复(source/openapi/video.ts):capability=lip_sync 且提供了 speaker-id + content 时,同时构造 验证: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
api-server 已把 PixVerse 接入公开 Agent OpenAPI 层(api-server#779),SDK 已补 PixVerse 方法(sdk#20)。本 PR 为 CLI 加
video pixverse子命令。改动
source/openapi/video.ts:新增registerPixVerse,挂video pixverse generate/video pixverse estimate子命令--capability(必填,枚举校验)、--model(pixverse/v6/v5/v4.5)、--language、--prompt、--quality、--aspect-ratio、--duration、--source-task-id、--image/--video/--audio(可重复,url 或 url:duration,上限 10/2/1)、--agent-type、--source-video-id、--restyle-id、lip-sync TTS flags,以及--pixverse-json逃生舱(覆盖嵌套字段)、--no-wait/--timeout/-j。调createPixVerseVideoGeneration,默认轮询复用现有pollOpenAPI+getVideoGenerationTask--capability(必填)、--model、--language、--quality、--duration、--agent-type。调estimatePixVerseVideoCredits,输出 {tokens, credits}README.md+README.zh-CN.md:双语加 PixVerse 段 + 示例(含 fusion 走 --pixverse-json 的例子)package.json:@marswave/listenhub-sdk^0.0.13→^0.0.15(下一个含 PixVerse 的 SDK 版本)验证
vp check:fmt 63 文件 OK,lint+typecheck 0 警告 0 错误(56 文件)vp test:5 files / 36 passed(28 预存 + 8 新 PixVerse)^0.0.15,无 file:/link 本地路径泄漏SDK 0.0.15 尚未发 npm,本 PR 的
pnpm-lock.yaml仍记录旧 0.0.13(fresh checkout 上pnpm install --frozen-lockfile会失败)。SDK 0.0.15 发布后,在本分支pnpm install重生 lockfile 并提交,CLI 即 install-clean。CLI 自身发版走 prepublishOnly 流程。