# Changelog Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …). ## website@1.7.0 - 2026-11-27 Photos can be moved and zoomed in their frame, and unused photos deleted. Details in `apps/website/CHANGELOG.md`. No migration. - **Move and zoom:** a section's photo shows in its frame's shape for the template and layout, with a dialog to drag and zoom it; saved with the section (`data.framing`), a draft until published. - **Delete photos:** the media library says where each photo is used, and deletes one used nowhere (its files too); `DELETE /api/v1/admin/media/:id` refuses one in use. ## events@3.7.2 + website@1.6.1 - 2026-11-27 Events shown on the other product's site no longer show twice after a reseed, and the Website's header marks the link to the Events site. Details in each app's CHANGELOG. No migrations. - **Both:** the 15-minute event-feed poll and "Sync now" fetch the whole list and drop copies that aren't in it, so events a sibling lost without listing them in `deleted` (a reseed, a restore) can't stay beside the new ones. The fetch after an `event.changed` stays incremental. - **Events 3.7.2:** new demo data (`set-demo.js`) lists the old events as removed in the feed, publishes the new ones and tells the Website at once, and fetches the Website's events back in. - **Website 1.6.1:** loading a demo lists the old events as removed and tells Events; the header shows "Events site" with an external-link icon instead of a second "Events". ## website@1.6.0 - 2026-11-27 The demo church has real photos, and photos in small frames load at their size. Details in `apps/website/CHANGELOG.md`. No migration. - **Demo photos:** 104 Unsplash stock photos (models, free under the Unsplash License, credited in `apps/website/backend/demo-photos/CREDITS.md`) instead of the generated illustration: a set per demo profile, a portrait for every leader, a picture for each event, and a photo for each message instead of the stand-in video's thumbnail. Loaded like uploads, in the responsive sizes. - **Faster on phones:** the collage hero, the team's portraits and the ministry cards give the browser their real width (`sizes`), so a phone no longer fetches the full-width photo for a small frame. ## website@1.5.0 + crosscode script - 2026-11-27 The Church Website's nightly backup also backs up the photos and files. Details in `apps/website/CHANGELOG.md`. No migration. - **Website 1.5.0:** each night after the database, a snapshot of `backend/uploads` in `backend/backups/uploads-YYYYMMDD-HHMMSS/`; unchanged files are hard links to the last snapshot, so after the first full copy a night costs only the new files. On Admin → Backups, with its own switch. Kept to the same count as the database backups. - **crosscode script:** an uninstall keeps the Website's backups with `rsync -aH`, so the snapshots' shared files stay shared instead of each becoming a full copy. ## website@1.4.0 - 2026-11-27 Database backups and background jobs for the Church Website, as Accounts and Cross Events have. Details in `apps/website/CHANGELOG.md`. No migration (pg-boss makes its own `pgboss_website` schema on first start). - **Backups:** a gzipped `pg_dump` every night at 02:20 into `backend/backups/`, the same `website-*.sql.gz` files the crosscode script makes before updates; Admin → Backups. - **Background jobs** on pg-boss: the backup, the Hub heartbeat, the event feed and YouTube (before: plain timers); Admin → Background jobs switches each on or off, changes its schedule, runs one now. - **The heartbeat tells the Hub the truth:** the newest backup (before: always none, so the Hub warned "No backup reported") and the real job mode and failures. ## contracts@1.19.0 + agent@1.6.0 + website@1.3.0 + crosscode script - 2026-11-27 Demo data for the Church Website, from the Hub (Hub 2.25.0). Additive: an Events `seed-demo` job means what it did. Details in each app's CHANGELOG.md. No migrations. - **contracts 1.19.0:** `agent.WEBSITE_DEMO_PROFILES` (eight, two per template: `heritage-parish`, `heritage-city`, `bold-youth`, `bold-plant`, `community-family`, `community-town`, `clean-modern`, `clean-campus`), `DEMO_PRODUCTS`, `DEMO_PROFILES_BY_PRODUCT`, `SEED_WEBSITE_DEMO_MIN_AGENT` (1.6.0). `seed-demo` args take an optional `product` (`events`, the default, or `website`); the profile must be one of that product's, and a Website demo takes no `adminEmail`. - **agent 1.6.0:** a Website `seed-demo` job runs `crosscode demo website --profile

`. - **website 1.3.0:** the eight demo churches (`backend/src/demo/seeds.ts`, `npm run demo -- --profile

`, `--list`). They replace the content only: the church's profile from Accounts, the site settings, the site icon and the admins stay, and the copy names the church. `--template` alone is still the Acacia Hill development church. - **crosscode script:** `crosscode demo website --profile

`: backup, the demo as the site's user (`--force`), reload, wait for `/api/health`. Refused on a Website release without the profiles (before 1.3.0). ## accounts@1.8.0 + website@1.1.0 - 2026-11-26 The admins of both, redesigned as Cross Events' admin dashboard and settings. Details in each app's CHANGELOG.md. No migrations, no backend changes. - **Accounts 1.8.0:** `/admin` is an overview (cards, "Needs you", a tile per section); People moved to `/admin/people`; the sidebar shows the part you're in, grouped; People redesigned. - **Website 1.1.0:** an icon sidebar in groups, a dashboard, steps to the first publish across the top, and a live preview beside the page editor and Template and style (drafts in a frame, no preview cookie). ## accounts@1.7.1 + website@1.0.2 + events@3.7.1 - 2026-11-26 Found installing the Website for cross-demo2. Details in each app's CHANGELOG.md. No migrations. - **Linking right after an install** (all three): a connect involving an install that isn't in the cached copy of the Hub's list yet asks the Hub for a fresh list (one heartbeat, at most once a minute) instead of refusing. Before, a new product and its siblings only learned of each other at their 15-minute heartbeats, so a new Website's admin couldn't sign in for up to 30 minutes. - **Accounts 1.7.1:** also a heartbeat on every start. - **Website 1.0.2:** opening `/admin` without a link to Accounts links on the spot; the problem page says "not linked yet" (`ACCOUNTS_NOT_LINKED`) instead of "can't reach your sign-in". Preview no longer redirects to the server's own `http://localhost:` (relative redirects). - **Events 3.7.1:** a new Website can connect for the event feed straight away. ## website@1.0.1 + crosscode script - 2026-11-26 Details in `apps/website/CHANGELOG.md`. - **Website 1.0.1:** the messages' YouTube thumbnails are served from the site (`/api/thumbnails/.jpg`), so visitors ask nothing of YouTube until they press play; the Calendar events' dates read "Sun · November", not "Sun (month: November)". No migration. - **crosscode script:** a Website's export leaves out `uploads/.thumbnails` (the kept thumbnails). ## contracts@1.18.0 - 2026-11-25 "Get more storage" for the Church Website (WEBSITE-1.0-PLAN §10, decision 12), with Hub 2.22.0. Additive: products on 1.17.0 keep working. - **`hub.storageRequestSchema` / `storageRequestResponseSchema`**: a Website asks the Hub for more 5 GB steps (`POST /api/installs/storage-request`, signed as the heartbeat), with what it uses, its limit and who asked. `hub.STORAGE_STEP_BYTES`. New sample `hub-storage-request.json` and JSON Schemas `hub-storage-request`, `hub-storage-request-response`. ## events@3.7.0 + @crosscode/ui 0.3.0 - 2026-11-24 Cross Events' public pages use the church's brand style and the shared footer (WEBSITE-1.0-PLAN §9). Details in `apps/events/CHANGELOG.md`. - **Events 3.7.0:** the church profile from Accounts (`GET /api/v2/church`), its fonts and corners on the public pages, `ChurchFooter` and links to the church's other sites; `church.changed` is accepted at `/api/church/v1/changed`. Dashboard and setup unchanged. No migrations. - **`@crosscode/ui` 0.3.0:** `ChurchFooter` takes `bottom` (a product's own links). ## contracts@1.17.0 + accounts@1.7.0 + @crosscode/ui 0.2.0 - 2026-11-24 The first release of the Church Website 1.0.0 work (WEBSITE-1.0-PLAN §12). The contracts are additive and optional: products on 1.16.0 keep working. Accounts 1.7.0 ships with them because it answers the new `church.update` request. Details of Accounts in `apps/accounts/CHANGELOG.md`. - **Brand style** (`./style`): the 8 font pairings confirmed on 2026-11-24 (`FONT_PAIRINGS`: `classic`, `scholarly`, `editorial`, `impact`, `contemporary`, `friendly`, `warm`, `modern`, each with its heading and body font), the corner styles (`CORNERS`, `DEFAULT_CORNERS` = `soft`), the Website's templates (`WEBSITE_TEMPLATES`) and the three pairings each recommends (`TEMPLATE_FONT_PAIRINGS`, default first). The ids are stored in profiles and never change. - **`crosscode.church/1`:** optional `branding.style` (`fontPairing`, `corners`, each nullable). An id a product doesn't know yet reads as null, so a newer Accounts never breaks an older product. - **`crosscode.church-export/1`:** an optional `website` part (template, first publish, style settings, pages with their sections, messages, simple events, the publish history's notes and the media library's alt text). New sample `church-export-website.json`. - **`church.update`** (identity request, product → Accounts, signed with the link's secret): the Website's admin changes shared profile facts (plan decision 10). The product checks the person's role and sends them as `actor`; only the fields given change (`branding` field by field); live at once, then `church.changed`. Optional `ifUpdatedAt` refuses with the new error code `PROFILE_CHANGED` when someone saved in between. Reply: the profile (`churchUpdateReplySchema`). Accounts 1.7.0 takes it from the Website only. - **Licence:** optional `limits.storageBytes`, the Website's storage limit including add-ons (plan decision 12). New sample `hub-licence-payload-website.json`. - **Accounts 1.7.0:** the brand style in Admin → Church profile, the church's fonts, corners and shared footer on its pages, and `church.update` from the Website. Update Accounts before (or with) anything that sends `church.update`; nothing does until the Website. - **`@crosscode/ui` 0.2.0:** `fonts.css` (the 8 pairings' fonts, Latin and Latin Extended, from the pinned `@fontsource-variable` packages, with Capsize size-matched fallbacks on Arial or Georgia; generated by `scripts/fonts.mjs`, checked by `npm test`, at most 160 KB per pairing for an English page), `brandAttributes`, `ChurchFooter`, `productLinks`; the components' corners follow `--cc-radius` and headings the pairing's heading font. Apps without a pairing look as before. - `package-lock.json` catches up with the agent's and contracts' versions. ## agent@1.5.0 + contracts@1.16.0 + crosscode script - 2026-11-23 - **Fix: uninstalling one product removed the whole church.** `crosscode uninstall ` only knew whole churches, while the Hub uninstalls per product: uninstalling cross-events-demo's Events also removed its Accounts, which the Hub still showed as live, and its own uninstall failed later ("No church cross-events-demo on this server"). - **`crosscode uninstall|export|purge [product …]`.** With products named, only those are backed up, kept (`.removed/-/`) and removed; the church keeps the others in church.env. Naming every product it still has removes the church (folder and app user), so the last product to go always takes the church with it. The report gives `products` and `remaining`. `purge` with products deletes only what was kept of those, also while the church still has others. Without products, as before. - **Agent 1.5.0** passes `products` through. **Contracts 1.16.0:** optional `products` on the `export`, `uninstall` and `purge` job arguments, and `PRODUCT_UNINSTALL_MIN_AGENT` (an older agent refuses the key). Hub 2.12.0 uses them. - The Church Website plan's versions move up one again: contracts 1.17.0, Hub 2.13.0. ## agent@1.4.0 + contracts@1.15.0 - 2026-11-21 - **Agent 1.4.0: frp's config, wherever it is.** The agent no longer assumes `/etc/frp/frps.ini`: it uses the path set on the Hub, else the `-c` in the frps/frpc systemd unit, else the usual places (`/etc/frp`, `/usr/local/frp`, `/opt/frp` …), and reads TOML (`proxyBindAddr`, `allowPorts = [{ start, end }]`) as well as INI. The central server's check after an install failed with "No frps.ini at /etc/frp/frps.ini" on a server that keeps it elsewhere. Stats say which file it uses (`frpConfigPath`). `crosscode` gets `FRPC_INI` for it on church servers. - **New jobs** (both modes): `frp-read` (the config, secrets hidden), `frp-write` (secrets put back, `frp* verify`, backup, restart, the old file back if frp doesn't start) and `probe-ports` (which of these ports are free here). Contracts 1.15.0: the job arguments, `frpReadResultSchema`, `probePortsResultSchema`, `FRP_JOBS_MIN_AGENT`, `FRP_HIDDEN`, `agentStats.frpConfigPath`. The Hub needs agent 1.4.0 on a server for these (Hub 2.11.0). - The Church Website plan's versions move up one: contracts 1.16.0, Hub 2.12.0. ## crosscode script - 2026-11-20 (no tag: servers run `main`) - **Fix:** the database dump made before each Accounts deploy (`apps/accounts/backend/backups/`) counted as a file added by hand on Accounts below 1.3.0 (no `.gitignore` for it yet), so the next deploy stopped with "changed or added by hand". Untracked files in that folder no longer count (`CROSSCODE_OWN_DIRS` in `lib/common.sh`). ## events@3.6.1 - 2026-11-20 - **Events 3.6.1 (fix):** uploading a logo or favicon failed with "uploaded, but the site can't show it yet" behind a proxy with a file-extension rule (FastPanel's static-file handling sent `/api/uploads/…png` to the frontend). The site now passes `/api/*` and `/uploads/*` that reach it on to the backend (new `BACKEND_INTERNAL_URL`, added on deploy). - **crosscode script:** the nginx site it writes uses `location ^~ /api/` and `^~ /uploads/`. ## accounts@1.6.0 - 2026-11-20 - **Accounts 1.6.0:** a "New sign-in" email (and WhatsApp for a verified number) after every sign-in, as Cross Events' own sign-in did; Sign-in settings → `signin_notices` turns it off. ## events@3.6.0, accounts@1.5.0, contracts@1.14.0 - 2026-11-20 A nightly check that each site's copies of people match their church accounts, for changes that never arrived. - **Contracts 1.14.0:** `people.check` in `crosscode.identity-request/1` (`PEOPLE_CHECK_MAX` 500) and `peopleCheckReplySchema` (each sub `active` / `deactivated` / `deleted` / `unknown`, with the profile for the first two). Samples and JSON Schema `people-check-reply`. - **Accounts 1.5.0:** answers it, only with profiles of people the product knows. - **Events 3.6.0:** the `accounts-people-check` job (04:30): fixes out-of-date copies, handles deleted accounts as `user.deleted`, and stops if most people are unknown (wrong Accounts?). ## events@3.5.0, contracts@1.13.0, agent@1.3.1 - 2026-11-20 - **Agent 1.3.1:** agent 1.3.0 still reported itself as 1.2.0 (`AGENT_VERSION` in `src/stats.ts` wasn't bumped with `package.json`), so the Hub refused `.env` jobs on it. Use 1.3.1. Loading demo data left a site that signs in through Accounts with no Accounts link, so nobody could sign in (`ACCOUNTS_UNAVAILABLE`, found on events-demo). The Hub (2.9.0) now sees it. - **Contracts 1.13.0:** `stats.signIn` in the Cross Events heartbeat (mode, the linked Accounts, the last sign-in failure; optional). - **Events 3.5.0:** `set-demo.js` keeps `ProductLink` and `LinkNonce`; a site in Accounts mode without a link reconnects at its next heartbeat even after an earlier auto-connect; sign-in failures (start, finish, Accounts unreachable) are kept and sent to the Hub; What's New notes for 3.4.0 (and Accounts 1.4.0) that were missing. ## events@3.4.0, accounts@1.4.0, contracts@1.12.0, agent@1.3.0, crosscode script - 2026-11-20 Background jobs are switched on and off (and rescheduled) from each site's admin, over the .env; Accounts' emails look like Cross Events'; the Hub shows and changes an install's .env (Hub 2.8.0). - **Contracts 1.12.0:** `env-read` and `env-set` agent jobs, `envReadResultSchema`, `isSecretEnvName` / `SECRET_ENV_NAME`, `ENV_JOBS_MIN_AGENT` (1.3.0). `env-set` refuses secrets, newlines, files other than `backend/.env` / `frontend/.env.production`, and empty changes. - **crosscode script:** `crosscode env ` prints the product's .env values (secrets only as set or not); with `--set NAME=value`, `--unset NAME` and `--restart` it changes one file (a copy is kept, the last 5), rebuilds the frontend when its file changed, reloads, and waits for `/health`; if that fails the file is put back (and rebuilt). Secrets and generated values are refused (`lib/envedit.cjs`). Tests: `scripts/tests/envedit.bats`. - **Agent 1.3.0:** runs `env-read` and `env-set` as `crosscode env`. - **Events 3.4.0:** Settings → Background jobs switches each job on or off and changes its schedule; the choice is kept in the database, wins over the .env and applies straight away. - **Accounts 1.4.0:** Admin → Background jobs (the same as Events'); every email is styled as Cross Events' (church colour and logo, a button, contact details), with the same plain text. ## events@3.3.0, accounts@1.3.0, contracts@1.11.0 - 2026-11-20 Accounts looks like Cross Events and backs itself up; fixes in Events' sign-out and branding uploads. - **Contracts 1.11.0:** `people.removeDemo` in `crosscode.identity-request/1` (and its reply): new demo data in a product removes the old demo people's accounts. Only `@example.com` addresses (`DEMO_EMAIL_DOMAIN`), never an Accounts admin. - **Accounts 1.3.0:** the account and admin pages in Cross Events' layout (top bar, sidebar of sections with their own addresses, dark footer); quick links to the church's sites; nightly database backups with an admin Backups page; a fuller built-in privacy notice; its own favicon. - **Events 3.3.0:** signing out also signs out of Accounts; uploaded logos and favicons are served from the folder they're saved in; new demo data replaces the old demo people in Accounts. ## events@3.2.0, contracts@1.10.0 - 2026-11-19 Emergency updates can run as soon as possible (Hub 2.7.0); the Hub asks again when an event is on. - **Contracts 1.10.0:** `stats.live` in the Cross Events heartbeat (`eventsNow`, `checkInsLastHour`; optional). - **Events 3.2.0:** sends it (sessions or one-day events on now, check-ins in the last hour). ## events@3.1.0, accounts@1.2.0, contracts@1.9.0 - 2026-11-19 A church moved Cross Events' sign-in to Accounts without email set up in Accounts: Accounts couldn't send codes or password links, sign-in failed with a 500, and nobody could get in. - **Contracts 1.9.0:** `messaging.status`, `messaging.test`, `messaging.set` in `crosscode.identity-request/1` (SMTP and WAWP settings, secrets sealed); `people.ensure` answers `emailSent`. - **Accounts 1.2.0:** a code or link that can't be sent shows a message instead of a 500 (WhatsApp codes fall back to email); forgot password says email isn't set up; the `messaging.*` requests (test, and save only what worked); a test WhatsApp in its admin; WAWP from the `.env` too. - **The sign-in pages look like the church's site:** `@crosscode/ui` Shell / Card / Heading redone (colour wash, logo and name, cards edged in the church's colour, icons); Events sends its logo and colours (`church.branding`, and with a move). - **Events 3.1.0:** Settings → Sign-in shows what Accounts can send and sets it up by copying this site's SMTP / WAWP (its secrets stay on the server), with a test before saving; the move needs Accounts' email (disabled, and refused by the server, without it). ## crosscode script - 2026-11-19 (no tag: servers run `main`) - **A church with Accounts couldn't be updated.** `crosscode install` / `add` writes Accounts' PM2 config to `apps/accounts/ecosystem.config.cjs`, which no `.gitignore` covered, so the next `deploy` stopped at "files … were changed or added by hand: ?? apps/accounts/ecosystem.config.cjs". The PM2 configs crosscode makes (`apps/events/ecosystem.config.js`, `apps/accounts/ecosystem.config.cjs`) no longer count as changes by hand, also in checkouts of releases that don't ignore them, and `apps/accounts/.gitignore` ignores it from the next Accounts release on. bats test. ## events@3.0.0, accounts@1.1.0, contracts@1.8.0, crosscode script - 2026-11-19 Cross Events signs in through the church's Accounts (ROADMAP-v3 phase 4, docs/EVENTS-3.0-PLAN.md). Tested on Postgres 18 (both apps' migrations, `test:accounts` on real databases, the Events e2e suite with the new sign-in spec); not VM tested yet. - **Scripts:** `products/events.sh` installs and builds `packages/auth-client` (after contracts) when the checkout's Events uses it, as 3.0.0 does. - **Contracts 1.8.0:** `crosscode.identity-request/1` (product → Accounts at `/api/accounts/v1/requests`): `import.begin` / `batch` / `finish` / `abort` and `people.*`; `sealLinkValue` / `openLinkValue` in `/signing`. - **Accounts 1.1.0:** takes the requests: moves Events' users in with their password hashes and authenticator secrets, new recovery codes after the first 2FA sign-in, `people.*` for people a product knows, `screen=signup`. Details in `apps/accounts/CHANGELOG.md`. - **`@crosscode/auth-client` 1.1.0:** `request()`, `seal()`, `startSignIn(…, { signUp })`. - **Events 3.0.0:** Settings → Sign-in (check, move, undo), sign-in and sign-out through Accounts, Accounts' calls, admin actions through Accounts. Details in `apps/events/CHANGELOG.md` and `apps/events/MIGRATING-TO-3.md`. ## events@2.4.1, contracts@1.7.0, agent@1.2.0, crosscode script - 2026-11-19 Demo data from the Hub, for installs marked as demo sites (Hub 2.4.0). - **Scripts: `crosscode demo --profile [--admin-email ]`.** Takes a backup, loads the demo set as the site's user (who alone can read its `.env`), then reloads Events and waits for `/health`. Stops before the data if the backup fails, and doesn't reload after a failed seed. - **Contracts 1.7.0:** the `seed-demo` job (`church`, `profile`, optional `adminEmail`; 15 minutes), `DEMO_PROFILES`, `SEED_DEMO_MIN_AGENT`. - **Agent 1.2.0:** runs `seed-demo` jobs as `crosscode demo`. Older agents refuse them, so the Hub checks the agent's version first. - **Events 2.4.1:** `set-demo.js` says to run as the site's user instead of failing with "client password must be a string" and hanging; keeps the site's oldest admin when the default isn't there. The default logo (before a church uploads one) is the Cross Code logo, not Hope Family Church's. Details in `apps/events/CHANGELOG.md`. ## accounts@1.0.1, contracts@1.6.0, crosscode script - 2026-11-19 A server configuration with `TRUST_PROXY=TRUE` made an Events install build for minutes, then fail: the backend crashed at startup (`invalid IP address: TRUE`) and the install was removed. - **Scripts: a value the app can't start with stops the install before the build.** `lib/envtpl.cjs` checks values against `VALUE_RULES` (so far `TRUST_PROXY`: `loopback`, a hop count, lowercase `true`/`false`, or proxy IPs/CIDRs) and exits 4 naming the value and the fix, before any `.env` is written. The rules are in the script, so they apply to every release, including ones from before them. On deploy, values already in a `.env` aren't checked. - **Contracts 1.6.0:** `agent.checkEnvValue(name, value)` and `agent.invalidValues(values)`, the same rules for the Hub (Hub 2.3.3 refuses a bad value when the configuration is saved and before a job). - **Accounts 1.0.1:** `TRUST_PROXY=loopback` turned proxy trust off; it's now read as Events reads it. Details in `apps/accounts/CHANGELOG.md`. ## crosscode script - 2026-11-19 (no tag: servers run `main`) - **Scripts: a failed install says why its apps didn't start.** Before removing what a failed install made, `crosscode install` / `crosscode add` print each PM2 app's last 30 log lines. The logs used to go with the apps, so the Hub only showed "/health didn't report 2.3.1 within 90s (last answer: none)" and the reason was lost. ## agent@1.1.1 - 2026-11-18 - **Stats keep going while a job runs.** The agent sent stats and polled in one loop, so during a job (an install or update can take 30 minutes) the Hub heard nothing and alerted, by email, that the server was down. Stats now go every minute on their own timer, job or not (Hub 2.3.1 also treats a server running a job as busy, for agents not updated yet). - The agent reports its real version: 1.1.0 still said 1.0.1 (a test now keeps it equal to package.json). ## accounts@1.0.0, contracts@1.5.0, agent@1.1.0 - 2026-11-18 Phase 3 (docs/ACCOUNTS-1.0-PLAN.md). Released before the VM test and a run on real Postgres (both still to do). - **Accounts 1.0.0** (`apps/accounts`): the church's OpenID Connect provider, sign-in pages, account page and admin. Details in `apps/accounts/CHANGELOG.md`. - **Contracts 1.5.0:** `OIDC_CLIENT_PATHS` / `oidcClientAddresses`, `oidcClientSecret` (derived from a link secret), `ACCOUNTS_CALL_PATH`, `OIDC_SCOPES`, `ACR_MFA`, `CHURCH_PATHS`, `churchChangedSchema`, `churchObjectSchema`. - **`packages/auth-client`** (new): the product side of signing in. **`packages/ui`**: first components. - **Scripts:** `products/accounts.sh`; `accounts` in `SUPPORTED_PRODUCTS`; `crosscode install --products accounts` (one product per install) and `crosscode add `. ### Agent (1.1.0) - Install jobs for Accounts, and `add-product` jobs (a product next to a church's others). ## events@2.4.0, contracts@1.4.0 - 2026-11-18 Phase 2 (docs/EVENTS-2.4-PLAN.md): protocol v2, Linked products, the event feed and `packages/seo`. With Hub 2.2.0 (events-hub). Released before the e2e run on Postgres and the VM test; do both before updating a church. ### Events (2.4.0) - Protocol v2 with the site's own Ed25519 key, Settings → Linked products with Connect, the public event feed (`/api/feed/v1/events`) and `event.changed`, and events from linked products on the public pages. Details in `apps/events/CHANGELOG.md`. ### Contracts (1.4.0) - `crosscode.link/1` (`link.connect`, `link.connected`, `link.disconnect`) with `signLink` / `verifyLink`, PEM helpers, link secrets and nonces; `LINK_PATHS`, `FEED_PATHS`. - The v2 heartbeat can carry `publicKey`; the reply's `publicKeyStatus` (`saved` / `matches` / `mismatch`). - `typesVersions` for `@crosscode/contracts/signing` (older `moduleResolution`). ### packages/seo (new) - `eventJsonLd`, `churchJsonLd`, `canonicalUrl`, `pageMeta`, `jsonLdString` (ROADMAP-v3 §11). ### Scripts - `crosscode` (Events): installs and builds the shared packages Events uses before it. ## events@2.3.1 - 2026-11-18 - Next.js 16.4.6 (security advisories for 16.2.0–16.4.4; Events wasn't exposed). Also brings `apps/events/package.json` up to the release (it was left at 2.2.0). Details in `apps/events/CHANGELOG.md`. ## agent@1.0.1 - 2026-11-18 - A `status` job on the central server is answered by the agent itself (its stats, frps and the agent version). It used to run `crosscode status`, which central servers don't have, and failed with `spawn /usr/local/bin/crosscode ENOENT`. ## events@2.3.0, contracts@1.3.0, agent@1.0.0 - 2026-11-17 Phase 1c (authenticator-app sign-in) and phase 1d (docs/AGENT-1.0-PLAN.md): installs, updates and uninstalls from the Hub (Hub 2.1.0) through the agent. Tested end to end on a VM (church server + central server + Hub, AGENT-1.0-PLAN §13 and EVENTS-2.2-PLAN §6). ### Events (2.3.0) - Two-factor with an authenticator app, and recovery codes. The env template, the church export and registering by itself from `HUB_LICENCE_KEY` for installs from the Hub. Details in `apps/events/CHANGELOG.md`. ### Contracts (1.3.0) - `crosscode.agent-job/1` (fixed job types, strict arguments), `crosscode.agent-report/1`, `crosscode.script-report/1`, `crosscode.agent-stats/1`, the agent join / poll requests, `crosscode.env-template/1` and `crosscode.church-export/1`. - `@crosscode/contracts/signing`: Ed25519 jobs (over canonical JSON) and agent requests, config sealed to a server (X25519 + HKDF + AES-256-GCM), export encryption. ### Agent (1.0.0) - `apps/agent`: polls the Hub, checks every job (pinned key, server, time window, replays, type, arguments) and runs the crosscode script for it; stats every minute; listens on nothing. Install script, systemd unit, self-update with automatic revert. ### crosscode script - `--json` reports and `--config` on every command; `.env` files from each release's env template (appended to, never rewritten, on deploy); `install --frp` with Hub-given ports, a database on another server, and clean-up on failure; frpc.ini blocks; `restart`, `export`, `uninstall`, `purge`. - Fixed in the VM test: `adopt` applies a release's new migrations in the switch-over; a failed migration is marked rolled back so later deploys aren't blocked; frpc is restarted once when its admin lines are first added; a site's PM2 always runs under its own systemd unit (`pm2-`), so restarting or updating the agent never stops a site; tags are fetched with `--force`. ## events@2.2.0, contracts@1.2.0 - 2026-11-17 ### Events - **Cross Events 2.2.0**, the first release from this repo (`apps/events`, ROADMAP-v3 phase 1b): moved in with its history, npm workspaces with one root lockfile, and the `crosscode` script (`deploy`, `status`, `install`, `adopt`) in `scripts/`. Also AI use shown in tokens instead of rand, and everything the backend serves under `/api`. Details in `apps/events/CHANGELOG.md`. ### Contracts - AI status (Hub protocol §3b): optional `usedInputTokens`, `usedOutputTokens`, `capInputTokens`, `capOutputTokens` (Hub 2.0.1). Churches see tokens; the cents stay for the Hub and older installs. ### Docs - The roadmap (`docs/ROADMAP-v3.md`) and the Hub protocol (`docs/hub-protocol.md`) move here from `hope-events/docs/`, since they cover every product. New: `docs/HANDOVER.md` (where each phase stands) and `docs/EVENTS-2.2-PLAN.md` (phase 1b, Cross Events into the monorepo). ## contracts@1.1.0 - 2026-11-04 ### Contracts - Hub protocol v2: optional `requires` on a release (`[{ product, version }]`), the sibling versions it needs. The Hub refuses an update request with `409 REQUIREMENT_NOT_MET` until they're met (Hub 2.0, ROADMAP-v3 §5). Optional, so the schema stays `/1`-compatible. ## contracts@1.0.0 - 2026-11-04 ### Monorepo - Set up: npm workspaces (`packages/*`, `apps/*`), shared TypeScript, ESLint and Jest setup, and `npm run check` (lint, typecheck, tests and build). - `packages/contracts`: package set up with a dual CommonJS / ESM build (tsup) and the schema-name helpers every contract uses (`crosscode./`). - `packages/ui`, `apps/accounts`, `apps/website`, `apps/app`: placeholders. ### Contracts - `crosscode.event/1` and `crosscode.event-feed/1`: the event, the feed response and the `event.changed` webhook. Checks that `startsAt` / `endsAt` match the sessions and that only Cross Events takes registrations. `parseEventFeed` skips and reports a bad event instead of failing the whole feed; `eventKey` is the cross-product id. - `crosscode.church/1`: the church profile (branding, campuses, service times, contact, links). - `crosscode.identity/1`: sign-in claims (no roles; 2FA method including the authenticator app, news consent, privacy notice version) and the `user.updated`, `user.deleted` (with a "deferred" reply) and `user.export` back-channel calls. - Sign-in return: `isSafeReturnPath`, `safeReturnPath`, `encodeState` / `decodeState` and `isRegisteredRedirectUri`, so every product sends people back to the page they came from in the same safe way. - Hub protocol v2: `product` on register and heartbeat, stats per product (Events as in v1; Website storage and App active-member bands for billing), the install's public key, linked products in the replies, `customerId` / `product` in the licence token. - `@crosscode/contracts/signing` (Node only): the Hub's HMAC scheme for the Hub and product links. - Sample payloads for every contract in `samples/`, checked by the tests. - **JSON Schema** (draft 2020-12) for every contract in `schemas/`, generated from the zod schemas by `npm run build` (`scripts/json-schemas.cjs`), for consumers that don't use TypeScript or zod. A test checks the files match the zod schemas and that every sample passes them (Ajv). Checks JSON Schema can't express (e.g. `startsAt` matching the sessions) only run in zod.