diff --git a/admin-saas.html b/admin-saas.html index b678be978..91c141a90 100644 --- a/admin-saas.html +++ b/admin-saas.html @@ -301,7 +301,7 @@ async function tick(){ try{ const r=await fetch(U,{cache:'no-cache'}); if(!r.ok) return; -/* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith(""Alibaba/Qwen","type"=>"cloud", "url"=>"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions", "key"=>"sk-34db1ad3152443cd86563d1bfc576c30","model"=>"qwen-plus"]; @@ -445,9 +446,9 @@ function select_provider($intent, $complexity) { $meditron = ["name"=>"Ollama/Meditron","type"=>"local","model"=>"meditron:7b"]; if ($intent === "medical") return $meditron; - if ($complexity === "high") return $cerebras; // 235B for complex - if (in_array($intent, ["code","debug","security","tech","execute"])) return $cerebras; - return $cerebras; // was alibaba + if ($complexity === "high") return $groq; + if (in_array($intent, ["code","debug","security","tech","execute"])) return $groq; + return $groq; } // ================================================================= @@ -620,6 +621,7 @@ function ollama_call($model, $system, $msg) { } function cloud_call_chain($system, $msg) { + global $secrets; // Fallback chain: Groq 8s -> Cerebras 6s -> SambaNova 6s -> Alibaba 10s $providers = [ ["https://api.groq.com/openai/v1/chat/completions", ($secrets["GROQ_KEY"]??""), "llama-3.3-70b-versatile", 8], @@ -652,6 +654,7 @@ function cloud_call($url, $key, $model, $system, $msg, $timeout=12) { // CONSENSUS (curl_multi parallel: Alibaba + Cerebras + Groq) // ================================================================= function consensus_ask($msg, $system) { + global $secrets; $providers = [ ["n"=>"alibaba","u"=>"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions","k"=>"sk-34db1ad3152443cd86563d1bfc576c30","m"=>"qwen-plus"], ["n"=>"cerebras","u"=>"https://api.cerebras.ai/v1/chat/completions","k"=>"csk-4wrrhkpr568ry9xx49k9mcynwdx483nx53dd62yh5xedfckh","m"=>"qwen-3-235b-a22b-instruct-2507"], diff --git a/api/wevia-antiregression-status.json b/api/wevia-antiregression-status.json index 80a50959e..08a90290d 100644 --- a/api/wevia-antiregression-status.json +++ b/api/wevia-antiregression-status.json @@ -1,5 +1,5 @@ { - "timestamp": "2026-04-16 22:40:05", + "timestamp": "2026-04-16 22:45:05", "healthy": true, "issues": [], "fixes": [], diff --git a/api/wevia-auth-status.json b/api/wevia-auth-status.json index 0b793759d..1c1c81275 100644 --- a/api/wevia-auth-status.json +++ b/api/wevia-auth-status.json @@ -1,5 +1,5 @@ { - "timestamp": "2026-04-16 20:40:08", + "timestamp": "2026-04-16 20:45:08", "healthy": false, "checks": { "outpost": "DOWN", @@ -19,7 +19,7 @@ "docker:authentik-worker": "NOT_FOUND", "docker:authentik-db": "NOT_FOUND", "docker:authentik-redis": "NOT_FOUND", - "open_ports": 65, + "open_ports": 66, "nginx": "OK" }, "flow_ok": 2, @@ -30,62 +30,62 @@ { "level": "critical", "msg": "Outpost DOWN 9090", - "ts": "2026-04-16T20:40:01+00:00" + "ts": "2026-04-16T20:45:01+00:00" }, { "level": "critical", "msg": "Outpost STILL DOWN", - "ts": "2026-04-16T20:40:06+00:00" + "ts": "2026-04-16T20:45:06+00:00" }, { "level": "warning", "msg": "Auth flow wevads.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:07+00:00" + "ts": "2026-04-16T20:45:06+00:00" }, { "level": "warning", "msg": "Auth flow ethica.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:07+00:00" + "ts": "2026-04-16T20:45:07+00:00" }, { "level": "warning", "msg": "Auth flow n8n.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:07+00:00" + "ts": "2026-04-16T20:45:07+00:00" }, { "level": "warning", "msg": "Auth flow crm.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:07+00:00" + "ts": "2026-04-16T20:45:07+00:00" }, { "level": "warning", "msg": "Auth flow mm.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:07+00:00" + "ts": "2026-04-16T20:45:07+00:00" }, { "level": "warning", "msg": "Auth flow analytics.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:08+00:00" + "ts": "2026-04-16T20:45:07+00:00" }, { "level": "warning", "msg": "Auth flow deerflow.weval-consulting.com: 200", - "ts": "2026-04-16T20:40:08+00:00" + "ts": "2026-04-16T20:45:08+00:00" }, { "level": "warning", "msg": "Callback location missing in nginx", - "ts": "2026-04-16T20:40:08+00:00" + "ts": "2026-04-16T20:45:08+00:00" } ], "fixes": [ { "title": "Restart authentik", - "ts": "2026-04-16T20:40:01+00:00" + "ts": "2026-04-16T20:45:01+00:00" }, { "title": "Callback location auto-added", - "ts": "2026-04-16T20:40:08+00:00" + "ts": "2026-04-16T20:45:08+00:00" } ] } \ No newline at end of file diff --git a/api/wevia-autonomy-status.json b/api/wevia-autonomy-status.json index d3935453f..5cc604b99 100644 --- a/api/wevia-autonomy-status.json +++ b/api/wevia-autonomy-status.json @@ -1,8 +1,8 @@ { - "timestamp": "2026-04-16 20:40:01", + "timestamp": "2026-04-16 20:45:01", "version": "1.0", "disk": 84, - "ram": 16, + "ram": 27, "docker": 19, "ssl_days": 353, "ollama_models": 5, @@ -14,26 +14,26 @@ { "level": "critical", "msg": "S204:authentik DOWN (:9090)", - "time": "20:40:01" + "time": "20:45:01" }, { "level": "warning", "msg": "Token : expired", - "time": "20:40:03" + "time": "20:45:02" }, { "level": "warning", "msg": "Token : expired", - "time": "20:40:03" + "time": "20:45:02" } ], "log": [ - "20:40:01 Disk: 84%", - "20:40:01 SSL: 353d remaining", - "20:40:02 Docker: 19 containers", - "20:40:02 Ollama: 5 models, 5.2GB", - "20:40:02 RAM: 16%", - "20:40:03 Arch score: 100\/100" + "20:45:01 Disk: 84%", + "20:45:01 SSL: 353d remaining", + "20:45:01 Docker: 19 containers", + "20:45:01 Ollama: 5 models, 5.2GB", + "20:45:01 RAM: 27%", + "20:45:02 Arch score: 100\/100" ], "s204_services": 8, "s95_mta": 5 diff --git a/api/wevia-blade-status.json b/api/wevia-blade-status.json index a4b0d6bf4..b7abcd1a9 100644 --- a/api/wevia-blade-status.json +++ b/api/wevia-blade-status.json @@ -1 +1 @@ -{"ts":"22:44","status":"offline"} +{"ts":"22:48","status":"offline"} diff --git a/api/wevia-nonreg-results.json b/api/wevia-nonreg-results.json index 98a18dd8a..0a06e37d1 100644 --- a/api/wevia-nonreg-results.json +++ b/api/wevia-nonreg-results.json @@ -1,8 +1,8 @@ { - "date": "2026-04-16 20:30:01", - "score": "7\/13 (53.8%)", - "passed": 7, - "failed": 6, + "date": "2026-04-16 20:45:01", + "score": "8\/13 (61.5%)", + "passed": 8, + "failed": 5, "total": 13, "regressions": [], "auto_fixes": [], @@ -30,12 +30,12 @@ { "name": "eng:SSL", "ok": true, - "detail": "21t 0a" + "detail": "24t 0a" }, { "name": "eng:Compare", - "ok": false, - "detail": "0t 0a" + "ok": true, + "detail": "165t 3a" }, { "name": "api:Dream", diff --git a/api/wevia-selfmanage.json b/api/wevia-selfmanage.json index 286a6c922..95d1abc1f 100644 --- a/api/wevia-selfmanage.json +++ b/api/wevia-selfmanage.json @@ -1 +1 @@ -{"ts": "22:40", "status": "ok"} \ No newline at end of file +{"ts": "22:45", "status": "ok"} \ No newline at end of file diff --git a/blade-ai.html b/blade-ai.html index 38889981f..743b37387 100644 --- a/blade-ai.html +++ b/blade-ai.html @@ -243,7 +243,7 @@ async function checkStatus() { const c = new AbortController(); setTimeout(() => c.abort(), 8000); const r = await fetch('/api/blade-poll.php?k=BLADE2026&action=status', { signal: c.signal }); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith(" ctrl.abort(), 90000); const r = await fetch("/api/wevia-arena-health.php", {signal: ctrl.signal}); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("✅ Envoyé!':'❌ '+JSON.stringify(d.response?.error?.message||d.error)+''; } async function sendWATemplate(){ const to=document.getElementById('wa-to').value; const r=await fetch('/api/whatsapp-api.php',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'action=send&to='+encodeURIComponent(to)+'&template=hello_world&lang=en_US'}); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("✅ Template envoyé!':'❌ '+JSON.stringify(d.response?.error?.message||d.error)+''; } diff --git a/ethica-hub.html b/ethica-hub.html index f2b117383..0154b60eb 100644 --- a/ethica-hub.html +++ b/ethica-hub.html @@ -94,7 +94,7 @@ h2{padding:12px 40px 0;font-size:15px;color:#7c3aed;text-transform:uppercase;let (async function(){ try{ const r=await fetch('/api/wevia-action-engine.php',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'action=ethica_stats'}); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("{document.getElementById('clock').textContent=new Date().toLocal async function fetchLive(){ try{ const r=await fetch('/api/l99-api.php?action=results'); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("t.status==='P').length; diff --git a/medreach-dashboard.html b/medreach-dashboard.html index 3832070fb..236c65d2f 100644 --- a/medreach-dashboard.html +++ b/medreach-dashboard.html @@ -213,7 +213,7 @@ async function tick(){ try{ const r=await fetch(U,{cache:'no-cache'}); if(!r.ok) return; -/* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("fetch('/api/oss-cache.json')); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("{b.textContent='⚡ Scan Now';b.disabled=false;load()},3000); }catch(e){b.textContent='❌ Error';setTimeout(()=>{b.textContent='⚡ Scan Now';b.disabled=false},2000)} @@ -192,7 +192,7 @@ async function loadTrending(){ box.innerHTML='
| Score | ★ | Repo | Lang | Needs |
|---|---|---|---|---|
| ${t.score} | ${fmt(t.stars)} | ${t.name.split('/').pop()} ${(t.description||'').slice(0,70)} | ${t.language||'?'} | ${(t.needs||[]).slice(0,3).map(n=>tag(n)).join('')} |