refactor!: rename Titano to Chronos and move CI and releases to Gitea (#6)
CI / Build and test (push) Successful in 8m14s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 13m19s
CI / PostgreSQL 16 integration (push) Successful in 4m49s
CI / PostgreSQL 17 integration (push) Successful in 5m28s
CI / Docker image (push) Successful in 53s
Release / Server image (push) Failing after 10s

The owner renamed the product and moved the repository to the self-hosted
Gitea (https://gitea.encke-hake.ts.net/BalboSoft/Chronos) for more control,
and asked for Actions and a first automatic release with the server package
and the Windows exe (docs/requests/2026-10-23-chronos-gitea.md).

- Chronos everywhere: a byte-exact rename of contents and paths, then a
  per-language review of the forms the old name's ending had dictated.
- Gitea instead of GitHub: the update check, licence, issue and support
  links read ChronosReleasesUrl; the update check takes the highest stable
  version, offers a pre-release build its final release and reports a
  repository it cannot see as a failed check. EULA, security policy and
  Gitea issue forms live at the repository root.
- Gitea Actions for the Linux act_runner (.gitea/workflows): CI, release,
  nightly image and performance gates in the .NET SDK container with git
  checkout and the system SQLite. The release cross-compiles the Windows
  programs, checks their icon, version and DPI manifest, packs installers
  and zips, publishes the Gitea release and pushes the server image
  (REGISTRY_TOKEN). Windows-only tests run in an opt-in job on a Windows
  runner (WINDOWS_RUNNER).
- New Chronos.Tools commands: zip, gitea-release, postgres-ci (replaces the
  docker-exec script, which Gitea's service containers do not allow; the
  throw-away server runs without durability) and pe-check.
- Timed tests take their budget from TestTiming (CHRONOS_TEST_TIME_FACTOR,
  3 on the shared runner; the weekly performance gates keep theirs).

BREAKING CHANGE: programs, settings, data folders, file types, environment
variables and the Docker image use the new name; nothing is migrated from
Titano, which never had a release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #6.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-10-23 12:45:18 +02:00
1 parent c99842cc86
commit f2b58522b9
1801 files changed
+11804 -10676

No files matched your search

+256
View File
@@ -0,0 +1,256 @@
using Chronos.Core.Imaging;
namespace Chronos.Core.Model;
/// <summary>A rooted folder tree that holds originals, sidecars, proxies and exports (BRIEF §7).</summary>
public sealed record Archive
{
public required Guid Id { get; init; }
public required string Name { get; init; }
public required string RootPath { get; init; }
public string FolderTemplate { get; init; } = Naming.TemplateDefaults.Folder;
public string FileTemplate { get; init; } = Naming.TemplateDefaults.File;
public int SchemaVersion { get; init; } = 1;
public DateTimeOffset Created { get; init; }
/// <summary>Proxy long edge in pixels; 0 = full size, -1 = proxies disabled.</summary>
public int ProxyLongEdge { get; init; } = 1920;
}
/// <summary>One shoot: a folder of frames that becomes one project (BRIEF §5).</summary>
public sealed record Sequence
{
public required Guid Id { get; init; }
public required Guid ArchiveId { get; init; }
public string? Title { get; init; }
/// <summary>Folder relative to the archive root, forward slashes.</summary>
public required string Folder { get; init; }
public string? CameraMake { get; init; }
public string? CameraModel { get; init; }
public string? CameraSerial { get; init; }
public string? Lens { get; init; }
public DateTime? FirstCapture { get; init; }
public DateTime? LastCapture { get; init; }
public int FrameCount { get; init; }
/// <summary>Median capture interval in seconds.</summary>
public double? MedianInterval { get; init; }
public long TotalBytes { get; init; }
public SequenceStatus Status { get; init; }
public int RenderedCount { get; init; }
public DateTimeOffset? VerifiedAt { get; init; }
public Guid? HeroFrameId { get; init; }
public IReadOnlyList<string> Tags { get; init; } = [];
public int Rating { get; init; }
public string? Notes { get; init; }
/// <summary>Render settings ("project") as JSON.</summary>
public string? SettingsJson { get; init; }
/// <summary>Compact analysis summary as JSON; the full report lives in <c>.chronos/analysis.json</c>.</summary>
public string? AnalysisJson { get; init; }
public SequenceOrigin Origin { get; init; }
public SyncState SyncState { get; init; }
public int SettingsVersion { get; init; }
public int FramesVersion { get; init; }
public Guid? OwnerUserId { get; init; }
public int WarningCount { get; init; }
/// <summary>Frames that decode only through their embedded preview (<see cref="FrameFlags.PreviewOnly"/>, BRIEF §8.2).</summary>
public int PreviewOnlyCount { get; init; }
public DateTimeOffset UpdatedAt { get; init; }
/// <summary>The title, else capture date and camera, else the folder name (never empty).</summary>
public string DisplayTitle
{
get
{
if (!string.IsNullOrWhiteSpace(Title)) return Title;
var described = $"{FirstCapture:yyyy-MM-dd} {CameraModel}".Trim();
if (described.Length > 0) return described;
var folder = Folder.TrimEnd('/');
return folder.Length > 0 ? folder[(folder.LastIndexOf('/') + 1)..] : Id.ToString("N")[..8];
}
}
}
/// <summary>One photo of a sequence.</summary>
public sealed record Frame
{
public required Guid Id { get; init; }
public required Guid SequenceId { get; init; }
public required int Index { get; init; }
/// <summary>Path relative to the archive root, forward slashes.</summary>
public required string RelativePath { get; init; }
public required string FileName { get; init; }
public string? OriginalFileName { get; init; }
public long Size { get; init; }
/// <summary>Lower-case hex SHA-256 of the original file.</summary>
public string? Sha256 { get; init; }
/// <summary>Camera wall-clock time including sub-seconds (unspecified kind).</summary>
public DateTime? CapturedAt { get; init; }
/// <summary>UTC offset of <see cref="CapturedAt"/> when known, in minutes.</summary>
public int? UtcOffsetMinutes { get; init; }
public TimestampSource TimestampSource { get; init; }
public double? ExposureTime { get; init; }
public double? FNumber { get; init; }
public int? Iso { get; init; }
public double? FocalLength { get; init; }
public double? ExposureBias { get; init; }
public int? WhiteBalance { get; init; }
public int Orientation { get; init; } = 1;
public int Width { get; init; }
public int Height { get; init; }
public ImageFileFormat Format { get; init; }
public long? PreviewOffset { get; init; }
public long? PreviewLength { get; init; }
/// <summary>Size of the largest embedded preview like <see cref="Width"/> and <see cref="Height"/> (before orientation);
/// 0 when there is none or it is not known.</summary>
public int PreviewWidth { get; init; }
public int PreviewHeight { get; init; }
/// <summary>Mean log2 luminance once analysed.</summary>
public double? MeanLogLuminance { get; init; }
public double? ClipLow { get; init; }
public double? ClipHigh { get; init; }
public FrameFlags Flags { get; init; }
/// <summary>Exposure value at ISO 100: log2(N²/t) − log2(ISO/100).</summary>
public double? ExposureValue => ExposureTime is > 0 && FNumber is > 0
? Math.Log2(FNumber.Value * FNumber.Value / ExposureTime.Value) - Math.Log2((Iso ?? 100) / 100.0)
: null;
}
/// <summary>An exported video or image sequence.</summary>
public sealed record Render
{
public required Guid Id { get; init; }
public required Guid SequenceId { get; init; }
public required string PresetName { get; init; }
public string? SettingsJson { get; init; }
public required string OutputPath { get; init; }
public string? Codec { get; init; }
public int Width { get; init; }
public int Height { get; init; }
public double Fps { get; init; }
public double DurationSeconds { get; init; }
public long Bytes { get; init; }
public DateTimeOffset Created { get; init; }
public string? ProducedBy { get; init; }
}
/// <summary>Any long operation: resumable, cancellable, logged (BRIEF §5, §14.6).</summary>
public sealed record Job
{
public required Guid Id { get; init; }
public required JobKind Kind { get; init; }
public IReadOnlyList<Guid> TargetIds { get; init; } = [];
/// <summary>Human-readable target ("Harbour sunset", "Archive · 2024").</summary>
public string? TargetLabel { get; init; }
public string? ParametersJson { get; init; }
public JobState State { get; init; }
public JobPriority Priority { get; init; } = JobPriority.Normal;
public long ProgressDone { get; init; }
public long ProgressTotal { get; init; }
public double? ItemsPerSecond { get; init; }
public TimeSpan? Eta { get; init; }
/// <summary>Opaque resume cursor written at checkpoints.</summary>
public string? Checkpoint { get; init; }
public string? LogTail { get; init; }
public Guid? CreatedBy { get; init; }
public string? NodeId { get; init; }
public int Attempts { get; init; }
public string? Error { get; init; }
public DateTimeOffset Created { get; init; }
public DateTimeOffset? Started { get; init; }
public DateTimeOffset? Finished { get; init; }
}
/// <summary>A memory card known to this client (BRIEF §13).</summary>
public sealed record MediaCard
{
public required Guid Id { get; init; }
/// <summary><c>{volumeSerial}-{label}-{capacity}</c>.</summary>
public required string Identity { get; init; }
public uint VolumeSerial { get; init; }
public string? Label { get; init; }
public long Capacity { get; init; }
public string? Nickname { get; init; }
public string? CameraMake { get; init; }
public string? CameraModel { get; init; }
public string? CameraSerial { get; init; }
public string? ProfileJson { get; init; }
public bool AutoImport { get; init; }
public DateTimeOffset FirstSeen { get; init; }
public DateTimeOffset LastSeen { get; init; }
}
public sealed record User
{
public required Guid Id { get; init; }
public required string Username { get; init; }
public string? DisplayName { get; init; }
public required string PasswordHash { get; init; }
public UserRole Role { get; init; }
public Permissions Permissions { get; init; }
public long QuotaBytes { get; init; }
public long UsedBytes { get; init; }
public bool Disabled { get; init; }
public bool MustChangePassword { get; init; }
public DateTimeOffset Created { get; init; }
public DateTimeOffset? LastLogin { get; init; }
}
public sealed record SessionToken
{
public required string TokenHash { get; init; }
public required Guid UserId { get; init; }
public string? ClientName { get; init; }
public DateTimeOffset Created { get; init; }
public DateTimeOffset Expires { get; init; }
public DateTimeOffset LastUsed { get; init; }
public bool Revoked { get; init; }
}
public sealed record RenderNode
{
public required Guid Id { get; init; }
public required Guid UserId { get; init; }
public required string ClientName { get; init; }
public string? CapabilitiesJson { get; init; }
public DateTimeOffset LastHeartbeat { get; init; }
public string State { get; init; } = "idle";
}
public sealed record AuditEntry
{
public required Guid Id { get; init; }
public DateTimeOffset At { get; init; }
public Guid? UserId { get; init; }
public string? Username { get; init; }
public required string Action { get; init; }
public string? TargetKind { get; init; }
public string? TargetId { get; init; }
public string? Details { get; init; }
public string? RemoteAddress { get; init; }
}