feat(P2): videos library, verified video trash and copy job, render hashes and still jobs

Renders now record their SHA-256 and kind, so copies, deletes and restores can
be verified. The new videos library lists every render with paging and
filters, deletes into the archive trash after a dry run whose fingerprint must
still match (journalled, so a crash mid-move is settled on open), restores by id
refusing a tampered file, and a VideoCopy job copies renders hash-verified into
a videos folder outside the archive, never overwriting. A still job saves one
frame as an image through an interim Data-side path until P1's Core still API
lands. Batch exports keep the playback and routing uses the job's own export,
so a playback job needs settings format 3 and an older node never claims it.

Refs #21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-05 02:27:37 +01:00
1 parent d472dfdec1
commit 03b4d0ef60
23 files changed
+2123 -72

No files matched your search

+6 -1
View File
@@ -127,7 +127,12 @@ public sealed record VideoDeleteResult(IReadOnlyList<VideoItem> Deleted, IReadOn
/// <param name="Folder">The videos folder (absolute), checked again when the job runs.</param>
/// <param name="FromServer">On the desktop: the renders are the signed-in server's, downloaded into the folder.</param>
/// <param name="RequestedBy">The user (server) or PC (desktop) recorded as <see cref="RenderCopy.CopiedBy"/>.</param>
public sealed record VideoCopyParameters(IReadOnlyList<Guid> RenderIds, string Folder, bool FromServer = false, string? RequestedBy = null)
/// <param name="Server">With <paramref name="FromServer"/>: the server the renders are downloaded from (its address as the
/// desktop's connections name it, <see cref="Sync.ISyncConnector.ConnectAsync"/>).</param>
/// <param name="SequenceIds">With <paramref name="FromServer"/>: the server's sequence of each render, in the order of
/// <paramref name="RenderIds"/>; its manifest gives the SHA-256 a download is verified against.</param>
public sealed record VideoCopyParameters(IReadOnlyList<Guid> RenderIds, string Folder, bool FromServer = false, string? RequestedBy = null,
string? Server = null, IReadOnlyList<Guid>? SequenceIds = null)
{
public string ToJson() => JsonSerializer.Serialize(this, VideoJson.Default.VideoCopyParameters);