Refonte majeure du système Agent Chat et ajout de nombreux modules : - Chat unifié : suppression du dual Workflows/Agent Libre, tout passe par /api/chat avec résolution en 3 niveaux (workflow → geste → "montre-moi") - GestureCatalog : 38 raccourcis clavier universels Windows avec matching sémantique, substitution automatique dans les replays, et endpoint /api/gestures - Mode Copilot : exécution pas-à-pas des workflows avec validation humaine via WebSocket (approve/skip/abort) avant chaque action - Léa UI (agent_v0/lea_ui/) : interface PyQt5 pour Windows avec overlay transparent pour feedback visuel pendant le replay - Data Extraction (core/extraction/) : moteur d'extraction visuelle de données (OCR + VLM → SQLite), avec schémas YAML et export CSV/Excel - ReplayVerifier (agent_v0/server_v1/) : vérification post-action par comparaison de screenshots, avec logique de retry (max 3) - IntentParser durci : meilleur fallback regex, type GREETING, patterns améliorés - Dashboard : nouvelles pages gestures, streaming, extractions - Tests : 63 tests GestureCatalog, 47 tests extraction, corrections tests existants - Dépréciation : /api/agent/plan et /api/agent/execute retournent HTTP 410, suppression du code hardcodé _plan_to_replay_actions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
176 lines
9.4 KiB
HTML
176 lines
9.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>RPA Vision V3 - Gestes Primitifs</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0f172a; color: #e2e8f0; min-height: 100vh; }
|
|
.header { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; }
|
|
.header h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
|
|
.header .nav-links { display: flex; gap: 15px; align-items: center; }
|
|
.header .nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 8px; transition: all 0.2s; }
|
|
.header .nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
|
|
.header .nav-links a.active { background: rgba(255,255,255,0.2); color: white; font-weight: 600; }
|
|
|
|
.container { max-width: 1600px; margin: 0 auto; padding: 20px; }
|
|
|
|
.page-intro { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 12px; padding: 25px; border: 1px solid #334155; margin-bottom: 20px; }
|
|
.page-intro h2 { color: #e2e8f0; margin-bottom: 8px; font-size: 20px; }
|
|
.page-intro p { color: #64748b; font-size: 14px; }
|
|
|
|
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
|
|
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
|
|
.card { background: #1e293b; border-radius: 12px; padding: 20px; border: 1px solid #334155; }
|
|
.card h2 { font-size: 16px; margin-bottom: 15px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
|
|
.card h2 .icon { font-size: 20px; }
|
|
|
|
.stat-card { text-align: center; }
|
|
.stat-value { font-size: 36px; font-weight: bold; color: #3b82f6; }
|
|
.stat-label { font-size: 12px; color: #64748b; margin-top: 5px; text-transform: uppercase; }
|
|
|
|
.category-section { margin-bottom: 30px; }
|
|
.category-title { font-size: 18px; color: #e2e8f0; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #334155; }
|
|
.category-title .cat-icon { font-size: 24px; }
|
|
.category-title .count { font-size: 12px; color: #64748b; background: #334155; padding: 3px 10px; border-radius: 12px; margin-left: 10px; }
|
|
|
|
.gesture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
|
|
.gesture-card { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 18px; transition: all 0.2s; cursor: default; }
|
|
.gesture-card:hover { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1); }
|
|
.gesture-card .gesture-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
|
|
.gesture-card .gesture-name { font-size: 15px; font-weight: 600; color: #e2e8f0; }
|
|
.gesture-card .gesture-shortcut { display: inline-flex; align-items: center; gap: 4px; }
|
|
.gesture-card .gesture-shortcut kbd { background: #334155; color: #94a3b8; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-family: 'Segoe UI', monospace; border: 1px solid #475569; }
|
|
.gesture-card .gesture-description { color: #64748b; font-size: 13px; line-height: 1.5; }
|
|
.gesture-card .gesture-icon { font-size: 28px; margin-bottom: 8px; }
|
|
|
|
.unavailable-msg { text-align: center; padding: 60px 20px; color: #64748b; }
|
|
.unavailable-msg .msg-icon { font-size: 48px; margin-bottom: 15px; }
|
|
.unavailable-msg h3 { color: #94a3b8; margin-bottom: 10px; }
|
|
.unavailable-msg p { font-size: 14px; max-width: 500px; margin: 0 auto; }
|
|
|
|
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
|
|
.filter-bar input { padding: 10px 15px; background: #0f172a; border: 1px solid #334155; border-radius: 8px; color: #e2e8f0; font-size: 14px; min-width: 300px; }
|
|
.filter-bar input:focus { outline: none; border-color: #3b82f6; }
|
|
.filter-bar .filter-count { color: #64748b; font-size: 13px; margin-left: auto; }
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-4 { grid-template-columns: 1fr 1fr; }
|
|
.gesture-grid { grid-template-columns: 1fr; }
|
|
.header { flex-direction: column; gap: 15px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h1>RPA Vision V3 - Gestes Primitifs</h1>
|
|
<div class="nav-links">
|
|
<a href="/">Dashboard</a>
|
|
<a href="/gestures" class="active">Gestes</a>
|
|
<a href="/streaming">Streaming</a>
|
|
<a href="/extractions">Extractions</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="page-intro">
|
|
<h2>Catalogue des gestes primitifs</h2>
|
|
<p>Liste de tous les gestes (raccourcis clavier, actions systeme) connus par le moteur RPA. Ces gestes sont utilisables dans les workflows pour interagir avec les applications.</p>
|
|
</div>
|
|
|
|
<!-- Stats -->
|
|
<div class="grid grid-4">
|
|
<div class="card stat-card">
|
|
<div class="stat-value" id="statTotal">{{ stats.total }}</div>
|
|
<div class="stat-label">Total gestes</div>
|
|
</div>
|
|
<div class="card stat-card">
|
|
<div class="stat-value" id="statCategories">{{ stats.categories }}</div>
|
|
<div class="stat-label">Categories</div>
|
|
</div>
|
|
<div class="card stat-card">
|
|
<div class="stat-value" id="statWithShortcut">{{ stats.with_shortcut }}</div>
|
|
<div class="stat-label">Avec raccourci</div>
|
|
</div>
|
|
<div class="card stat-card">
|
|
<div class="stat-value">{{ stats.source }}</div>
|
|
<div class="stat-label">Source</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if not available %}
|
|
<div class="card">
|
|
<div class="unavailable-msg">
|
|
<div class="msg-icon">⚠️</div>
|
|
<h3>Module non disponible</h3>
|
|
<p>Le module <code>agent_chat.gesture_catalog</code> n'est pas installe ou accessible. Les gestes ci-dessous sont le catalogue integre par defaut.</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Filtre -->
|
|
<div class="filter-bar">
|
|
<input type="text" id="searchGestures" placeholder="Rechercher un geste (nom, raccourci, description)..." oninput="filterGestures()">
|
|
<span class="filter-count" id="filterCount">{{ stats.total }} geste(s) affiche(s)</span>
|
|
</div>
|
|
|
|
<!-- Gestes par categorie -->
|
|
<div id="gesturesContainer">
|
|
{% for category in categories %}
|
|
<div class="category-section" data-category="{{ category.id }}">
|
|
<div class="category-title">
|
|
<span class="cat-icon">{{ category.icon }}</span>
|
|
{{ category.name }}
|
|
<span class="count">{{ category.gestures | length }}</span>
|
|
</div>
|
|
<div class="gesture-grid">
|
|
{% for gesture in category.gestures %}
|
|
<div class="gesture-card" data-search="{{ gesture.name|lower }} {{ gesture.description|lower }} {{ gesture.shortcut|lower if gesture.shortcut else '' }}">
|
|
<div class="gesture-icon">{{ gesture.icon }}</div>
|
|
<div class="gesture-header">
|
|
<span class="gesture-name">{{ gesture.name }}</span>
|
|
{% if gesture.shortcut %}
|
|
<span class="gesture-shortcut">
|
|
{% for key in gesture.shortcut.split('+') %}
|
|
<kbd>{{ key }}</kbd>{% if not loop.last %}<span style="color:#475569;">+</span>{% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="gesture-description">{{ gesture.description }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function filterGestures() {
|
|
const query = document.getElementById('searchGestures').value.toLowerCase().trim();
|
|
const cards = document.querySelectorAll('.gesture-card');
|
|
const sections = document.querySelectorAll('.category-section');
|
|
let visible = 0;
|
|
|
|
cards.forEach(card => {
|
|
const searchText = card.getAttribute('data-search') || '';
|
|
const match = !query || searchText.includes(query);
|
|
card.style.display = match ? '' : 'none';
|
|
if (match) visible++;
|
|
});
|
|
|
|
// Masquer les categories vides
|
|
sections.forEach(section => {
|
|
const visibleCards = section.querySelectorAll('.gesture-card:not([style*="display: none"])');
|
|
section.style.display = visibleCards.length > 0 ? '' : 'none';
|
|
});
|
|
|
|
document.getElementById('filterCount').textContent = `${visible} geste(s) affiche(s)`;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|