feat: agent Rust complet — systray, chat, enregistrement, floutage (2.4 MB)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-18 23:18:09 +01:00
parent ad7ff3bce4
commit 90ee91caf9
11 changed files with 2329 additions and 191 deletions

View File

@@ -1,8 +1,8 @@
[package]
name = "rpa-agent"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "Agent RPA Vision - Lea (Phase 1 headless)"
description = "Agent RPA Vision - Lea (Phases 1-5)"
[dependencies]
# Capture d'ecran
@@ -11,12 +11,18 @@ xcap = "0.7"
# Simulation souris/clavier (replay)
enigo = { version = "0.3", features = ["serde"] }
# Capture evenements souris/clavier (recording) — Phase 5
rdev = "0.5"
# Client HTTP (mode bloquant, pas de tokio)
reqwest = { version = "0.12", features = ["blocking", "multipart", "json"] }
# Traitement d'images (JPEG encode, resize)
# Traitement d'images (JPEG encode, resize, crop)
image = "0.25"
# Floutage zones sensibles — Phase 5
imageproc = "0.25"
# Encodage base64
base64 = "0.22"
@@ -33,11 +39,47 @@ hostname = "0.4"
# Date/heure
chrono = "0.4"
# Canaux inter-threads performants
crossbeam-channel = "0.5"
# Logging
log = "0.4"
env_logger = "0.11"
# Signal handling Unix (Ctrl+C)
[target.'cfg(unix)'.dependencies]
libc = "0.2"
# Dependances Windows uniquement — Phases 3-5
[target.'cfg(windows)'.dependencies]
# Systray — Phase 3
tray-icon = "0.19"
muda = "0.15"
# Boucle d'evenements — Phase 3
winit = { version = "0.30", features = ["rwh_06"] }
# Notifications toast — Phase 3
winrt-notification = "0.5"
# Chat WebView2 — Phase 4
wry = "0.48"
# Raw window handle pour wry + fenetre native
raw-window-handle = "0.6"
# Win32 API (info fenetre, dialogues, etc.)
windows-sys = { version = "0.59", features = [
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
"Win32_System_LibraryLoader",
"Win32_Foundation",
"Win32_Graphics_Gdi",
] }
[profile.release]
opt-level = "z"
lto = true
strip = true
codegen-units = 1
panic = "abort"