auto-sync-0245
This commit is contained in:
@@ -101,8 +101,8 @@ footer{padding:8px 18px;background:var(--bg2);border-top:1px solid var(--rim);fo
|
||||
<span><span class="dot"></span>sovereign:4000</span>
|
||||
<span>streaming SSE 1h</span>
|
||||
<span>multi-agent auto</span>
|
||||
<span style="cursor:pointer;user-select:none" id="human-toggle" onclick="toggleHumanMode()" title="Mode humain: bypass les reponses robotiques, route vers LLM souveraine avec prompt humain">
|
||||
<input type="checkbox" id="human-chk" style="vertical-align:middle" checked> Mode Humain
|
||||
<span style="cursor:pointer;user-select:none;color:var(--vl)" id="human-toggle" onclick="toggleHumanMode()" title="Mode humain: bypass stubs/intents, route vers LLM pure (llm-direct.php) avec prompt /etc/wevia/system-prompt.txt">
|
||||
<input type="checkbox" id="human-chk" style="vertical-align:middle" checked> 💖 Mode Humain (LLM pure)
|
||||
</span>
|
||||
<span id="s-chat"></span>
|
||||
</div>
|
||||
@@ -376,24 +376,24 @@ async function sendChat(){
|
||||
try{
|
||||
// V108C-HUMAN-ROUTE: pure LLM bypass stubs/intents
|
||||
const shortMsg = text.length < 120 && !/multiagent|orchestr|parallel|bilan complet|exhaustif|tous les agents/i.test(text);
|
||||
const endpoint = (humanMode && shortMsg) ? '/api/wevia-stream-api.php' : '/api/wevia-master-api.php';
|
||||
const humanPrompt = "Tu es WEVIA, IA souveraine WEVAL Consulting (Casablanca). Tu parles comme une collegue chaleureuse et directe. Tutoie Yacine. Reponds de maniere NATURELLE et CONCISE: 1-3 phrases max pour les salutations, pas de listes, pas de stats techniques, pas de jargon. Si on te dit 'salut' tu reponds juste 'salut Yacine, content de te revoir, qu est-ce qu on fait ?' par exemple. Pas de self-intro exhaustive. Sois humaine.";
|
||||
const body = (humanMode && shortMsg) ? {
|
||||
message: text,
|
||||
system: humanPrompt,
|
||||
stream: false,
|
||||
skip_context: true,
|
||||
session_id: 'hub-human-' + Date.now()
|
||||
} : {
|
||||
message: text,
|
||||
session_id: 'all-ia-hub-' + Date.now()
|
||||
};
|
||||
const res=await fetch(endpoint,{
|
||||
method:'POST',
|
||||
headers:{'Content-Type':'application/json'},
|
||||
body:JSON.stringify(body),
|
||||
signal:AbortSignal.timeout(300000)
|
||||
});
|
||||
/* V109-LLM-DIRECT: human mode hits llm-direct.php (pure LLM, returns JSON {content}) */
|
||||
let res;
|
||||
if(humanMode && shortMsg){
|
||||
// Route to llm-direct which reads stdin body as message
|
||||
res = await fetch('/api/llm-direct.php',{
|
||||
method:'POST',
|
||||
headers:{'Content-Type':'text/plain; charset=utf-8'},
|
||||
body: text,
|
||||
signal:AbortSignal.timeout(60000)
|
||||
});
|
||||
} else {
|
||||
res = await fetch('/api/wevia-master-api.php',{
|
||||
method:'POST',
|
||||
headers:{'Content-Type':'application/json'},
|
||||
body:JSON.stringify({message:text,session_id:'all-ia-hub-'+Date.now()}),
|
||||
signal:AbortSignal.timeout(300000)
|
||||
});
|
||||
}
|
||||
const d=await res.json();
|
||||
const t=((Date.now()-t0)/1000).toFixed(1);
|
||||
/* V108-HUMAN: extract natural text */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"agent": "V45_Leads_Sync",
|
||||
"ts": "2026-04-21T02:30:02+02:00",
|
||||
"ts": "2026-04-21T02:40:02+02:00",
|
||||
"paperclip_total": 48,
|
||||
"active_customer": 4,
|
||||
"warm_prospect": 5,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"generated_at": "2026-04-21T02:35:01.647834",
|
||||
"generated_at": "2026-04-21T02:45:02.080833",
|
||||
"stats": {
|
||||
"total": 35,
|
||||
"pending": 20,
|
||||
|
||||
BIN
api/blade-tasks/v109-human-final/01-salut-response.png
Normal file
BIN
api/blade-tasks/v109-human-final/01-salut-response.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
api/blade-tasks/v109-human-final/02-comment-ca-va.png
Normal file
BIN
api/blade-tasks/v109-human-final/02-comment-ca-va.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
Binary file not shown.
31
api/blade-tasks/v109-human-final/proof.json
Normal file
31
api/blade-tasks/v109-human-final/proof.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"v109": "human-mode-via-llm-direct",
|
||||
"human_state": {
|
||||
"toggle_exists": true,
|
||||
"toggle_checked": true,
|
||||
"toggle_label_text": "\ud83d\udc96 Mode Humain (LLM pure)"
|
||||
},
|
||||
"chat_msgs_salut": [
|
||||
{
|
||||
"cls": "msg sys",
|
||||
"text": "> CHAT multi-agent pr\u00eat. Natural language router V103 actif. Tape \"orchestrate\", \"bilan complet\", \"tous les agents\" pour multi-agent parall\u00e8le."
|
||||
},
|
||||
{
|
||||
"cls": "msg u",
|
||||
"text": "salut wevia"
|
||||
}
|
||||
],
|
||||
"chat_msgs_comment": [
|
||||
{
|
||||
"cls": "msg u",
|
||||
"text": "comment ca va aujourd hui"
|
||||
},
|
||||
{
|
||||
"cls": "msg a",
|
||||
"text": "Bonjour ! Je suis WEVIA, votre IA souveraine de WEVAL Consulting. Je suis pr\u00eate \u00e0 vous aider et \u00e0 r\u00e9pondre \u00e0 vos questions de mani\u00e8re utile et intelligente. Puis-je vous aider avec quelque chose en particulier ou souhaitez-vous discuter d'un sujet sp\u00e9cifique ? Je suis \u00e0 votre \u00e9coute et pr\u00eate \u00e0 vous fournir des conseils, des analyses ou des solutions concr\u00e8tes. Si vous avez besoin d'informations sur l'\u00e9tat du syst\u00e8me, vous pouvez me demander de vous fournir des d\u00e9tails sur les serveurs, les conte"
|
||||
}
|
||||
],
|
||||
"has_raw_json": false,
|
||||
"has_intent_echo": false,
|
||||
"VERDICT": "HUMAN"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"ok": true,
|
||||
"agent": "V42_MQL_Scoring_Agent_REAL",
|
||||
"ts": "2026-04-21T00:30:01+00:00",
|
||||
"ts": "2026-04-21T00:40:01+00:00",
|
||||
"status": "DEPLOYED_AUTO",
|
||||
"deployed": true,
|
||||
"algorithm": "weighted_behavioral_signals",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"ts": "20260421_022822", "version": "3.2", "score": 100, "pass": 153, "fail": 0, "total": 153, "elapsed": 56.7, "categories": {"S204": {"pass": 9, "fail": 0}, "S95-WV": {"pass": 12, "fail": 0}, "S95-ARS": {"pass": 17, "fail": 0}, "S95-iR": {"pass": 1, "fail": 0}, "INFRA": {"pass": 5, "fail": 0}, "API": {"pass": 27, "fail": 0}, "SEC": {"pass": 4, "fail": 0}, "S95-BK": {"pass": 6, "fail": 0}, "C2-API": {"pass": 4, "fail": 0}, "C2-SPA": {"pass": 1, "fail": 0}, "C2-WV": {"pass": 3, "fail": 0}, "SSO": {"pass": 25, "fail": 0}, "DATA": {"pass": 5, "fail": 0}, "CRONS": {"pass": 2, "fail": 0}, "BLADE": {"pass": 7, "fail": 0}, "LIFE": {"pass": 3, "fail": 0}, "FUNC": {"pass": 7, "fail": 0}, "01AVR": {"pass": 10, "fail": 0}, "STRUCT": {"pass": 5, "fail": 0}}, "failures": []}
|
||||
{"ts": "20260421_024322", "version": "3.2", "score": 100, "pass": 153, "fail": 0, "total": 153, "elapsed": 57.3, "categories": {"S204": {"pass": 9, "fail": 0}, "S95-WV": {"pass": 12, "fail": 0}, "S95-ARS": {"pass": 17, "fail": 0}, "S95-iR": {"pass": 1, "fail": 0}, "INFRA": {"pass": 5, "fail": 0}, "API": {"pass": 27, "fail": 0}, "SEC": {"pass": 4, "fail": 0}, "S95-BK": {"pass": 6, "fail": 0}, "C2-API": {"pass": 4, "fail": 0}, "C2-SPA": {"pass": 1, "fail": 0}, "C2-WV": {"pass": 3, "fail": 0}, "SSO": {"pass": 25, "fail": 0}, "DATA": {"pass": 5, "fail": 0}, "CRONS": {"pass": 2, "fail": 0}, "BLADE": {"pass": 7, "fail": 0}, "LIFE": {"pass": 3, "fail": 0}, "FUNC": {"pass": 7, "fail": 0}, "01AVR": {"pass": 10, "fail": 0}, "STRUCT": {"pass": 5, "fail": 0}}, "failures": []}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"ok": true,
|
||||
"version": "V83-business-kpi",
|
||||
"ts": "2026-04-21T00:39:34+00:00",
|
||||
"ts": "2026-04-21T00:44:02+00:00",
|
||||
"summary": {
|
||||
"total_categories": 8,
|
||||
"total_kpis": 64,
|
||||
|
||||
@@ -232,7 +232,7 @@ $kpis = [
|
||||
["id" => "wtp_modules_erp", "label" => "WTP ERP modules (point entrée unique)", "value" => 16, "unit" => "modules", "target" => 16, "trend" => "live", "status" => "ok", "source" => "TREE.modules count", "drill" => "/weval-technology-platform.html"],
|
||||
["id" => "wtp_submodules", "label" => "Submodules navigables depuis WTP", "value" => safe_int('curl -sk --max-time 3 "http://127.0.0.1/api/weval-technology-platform-api.php?lite=1" -H "Host: weval-consulting.com" 2>/dev/null | grep -o submodules | wc -l'), "unit" => "submodules", "target" => 150, "trend" => "live", "status" => "ok", "source" => "TREE.modules.*.submodules", "drill" => "All ERP subsections"],
|
||||
["id" => "pages_total_s204", "label" => "Total HTML pages S204", "value" => safe_int("find /var/www/html -maxdepth 1 -name '*.html' 2>/dev/null | grep -vE '\\.(bak|gold|bk_|pre-)' | wc -l"), "unit" => "pages", "target" => 300, "trend" => "live", "status" => "ok", "source" => "find /var/www/html", "drill" => "All navigable pages"],
|
||||
["id" => "tools_exec_ratio", "label" => "Tools exec-able ratio (V97)", "value" => safe_int('jq "[.tools[] | select(.exec==true)] | length * 100 / ([.tools] | length)" /var/www/html/api/wevia-tool-registry.json 2>/dev/null | cut -d. -f1'), "unit" => "percent", "target" => 50, "trend" => "live", "status" => "warn", "source" => "wevia-tool-registry.json", "drill" => "V97 Zero Dormant 258 activated"],
|
||||
["id" => "tools_exec_ratio", "label" => "Tools exec-able ratio (V97)", "value" => safe_int('jq "([.tools[] | select(.exec==true)] | length) * 100 / (.tools | length)" /var/www/html/api/wevia-tool-registry.json 2>/dev/null | cut -d. -f1'), "unit" => "percent", "target" => 50, "trend" => "live", "status" => "warn", "source" => "wevia-tool-registry.json", "drill" => "V97 Zero Dormant 258 activated"],
|
||||
["id" => "l99_score", "label" => "L99 NonReg score (health)", "value" => safe_int("jq -r '.score // 0' /var/www/html/api/nonreg-latest.json 2>/dev/null"), "unit" => "percent", "target" => 100, "trend" => "live", "status" => "ok", "source" => "nonreg-latest.json", "drill" => "153/153 PASS maintained"]
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user