diff --git a/api/blade-tasks/heartbeat.json b/api/blade-tasks/heartbeat.json index 6255ffeb5..a96223156 100644 --- a/api/blade-tasks/heartbeat.json +++ b/api/blade-tasks/heartbeat.json @@ -1,8 +1,8 @@ { - "ts": "2026-04-14T10:30:49+00:00", + "ts": "2026-04-14T10:36:04+00:00", "hostname": "LAPTOP-VE75QUHF", - "cpu": "9%", - "ram": "90% (16GB)", + "cpu": "68%", + "ram": "92% (16GB)", "disk": "81% (464GB)", "uptime": "1d 18h", "user": "Yace", diff --git a/api/mirofish-ceo-cache.json b/api/mirofish-ceo-cache.json index ac0bff65d..b43ad598d 100644 --- a/api/mirofish-ceo-cache.json +++ b/api/mirofish-ceo-cache.json @@ -13,5 +13,5 @@ "Run simulation", "CEO insights" ], - "timestamp": "2026-04-14 10:30:01" + "timestamp": "2026-04-14 10:35:01" } \ No newline at end of file diff --git a/api/wevia-antiregression-status.json b/api/wevia-antiregression-status.json index 34904f4c4..8fac19de3 100644 --- a/api/wevia-antiregression-status.json +++ b/api/wevia-antiregression-status.json @@ -1,15 +1,14 @@ { - "timestamp": "2026-04-14 12:30:14", + "timestamp": "2026-04-14 12:35:17", "healthy": false, "issues": [ - "Chatbot check error: Expecting value: line 1 column 1 (char 0)", + "Chatbot POST returning maintenance (crash)", "Domain crm.weval-consulting.com: HTTP 502", "Domain code.weval-consulting.com: HTTP 404", - "Domain deerflow.weval-consulting.com: HTTP 502", "Domain mm.weval-consulting.com: HTTP 502", "Domain n8n.weval-consulting.com: HTTP 502" ], "fixes": [], - "issues_count": 6, + "issues_count": 5, "fixes_count": 0 } \ No newline at end of file diff --git a/api/wevia-auth-status.json b/api/wevia-auth-status.json index 0a921c312..c1b62447c 100644 --- a/api/wevia-auth-status.json +++ b/api/wevia-auth-status.json @@ -1,5 +1,5 @@ { - "timestamp": "2026-04-14 10:30:09", + "timestamp": "2026-04-14 10:35:08", "healthy": false, "checks": { "outpost": "DOWN", @@ -30,57 +30,57 @@ { "level": "critical", "msg": "Outpost DOWN 9090", - "ts": "2026-04-14T10:30:01+00:00" + "ts": "2026-04-14T10:35:01+00:00" }, { "level": "critical", "msg": "Outpost STILL DOWN", - "ts": "2026-04-14T10:30:06+00:00" + "ts": "2026-04-14T10:35:06+00:00" }, { "level": "warning", "msg": "Auth flow ethica.weval-consulting.com: 200", - "ts": "2026-04-14T10:30:07+00:00" + "ts": "2026-04-14T10:35:07+00:00" }, { "level": "warning", "msg": "Auth flow n8n.weval-consulting.com: 502", - "ts": "2026-04-14T10:30:07+00:00" + "ts": "2026-04-14T10:35:07+00:00" }, { "level": "warning", "msg": "Auth flow crm.weval-consulting.com: 502", - "ts": "2026-04-14T10:30:07+00:00" + "ts": "2026-04-14T10:35:07+00:00" }, { "level": "warning", "msg": "Auth flow mm.weval-consulting.com: 502", - "ts": "2026-04-14T10:30:08+00:00" + "ts": "2026-04-14T10:35:07+00:00" }, { "level": "warning", "msg": "Auth flow analytics.weval-consulting.com: 200", - "ts": "2026-04-14T10:30:08+00:00" + "ts": "2026-04-14T10:35:07+00:00" }, { "level": "warning", "msg": "Auth flow deerflow.weval-consulting.com: 200", - "ts": "2026-04-14T10:30:08+00:00" + "ts": "2026-04-14T10:35:08+00:00" }, { "level": "warning", "msg": "Callback location missing in nginx", - "ts": "2026-04-14T10:30:08+00:00" + "ts": "2026-04-14T10:35:08+00:00" } ], "fixes": [ { "title": "Restart authentik", - "ts": "2026-04-14T10:30:01+00:00" + "ts": "2026-04-14T10:35:01+00:00" }, { "title": "Callback location auto-added", - "ts": "2026-04-14T10:30:08+00:00" + "ts": "2026-04-14T10:35:08+00:00" } ] } \ No newline at end of file diff --git a/api/wevia-autonomy-status.json b/api/wevia-autonomy-status.json index 7c1e19415..6275a6225 100644 --- a/api/wevia-autonomy-status.json +++ b/api/wevia-autonomy-status.json @@ -1,5 +1,5 @@ { - "timestamp": "2026-04-14 10:30:01", + "timestamp": "2026-04-14 10:35:01", "version": "1.0", "disk": 67, "ram": 11, @@ -14,83 +14,83 @@ "title": "Restart ollama", "cmd": "systemctl restart ollama", "output": "", - "time": "10:30:01" + "time": "10:35:01" }, { "title": "S95 restart pmta", - "time": "10:30:01" + "time": "10:35:01" }, { "title": "S95 restart kumomta", - "time": "10:30:01" + "time": "10:35:01" }, { "title": "S95 restart postfix", - "time": "10:30:01" + "time": "10:35:01" }, { "title": "S95 restart sentinel", - "time": "10:30:01" + "time": "10:35:01" }, { "title": "S95 restart adx", - "time": "10:30:01" + "time": "10:35:01" } ], "alerts": [ { "level": "critical", "msg": "S204:ollama DOWN (:11435)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S204:deerflow DOWN (:2024)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S204:authentik DOWN (:9090)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S95:pmta DOWN (:25)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S95:kumomta DOWN (:587)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S95:postfix DOWN (:2525)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S95:sentinel DOWN (:5890)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "critical", "msg": "S95:adx DOWN (:5821)", - "time": "10:30:01" + "time": "10:35:01" }, { "level": "warning", "msg": "Architecture score 70\/100", - "time": "10:30:02" + "time": "10:35:01" } ], "log": [ - "10:30:01 AUTO-FIX: Restart ollama", - "10:30:01 Disk: 67%", - "10:30:01 SSL: 356d remaining", - "10:30:01 Docker: 10 containers", - "10:30:02 RAM: 11%", - "10:30:02 Arch score: 70\/100" + "10:35:01 AUTO-FIX: Restart ollama", + "10:35:01 Disk: 67%", + "10:35:01 SSL: 356d remaining", + "10:35:01 Docker: 10 containers", + "10:35:01 RAM: 11%", + "10:35:01 Arch score: 70\/100" ], "s204_services": 8, "s95_mta": 5 diff --git a/api/wevia-blade-status.json b/api/wevia-blade-status.json index 1afcc4338..51ac5c0a5 100644 --- a/api/wevia-blade-status.json +++ b/api/wevia-blade-status.json @@ -1 +1 @@ -{"ts":"12:30","status":"offline"} +{"ts":"12:36","status":"offline"} diff --git a/api/wevia-multiagent-sse.php b/api/wevia-multiagent-sse.php new file mode 100644 index 000000000..6ea4e67cf --- /dev/null +++ b/api/wevia-multiagent-sse.php @@ -0,0 +1,18 @@ +"msg required"]);exit;} +sse(["type"=>"start","task"=>$msg]); +include __DIR__."/wevia-orchestrator.php"; +$r=wevia_orchestrate($msg); +foreach($r["results"]??[] as $k=>$v){sse(["type"=>"agent","id"=>$k,"result"=>$v]);} +if($r["synthesis"]??null)sse(["type"=>"synthesis","content"=>$r["synthesis"]]); +sse(["type"=>"done","agents"=>$r["agents"]??0,"ms"=>$r["ms"]??0]); diff --git a/api/wevia-selfmanage.json b/api/wevia-selfmanage.json index b36669caa..36e437fc2 100644 --- a/api/wevia-selfmanage.json +++ b/api/wevia-selfmanage.json @@ -1 +1 @@ -{"ts": "12:30", "status": "ok"} \ No newline at end of file +{"ts": "12:35", "status": "ok"} \ No newline at end of file diff --git a/api/wevia-sse-orchestrator.php b/api/wevia-sse-orchestrator.php new file mode 100644 index 000000000..394732c98 --- /dev/null +++ b/api/wevia-sse-orchestrator.php @@ -0,0 +1,17 @@ +"msg required"]);exit;} +sse(["type"=>"start","task"=>$msg,"ts"=>date("H:i:s")]); +$agents=["infra"=>"echo LOAD:$(cat /proc/loadavg|cut -d' ' -f1-3) DISK:$(df -h /|tail -1|awk '{print $5}') FPM:$(pgrep -c php-fpm) HTML:$(ls /var/www/html/*.html|wc -l)","sovereign"=>"curl -s --max-time 6 http://127.0.0.1:4000/health 2>/dev/null|head -c 80","nonreg"=>"php8.4 /var/www/html/api/nonreg-quick.php 2>&1","git"=>"cd /var/www/html;echo DIRTY:$(git status -s|wc -l);git log --oneline -1","vault"=>"echo VAULT:$(ls /opt/wevads/vault/|wc -l) WIKI:$(ls /opt/weval-l99/wiki/*.json|wc -l)","docker"=>"docker ps --format x|wc -l"]; +$results=[];$i=0;$total=count($agents); +foreach($agents as $id=>$cmd){$i++;$out=trim(@shell_exec("timeout 6 bash -c ".escapeshellarg($cmd)." 2>&1"))?:"TIMEOUT";$results[$id]=$out;sse(["type"=>"agent","id"=>$id,"result"=>$out,"progress"=>round($i/$total*100)]);} +sse(["type"=>"done","agents"=>count($results),"results"=>$results]);