Repository navigation
feat: 公开词级转写 CLI 命令与 JSON 输出 - #29
Merged
Merged
Conversation
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.
变更摘要
新增
listenhub openapi transcription的估价、上传、创建、查询、等待与词级 transcript JSON 命令,使 hypit Provider 和使用 API key 的用户能复用 ListenHub 转写。创建要求稳定幂等键,返回预留与实扣积分;超时提示恢复等待同一任务。中英文 README 给出实际 JSON 结构。补充修复本次 #815 真机生成发现的上传 URL 回归:本地文件上传成功后,CLI 原样使用 OpenAPI 返回的
fileUrl,不再把私有资产域名错误改写为storage.googleapis.com。回归测试以不同域名约束该行为。实现期假设
fileUrl是下游可消费的权威地址;CLI 只负责 PUT 到presignedUrl,不推断或重写资产域名。风险判定
快车道。脚本参考
risk=high(auth、money),nonDowngradable=false。覆盖理由:这些信号来自 issue 的跨仓转写/计费背景;本次增量只删除 URL 域名改写并增加回归 fixture,不修改鉴权、账务、凭证或服务端协议。Staging:白名单第 3 条,CLI 无 staging 分支映射。
验证
pnpm readyPASS,90 文件格式正确,80 文件无 lint/type errors。pnpm readyPASS,13 文件、127 用例;新增/调整的本地上传回归测试先复现错误域名,再随修复转绿。pnpm buildPASS,生成dist/cli.mjs。9500236e98ba440ac756deabf495e72bf2b7243d,CI run。0.0.22。repo-not-runtime-qa,CLI 属 other)。fileUrl后四个任务全部成功。该轮生产生成报价/实扣均为 416 积分,失败任务余额前后不变。Part of marswaveai/listenhub-ralph#815