"""Real engine scope smoke with declared entry regions; not a hook quality benchmark.""" from __future__ import annotations import hashlib import json import tempfile import time from dataclasses import asdict from pathlib import Path from openultrasast.cpg.backend import JoernBackend from openultrasast.model.contracts import ExecutionBudget from openultrasast.model.regions import ScanRegion from openultrasast.model.scan import ScanBudget, scan_repository def main() -> None: budget = ExecutionBudget(time.monotonic() + 900, 2.0) report: dict[str, object] = { "purpose": "Real PHP/JavaScript scope smoke; declared entry regions, no admission or latency claim", "shared_budget_seconds": 900, "languages": {}, } languages = report["languages"] assert isinstance(languages, dict) with tempfile.TemporaryDirectory(prefix="ousast-scope-smoke-") as temporary: for language, filename, content in ( ("php", "api.php", "