Unione dell'ondata 5 (desktop M6, rifiniture M8): avvisi collegati una sola volta nella composizione condivisa per le due vesti

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 22:04:54 +00:00
commit 5be0b1dee8
62 files changed
+4168 -327

No files matched your search

+12
View File
@@ -1,6 +1,7 @@
using Febe.App;
using Febe.Browser.Recipes;
using Febe.Core.Abstractions;
using Febe.Core.Alerts;
using Febe.Core.Engine;
using Febe.Core.Import;
using Febe.Core.Library;
@@ -25,6 +26,12 @@ internal sealed record ServerHooks
/// <summary>How long the web host waits for open requests (events, remote view) when stopping.</summary>
public TimeSpan ShutdownTimeout { get; init; } = TimeSpan.FromSeconds(3);
/// <summary>Fake Telegram (tests never reach the real API).</summary>
public HttpMessageHandler? TelegramHandler { get; init; }
/// <summary>Fake free-space probe for the «Disco quasi pieno» alert.</summary>
public IFreeSpaceProbe? FreeSpace { get; init; }
public FebeAppHooks ForApp() => new()
{
Clock = Clock,
@@ -32,6 +39,8 @@ internal sealed record ServerHooks
DataFolderCheck = DataFolderCheck,
Console = Console ?? System.Console.Out,
ShutdownTimeout = ShutdownTimeout,
TelegramHandler = TelegramHandler,
FreeSpace = FreeSpace,
};
}
@@ -85,6 +94,9 @@ internal sealed class FebeServer : IAsyncDisposable
public PerceptualHashIndex? HashIndex => _app.HashIndex;
/// <summary>The alerts of spec §13.3 (in Docker: Telegram and the free disk space; null with a configuration problem).</summary>
public AlertService? Alerts => _app.Alerts;
/// <summary>Completes when browser, pipeline and engine are running (never, with a configuration problem).</summary>
public Task Running => _app.Running;