refactor(cli): retain typed analysis outcomes through delivery

This commit is contained in:
morluto committed 2026-10-27 09:16:02 +08:00
1 parent 0e1500dc8d
commit 329325049c
79 files changed
+581 -372

No files matched your search

+4 -3
View File
@@ -1,3 +1,4 @@
import { projectCliAnalysisResult } from "./projectCliAnalysisResult.js";
import { z } from "incur";
import type { Logger } from "pino";
import type { CliInstance } from "./types.js";
@@ -68,9 +69,9 @@ export const registerSourceToBundleCommand = (
"compare_source_to_bundle",
signal,
);
return "evidence_id" in result
? result
: { error: "Application workflow failed", ...result };
return result.ok
? result.value
: { error: "Application workflow failed", ...result.error };
}),
),
});