Files
events-hub/docs/VERSION-PICKERS-PLAN.md
T
joshuaandClaude Opus 5.5 65637711c6 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>
2026-11-23 13:18:56 +02:00

3.8 KiB
Raw Blame History

Version pickers plan

Status: done in Hub 2.18.0 and 2.19.0 · 2026-11-23

Three forms still ask for a version as free text, though the Hub knows (or could know) every release. This plan turns them into a list to pick from, and gives the Hub the agent's releases so Update agent can do the same.

Where versions are typed today

Form Today What the Hub knows
New install (app/(hub)/servers/installs/page.tsx) Free text "Release", placeholder "latest" Every product release; the backend already refuses an unknown version (releaseFor in utils/jobs.js)
Move onto the monorepo (components/install/AdoptModal.tsx) Free text "Release", placeholder "latest" The same
Update agent (app/(hub)/servers/[id]/page.tsx) Free text, placeholder "agent@1.0.1" Nothing: the Hub has no agent releases; the contract only checks the form agent@x.y.z

The install's Update popup and the Updates page already have a list of releases.

For the agent, the monorepo has agent@1.0.0…agent@1.5.0 tags and the agent's self-update checks the tag out. Missing: notes (apps/agent/WHATS-NEW.md; without it a sync reports "not found"), and a place in the Hub for them. Releases hang off the Product enum, which licences, billing, customer products and notices also use, so the agent doesn't become a product.

Decisions (2026-11-23)

  • Older versions are offered too (to go back to one): the newest 10, with Show older versions to see the rest. Latest stays the default.
  • Agent releases and their notes show on the Releases page.
  • The agent's notes are written from its history, for every tag (1.0.0–1.5.0), in crosscode-platform.

Hub 2.18.0: pickers for products (frontend only)

  1. components/ReleaseSelect.tsx: first "Latest (3.6.1)" (sends no version, as today), then the product's releases newest first, the newest 10 until Show older versions (n) is clicked; each marked "(latest)", "running now" and "needs Accounts 1.2.0" where it applies. UpdateModal and the Updates page use it too, so all four look the same.
  2. New install: the popup loads the releases; the list is the chosen product's, and changing the product goes back to Latest.
  3. Move onto the monorepo: the same list, Cross Events releases from 2.2.0 (the first one in the monorepo; the 2.1.x releases are the old repository's tags, which adopt can't check out).

No backend changes: the backend already checks the version.

Hub 2.19.0: agent releases (migration)

  1. crosscode-platform: apps/agent/WHATS-NEW.md, a ## 1.x.y section per tag (1.0.0–1.5.0; written, not committed yet). Read from the default branch, so no new tag is needed.
  2. AgentRelease (version unique, notes, urgent, releasedAt), its own model and migration, so Product and everything on it is untouched.
  3. Sync: a release source can be for the Server agent as well as a product; the default sources gain it (monorepo, agent@, apps/agent/WHATS-NEW.md). Same rule as products: nothing is removed unless every source was read and tags were found.
  4. API: GET /api/admin/agent-releases; server summaries carry the latest agent version; an update-agent job for a version that isn't a known agent release is refused (like releaseFor).
  5. Hub: Update agent is a ReleaseSelect (Latest by default, the running version marked and not pickable, the chosen version's notes under it); the Servers list and a server's page show "agent 1.4.0 · 1.5.0 available"; the Releases page has a Server agent filter (from git only, no Add).

Later, not in this plan: Update every agent on the Servers page (one job per server behind).

Checks

npx tsc --noEmit, npx next build (and npx jest in backend for 2.19.0). Each release gets its CHANGELOG entry and a vX.Y.Z tag, then the docs commits in crosscode-platform.