mirror of
https://github.com/morluto/rea.git
synced 2026-10-18 20:10:13 -05:00
Supply a real retained resource owner to every Android verifier prerequisite check, sharing the existing Ghidra verifier cleanup scope. Match recovery checks to typed Java or archive failures and applicable remediation, preserving exact close retry authority and primary failures. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
14 lines
632 B
TypeScript
14 lines
632 B
TypeScript
import type { ArtifactResourceScope } from "../../src/artifacts/ArtifactResourceScope.js";
|
|
import type { FileCloseResourceOwner } from "../../src/application/AnalysisProvider.js";
|
|
|
|
/** Complete a prerequisite operation, including retained cleanup on failure. */
|
|
export function withVerifierResourceOwner<T>(
|
|
operation: (owner: FileCloseResourceOwner) => Promise<T>,
|
|
): Promise<T>;
|
|
|
|
/** Hash one verifier input and transfer failed-close ownership to its scope. */
|
|
export function hashVerifierFile(
|
|
path: string,
|
|
resources: Pick<ArtifactResourceScope, "retain">,
|
|
): Promise<{ readonly bytes: number; readonly sha256: string }>;
|