from typing import List
from typing import Dict
from pathlib import Path
import json


def gather_build_info_files() -> List[Dict]:
    """Gather all json files in artifacts/build-info return as a structured list without filenames."""
    path = Path(__file__).parent.parent / "artifacts" / "build-info"

    json_output = []
    for filepath in path.glob("*.json"):
        with open(filepath, "r") as f:
            file_contents = json.load(f)
            json_output.append(file_contents)

    return json_output