mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-08 10:46:06 +00:00
refactor(repo): resolve changed-code audit
This commit is contained in:
@@ -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" };
|
||||
|
||||
Reference in New Issue
Block a user