refactor(artifacts): move inventory and extraction into provider owners (#1032)

This commit is contained in:
Ysopwnable
2026-10-08 05:51:14 +08:00
committed by GitHub
parent c6dad93208
commit 6e4535c101
36 changed files with 147 additions and 91 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { ArtifactIntegrityPolicy } from "./types.js";
/** Parsed caller intent for integrity mismatch handling. */
export type ArtifactIntegrityIntent =
| { readonly mode: "fail" }
| { readonly mode: "record-and-continue" };
/** Preserve the explicit integrity admission choice without changing verification. */
export const resolveArtifactIntegrityPolicy = (
intent: ArtifactIntegrityIntent,
): ArtifactIntegrityPolicy => intent;