diff --git a/api/wevia-sse-orchestrator.php b/api/wevia-sse-orchestrator.php index ebffbc656..abf8a6735 100644 --- a/api/wevia-sse-orchestrator.php +++ b/api/wevia-sse-orchestrator.php @@ -335,6 +335,17 @@ if (preg_match('/active.*powerdns.*confirmed|pdns.*go.*live.*confirmed/i', $msg) } // === END CF-BYPASS INTENTS === +// === CF-BYPASS V33 — PDNS ACTIVATE PROMPT (UX guide) === +// Cause racine V32: utilisateur tapait "activate powerdns" sans "confirmed" +// → orchestrator ne détectait pas pdns_activate_gated → UX cassée, pas de guide +// V33 fix: intent guide qui répond AVANT activation avec pre-flight + mot magique +if (preg_match('/activ.*powerdns|activ.*pdns|go.*live.*pdns|start.*pdns|enable.*pdns|finir.*pdns|finish.*pdns|phase.*1.*finish|cf-bypass.*phase.*1/i', $msg) + && !preg_match('/confirmed|valide|ok.*activ|go.*live.*confirmed/i', $msg)) { + $intents[] = ['id'=>'pdns_activate_prompt','cmd'=>'curl -s --max-time 8 "http://127.0.0.1:5890/api/wevia-pdns-prompt-intent.php?msg=' . urlencode($msg) . '" 2>&1 | head -c 1800']; +} +// === END V33 === + + // EXECUTE detected intents if (!empty($intents)) { sse(['type'=>'executor','status'=>'start','intents'=>count($intents)]); diff --git "a/api/\031X\033\vKKH" "b/api/\031X\033\vKKH" deleted file mode 100644 index 9643f2ae5..000000000 --- "a/api/\031X\033\vKKH" +++ /dev/null @@ -1,32 +0,0 @@ -# PowerDNS config WEVADS CF-Bypass -# Souverain, bind priv\u00e9 uniquement, no conflict systemd-resolved -# GOLD: /var/backups/gold_cf_bypass_s204_20260417_180728/pdns.conf.original - -launch=bind -bind-config=/etc/powerdns/named.conf -local-address=10.1.0.2 -local-port=53 -setgid=pdns -setuid=pdns - -# Performance -distributor-threads=2 -receiver-threads=1 -queue-limit=1500 - -# Security: only internal AS -allow-axfr-ips=10.0.0.0/8,172.16.0.0/12 -disable-axfr=no - -# Logs -loglevel=4 -log-dns-queries=no -log-dns-details=no - -# API disabled (on cause via bind zone files directly) -api=no -webserver=no - -# Version cache -cache-ttl=60 -query-cache-ttl=60 diff --git a/dashboards-hub.html b/dashboards-hub.html index e1336261a..3cc231f35 100644 --- a/dashboards-hub.html +++ b/dashboards-hub.html @@ -182,4 +182,13 @@ async function loadKPIs() { loadKPIs(); setInterval(loadKPIs, 30000); + + +