AI Models: - Add model download system for Mistral-7B, CLIP, MiniLM - Mistral-7B-Instruct Q4 (~4GB) for text analysis - CLIP ViT for image-text embeddings - MiniLM L6 for lightweight text embeddings - Model caching in models/ directory - CLI commands: models list/download/info/downloaded Vision & Image Analysis: - Image analyzer module with OCR support (planned) - CLIP integration for screenshot understanding - Multimodal analysis (text + image) - ImageAnalysis struct for structured results Data Export & Retrieval: - New API endpoints: - GET /api/captures - List all captures - GET /api/captures/:id - Get specific capture with screenshot - GET /api/export/full - Full data export - Screenshots encoded in base64 for API responses - Configurable export (include/exclude screenshots) - All data fully retrievable via API CLI Commands: - `activity-tracker models list` - Show available models - `activity-tracker models download mistral` - Download Mistral - `activity-tracker models info <model>` - Show model details - `activity-tracker models downloaded` - List downloaded models Storage: - All captures stored in encrypted SQLite DB - Screenshots preserved with AES-256-GCM encryption - Analysis metadata linked to captures - Full data retention and recovery Dependencies: - base64 0.22 for screenshot encoding All tests passing (30/30) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
75 lines
1.6 KiB
TOML
75 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"
|
|
base64 = "0.22"
|
|
|
|
# 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"
|