From f465bedbd32c5faa506beec2ca53715f77da68da Mon Sep 17 00:00:00 2001 From: opus Date: Wed, 22 Apr 2026 11:00:03 +0200 Subject: [PATCH] auto-sync-1100 --- api/agent-disk-monitor.json | 2 +- api/agent-linkedin-sourcing.json | 2 +- api/ambre-ctx.php | 5 + api/ambre-find-mermaid.php | 29 + api/ambre-find-result.php | 28 + api/ambre-find-result2.php | 28 + api/ambre-rename-claude.php | 55 + api/ambre-scan-claude.php | 43 + api/architecture-scan.json | 1971 ------------------------------ api/v83-business-kpi-latest.json | 2 +- generated/mermaid-learn-kb.json | 9 + wevia.html | 10 +- 12 files changed, 205 insertions(+), 1979 deletions(-) create mode 100644 api/ambre-ctx.php create mode 100644 api/ambre-find-mermaid.php create mode 100644 api/ambre-find-result.php create mode 100644 api/ambre-find-result2.php create mode 100644 api/ambre-rename-claude.php create mode 100644 api/ambre-scan-claude.php diff --git a/api/agent-disk-monitor.json b/api/agent-disk-monitor.json index 3e51b50ad..477952530 100644 --- a/api/agent-disk-monitor.json +++ b/api/agent-disk-monitor.json @@ -1,6 +1,6 @@ { "agent": "V41_Disk_Monitor", - "ts": "2026-04-22T10:30:01+02:00", + "ts": "2026-04-22T11:00:01+02:00", "disk_pct": 86, "disk_free_gb": 22, "growth_per_day_gb": 1.5, diff --git a/api/agent-linkedin-sourcing.json b/api/agent-linkedin-sourcing.json index a059ba399..115f00550 100644 --- a/api/agent-linkedin-sourcing.json +++ b/api/agent-linkedin-sourcing.json @@ -1,6 +1,6 @@ { "agent": "V61_LinkedIn_Sourcing", - "ts": "2026-04-21T11:00:02+02:00", + "ts": "2026-04-22T11:00:01+02:00", "icp_count": 39, "icp_source": "V46 39 ICP Pharma/Banque/Retail/Public Maghreb+MENA", "api_keys_configured": { diff --git a/api/ambre-ctx.php b/api/ambre-ctx.php new file mode 100644 index 000000000..05e26d951 --- /dev/null +++ b/api/ambre-ctx.php @@ -0,0 +1,5 @@ + strpos($c, "type === 'result'") + 100) break; +} +// Also check the 'schema' output handling +$pos2 = strpos($c, "Schema Mermaid"); +echo "\n\n=== Schema Mermaid: $pos2 ===\n"; +if ($pos2 !== false) echo substr($c, max(0, $pos2 - 500), 1200); + +// Check if the result step handles mermaid_code field +echo "\n\n=== Look for mermaid_code field handler ===\n"; +if (preg_match_all('/mermaid_code[^,;]{0,300}/', $c, $m)) { + foreach (array_slice($m[0], 0, 5) as $match) echo " " . substr($match, 0, 200) . "\n"; +} + +// Also Resultat phase 5/5 rendering +$pos3 = strpos($c, "Resultat"); +echo "\n\n=== Resultat: $pos3 ===\n"; +if ($pos3 !== false) echo substr($c, max(0, $pos3 - 100), 900); diff --git a/api/ambre-find-result2.php b/api/ambre-find-result2.php new file mode 100644 index 000000000..8f712b64c --- /dev/null +++ b/api/ambre-find-result2.php @@ -0,0 +1,28 @@ +WEVIA Claude[- ]?pattern<\/strong>/i", "WEVIA-pattern", $c); +$c_new = preg_replace("/WEVIA Claude[- ]?pattern/", "WEVIA-pattern", $c_new); +if ($c_new !== $c) { + $changes[] = "renamed_WEVIA_Claude_pattern"; + $c = $c_new; +} + +// Fix 2: Remove any "Claude" mentions in phase labels +$c_new = str_replace("Claude Pattern", "WEVIA-Pattern", $c); +$c_new = str_replace("claude-pattern", "wevia-pattern", $c_new); +$c_new = str_replace("Claude-pattern", "WEVIA-pattern", $c_new); +if ($c_new !== $c) { + $changes[] = "renamed_claude_pattern_generic"; + $c = $c_new; +} + +// Fix 3: Remove mentions of "Claude" alone that are confidential +// But KEEP internal vars like _claude_xxx since they're code +// Target ONLY user-facing strings (between quotes or HTML text) +$user_facing_replacements = [ + "'Claude'" => "'WEVIA'", + "\"Claude\"" => "\"WEVIA\"", + ">Claude<" => ">WEVIA<", + "'Claude pattern'" => "'WEVIA pattern'", + "\"Claude pattern\"" => "\"WEVIA pattern\"", +]; +foreach ($user_facing_replacements as $k => $v) { + if (strpos($c, $k) !== false) { + $c = str_replace($k, $v, $c); + $changes[] = "replaced_" . md5($k); + } +} + +// Verify no more "Claude-pattern" in UI +$out_count = substr_count($c, "Claude-pattern") + substr_count($c, "Claude pattern") + substr_count($c, "Claude Pattern"); + +$backup = "/opt/wevads/vault/wevia.html.GOLD-" . date("Ymd-His") . "-wave263-rename"; +@copy($path, $backup); +$wrote = @file_put_contents($path, $c); + +echo json_encode([ + "delta" => strlen($c) - $orig, + "wrote" => $wrote, + "backup" => basename($backup), + "changes" => $changes, + "remaining_claude_pattern_count" => $out_count, +]); diff --git a/api/ambre-scan-claude.php b/api/ambre-scan-claude.php new file mode 100644 index 000000000..9fadee2f2 --- /dev/null +++ b/api/ambre-scan-claude.php @@ -0,0 +1,43 @@ + strlen($w), + "claude_text_count" => substr_count($w, "Claude"), + "claude_pattern_count" => preg_match_all("/Claude[\s\-]?pattern/i", $w), + "WEVIA_Claude_pattern" => substr_count($w, "WEVIA Claude-pattern"), + "Claude_pattern_span" => preg_match_all("/]*>Claude[\s\-]?[Pp]attern/i", $w), +]; + +// Find the exact rendering in wevia.html +$pos = strpos($w, "Claude-pattern"); +if ($pos === false) $pos = strpos($w, "Claude pattern"); +if ($pos === false) $pos = strpos($w, "WEVIA Claude"); +if ($pos !== false) $out["wevia_context"] = substr($w, max(0, $pos - 200), 500); + +// Mermaid generator - check output +$mp = @file_get_contents("/var/www/html/api/ambre-tool-mermaid.php"); +$out["mermaid_tool"] = [ + "size" => strlen($mp ?? ""), + "exists" => file_exists("/var/www/html/api/ambre-tool-mermaid.php"), +]; + +// Find V5-claude-pattern source +$out["claude_pattern_sources"] = trim(@shell_exec("grep -lE 'claude[- ]?pattern|Claude[- ]?[Pp]attern' /var/www/html/wevia.html /var/www/html/*.html /var/www/html/api/*.php 2>/dev/null | head -10")); + +// Check V5-CLAUDE-PATTERN block in wevia.html +if (preg_match("/\/\/ === AMBRE-V5-CLAUDE-PATTERN.{0,10000}\/\/ === END AMBRE-V5-CLAUDE-PATTERN/s", $w, $m)) { + $out["v5_block_size"] = strlen($m[0]); + // Extract the rendered badges + if (preg_match_all('/["\']WEVIA[^"\']*Claude[^"\']*pattern[^"\']*["\']/', $m[0], $badges)) { + $out["v5_badges"] = $badges[0]; + } + if (preg_match_all('/["\']WEVIA[- ]?pattern["\']/i', $m[0], $badges2)) { + $out["v5_badges_alt"] = $badges2[0]; + } +} + +echo json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); diff --git a/api/architecture-scan.json b/api/architecture-scan.json index a31af2c7e..e69de29bb 100644 --- a/api/architecture-scan.json +++ b/api/architecture-scan.json @@ -1,1971 +0,0 @@ -{ - "generated": "2026-04-22 08:30:01", - "version": "1.0", - "servers": [ - { - "id": "S204", - "ip": "204.168.152.13", - "private": "10.1.0.2", - "role": "PRIMARY", - "ssh": 49222, - "disk_pct": 86, - "disk_avail": "22G", - "uptime": "up 1 week, 22 hours, 38 minutes", - "nginx": "active", - "php_fpm": "active", - "php_version": "8.5.5" - }, - { - "id": "S95", - "ip": "95.216.167.89", - "private": "10.1.0.3", - "role": "WEVADS Arsenal", - "ssh": 22, - "disk_pct": 83, - "disk_avail": "26G", - "sentinel": 1 - }, - { - "id": "S151", - "ip": "151.80.235.110", - "private": null, - "role": "DR\/Tracking OVH", - "ssh": 22 - } - ], - "docker": [ - { - "name": "weval-docuseal", - "status": "Up Less than a second", - "ports": "" - }, - { - "name": "loki", - "status": "Up 5 days", - "ports": "" - }, - { - "name": "listmonk", - "status": "Up 5 days", - "ports": "" - }, - { - "name": "plausible-plausible-1", - "status": "Up 4 days", - "ports": "" - }, - { - "name": "plausible-plausible-db-1", - "status": "Up 4 days", - "ports": "" - }, - { - "name": "plausible-plausible-events-db-1", - "status": "Up 4 days", - "ports": "" - }, - { - "name": "n8n-docker-n8n-1", - "status": "Up 6 days", - "ports": "" - }, - { - "name": "mattermost-docker-mm-db-1", - "status": "Up 6 days", - "ports": "" - }, - { - "name": "mattermost-docker-mattermost-1", - "status": "Up 6 days (healthy)", - "ports": "" - }, - { - "name": "twenty", - "status": "Up 5 days", - "ports": "" - }, - { - "name": "twenty-redis", - "status": "Up 6 days", - "ports": "" - }, - { - "name": "langfuse", - "status": "Up 6 days", - "ports": "" - }, - { - "name": "redis-weval", - "status": "Up 7 days", - "ports": "" - }, - { - "name": "gitea", - "status": "Up 7 days", - "ports": "" - }, - { - "name": "node-exporter", - "status": "Up 7 days", - "ports": "" - }, - { - "name": "prometheus", - "status": "Up 7 days", - "ports": "" - }, - { - "name": "searxng", - "status": "Up 7 days", - "ports": "" - }, - { - "name": "uptime-kuma", - "status": "Up 2 days (healthy)", - "ports": "" - }, - { - "name": "vaultwarden", - "status": "Up 7 days (healthy)", - "ports": "" - }, - { - "name": "qdrant", - "status": "Up 7 days", - "ports": "" - } - ], - "domains": [ - { - "file": "ai.weval-consulting.com", - "server_names": [ - "ai.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "analytics.weval-consulting.com", - "server_names": [ - "analytics.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "arsenal.weval-consulting.com", - "server_names": [ - "arsenal.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "code-weval", - "server_names": [ - "code.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "crm.weval-consulting.com", - "server_names": [ - "crm.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "ethica", - "server_names": [ - "ethica.wevup.app", - "consent.wevup.app" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "git.weval-consulting.com", - "server_names": [ - "git.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "langfuse.weval-consulting.com", - "server_names": [ - "langfuse.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "mirofish.weval-consulting.com", - "server_names": [ - "mirofish.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "mm.weval-consulting.com", - "server_names": [ - "mm.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "monitor.weval-consulting.com", - "server_names": [ - "monitor.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "n8n.weval-consulting.com", - "server_names": [ - "n8n.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "paperclip.weval-consulting.com", - "server_names": [ - "paperclip.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "wevads.weval-consulting.com", - "server_names": [ - "wevads.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - }, - { - "file": "weval-consulting", - "server_names": [ - "weval-consulting.com", - "www.weval-consulting.com" - ], - "ssl": true, - "php-session": false, - "php-session_paths": false, - "auth_complete": false - } - ], - "screens": { - "s204_html": 327, - "s204_products": 104, - "s204_api_php": 1046, - "s204_wevia_php": 254, - "s95_arsenal_html": 1377, - "s95_arsenal_api": 377 - }, - "auth": { - "system": "PHP Session Auth", - "authentik": "REMOVED", - "pass": 24, - "fail": 0 - }, - "databases": { - "s204": [ - "postgres", - "adx_system", - "wevia_db", - "twenty_db", - "mattermost_db", - "deerflow", - "nocodb", - "paperclip", - "langfuse" - ], - "key_tables": { - "kb_learnings": 5699, - "kb_documents": 0, - "ethica_medecins": 50004, - "enterprise_agents": 0 - } - }, - "ollama": [ - { - "name": "weval-brain-v4:latest", - "family": "qwen3", - "params": "4.0B", - "quant": "Q4_K_M", - "size_gb": 2.5 - }, - { - "name": "llama3.2:latest", - "family": "llama", - "params": "3.2B", - "quant": "Q4_K_M", - "size_gb": 2 - }, - { - "name": "nomic-embed-text:latest", - "family": "nomic-bert", - "params": "137M", - "quant": "F16", - "size_gb": 0.3 - }, - { - "name": "weval-brain-v3:latest", - "family": "qwen3", - "params": "4.0B", - "quant": "Q4_K_M", - "size_gb": 2.5 - }, - { - "name": "nomic-embed-text:v1.5", - "family": "nomic-bert", - "params": "137M", - "quant": "F16", - "size_gb": 0.3 - }, - { - "name": "qwen3:4b", - "family": "qwen3", - "params": "4.0B", - "quant": "Q4_K_M", - "size_gb": 2.5 - }, - { - "name": "all-minilm:latest", - "family": "bert", - "params": "23M", - "quant": "F16", - "size_gb": 0 - } - ], - "qdrant": [ - { - "name": "weval_skills", - "vectors": 19089 - }, - { - "name": "wevia_graph", - "vectors": 3 - }, - { - "name": "weval_intents_memory", - "vectors": 50 - }, - { - "name": "obsidian_vault", - "vectors": 46 - }, - { - "name": "kb_bpmn_flows", - "vectors": 7 - }, - { - "name": "kb_ethica_pharma", - "vectors": 16 - }, - { - "name": "kb_consulting_strategy", - "vectors": 6 - }, - { - "name": "wevia_learnings", - "vectors": 1736 - }, - { - "name": "wevia_brain_knowledge", - "vectors": 294 - }, - { - "name": "kb_vsm_best_practices", - "vectors": 7 - }, - { - "name": "kb_bpmn_patterns", - "vectors": 7 - }, - { - "name": "kb_dmaic_playbooks", - "vectors": 7 - }, - { - "name": "kb_wevads_deliv", - "vectors": 6 - }, - { - "name": "wevia_memory_768", - "vectors": 100 - }, - { - "name": "wevia_kb_768", - "vectors": 255 - }, - { - "name": "weval_agents_registry", - "vectors": 50 - }, - { - "name": "wevia_kb", - "vectors": 386 - }, - { - "name": "wevia_memory", - "vectors": 48 - }, - { - "name": "kb_lean6sigma", - "vectors": 10 - } - ], - "ai_providers": [ - { - "name": "Cerebras", - "model": "Qwen-235B", - "tier": "T1", - "status": "active" - }, - { - "name": "Groq", - "model": "Llama-4-Scout", - "tier": "T1", - "status": "active" - }, - { - "name": "SambaNova", - "model": "Llama-3.3-70B", - "tier": "T1", - "status": "active" - }, - { - "name": "NVIDIA NIM", - "model": "Llama-3.1-70B", - "tier": "T1", - "status": "active" - }, - { - "name": "Together", - "model": "Qwen-2.5-72B", - "tier": "T1", - "status": "active" - }, - { - "name": "Mistral", - "model": "Mistral-Small", - "tier": "T2", - "status": "active" - }, - { - "name": "Cohere", - "model": "Command-R+", - "tier": "T2", - "status": "active" - }, - { - "name": "Gemini", - "model": "Gemini-2.0-Flash", - "tier": "T2", - "status": "active" - }, - { - "name": "DeepSeek", - "model": "DeepSeek-Chat", - "tier": "T2", - "status": "active" - }, - { - "name": "OpenRouter", - "model": "Multi", - "tier": "T2", - "status": "active" - }, - { - "name": "Alibaba", - "model": "Qwen-Max", - "tier": "T2", - "status": "active" - }, - { - "name": "HuggingFace", - "model": "Inference", - "tier": "T3", - "status": "active" - }, - { - "name": "Replicate", - "model": "Multi", - "tier": "T3", - "status": "active" - }, - { - "name": "ZhiPu", - "model": "GLM-4", - "tier": "T3", - "status": "active" - }, - { - "name": "Ollama Local", - "model": "weval-brain-v3", - "tier": "T0", - "status": "active" - } - ], - "crons": { - "s204_root": 0, - "s204_www": 35, - "s204_total": 35, - "key_crons": [ - { - "name": "L99 Master", - "freq": "*\/30", - "target": "l99-master.py" - }, - { - "name": "Autonomous Engine", - "freq": "*\/5", - "target": "wevia-master-autonomous" - }, - { - "name": "L99 Pipeline", - "freq": "*\/15", - "target": "l99-pipeline.py" - }, - { - "name": "L99 Alive", - "freq": "*\/10", - "target": "l99-alive.py" - }, - { - "name": "Infra Guardian", - "freq": "*\/5", - "target": "infra-guardian.sh" - }, - { - "name": "Blade Watchdog", - "freq": "*\/5", - "target": "blade-watchdog.php" - }, - { - "name": "RAG Ingest", - "freq": "*\/30", - "target": "wevia-rag-ingest.sh" - }, - { - "name": "Blade Orchestrator", - "freq": "*\/30", - "target": "blade-orchestrator.sh" - }, - { - "name": "WEVIA Dream", - "freq": "*\/30", - "target": "wevia-dream-cron.php" - }, - { - "name": "Port Protection", - "freq": "*\/5", - "target": "port-protection" - }, - { - "name": "Watchdog", - "freq": "*\/3", - "target": "weval-watchdog.php" - }, - { - "name": "Ethica Enrich", - "freq": "daily 01h", - "target": "ethica-enrich-v4.py" - }, - { - "name": "Daily Brief", - "freq": "daily 07h", - "target": "weval-daily-brief.py" - } - ] - }, - "wiki": { - "total_entries": 5699, - "categories": [ - { - "category": "AUTO-FIX", - "cnt": "3090" - }, - { - "category": "TOPOLOGY", - "cnt": "1253" - }, - { - "category": "DISCOVERY", - "cnt": "610" - }, - { - "category": "SYSTEMATIC", - "cnt": "204" - }, - { - "category": "L99-FULLSCAN", - "cnt": "80" - }, - { - "category": "INFRA", - "cnt": "74" - }, - { - "category": "CONTROL-TOWER", - "cnt": "42" - }, - { - "category": "ALERT", - "cnt": "34" - }, - { - "category": "AGENT", - "cnt": "20" - }, - { - "category": "L99-SCAN", - "cnt": "12" - }, - { - "category": "FIX", - "cnt": "10" - }, - { - "category": "FLEET", - "cnt": "8" - }, - { - "category": "MASTER-INTENT", - "cnt": "6" - }, - { - "category": "SESSION-5AVR", - "cnt": "5" - }, - { - "category": "Maroc", - "cnt": "5" - }, - { - "category": "Analyse", - "cnt": "5" - }, - { - "category": "AUTH", - "cnt": "5" - }, - { - "category": "claude_2026", - "cnt": "4" - }, - { - "category": "SERVICES", - "cnt": "4" - }, - { - "category": "WEVAL Consulting", - "cnt": "4" - }, - { - "category": "Intelligence Artificielle", - "cnt": "3" - }, - { - "category": "PARADIGM", - "cnt": "3" - }, - { - "category": "INTEGRATION", - "cnt": "3" - }, - { - "category": "FIX-CRITIQUE", - "cnt": "3" - }, - { - "category": "Voici", - "cnt": "2" - }, - { - "category": "Vous", - "cnt": "2" - }, - { - "category": "Pouvez", - "cnt": "2" - }, - { - "category": "Image", - "cnt": "2" - }, - { - "category": "Contexte", - "cnt": "2" - }, - { - "category": "L99-EXHAUSTIVE", - "cnt": "2" - }, - { - "category": "L99-GAP", - "cnt": "2" - }, - { - "category": "WEVAL Consulting Casablanca", - "cnt": "2" - }, - { - "category": "Test", - "cnt": "2" - }, - { - "category": "Salut", - "cnt": "2" - }, - { - "category": "L99-E2E", - "cnt": "2" - }, - { - "category": "Document", - "cnt": "2" - }, - { - "category": "PROVIDERS", - "cnt": "2" - }, - { - "category": "Bien", - "cnt": "2" - }, - { - "category": "WEVIA", - "cnt": "2" - }, - { - "category": "Diagramme", - "cnt": "2" - }, - { - "category": "Comparaison", - "cnt": "2" - }, - { - "category": "L99-MEGA", - "cnt": "2" - }, - { - "category": "QUALITY", - "cnt": "2" - }, - { - "category": "Cependant", - "cnt": "2" - }, - { - "category": "MONITORING", - "cnt": "2" - }, - { - "category": "L99", - "cnt": "2" - }, - { - "category": "Introduction", - "cnt": "2" - }, - { - "category": "Pour", - "cnt": "2" - }, - { - "category": "Casablanca", - "cnt": "2" - }, - { - "category": "Pourriez", - "cnt": "2" - }, - { - "category": "Vistex BTP Signavio", - "cnt": "1" - }, - { - "category": "Conduite", - "cnt": "1" - }, - { - "category": "DMAIC", - "cnt": "1" - }, - { - "category": "Industrie", - "cnt": "1" - }, - { - "category": "Proposition", - "cnt": "1" - }, - { - "category": "Accueil\nBienvenue", - "cnt": "1" - }, - { - "category": "Logo", - "cnt": "1" - }, - { - "category": "SAP ECC", - "cnt": "1" - }, - { - "category": "Votre", - "cnt": "1" - }, - { - "category": "Probl", - "cnt": "1" - }, - { - "category": "ANTI-REGRESSION", - "cnt": "1" - }, - { - "category": "Explique", - "cnt": "1" - }, - { - "category": "Zero Trust", - "cnt": "1" - }, - { - "category": "Augmented Generation", - "cnt": "1" - }, - { - "category": "RLHF", - "cnt": "1" - }, - { - "category": "Service", - "cnt": "1" - }, - { - "category": "Transformer", - "cnt": "1" - }, - { - "category": "Bonjour Bonjour", - "cnt": "1" - }, - { - "category": "Transformation", - "cnt": "1" - }, - { - "category": "Audit", - "cnt": "1" - }, - { - "category": "WEVAL", - "cnt": "1" - }, - { - "category": "Strat", - "cnt": "1" - }, - { - "category": "Maghreb", - "cnt": "1" - }, - { - "category": "ERP SAP", - "cnt": "1" - }, - { - "category": "Quelle", - "cnt": "1" - }, - { - "category": "Oracle", - "cnt": "1" - }, - { - "category": "Data", - "cnt": "1" - }, - { - "category": "Donn", - "cnt": "1" - }, - { - "category": "Quel", - "cnt": "1" - }, - { - "category": "Syst", - "cnt": "1" - }, - { - "category": "Ahmed", - "cnt": "1" - }, - { - "category": "UiPath", - "cnt": "1" - }, - { - "category": "Niveau PhD", - "cnt": "1" - }, - { - "category": "CLEANUP", - "cnt": "1" - }, - { - "category": "Notre", - "cnt": "1" - }, - { - "category": "TOUTES", - "cnt": "1" - }, - { - "category": "Maroc DDMRP OTIF", - "cnt": "1" - }, - { - "category": "Crit", - "cnt": "1" - }, - { - "category": "SAP Vistex Revenue Management", - "cnt": "1" - }, - { - "category": "Fine", - "cnt": "1" - }, - { - "category": "Compare AWS Azure GCP", - "cnt": "1" - }, - { - "category": "Healthcare", - "cnt": "1" - }, - { - "category": "BLADE", - "cnt": "1" - }, - { - "category": "Plan", - "cnt": "1" - }, - { - "category": "Conseil", - "cnt": "1" - }, - { - "category": "Nous", - "cnt": "1" - }, - { - "category": "Zero Trust SOC SIEM", - "cnt": "1" - }, - { - "category": "Amazon Web Services", - "cnt": "1" - }, - { - "category": "Retiens", - "cnt": "1" - }, - { - "category": "Diff", - "cnt": "1" - }, - { - "category": "QDRANT", - "cnt": "1" - }, - { - "category": "MITRE ATT", - "cnt": "1" - }, - { - "category": "FMCG", - "cnt": "1" - }, - { - "category": "Supply", - "cnt": "1" - }, - { - "category": "Exercice", - "cnt": "1" - }, - { - "category": "Redige", - "cnt": "1" - }, - { - "category": "Supply Chain", - "cnt": "1" - }, - { - "category": "Quels", - "cnt": "1" - }, - { - "category": "Propose", - "cnt": "1" - }, - { - "category": "Plateforme", - "cnt": "1" - }, - { - "category": "Cyber", - "cnt": "1" - }, - { - "category": "Tableau", - "cnt": "1" - }, - { - "category": "Migration SAP", - "cnt": "1" - }, - { - "category": "AUTH-AGENT", - "cnt": "1" - }, - { - "category": "Fais", - "cnt": "1" - }, - { - "category": "Iran", - "cnt": "1" - }, - { - "category": "OLLAMA", - "cnt": "1" - }, - { - "category": "Reessayez", - "cnt": "1" - }, - { - "category": "MORNE WEVAL", - "cnt": "1" - }, - { - "category": "Analyse SWOT", - "cnt": "1" - }, - { - "category": "SAP Vistex", - "cnt": "1" - }, - { - "category": "IoT WMS", - "cnt": "1" - }, - { - "category": "Industry", - "cnt": "1" - }, - { - "category": "What", - "cnt": "1" - }, - { - "category": "Strategie", - "cnt": "1" - }, - { - "category": "Rappelle", - "cnt": "1" - }, - { - "category": "DMAIC Six Sigma", - "cnt": "1" - }, - { - "category": "Avantages", - "cnt": "1" - }, - { - "category": "Explique RLHF", - "cnt": "1" - }, - { - "category": "Huawei Cloud", - "cnt": "1" - }, - { - "category": "PMO SAFe", - "cnt": "1" - }, - { - "category": "Migration SAP ECC", - "cnt": "1" - }, - { - "category": "team_work", - "cnt": "1" - }, - { - "category": "Bonjour Pr", - "cnt": "1" - }, - { - "category": "Maroc DDMRP OTIF WMS TMS", - "cnt": "1" - }, - { - "category": "Architecture", - "cnt": "1" - }, - { - "category": "Framework NIST", - "cnt": "1" - }, - { - "category": "Automatiser", - "cnt": "1" - }, - { - "category": "Compare RLHF DPO Constitutional AI", - "cnt": "1" - }, - { - "category": "Genere", - "cnt": "1" - }, - { - "category": "Elle", - "cnt": "1" - }, - { - "category": "Constitutional AI", - "cnt": "1" - }, - { - "category": "Brownfield", - "cnt": "1" - }, - { - "category": "Confirmation", - "cnt": "1" - }, - { - "category": "Architecture IA", - "cnt": "1" - }, - { - "category": "KPIs", - "cnt": "1" - }, - { - "category": "Quelles", - "cnt": "1" - }, - { - "category": "SWOT", - "cnt": "1" - }, - { - "category": "Comparons", - "cnt": "1" - }, - { - "category": "Services", - "cnt": "1" - }, - { - "category": "Maroc TMA", - "cnt": "1" - }, - { - "category": "Contraintes", - "cnt": "1" - }, - { - "category": "Intelligence", - "cnt": "1" - }, - { - "category": "Donne", - "cnt": "1" - }, - { - "category": "Vistex", - "cnt": "1" - }, - { - "category": "Maroc CMI", - "cnt": "1" - }, - { - "category": "Audite", - "cnt": "1" - }, - { - "category": "Aide", - "cnt": "1" - }, - { - "category": "DKIM DMARC", - "cnt": "1" - }, - { - "category": "Zero Trust SOC", - "cnt": "1" - }, - { - "category": "Bonjour Yacine", - "cnt": "1" - }, - { - "category": "Workshop", - "cnt": "1" - }, - { - "category": "Compare RLHF DPO GRPO Constitutional AI", - "cnt": "1" - }, - { - "category": "Comparatif ERP PME", - "cnt": "1" - }, - { - "category": "Programme", - "cnt": "1" - }, - { - "category": "SAP MM", - "cnt": "1" - }, - { - "category": "Phases", - "cnt": "1" - }, - { - "category": "Autres", - "cnt": "1" - }, - { - "category": "FHIR", - "cnt": "1" - }, - { - "category": "SESSION-7AVR", - "cnt": "1" - }, - { - "category": "FHIR IA", - "cnt": "1" - }, - { - "category": "MLOps", - "cnt": "1" - }, - { - "category": "MIROFISH", - "cnt": "1" - }, - { - "category": "Ecris", - "cnt": "1" - }, - { - "category": "Suite", - "cnt": "1" - }, - { - "category": "Nearshore", - "cnt": "1" - }, - { - "category": "Bienvenue", - "cnt": "1" - }, - { - "category": "Retrieval", - "cnt": "1" - }, - { - "category": "KYC BAM", - "cnt": "1" - }, - { - "category": "Afrique", - "cnt": "1" - }, - { - "category": "Dans", - "cnt": "1" - }, - { - "category": "Azure", - "cnt": "1" - }, - { - "category": "Budget", - "cnt": "1" - }, - { - "category": "INSTRUCTION SYSTEME", - "cnt": "1" - }, - { - "category": "CNDP", - "cnt": "1" - }, - { - "category": "Compare", - "cnt": "1" - }, - { - "category": "HubSpot", - "cnt": "1" - }, - { - "category": "Control", - "cnt": "1" - }, - { - "category": "SESSION-6AVR", - "cnt": "1" - }, - { - "category": "Bonjour Salut", - "cnt": "1" - }, - { - "category": "Maroc KPIs OTIF", - "cnt": "1" - }, - { - "category": "Vistex SAP", - "cnt": "1" - }, - { - "category": "Traduis", - "cnt": "1" - }, - { - "category": "Maroc IoT WMS", - "cnt": "1" - }, - { - "category": "SaaS", - "cnt": "1" - }, - { - "category": "CODE BLOCK", - "cnt": "1" - }, - { - "category": "Cahier", - "cnt": "1" - }, - { - "category": "Maroc FHIR", - "cnt": "1" - }, - { - "category": "DESIGN", - "cnt": "1" - }, - { - "category": "Compare RLHF", - "cnt": "1" - }, - { - "category": "Dynamics", - "cnt": "1" - }, - { - "category": "Python", - "cnt": "1" - }, - { - "category": "FORMAT OBLIGATOIRE", - "cnt": "1" - }, - { - "category": "SAP ERP", - "cnt": "1" - }, - { - "category": "INFRA-SESSION", - "cnt": "1" - }, - { - "category": "Cette", - "cnt": "1" - }, - { - "category": "OWASP Top", - "cnt": "1" - }, - { - "category": "Logo Weval", - "cnt": "1" - }, - { - "category": "ADKAR", - "cnt": "1" - }, - { - "category": "GENERAL", - "cnt": "1" - } - ], - "qdrant_vectors": 386 - }, - "applications": [ - { - "name": "WEVIA Chatbot", - "type": "AI", - "url": "\/wevia", - "port": null, - "server": "S204", - "auth": "public" - }, - { - "name": "WEVIA Admin", - "type": "Admin", - "url": "\/wevia-admin", - "port": null, - "server": "S204", - "auth": "php-session" - }, - { - "name": "WEVIA Life", - "type": "Email AI", - "url": "\/products\/wevialife-app.html", - "port": null, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Workspace", - "type": "Hub", - "url": "\/products\/workspace.html", - "port": null, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Arsenal\/WEVADS", - "type": "Email Marketing", - "url": "wevads.weval-consulting.com", - "port": 5890, - "server": "S95", - "auth": "php-session" - }, - { - "name": "ADX\/iResponse", - "type": "Email Platform", - "url": "wevads.weval-consulting.com", - "port": 5821, - "server": "S95", - "auth": "iResponse" - }, - { - "name": "Ethica HCP", - "type": "Healthcare B2B", - "url": "consent.wevup.app", - "port": null, - "server": "S204", - "auth": "ethica-auth" - }, - { - "name": "CRM (Twenty)", - "type": "CRM", - "url": "crm.weval-consulting.com", - "port": 3000, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Mattermost", - "type": "Chat", - "url": "mm.weval-consulting.com", - "port": 8065, - "server": "S204", - "auth": "php-session" - }, - { - "name": "n8n", - "type": "Automation", - "url": "n8n.weval-consulting.com", - "port": 5678, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Uptime Kuma", - "type": "Monitoring", - "url": "monitor.weval-consulting.com", - "port": 3001, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Plausible", - "type": "Analytics", - "url": "analytics.weval-consulting.com", - "port": 8000, - "server": "S204", - "auth": "php-session" - }, - { - "name": "DeerFlow", - "type": "AI Research", - "url": "deerflow.weval-consulting.com", - "port": 2024, - "server": "S204", - "auth": "php-session" - }, - { - "name": "SearXNG", - "type": "Search", - "url": null, - "port": 8888, - "server": "S204", - "auth": "internal" - }, - { - "name": "Qdrant", - "type": "Vector DB", - "url": null, - "port": 6333, - "server": "S204", - "auth": "internal" - }, - { - "name": "Ollama", - "type": "LLM Runtime", - "url": null, - "port": 11434, - "server": "S204", - "auth": "internal" - }, - { - "name": "Flowise", - "type": "AI Flow", - "url": null, - "port": 3088, - "server": "S204", - "auth": "internal" - }, - { - "name": "MiroFish", - "type": "AI Agent", - "url": "mirofish.weval-consulting.com", - "port": 3050, - "server": "S204", - "auth": "php-session" - }, - { - "name": "Open WebUI", - "type": "LLM UI", - "url": null, - "port": 3002, - "server": "S204", - "auth": "internal" - }, - { - "name": "Vaultwarden", - "type": "Passwords", - "url": null, - "port": 8222, - "server": "S204", - "auth": "internal" - }, - { - "name": "Prometheus", - "type": "Metrics", - "url": null, - "port": 9000, - "server": "S204", - "auth": "internal" - }, - { - "name": "PMTA", - "type": "MTA", - "url": null, - "port": 25, - "server": "S95", - "auth": "internal" - }, - { - "name": "KumoMTA", - "type": "MTA", - "url": null, - "port": 8010, - "server": "S95", - "auth": "internal" - }, - { - "name": "Sentinel", - "type": "Orchestrator", - "url": null, - "port": 5890, - "server": "S95", - "auth": "internal" - } - ], - "cloud": [ - { - "provider": "Hetzner", - "role": "S204+S95", - "type": "Bare Metal", - "region": "Germany" - }, - { - "provider": "OVH", - "role": "S151 DR\/Tracking", - "type": "VPS", - "region": "France" - }, - { - "provider": "Cloudflare", - "role": "CDN+DNS+WAF", - "type": "SaaS", - "region": "Global" - }, - { - "provider": "Huawei Cloud", - "role": "Partner Certifié", - "type": "IaaS", - "region": "MENA" - }, - { - "provider": "Scaleway", - "role": "GPU Inference", - "type": "IaaS", - "region": "France" - } - ], - "partnerships": [ - "SAP Gold Partner", - "Huawei Cloud", - "Vistex", - "IQVIA", - "Scaleway" - ], - "ux_agent": { - "pass": 3, - "fail": 0, - "warn": 0, - "total": 3, - "timestamp": "", - "gauge_health_center": "X=0px Y=0px", - "gauge_auto_center": "X=0px Y=0px", - "design_tokens": { - "bg": "#09090b", - "card": "#18181b", - "font": "Inter" - } - }, - "l99": { - "master": { - "total": 93, - "pass": 89, - "fail": 2, - "timestamp": "2026-04-07T01:32:48.454012" - }, - "auth": { - "pass": 24, - "fail": 0 - } - }, - "cortex": { - "fast_lines": 3718, - "router_lines": 6152, - "router_functions": 17, - "today_requests": 0, - "today_cost": 0, - "avg_latency_ms": 0, - "top_provider": "N\/A", - "providers_used": 0 - }, - "optimizations": { - "recent_commits": [], - "auto_fixes": [ - { - "fact": "AUTONOMY 22Apr 08:25: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:25:05.043155" - }, - { - "fact": "AUTONOMY 22Apr 08:20: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:20:05.6286" - }, - { - "fact": "AUTONOMY 22Apr 08:15: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:15:06.533813" - }, - { - "fact": "AUTONOMY 22Apr 08:10: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:10:06.375058" - }, - { - "fact": "AUTONOMY 22Apr 08:05: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:05:05.386486" - }, - { - "fact": "AUTONOMY 22Apr 08:00: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 10:00:08.200387" - }, - { - "fact": "AUTONOMY 22Apr 07:55: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 09:55:05.077922" - }, - { - "fact": "AUTONOMY 22Apr 07:50: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 09:50:06.264413" - }, - { - "fact": "AUTONOMY 22Apr 07:45: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 09:45:05.356474" - }, - { - "fact": "AUTONOMY 22Apr 07:40: 1 fixes. Disk light cleanup 86%", - "created_at": "2026-04-22 09:40:05.738663" - } - ], - "architecture_decisions": [ - { - "fact": "Crons: root=51 www-data=55 cron.d=72 total=178", - "created_at": "2026-04-13 00:30:48.940882" - }, - { - "fact": "Crons: root=51 www-data=55 cron.d=70 total=176", - "created_at": "2026-04-12 20:30:07.357094" - }, - { - "fact": "Crons: root=51 www-data=55 cron.d=70 total=176", - "created_at": "2026-04-12 18:30:05.962933" - }, - { - "fact": "Crons: root=51 www-data=55 cron.d=70 total=176", - "created_at": "2026-04-12 16:30:13.56815" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 14:30:11.101941" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 12:30:08.795912" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 10:30:04.181935" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 08:30:04.196728" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 06:30:04.792965" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 04:30:06.68899" - }, - { - "fact": "Crons: root=51 www-data=57 cron.d=70 total=178", - "created_at": "2026-04-12 02:30:07.207832" - }, - { - "fact": "Crons: root=51 www-data=54 cron.d=69 total=174", - "created_at": "2026-04-12 00:30:13.084556" - }, - { - "fact": "Crons: root=50 www-data=52 cron.d=69 total=171", - "created_at": "2026-04-11 22:30:07.088896" - }, - { - "fact": "Crons: root=50 www-data=52 cron.d=69 total=171", - "created_at": "2026-04-11 20:30:08.94444" - }, - { - "fact": "Crons: root=50 www-data=48 cron.d=69 total=167", - "created_at": "2026-04-11 18:30:04.55611" - } - ], - "pipelines": [ - { - "name": "CORTEX Smart Router", - "status": "active", - "desc": "T0 Ollama → T1 Free APIs → T2 Fallbacks", - "routes": 3718 - }, - { - "name": "RAG Ingest", - "status": "active", - "desc": "Cron *\/30 → Qdrant semantic indexing", - "freq": "*\/30" - }, - { - "name": "L99 Quality Gate", - "status": "active", - "desc": "253+ tests, 28 auth tests", - "freq": "*\/30" - }, - { - "name": "Blade Orchestrator", - "status": "active", - "desc": "GPU polling + model sync", - "freq": "*\/30" - }, - { - "name": "Infra Guardian", - "status": "active", - "desc": "Auto-restart nginx\/php\/docker", - "freq": "*\/5" - }, - { - "name": "Ethica Scraper Pipeline", - "status": "active", - "desc": "4 spiders, RichScraper, SearXNG", - "freq": "daily" - }, - { - "name": "WEVIA Dream", - "status": "active", - "desc": "Background learning + dataset enrichment", - "freq": "*\/30" - }, - { - "name": "Daily Brief", - "status": "active", - "desc": "Morning synthesis → Mattermost", - "freq": "daily 07h" - }, - { - "name": "Architecture Scanner", - "status": "active", - "desc": "This page — auto-scan + recommendations", - "freq": "*\/30" - } - ], - "agents_deployed": [ - { - "name": "Monitor Agent", - "role": "Watches all services, auto-restarts", - "status": "active" - }, - { - "name": "DevOps Agent", - "role": "Git sync, deployment, rollback", - "status": "active" - }, - { - "name": "Ethica Agent", - "role": "HCP scraping, validation, enrichment", - "status": "active" - }, - { - "name": "Security Agent", - "role": "Key rotation, secret scan, vulnerability check", - "status": "active" - }, - { - "name": "Blade Agent", - "role": "GPU orchestration, model management", - "status": "active" - }, - { - "name": "Dream Agent", - "role": "Background learning, dataset generation", - "status": "active" - }, - { - "name": "RAG Agent", - "role": "Knowledge ingestion, vector indexing", - "status": "active" - }, - { - "name": "Quality Agent", - "role": "L99 NonReg, regression detection", - "status": "active" - } - ] - }, - "mirofish": { - "status": "active", - "reports": 0, - "bridge": "\/api\/mirofish-bridge.php" - }, - "recommendations": { - "score": 100, - "total": 1, - "critical": 0, - "warning": 0, - "info": 0, - "opportunity": 1, - "auto_fixed": 0, - "fixes_log": [], - "recommendations": [ - { - "severity": "opportunity", - "category": "SCALABILITY", - "title": "Qdrant: 22,123 vecteurs", - "detail": "Volume vectoriel croissant. Planifier sharding ou migration vers cluster Qdrant.", - "action": "opportunity", - "fix_cmd": "" - } - ] - }, - "scan_time_ms": 3016, - "gaps": [], - "score": 100, - "automation": { - "coverage": 100, - "steps": 30, - "total": 30 - } -} \ No newline at end of file diff --git a/api/v83-business-kpi-latest.json b/api/v83-business-kpi-latest.json index 97176dab7..2f8515679 100644 --- a/api/v83-business-kpi-latest.json +++ b/api/v83-business-kpi-latest.json @@ -1,7 +1,7 @@ { "ok": true, "version": "V83-business-kpi", - "ts": "2026-04-22T08:54:27+00:00", + "ts": "2026-04-22T08:59:09+00:00", "summary": { "total_categories": 8, "total_kpis": 64, diff --git a/generated/mermaid-learn-kb.json b/generated/mermaid-learn-kb.json index fe18cd07b..0dd6a204c 100644 --- a/generated/mermaid-learn-kb.json +++ b/generated/mermaid-learn-kb.json @@ -79,5 +79,14 @@ "code": "flowchart TD\n A[Analyser Concurrence] --> B[Identifie Acteurs]\n B --> C[Acteur A]\n B --> D[Acteur B]\n B --> E[Acteur C]\n C --> F[Analyse Marche A]\n D --> G[Analyse Marche B]\n E --> H[Analyse Marche C]\n F --> I[Comparaison Stratégies]\n G --> I\n H --> I\n I --> J[Résultats Concurrence]\n J --> K[Stratégie d'Amélioration]", "created_at": "2026-04-22T03:03:23+00:00", "use_count": 0 + }, + { + "id": "d220154196fd", + "topic": "wevia", + "kind": "sequence", + "context": "Auto-generated from user query", + "code": "sequenceDiagram\n participant A as Client\n participant B as Serveur\n A->>B: Demande de connexion\n B->>A: Réponse de connexion\n A->>B: Envoi de données\n B->>A: Réponse de données\n A->>B: Demande de fermeture\n B->>A: Réponse de fermeture", + "created_at": "2026-04-22T08:58:07+00:00", + "use_count": 0 } ] \ No newline at end of file diff --git a/wevia.html b/wevia.html index a1c05d7bf..bccc4579c 100644 --- a/wevia.html +++ b/wevia.html @@ -1370,7 +1370,7 @@ function send() { function handleEvent(type, data) { if (type === 'start') { var header = '
'; - header += 'WEVIA Claude-pattern · pattern: ' + data.pattern + '
'; + header += 'WEVIA-pattern · pattern: ' + data.pattern + ''; container.innerHTML = header; } else if (type === 'phase') { @@ -3480,7 +3480,7 @@ function addSmartThinkSteps(query) { - +
- 🧠Claude Pattern + 🧠WEVIA-Pattern
-

🧠 Claude Pattern · 7 phases REAL (SSE live)

+

🧠 WEVIA-Pattern · 7 phases REAL (SSE live)

Backend: wevia · anti-hallucination · langue naturelle

@@ -3541,7 +3541,7 @@ function addSmartThinkSteps(query) { sess = 'opus-' + BOT + '-' + Date.now().toString(36) + '-' + Math.random().toString(36).substr(2, 6); sessionStorage.setItem(OPUS_SESSION_KEY, sess); } - const url = '/api/claude-pattern-sse.php?message=' + encodeURIComponent(msg) + '&chatbot=' + encodeURIComponent(BOT) + '&session=' + encodeURIComponent(sess); + const url = '/api/wevia-pattern-sse.php?message=' + encodeURIComponent(msg) + '&chatbot=' + encodeURIComponent(BOT) + '&session=' + encodeURIComponent(sess); const es = new EventSource(url); const phases = {}; const order = ['thinking','plan','rag','execute','tests','response','critique','done'];