Backend: - Add web server module with Axum (localhost:2759 by default) - Create REST API endpoints (/api/stats, /api/dashboard, /api/health) - Add AI module with NPU support via ONNX Runtime + DirectML - Support Intel AI Boost NPU on Intel Core Ultra processors - Add 'serve' command to CLI for dashboard server Frontend: - Modern dashboard with Tailwind CSS and Chart.js - Real-time activity statistics and visualizations - Category distribution pie chart - Daily activity trend line chart - Recent activities table with filtering AI/ML: - NPU device detection and DirectML configuration - ONNX Runtime integration for model inference - Fallback to rule-based classification when no model loaded - Support for future AI model integration Dependencies: - axum 0.7 (web framework) - tower + tower-http (middleware and static files) - ort 2.0.0-rc.10 (ONNX Runtime with DirectML) - ndarray 0.16 + tokenizers 0.20 (ML utilities) All tests passing (27/27) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
1.6 KiB
TOML
74 lines
1.6 KiB
TOML
[package]
|
|
name = "activity-tracker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Activity Tracker Team"]
|
|
description = "Backend de suivi d'activité pour reconstruire l'historique de travail (Windows uniquement)"
|
|
|
|
[dependencies]
|
|
# Core dependencies
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# Capture
|
|
screenshots = "0.6"
|
|
image = "0.24"
|
|
webp = "0.2"
|
|
|
|
# Windows APIs
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { version = "0.52", features = [
|
|
"Win32_Foundation",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Threading",
|
|
"Win32_System_ProcessStatus",
|
|
] }
|
|
|
|
# Storage (SQLite + Encryption)
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
|
|
# Encryption (AES-256-GCM)
|
|
aes-gcm = "0.10"
|
|
pbkdf2 = { version = "0.12", features = ["simple"] }
|
|
rand = "0.8"
|
|
sha2 = "0.10"
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# Time management
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# CLI
|
|
clap = { version = "4.4", features = ["derive"] }
|
|
|
|
# Configuration
|
|
toml = "0.8"
|
|
dotenv = "0.15"
|
|
|
|
# Utilities
|
|
regex = "1.10"
|
|
|
|
# Web Server (Dashboard)
|
|
axum = { version = "0.7", features = ["ws", "macros"] }
|
|
tower = { version = "0.4", features = ["util"] }
|
|
tower-http = { version = "0.5", features = ["fs", "trace", "cors"] }
|
|
mime_guess = "2.0"
|
|
|
|
# AI/ML (NPU support via DirectML)
|
|
ort = { version = "2.0.0-rc.10", features = ["download-binaries", "directml"] }
|
|
ndarray = "0.16"
|
|
tokenizers = "0.20"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.8"
|
|
criterion = "0.5"
|
|
|
|
[[bin]]
|
|
name = "activity-tracker"
|
|
path = "src/main.rs"
|