refactor(repo): resolve changed-code audit

This commit is contained in:
James
2026-07-20 11:59:57 -07:00
parent cbcf45facf
commit ab8b50afd7
21 changed files with 54 additions and 51 deletions
+3
View File
@@ -271,6 +271,7 @@ const commandStart = Date.now();
const runId = getRunId();
let finalized = false;
// Root-only lifecycle fan-in: telemetry, notices, flushing, then exit code.
// fallow-ignore-next-line complexity
async function finalizeCli(result: CommandResult): Promise<void> {
if (finalized) return;
@@ -437,6 +438,8 @@ function commandResultForError(error: unknown): CommandResult {
return { exitCode: 1, kind: "runtime_error" };
}
// Root-only command boundary; keeping every result path here prevents modules
// from bypassing output, telemetry, or finalizers.
// fallow-ignore-next-line complexity
async function executeCli(): Promise<void> {
let result: CommandResult = { exitCode: 0, kind: "success" };