- Accounts: account and admin pages in Cross Events' layout (top bar, sidebar, a page per section, dark footer); quick links to the church's sites (GET /me/apps); nightly pg_dump backups with Admin -> Backups (run, keep, download, audited; heartbeat lastBackupAt); a fuller built-in privacy notice with headings and bullets; a fixed favicon. /backups/ ignored (anchored, so src/backups is kept). - Contracts 1.11.0: people.removeDemo (only @example.com, never an admin). - Events: uploads served from the folder they're saved in (a backend started outside backend/ answered 404 for a logo it had just saved); Branding checks the file loads before saving; logout waits for the sign-out call so Accounts signs out too; set-demo removes the last demo's people from Accounts. Tests: Accounts 62 + e2e 8, Events 782, contracts 225; npm run check passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 KiB
Changelog
Each package and app has its own section and its own tags (contracts@1.0.0, accounts@1.0.0, …).
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.removeDemoincrosscode.identity-request/1(and its reply): new demo data in a product removes the old demo people's accounts. Only@example.comaddresses (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.livein 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.setincrosscode.identity-request/1(SMTP and WAWP settings, secrets sealed);people.ensureanswersemailSent. - 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.envtoo. - The sign-in pages look like the church's site:
@crosscode/uiShell / 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/addwrites Accounts' PM2 config toapps/accounts/ecosystem.config.cjs, which no.gitignorecovered, so the nextdeploystopped 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, andapps/accounts/.gitignoreignores 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.shinstalls and buildspackages/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/abortandpeople.*;sealLinkValue/openLinkValuein/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 inapps/accounts/CHANGELOG.md. -
@crosscode/auth-client1.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.mdandapps/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 <church> --profile <small|events|ministry|multicampus> [--admin-email <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-demojob (church,profile, optionaladminEmail; 15 minutes),DEMO_PROFILES,SEED_DEMO_MIN_AGENT. - Agent 1.2.0: runs
seed-demojobs ascrosscode demo. Older agents refuse them, so the Hub checks the agent's version first. - Events 2.4.1:
set-demo.jssays 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 inapps/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.cjschecks values againstVALUE_RULES(so farTRUST_PROXY:loopback, a hop count, lowercasetrue/false, or proxy IPs/CIDRs) and exits 4 naming the value and the fix, before any.envis written. The rules are in the script, so they apply to every release, including ones from before them. On deploy, values already in a.envaren't checked. - Contracts 1.6.0:
agent.checkEnvValue(name, value)andagent.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=loopbackturned proxy trust off; it's now read as Events reads it. Details inapps/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 addprint 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 inapps/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;accountsinSUPPORTED_PRODUCTS;crosscode install --products accounts(one product per install) andcrosscode add <church> <product>.
Agent (1.1.0)
- Install jobs for Accounts, and
add-productjobs (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) andevent.changed, and events from linked products on the public pages. Details inapps/events/CHANGELOG.md.
Contracts (1.4.0)
crosscode.link/1(link.connect,link.connected,link.disconnect) withsignLink/verifyLink, PEM helpers, link secrets and nonces;LINK_PATHS,FEED_PATHS.- The v2 heartbeat can carry
publicKey; the reply'spublicKeyStatus(saved/matches/mismatch). typesVersionsfor@crosscode/contracts/signing(oldermoduleResolution).
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.jsonup to the release (it was left at 2.2.0). Details inapps/events/CHANGELOG.md.
agent@1.0.1 - 2026-11-18
- A
statusjob on the central server is answered by the agent itself (its stats, frps and the agent version). It used to runcrosscode status, which central servers don't have, and failed withspawn /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_KEYfor installs from the Hub. Details inapps/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/1andcrosscode.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
--jsonreports and--configon every command;.envfiles from each release's env template (appended to, never rewritten, on deploy);install --frpwith 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:
adoptapplies 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-<user>), 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 thecrosscodescript (deploy,status,install,adopt) inscripts/. Also AI use shown in tokens instead of rand, and everything the backend serves under/api. Details inapps/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 fromhope-events/docs/, since they cover every product. New:docs/HANDOVER.md(where each phase stands) anddocs/EVENTS-2.2-PLAN.md(phase 1b, Cross Events into the monorepo).
contracts@1.1.0 - 2026-11-04
Contracts
- Hub protocol v2: optional
requireson a release ([{ product, version }]), the sibling versions it needs. The Hub refuses an update request with409 REQUIREMENT_NOT_METuntil 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, andnpm 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.<name>/<major>).packages/ui,apps/accounts,apps/website,apps/app: placeholders.
Contracts
crosscode.event/1andcrosscode.event-feed/1: the event, the feed response and theevent.changedwebhook. Checks thatstartsAt/endsAtmatch the sessions and that only Cross Events takes registrations.parseEventFeedskips and reports a bad event instead of failing the whole feed;eventKeyis 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 theuser.updated,user.deleted(with a "deferred" reply) anduser.exportback-channel calls.- Sign-in return:
isSafeReturnPath,safeReturnPath,encodeState/decodeStateandisRegisteredRedirectUri, so every product sends people back to the page they came from in the same safe way. - Hub protocol v2:
producton 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/productin 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 bynpm 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.startsAtmatching the sessions) only run in zod.