Hub 2.0 step 3: releases per product, with requirements

- Release.product and requires; unique (product, version); latest version
  per product (latest_version stays Cross Events' latest)
- Release sources per product (Releases page): repository, tag prefix,
  notes file. Defaults: every product from crosscode-platform plus Cross
  Events' v1.2.3 tags from hope-events. A product's releases are only
  removed when all its sources were read and found tags
- "— requires accounts 1.2.0" in a notes heading: Request update answers
  409 REQUIREMENT_NOT_MET until the church's install of that product is new
  enough; install page and Releases page show it; v2 replies carry requires
- @crosscode/contracts 1.1.0 vendored (optional requires on releases)
- Alerts, dashboard and install lists compare against each product's latest

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 15:57:46 +02:00
co-authored by Claude Opus 5.5
parent 0318b4f6f4
commit 816452e1c2
21 changed files with 821 additions and 201 deletions
+5 -1
View File
@@ -13,6 +13,7 @@ export type InstallSummary = {
behind: boolean;
licence: { id: string; status: LicenceStatus; expiresAt: string | null } | null;
lastHeartbeatAt: string | null;
latestVersion: string | null;
status: "ok" | "warning" | "critical";
problems: Problem[];
releasedAt: string | null;
@@ -76,7 +77,10 @@ export type AiMonth = { month: string; calls: number; inputTokens: number; outpu
export type AiHelperUse = { helper: string; calls: number; chargedCents: number };
export type AiInstallUse = { installId: string; name: string; url: string; capCents: number; calls: number; realCents: number; chargedCents: number; profitCents: number };
export type Release ={ id: string; version: string; notes: string; urgent: boolean; releasedAt: string; installs: number };
export type ReleaseRequirement = { product: Product; version: string };
export type Release = { id: string; product: Product; version: string; notes: string; urgent: boolean; requires: ReleaseRequirement[]; releasedAt: string; latest: boolean; installs: number };
export type ReleaseSource = { product: Product; repo: string; tagPrefix: string; notesPath: string };
export type UnmetRequirement = { product: Product; version: string; current: string | null };
export type NoticeLevel = "info" | "maintenance" | "warning";
export type Notice = {