mirror of
https://github.com/morluto/rea.git
synced 2026-11-02 21:06:04 +00:00
refactor(cli): retain typed analysis outcomes through delivery
This commit is contained in:
1 parent
0e1500dc8d
commit
329325049c
79 files changed
+581
-372
No files matched your search
@@ -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 };
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user