Arnaud Dartois
d4a86b8c7f
feat(mvp): docker-compose snippet in UI, agent flow tests
...
- Site detail: generate registration token with copy/paste docker-compose snippet
- Docker snippet: pre-filled with token + agent hostname, ready to copy
- Agents integration tests: register with valid token, heartbeat with API key,
invalid token rejection (3 new tests)
- TokenResult DTO for API client
- IJSRuntime clipboard copy for docker-compose snippet
2026-07-17 07:00:58 +00:00
Arnaud Dartois
2ea82504d7
feat(mvp): rate limiting, agents page, site detail navigation
...
- Rate limiting: Microsoft.AspNetCore.RateLimiting AddFixedWindowLimiter
(Auth: 10 req/min, Api: 200 req/min, returns 429 when exceeded)
- Agents Blazor: new page listing agents per site with status/heartbeat
- Site detail: camera and agent navigation cards
- ApiClient: GetAgentsBySiteAsync, AgentItem DTO
- Removed custom middleware (replaced by proper built-in rate limiter)
2026-07-17 06:57:00 +00:00
Arnaud Dartois
dfc888db94
feat(mvp): agent auth, cameras UI, rate limiting attempt
...
- Agent: fix heartbeat auth — set API Key header after registration
- Cameras Blazor: full page with create/delete/list by site
- ApiClient: cameras CRUD endpoints + CameraItem DTO
- Rate limiting: attempted but deferred (System.Threading.RateLimiting package issue)
- Security: refresh token rotation now enforced server-side
2026-07-17 06:30:09 +00:00
Arnaud Dartois
6d5ec0c201
feat(mvp): cameras API, Docker production, tests, security, Makefile
...
- Cameras API: CRUD with service/controller/DTOs + Blazor page
- Docker: production-grade compose with healthchecks, .env, Makefile, networks
- Healthchecks: /healthz (liveness) and /readyz (readiness) endpoints
- Testing: 13 integration tests (Auth, Sites, Users, Cameras controllers)
- Users: create, list, lock, reset-password
- Cameras: create with site, list by site
- Environment: .env.example, docker-compose.override.yml for dev
- Infrastructure: ICameraService registered in DI
2026-07-17 06:18:56 +00:00
Arnaud Dartois
38816aec8a
feat(mvp): complete Blazor UI + User Management + integration tests
2026-07-16 21:19:16 +00:00
Arnaud Dartois
b217c932e8
feat(mvp): implement MVP multi-site platform
...
Complete MVP implementation (Étape 1) covering:
- Domain: primitives (Entity<TId>, ValueObject), 10 entities, 6 enums
- EF Core: AppDbContext + Identity, 8 EntityTypeConfigurations, audit/soft-delete interceptors, initial migration
- Application: service interfaces, DTOs, FluentValidation, ServiceResult pattern
- Security: Identity + JWT + API Key multi-auth, role-based permissions, constant-time key validation
- API: Auth/Sites/Agents controllers with explicit auth scheme policies
- Workers: Hangfire PostgreSQL setup with schema isolation, HeartbeatMonitorJob
- Agent: registration service + 30s heartbeat loop
- Docker: multi-stage Dockerfiles for central + agent, docker-compose.yml
- CI/CD: GitHub Actions pipeline with build+test and Docker build
- Tests: 13 domain tests (Site, Agent, Camera entities)
Architecture decisions per deliberation council:
- API Key via AuthenticationHandler<T> (not middleware)
- Explicit [Authorize(AuthenticationSchemes)] on all endpoints
- Event/Recording/Person/Vehicle deferred from initial migration
- Hangfire compatible with .NET 10 (v1.8.17)
2026-07-16 20:53:56 +00:00
Arnaud Dartois
ad78346ac4
chore: update opencode submodule to 7463a8a
...
- feat(rules): add mandatory user confirmation gate for deliberation and commit
2026-07-16 20:18:51 +00:00
Arnaud Dartois
1bd6de1d48
docs: detail fonctionnel des etapes 2 a 7 avec scenarios concrets
...
Chaque phase des Etapes 2 a 7 a maintenant des scenarios de test detailles, des exemples requetes/reponses HTTP, et des sections 'Fonctionnel a la fin de cette phase' comme pour l'Etape 1. Ajout de schemas JSON pour chaque endpoint, scenarios utilisateur complets (detection avec dedup, live video, notifications, retention, mobile).
2026-07-16 20:14:06 +00:00
Arnaud Dartois
150275a47a
docs: detail chaque phase de l'etape 1 avec scenarios fonctionnels concrets
...
Chaque phase de l'Étape 1 (MVP Multi-Site) a désormais une section '✅ Fonctionnel à la fin de cette phase' qui décrit EXACTEMENT ce qui marche, avec des exemples de requêtes/réponses HTTP et le scénario de bout en bout.
2026-07-16 20:07:40 +00:00
Arnaud Dartois
eb59ffd4f6
refactor: split implementation in 2 stages — MVP multi-site then business features
...
Étape 1 (Phases 1-12) : Foundation + API multi-site (Sites, Agents, Auth) + Agent Docker avec heartbeat. Pas de caméra, pas d'IA, pas de vidéo. L'objectif est d'avoir N sites avec N agents enregistrés, heartbeats, status Online, le tout via API.
Étape 2 (Phases 13-25) : on ajoute le métier par-dessus — caméras, vidéo, IA, notifications, UI, mobile.
2026-07-16 20:05:19 +00:00
Arnaud Dartois
098a05aceb
fix: move mobile app to last phase (Phase 23)
...
L'application Kotlin est réalisée en dernier, après le Production Hardening.
2026-07-16 20:01:52 +00:00
Arnaud Dartois
9fff2ec917
fix: mobile stack Kotlin (not Avalonia), agents Docker-only
...
Corrections après feedback utilisateur : stack mobile = Kotlin + Jetpack Compose (Android natif, WebRTC natif), Agents installés exclusivement via Docker (pas de binaire standalone).
2026-07-16 20:00:48 +00:00
Arnaud Dartois
5c8df8127b
docs: master specification v2.0 consolidating 9 fragmented docs
...
Complete specification rewrite after deep review by 5 expert agents (council, security, db, ai, perf). Fixes 36 critical issues including: stationary object dedup (4-level), motion gate, Avalonia mobile stack, API+Web fusion, HMACSHA256 auth, partitioned Events table, Hangfire queue isolation.
2026-07-16 19:59:21 +00:00
Arnaud Dartois
6138795771
feat: switch mobile app from Avalonia UI to Kotlin + Jetpack Compose
...
- Complete rewrite of mobile-app.md: Kotlin 2.1+, Jetpack Compose 1.7+
- Clean Architecture: data/domain/presentation layers
- Ktor 3.0 HTTP client (replaces Kiota, Kotlin-native)
- WebRTC natif Android (SurfaceViewRenderer + PeerConnection)
- SignalR client Java Microsoft (compatible Kotlin)
- Hilt DI, Room cache, DataStore preferences, Coil images
- Firebase Cloud Messaging push notifications
- MVVM with StateFlow + collectAsStateWithLifecycle
- Compose Navigation (NavHost, sealed Screen routes)
- Tests: JUnit 5 + MockK + Turbine (Flow) + Compose UI Test
- CI/CD Gradle with lint + detekt + unit tests + APK signing
- GitHub Actions workflow dedicated to mobile
- Update implementation.md Phase 21 with new stack
- Update README.md references
2026-07-16 19:52:01 +00:00
Arnaud Dartois
32240da193
docs: add CodeProject.AI reference doc with full API, modules, perf
...
- Create docs/codeproject-ai.md with:
- All 17 modules listed (Object Detection YOLOv5/v8, ALPR, Face, Scene...)
- API endpoints with request/response examples
- Pipeline flow diagram Heimdall → CodeProject.AI
- Per-camera DetectionProfile filtering before API calls
- Docker config with GPU passthrough and env vars
- Performance benchmarks (GPU vs CPU vs RPi4)
- Custom detection models (ipcam-general, ipcam-animal...)
- Mesh multi-instance architecture
- Update implementation.md Phase 12 with CodeProject.AI deep link
- Add CodeProject.AI to README.md navigation
2026-07-16 19:43:34 +00:00
Arnaud Dartois
5073592cdb
feat: per-camera detection profiles (person/vehicle/face/LPR per camera)
...
- Add CameraDetectionProfile model with per-camera toggles
(DetectPerson, DetectVehicle, FaceRecognition, LicensePlateRecognition...)
- Add default profiles: Indoor, Outdoor, Stairwell, Parking
- Agent only runs YOLO classes matching enabled detection types
- Central skips face rec/LPR when disabled per camera
- Add detection-profile endpoints to Camera API
- UI: per-camera checkbox grid + profile presets
- Add ONVIF camera credentials (per-camera + per-site defaults)
- Add SharpOnvifClient + OnvifDiscovery NuGet references
- Add Imou camera protocol details: RTSP URLs, known issues,
firmware blocking, activation procedure
2026-07-16 19:40:50 +00:00
Arnaud Dartois
2e6dcc6968
fix: login par email/MDP + 2FA, API Keys réservées aux Agents
...
- ui-pages.md : retirer écran 'Clé API' du login, ajouter champ 2FA (TOTP)
- auth-roles.md : ajouter 2FA optionnel, User.TwoFactorEnabled,
API Keys = Agents uniquement, header clarifié
- implementation.md Phase 6 : +2FA endpoints, API Keys scope Agents
- signalr-usage.md : clarifier JWT pour humains, API Key pour Agents
2026-07-16 19:38:06 +00:00
Arnaud Dartois
ed0e941617
docs: fix implementation phases alignment (14-23), complete missing phases
...
- Fix detailed phase numbering to match summary (was 5 phases off)
- Add Phase 14 (SignalR Hubs), 16 (Hangfire Agent InMemory),
17 (Notifications), 21 (Mobile Android) — were missing in details
- Add Phase 15 (Hangfire Central) with NuGet, config, dashboard
- Each phase now has: Objectif, Tests, Libraries, code snippets
- All phases reference dedicated doc files for deep dives
- Summary and details now perfectly aligned (23/23)
2026-07-16 19:35:53 +00:00
Arnaud Dartois
3adb44449e
docs: restructure with README index, trim specs.md, replace Refit with Kiota
...
- Create docs/README.md as central navigation index with quick links
- Rewrite specs.md from 1473 to 253 lines — remove all content now
duplicated in dedicated files, keep only unique content (vision,
architecture, domain model, features, Docker, quality)
- Replace Refit with Kiota (Microsoft) in mobile-app.md:
- Kiota generates API client from OpenAPI spec
- IAuthenticationProvider for JWT
- CI/CD regeneration step
- Comparison table Kiota vs Refit
- All NuGet deps updated
2026-07-16 19:33:11 +00:00
Arnaud Dartois
2428e0ec2a
docs: add mobile app, auth roles, notifications, hangfire, signalr specs
...
- Add mobile-app.md: Android Avalonia UI app spec with 6 pages, WebRTC
via WebView bridge, SignalR real-time, offline cache, push notifications
- Add auth-roles.md: 2 user types (Admin + User), site-scoped permissions,
policy-based authorization, UI visibility per role
- Add notifications.md: Email SMTP (FluentEmail), Gotify push, Scriban
Markdown templates i18n editable from UI, per-user config
- Add hangfire-usage.md: Central PostgreSQL jobs (retention, cleanup,
digests) + Agent InMemory jobs (heartbeat, camera health, GPU watchdog)
- Add signalr-usage.md: 5 hubs (events, streaming, monitoring, notifications,
admin) with full hub code, group management, Agent SignalR connection
- Update implementation.md: 23 phases with mobile app (phase 21)
- Update specs.md: reference all new documentation files
2026-07-16 19:29:07 +00:00
Arnaud Dartois
32ba481da1
docs: restructure documentation with UI pages, fix implementation order
...
- Create docs/ui-pages.md with detailed descriptions of all 8 UI pages
(Login, Dashboard, Sites, Cameras, Persons, Events, Admin, Alerts)
including MudBlazor components, states, and tests per page
- Rewrite implementation.md with correct dependency order:
Auth → Sites → Agent Registration → ONVIF → Cameras → FFmpeg →
AI → Storage → Hangfire → Blazor (basic) → WebRTC → Live Video LAST
- Add Agent bootstrap flow with token registration
- Add two-tier AI pipeline (CPU pre-detect on Agent, GPU on Central)
- Add IMU camera protocol specifics and ONVIF network limitations
- Add GPU passthrough Docker documentation
- Add Blazor Server + WebRTC JS Interop pattern
- Add MinIO/S3 centralized storage model with bandwidth impact analysis
- Add SFU (MediaMTX) for multi-user WebRTC scenarios
2026-07-16 19:21:14 +00:00
Arnaud Dartois
bfb3e06bc1
feat: initialize .NET 10 Clean Architecture solution
...
Create Heimdall solution with 17 projects following Clean
Architecture for a maintainable and loosely coupled codebase.
src/ (9 projects):
- Domain, Domain.Primitives, Contracts (core layer, no deps)
- Application (ref. Domain) — CQRS/MediatR ready
- Infrastructure (ref. Application + Domain) — EF Core
PostgreSQL ready
- Api, Web (Blazor), Agent, Workers (hosts, ref. Application +
Infrastructure)
tests/ (8 projects):
- xUnit + Shouldly + NSubstitute + bUnit (Web.Tests)
- One test project per source project (Domain -> IntegrationTests)
Config: Directory.Build.props (Nullable, ImplicitUsings,
TreatWarningsAsErrors)
2026-07-16 19:09:28 +00:00
Arnaud Dartois
698520cce9
fix init opencode
2026-07-16 20:49:23 +02:00
Arnaud Dartois
6d1d0c1743
init opencode
2026-07-16 20:46:56 +02:00
Arnaud Dartois
291ec113fc
chore: add opencode shared rules submodule
2026-07-16 20:46:36 +02:00
Arnaud Dartois
9d936dbf57
wip
2026-07-16 20:33:46 +02:00
Arnaud Dartois
b69a2a3ce4
init opencode
2026-07-16 20:32:41 +02:00
Arnaud Dartois
48076947ac
chore: add opencode shared rules submodule
2026-07-16 20:28:39 +02:00
Arnaud Dartois
0680f832a5
docs: initial spec
2026-07-16 20:19:11 +02:00