fix: report malformed application evidence as input errors

This commit is contained in:
morluto
2026-10-10 03:52:35 +08:00
parent 55a46f7c71
commit 218c13160e
15 changed files with 613 additions and 165 deletions
@@ -938,7 +938,9 @@ const analyzeGraph = async (root: string) => {
input_path: root,
});
if (!result.ok) throw result.error;
return parseApplicationGraphEvidence(result.value);
const parsed = parseApplicationGraphEvidence(result.value);
if (!parsed.ok) throw new Error("Analysis Evidence must parse");
return parsed.value;
};
const analyzeSources = async (