Hub 2.19.0: the server agent's releases; Update agent picks one

- AgentRelease (migration 20261123150000_agent_release): the agent's releases, apart from the
  products' so licences and billing are untouched.
- Release sources can be for the Server agent; the defaults include it (monorepo agent@ tags,
  apps/agent/WHATS-NEW.md). Same sync rules as products. A saved list without it gets an
  "Add the agent's source" button on the Releases page.
- GET /api/admin/agent-releases; server summaries carry agentLatest; update-agent jobs go to a
  known agent release, the latest when none is asked for (agentTag).
- Update agent is a ReleaseSelect with the chosen version's notes; the Servers list and a server's
  page say when a newer agent is out; the Releases page shows agent releases (Server agent filter,
  Everything newest first by date).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 13:18:56 +02:00
co-authored by Claude Opus 5.5
parent 44fac310eb
commit 65637711c6
19 changed files with 292 additions and 50 deletions
+4 -1
View File
@@ -86,7 +86,10 @@ export type AiInstallUse = { installId: string; name: string; url: string; produ
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 };
/** Hub 2.19.0: a source is for a product or the server agent. */
export type ReleaseSource = { product: Product | "agent"; repo: string; tagPrefix: string; notesPath: string };
/** Hub 2.19.0: a release of the server agent (from git only), with how many servers run it. */
export type AgentRelease = { id: string; version: string; notes: string; urgent: boolean; releasedAt: string; latest: boolean; servers: number };
export type UnmetRequirement = { product: Product; version: string; current: string | null };
export type NoticeLevel = "info" | "maintenance" | "warning";