#!/usr/bin/env python3
'''
Basic project checker for The Little Green Cart Codex handoff.

This intentionally avoids external dependencies so it can run in Codex,
macOS Terminal, or a simple CI job.
'''
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
REQUIRED = [
    "website/index.html",
    "website/src/css/styles.css",
    "website/src/js/app.js",
    "website/src/data/site-content.json",
    "docs/PROGRAMMERS_MANUAL.md",
    "docs/USER_MANUAL.md",
    "AGENTS.md",
    "CODEX_MASTER_TASK.md",
]

missing = [path for path in REQUIRED if not (ROOT / path).exists()]

if missing:
    print("Missing required files:")
    for path in missing:
        print(f" - {path}")
    raise SystemExit(1)

print("Little Green Cart handoff check passed.")
