Hub 2.0 step 1: products foundation

- Product enum (events, accounts, website, app) on Licence and Install,
  Install.publicKey; existing rows are events
- One open licence per product per customer: partial unique index, with a
  migration guard that names customers with duplicates (npm run check:hub2
  lists them beforehand)
- Licence keys per product (CEH-, CCA-, CCW-, CCP-); free Accounts licence
  created with the first other product licence
- Protocol v1 registers Events licences only (409 WRONG_PRODUCT); only Events
  licences can be invoiced until billing per customer
- Cross Code Hub in the UI, emails and PDFs
- @crosscode/contracts 1.0.0 vendored (backend/vendor)
- Steps merge into release/2.0, not main (plan updated)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 15:28:06 +02:00
co-authored by Claude Opus 5.5
parent fe0f2638c6
commit ad602b2846
30 changed files with 544 additions and 49 deletions
+4 -2
View File
@@ -2,8 +2,10 @@
Cross Events Hub becomes **Cross Code Hub**: every product's customers, licences, stats, AI and
billing in one place (ROADMAP-v3 §5, phase 1, in `hope-events/docs/ROADMAP-v3.md`). Planned
2026-11-04. Each step is its own branch, merged into `main` with its tests when it's done; only the
finished set is tagged and deployed as **2.0.0** (as Cross Events 2.0 was built).
2026-11-04. Each step is its own branch (`feat/hub2-<step>`), merged with its tests into
**`release/2.0`** when it's done; `release/2.0` is merged into `main` and tagged **2.0.0** only when
every step is in (as Cross Events 2.0 was built). `main` stays at 1.7.x until then, so
`scripts/deploy.sh` (which deploys the latest `main` by default) never ships half of 2.0.
**Cross Events 2.1.x installs keep working unchanged:** protocol v1 replies stay identical. Events
moves to protocol v2 in Events 2.4.0.