feat: add main features

Agents for developpement added + frontend add + backend added. Git viewer created + agent and template creator + layout and project creator
This commit is contained in:
2026-06-06 01:27:01 +02:00
parent 55b3bee2c8
commit 307ae71857
273 changed files with 48740 additions and 0 deletions

View File

@ -0,0 +1,27 @@
//! [`SystemClock`] — production [`Clock`] backed by the system wall clock.
use std::time::{SystemTime, UNIX_EPOCH};
use domain::ports::Clock;
/// Real clock returning the current epoch time in milliseconds.
#[derive(Debug, Default, Clone, Copy)]
pub struct SystemClock;
impl SystemClock {
/// Creates a new [`SystemClock`].
#[must_use]
pub const fn new() -> Self {
Self
}
}
impl Clock for SystemClock {
fn now_millis(&self) -> i64 {
// Saturating cast is fine: epoch millis fits in i64 until year 292M.
SystemTime::now()
.duration_since(UNIX_EPOCH)
.map(|d| d.as_millis() as i64)
.unwrap_or(0)
}
}