refactor(src): split oversized modules

This commit is contained in:
Peter Steinberger committed 2026-01-14 01:17:56 +00:00
1 parent b2179de839
commit bcbfb357be
675 files changed
+91476 -73453

No files matched your search

+7 -3
View File
@@ -35,8 +35,11 @@ const DEFAULT_CODEX_ARGS = [
];
const DEFAULT_CLEAR_ENV = ["ANTHROPIC_API_KEY", "ANTHROPIC_API_KEY_OLD"];
function randomImageProbeCode(len = 10): string {
const alphabet = "2345689ABCEF";
function randomImageProbeCode(len = 6): string {
// Chosen to avoid common OCR confusions in our 5x7 bitmap font.
// Notably: 0↔8, B↔8, 6↔9, 3↔B, D↔0.
// Must stay within the glyph set in `src/gateway/live-image-probe.ts`.
const alphabet = "24567ACEF";
const bytes = randomBytes(len);
let out = "";
for (let i = 0; i < len; i += 1) {
@@ -389,7 +392,8 @@ describeLive("gateway live (cli backend)", () => {
}
if (CLI_IMAGE) {
const imageCode = randomImageProbeCode(10);
// Shorter code => less OCR flake across providers, still tests image attachments end-to-end.
const imageCode = randomImageProbeCode();
const imageBase64 = renderCatNoncePngBase64(imageCode);
const runIdImage = randomUUID();