From e12dd92d89890d84cd3f2f6d89d1c310dbb5492f Mon Sep 17 00:00:00 2001 From: opus Date: Tue, 21 Apr 2026 03:12:08 +0200 Subject: [PATCH] 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) --- api/wevia-orchestrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/wevia-orchestrator.php b/api/wevia-orchestrator.php index 50e05c2b1..dc3bedb9e 100644 --- a/api/wevia-orchestrator.php +++ b/api/wevia-orchestrator.php @@ -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"];