#!/usr/bin/env python3 """Shared helpers for the knowledge supply chain MVP.""" from __future__ import annotations import fnmatch import hashlib import json import re from dataclasses import dataclass from datetime import UTC, datetime from pathlib import Path from typing import Final, cast try: import jsonschema except ImportError as exc: raise SystemExit( f"缺少依赖 jsonschema,请使用 uvx --with jsonschema --with pyyaml python