[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:
Jason Zhou
2026-05-11 12:44:50 +08:00
committed by GitHub
parent b627dd168d
commit bfd540bcdf
18 changed files with 149 additions and 33 deletions

View File

@@ -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}`));
});
});