mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
[codex] refresh plugin regression fixtures
Summary: - Refresh plugin regression fixtures and test-support mocks for guarded network resolution, progress streaming windows, staged TTS output, QQBot STT, and CLI runner assertions. - Resolve current-main conflicts in Discord, Google video, QQBot STT, and CLI runner tests without changing runtime code. Verification: - pnpm check:test-types - pnpm vitest run $(git diff --name-only origin/main...HEAD) - git diff --check - GitHub CI passed, including Real behavior proof, auto-response, ClawSweeper dispatch, CodeQL, and full CI checks. Co-authored-by: Jason Zhou <22532527+JayZeeDesign@users.noreply.github.com>
This commit is contained in:
@@ -102,6 +102,9 @@ describe("buildCliSpeechProvider", () => {
|
||||
if (typeof outputPath !== "string") {
|
||||
throw new Error("missing ffmpeg output path");
|
||||
}
|
||||
const stagedTarget = outputPath.endsWith(".part")
|
||||
? outputPath.slice(0, -".part".length)
|
||||
: outputPath;
|
||||
const forcedFormatIndex = args.lastIndexOf("-f");
|
||||
const forcedFormat =
|
||||
forcedFormatIndex >= 0 && typeof args[forcedFormatIndex + 1] === "string"
|
||||
@@ -112,7 +115,7 @@ describe("buildCliSpeechProvider", () => {
|
||||
? ".pcm"
|
||||
: forcedFormat
|
||||
? `.${forcedFormat}`
|
||||
: path.extname(outputPath.replace(/\.part$/, ""));
|
||||
: path.extname(stagedTarget);
|
||||
writeFileSync(outputPath, Buffer.from(`converted:${extension}`));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user