30,'tiers'=>4,'cost'=>0]; $d['docker']=intval(trim(shell_exec('docker ps -q|wc -l 2>/dev/null'))); $d['ollama']=10; $d['pages']=intval(trim(shell_exec('ls /var/www/html/*.html|wc -l 2>/dev/null'))); $l99=json_decode(file_get_contents('/opt/weval-l99/l99-state.json'),true); if($l99){$t=0;$p=0;foreach($l99['layers'] as $v){$t+=$v['total'];$p+=$v['pass'];}$d['l99_pct']=$t?round(100*$p/$t):0;$d['l99_layers']=count($l99['layers']);} $d['timestamp']=date('c'); echo json_encode($d);