fix(toolhub-hardcode): 100 tools hardcode supprime dans wevia-fast-path-v3 TOOLHUB WEVAL - lit maintenant wevia-tool-registry.json dynamic count - chat test: avant TOOLHUB WEVAL: 100 tools apres 627 tools - cause racine divergence KPI dashboard detectee via user testing all-ia-hub.html - chattr unlock edit relock pattern - GOLD fastpath_toolhub preserve - zero regression syntax ok - progression fix divergence: registry ? to 627 orch + toolhub 100 to 627 + wtp 175kb to 182710 + greeting 92 to dynamic
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled

This commit is contained in:
opus
2026-04-21 10:17:05 +02:00
parent 5765ba28da
commit bd54d9aecd

View File

@@ -1180,10 +1180,12 @@ error_log("FP CP4 my-intents-start"); // INTENT: cascade_routing
$providers = "13 providers IA: Cerebras-fast(primary), Groq, NVIDIA-GLM5, Gemini, SambaNova, Mistral, HF-Router, OpenRouter, Ollama-brain-v3, Ollama-qwen3, Ollama-nomic, Ollama-minilm";
$oss = "OSS actifs: SearXNG, Qdrant(294pts), Playwright, DeerFlow(42skills), Paperclip(890agents), Hermes(26skills), n8n(5workflows), Prometheus, Uptime-Kuma, Langfuse, LiteLLM";
$products = "Produits WEVAL: WEVIA Brain(6152L), WEVCODE(4modes), WEDROID v5, WEVADS IA(36p), Ethica(141K HCPs), Blade IA v4.2, NonReg(152/152), L99(177pages)";
$r = "TOOLHUB WEVAL: 100 tools\n{$providers}\n{$oss}\n{$products}\n86% souverain, 14% cloud (0EUR)";
$toolhub_reg = @json_decode(@file_get_contents("/var/www/html/api/wevia-tool-registry.json"), true);
$toolhub_count = is_array($toolhub_reg) ? count($toolhub_reg["tools"] ?? []) : 100;
$r = "TOOLHUB WEVAL: {$toolhub_count} tools\n{$providers}\n{$oss}\n{$products}\n86% souverain, 14% cloud (0EUR)";
}
// CATALOG SEARCH: Master knows ALL 100 tools by name
// CATALOG SEARCH: Master knows ALL tools by name (dynamic count)
if ($r === null && !preg_match('/\b(lance|run|execute|update|rescan|met[s]?.*jour|sync|sauvegarde|save|enregistr|cr[ée]e?|stop|kill|tue|arrete|lis|affiche|ouvre|montre|cat)\b/iu', $m)) {
$cat = @json_decode(@file_get_contents("/opt/wevia-brain/tools-catalog.json"), true);
if ($cat) {