From 18eff17656a7fff895faa5fe6360666d41d73e47 Mon Sep 17 00:00:00 2001 From: opus Date: Thu, 16 Apr 2026 22:50:01 +0200 Subject: [PATCH] auto-sync-2250 --- admin-saas.html | 2 +- admin-v2.html | 2 +- agents-fleet.html | 2 +- api/blade-tasks/heartbeat.json | 2 +- api/key-health.json | 8 +++---- api/l99-autofix-log.json | 2 +- api/mirofish-ceo-cache.json | 2 +- api/weval-manager.php | 9 +++++--- api/wevia-antiregression-status.json | 2 +- api/wevia-auth-status.json | 28 ++++++++++++------------ api/wevia-autonomy-status.json | 22 +++++++++---------- api/wevia-blade-status.json | 2 +- api/wevia-nonreg-results.json | 14 ++++++------ api/wevia-selfmanage.json | 2 +- blade-ai.html | 6 +++--- claude-monitor.html | 2 +- deepseek.html | 2 +- director-center.html | 2 +- director-test.html | 2 +- director.html | 8 +++---- ethica-chatbot.html | 2 +- ethica-hcp-manager.html | 6 +++--- ethica-hub.html | 2 +- ethica-monitor.html | 2 +- ethica-pipeline.html | 4 ++-- l99-brain.html | 2 +- l99-saas.html | 2 +- medreach-dashboard.html | 2 +- monitoring.html | 2 +- nl-autowire-status.html | 6 +++--- office-admins.html | 2 +- oss-discovery.html | 6 +++--- security-dashboard.html | 4 ++-- vault-manager.html | 32 ++++++++++++++-------------- weval-arena.html | 2 +- wevia-chat.html | 2 +- wevia-director-dashboard.html | 10 ++++----- wevia-meetings.html | 2 +- wevia-orchestrator.html | 2 +- 39 files changed, 108 insertions(+), 105 deletions(-) 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='
Loading trending...
'; try{ const r=await fetch('/api/oss-trending.json?t='+Date.now()); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("
📈 GitHub Trending
${(d.trending||[]).length}
${(d.trending||[]).map(t=>``).join('')} diff --git a/security-dashboard.html b/security-dashboard.html index b63a51124..93041b1c3 100644 --- a/security-dashboard.html +++ b/security-dashboard.html @@ -50,7 +50,7 @@ const API='/api/secret-scanner-api.php'; async function load(){ try{ const r=await fetch(API+'?action=results'); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||"").trim();if(_q.startsWith("🏠 All${d.count}`; @@ -459,7 +459,7 @@ async function loadDir(dir) { currentDir = dir; loadDirs(); const r = await fetch(API_VAULT + '?action=list&dir=' + dir); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('No results'; return; @@ -510,7 +510,7 @@ async function doSearch() { async function loadNote(file) { try { const r = await fetch(API_VAULT + '?action=read&file=' + encodeURIComponent(file)); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('&1' }); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('{ btn.textContent='🧠 Re-Embed'; btn.disabled=false; }, 3000); } catch(e) { btn.textContent = '🧠 Error'; btn.disabled = false; } @@ -624,7 +624,7 @@ async function masterCmd(msg) { headers: {'Content-Type': 'application/json'}, body: JSON.stringify({message: msg}) }); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('
Master Response (${d.source||'?'})
${typeof d.content==='string'?d.content:JSON.stringify(d.content,null,2)}
`; } catch(e) { res.innerHTML = `
Master timeout
`; @@ -695,7 +695,7 @@ async function buildHomepage() { try { const r = await fetch(API_VAULT + '?action=list'); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('f.type==='dir'); for (const dir of dirs) { @@ -762,7 +762,7 @@ async function syncPromptToMaster() { try { // Read the current system prompt const r = await fetch(API_VAULT + '?action=read&file=doctrines/000-system-prompt.md'); - /* HTML_GUARD_V2_BATCH */ const _t_d=await r.text(); const d=null; {var _q=(_t_d||'').trim();if(_q.startsWith('l.trim()).slice(0,5); @@ -907,7 +907,7 @@ async function moveNote() { // Read content, write to new path, delete old try { const r = await fetch(API_VAULT + '?action=read&file=' + encodeURIComponent(currentFile)); - /* 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("
ScoreRepoLangNeeds
${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('')}