← Về thư mục
scripts/audit_snapshot.py
- read_bytes_or_die · function · L66-L76 — def read_bytes_or_die(path: str) -> bytes
- reject_if_binary · function · L79-L91 — def reject_if_binary(path: str, content: bytes) -> None
- sha256_hex · function · L94-L96 — def sha256_hex(content: bytes) -> str
- _extract_template_sections · function · L99-L174 — def _extract_template_sections(template_str: str, section_numbers: list[int]) -> str
- _mask_fences · function · L128-L135 — def _mask_fences(s: str) -> str
- _repl · function · L133-L134 — def _repl(m: _re.Match[str]) -> str
- render_prompt · function · L202-L308 — def render_prompt( audit_template: bytes, primary_paths: list[str], primary_contents: list[bytes], supporting_paths: list[str], supporting_contents: list[bytes], round_n: int, target_rounds: int, git_sha: str, stage: int, agent: str, prior_findings: Optional[bytes], ) -> bytes
- write_manifest · function · L311-L339 — def write_manifest( out_path: str, primary_shas: list[tuple[str, str]], supporting_shas: list[tuple[str, str]], audit_template_path: str, audit_template_sha: str, ) -> str
- write_prompt · function · L342-L349 — def write_prompt(out_path: str, prompt_bytes: bytes) -> None
- dedupe_preserving_order · function · L352-L360 — def dedupe_preserving_order(items: list[str]) -> list[str]
- cmd_snapshot · function · L368-L464 — def cmd_snapshot(args: argparse.Namespace) -> int
- cmd_verify · function · L467-L522 — def cmd_verify(args: argparse.Namespace) -> int
- build_parser · function · L530-L558 — def build_parser() -> argparse.ArgumentParser
- main · function · L561-L568 — def main(argv: Optional[list[str]] = None) -> int