From 6b5569b86adfeb24f3c63f529e65c69a749dbb47 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 19 Oct 2026 20:54:56 +0000 Subject: [PATCH] style(cso): format merged snapshot history capture --- lib/cso/snapshot.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cso/snapshot.ts b/lib/cso/snapshot.ts index 791b4e94b..7899dc0fd 100644 --- a/lib/cso/snapshot.ts +++ b/lib/cso/snapshot.ts @@ -953,7 +953,9 @@ export async function capture( if (!(error instanceof CsoError) || error.code !== 'MISSING_INPUT') throw error; } guard(); - const commits = withholdHistory(patched ?? '', exclusion).split(/^(?=commit [0-9a-f]{40}(?:[0-9a-f]{24})?$)/m).filter(Boolean), + const commits = withholdHistory(patched ?? '', exclusion) + .split(/^(?=commit [0-9a-f]{40}(?:[0-9a-f]{24})?$)/m) + .filter(Boolean), sizes = commits.map((commit) => Buffer.byteLength(commit)), whole = sizes.reduce((sum, size) => sum + size, 0) <= MAX_OUTPUT; let kept = 0,