Files
html/api/blade-reconciler-run.php

7 lines
398 B
PHP

<?php
header("Content-Type: application/json");
$out = shell_exec("sudo -n python3 /opt/weval-l99/blade-task-reconciler.py 2>&1 | tail -c 1000");
$stats_json = @file_get_contents('/var/www/html/api/blade-actions-surfaced.json');
$d = @json_decode($stats_json, true);
echo json_encode(['ok' => true, 'stats' => $d['stats'] ?? [], 'actions_count' => count($d['actions'] ?? []), 'log_tail' => $out]);