refactor: remove single-use forwarding helpers

This commit is contained in:
morluto
2026-10-10 00:49:14 +08:00
parent 070339af50
commit 4144e454f3
4 changed files with 5 additions and 35 deletions
+1 -6
View File
@@ -208,11 +208,6 @@ export const analysisViewInputError = (
): AnalysisInputError =>
new AnalysisInputError(INSPECT_ANALYSIS_VIEW_OPERATION, undefined, issues);
/** SHA-256 of the canonical projected JSON, excluding this digest field. */
export const analysisViewDigest = (
projection: Omit<AnalysisViewResult, "view_digest">,
): string => digestCanonicalValue(projection, "Analysis view");
/** View payload before the content digest is attached. */
export type UnsignedAnalysisView =
| Omit<
@@ -229,7 +224,7 @@ export const sealAnalysisView = (
): AnalysisViewResult =>
analysisViewResultSchema.parse({
...projection,
view_digest: analysisViewDigest(projection),
view_digest: digestCanonicalValue(projection, "Analysis view"),
});
const parentDigest = (evidenceId: string): string => evidenceId.slice(3);