fix(registry): orchestrator + sse retournent vrai count tools (627) au lieu de question mark - root cause: code lisait field count inexistant, fix utilise len/count(tools array)
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled

This commit is contained in:
opus
2026-04-21 03:12:08 +02:00
parent 4ec855dd8a
commit e12dd92d89

View File

@@ -43,7 +43,7 @@ function wevia_orchestrate($q) {
// 9. REGISTRY
$reg = @json_decode(@file_get_contents("/var/www/html/api/wevia-tool-registry.json"), true);
$wcmd = 0; foreach(($reg["tools"]??[]) as $t) if(!empty($t["cmd"])) $wcmd++;
$results["registry"] = ($reg["count"]??"?") . " tools (" . $wcmd . " exec)";
$results["registry"] = (count($reg["tools"]??[])) . " tools (" . $wcmd . " exec)";
// 10. PAGES
$pages = ["blade-ai","wevia-orchestrator","wevia-cortex","paperclip","agents-archi","enterprise-model","wevia-meeting-rooms","growth-engine-v2","weval-arena","sovereign-claude","ethica-hub","admin"];