<?php
declare(strict_types=1);
header('Content-Type: application/json; charset=utf-8');
$required=['content/books.json','content/thread.json','assets/css/app.css','assets/js/app.js'];
$missing=[];foreach($required as $f){if(!is_file(__DIR__.'/'.$f))$missing[]=$f;}
echo json_encode(['ok'=>count($missing)===0,'app'=>'The Being — fixed corpus thread test','php'=>PHP_VERSION,'missing'=>$missing,'storage'=>'browser localStorage'],JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
