crosscode uninstall/export/purge <church> [product ...]: with products named only those
go and the church keeps the others; naming every product it still has removes the church
(folder and app user), so the last product to go takes the church with it. The report
gives products and remaining. Uninstalling cross-events-demo's Events removed its Accounts
too, which the Hub still showed as live.
Contracts 1.16.0: optional products on export/uninstall/purge, PRODUCT_UNINSTALL_MIN_AGENT.
Agent 1.5.0 passes them to crosscode. The Website plan moves to contracts 1.17.0 / Hub 2.13.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The agent finds frps/frpc's config (Hub path, systemd -c, usual places) and reads INI and TOML.
- New jobs frp-read, frp-write (secrets kept on the server, verify, backup, restart, roll back)
and probe-ports (which ports are free here), on central and church servers.
- Stats report frpConfigPath; crosscode gets FRPC_INI on church servers.
- Website plan versions move up to contracts 1.16.0 and Hub 2.12.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WEBSITE-1.0-PLAN.md: templates with section variants, style settings and custom
pages; one Publish after a clickable preview; Coming soon; contact details only;
messages from YouTube or by link; brand style and footer shared with Events 3.7;
no address moves in 1.0. ROADMAP decisions 40-47, §6, §9, §10, §11.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HANDOVER phase table and Next up, VERSIONS deployed table, and the Website/ui
placeholders now say phase 5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dump made before each Accounts deploy (apps/accounts/backend/backups/)
counted as a file added by hand on Accounts below 1.3.0, which has no
.gitignore for it, so the next deploy stopped. Untracked files in that
folder no longer count (CROSSCODE_OWN_DIRS in lib/common.sh).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As Cross Events' own sign-in sends: when, the site, rough location and device, with what to do if
it wasn't them. WhatsApp too for a verified number. Admins can turn it off (signin_notices).
Fire-and-forget: never holds up or fails a sign-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Contracts 1.14.0: people.check in crosscode.identity-request/1 (500 subs) and its reply
(active / deactivated / deleted / unknown, profile for the first two).
- Accounts 1.5.0: answers people.check with profiles only for people the product knows; the reply
isn't stored.
- Events 3.6.0: accounts-people-check job (04:30): fixes out-of-date copies, handles deleted
accounts as user.deleted, counts unknown people and stops (changing nothing) when most of a page
is unknown; skipped with an Accounts older than 1.5.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Events: loading demo data emptied ProductLink but kept auth_mode, so a site in Accounts mode had
no link and nobody could sign in (ACCOUNTS_UNAVAILABLE on events-demo). set-demo.js keeps
ProductLink and LinkNonce; a site in Accounts mode without a link reconnects at its next
heartbeat; sign-in failures are kept and sent in the heartbeat (stats.signIn).
- Contracts 1.13.0: stats.signIn in the Cross Events heartbeat.
- Agent 1.3.1: 1.3.0 reported itself as 1.2.0 (AGENT_VERSION not bumped).
- What's New notes for Events 3.4.0 / 3.5.0 and Accounts 1.4.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Events and Accounts: Background jobs are switched on or off and rescheduled from the admin;
the choice is kept in the database (job_overrides), wins over the .env and applies at once.
Accounts gets an Admin -> Background jobs page and per-job env flags, as Events.
- Accounts: every email styled as Cross Events' (church colour, logo, button, footer), same
plain text (src/lib/emails.ts).
- Contracts 1.12.0: env-read / env-set agent jobs, envReadResultSchema, isSecretEnvName.
- crosscode script: `crosscode env <church> <product>` reads the .env (secrets hidden) and, with
--set/--unset/--restart, changes one file, rebuilds the frontend when its file changed, reloads,
and puts the file back if the site doesn't answer (lib/envedit.cjs, tests/envedit.bats).
- Agent 1.3.0: runs env-read and env-set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
stats.live (eventsNow: a session or a one-day event on now, +/- 30 min;
checkInsLastHour) so Hub 2.7.0 asks again before an emergency update takes
a site with an event on down. Decision 39: emergency updates can run as
soon as possible (decision 30 changed). Tests: liveNow, Events 776.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A church moved sign-in to Accounts without email set up there: codes and
password links couldn't be sent, sign-in failed with a 500, nobody could
get in.
- contracts 1.9.0: messaging.status/test/set (SMTP, WAWP; secrets sealed);
people.ensure answers emailSent.
- Accounts 1.2.0: SendError instead of a 500; WhatsApp codes fall back to
email; forgot password says email isn't set up; setup only offers
methods that work; messaging.* (test, save only what worked); test
WhatsApp in admin; WAWP from .env.
- Events 3.1.0: Settings -> Sign-in shows what Accounts can send and
copies this site's SMTP/WAWP into it (secrets stay on the server), test
then save; Move disabled and refused (EMAIL_NOT_READY) without email.
Tests: Accounts 54, contracts 218, Events 774, test:accounts 16 (also on
Postgres).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- contracts 1.8.0 / Accounts 1.1.0: import.finish lists the subs the product
relies on; Accounts checks each is held, not deleted and known to it (the
count+hash failed a second move after Undo once someone had joined
through Accounts).
- Events: connects to the church's Accounts once the Hub lists it;
moveNewPeople (demo data, people added after the move); set-demo moves
demo people; e2e/sign-in-accounts.spec.ts with Accounts in memory and an
e2e-only /api rewrite. test:accounts 14/14; Jest auto-connect tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings -> Sign-in: check, move (everyone into Accounts with their password
hashes and authenticator apps, count/hash check, then switch) and undo for
14 days. Sign-in through auth-client with a one-time handoff to Events' own
token; staff roles stepped up to mfa; sign-out and back-channel logout;
user.updated/export/deleted; admin 2FA reset, unlock and profile changes via
Accounts; /login, /register, /forgot-password forward once moved; Events'
own sign-in endpoints answer SIGN_IN_MOVED. User.accountId, AccountsSignIn.
npm run test:accounts runs Events' code against the real Accounts app (11
tests); 5 new Jest tests. MIGRATING-TO-3.md, plan "Changes while building".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Product -> Accounts requests at /api/accounts/v1/requests, signed with the
link secret: import.begin/batch/finish/abort for moving a product's users
in (EVENTS-3.0-PLAN §4), people.* for product admins (§8). sealLinkValue /
openLinkValue seal password hashes and TOTP secrets with a key derived
from the link secret; importIdsHash for the final check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EVENTS-3.0-PLAN.md: User.accountId, sign-in through auth-client with a
one-time handoff to Events' own token, 2FA step-up for staff, the user
import into Accounts (hashes, authenticator secrets, consent, notices),
an admin-run move with 14 days' undo, and what Accounts 1.1.0, contracts
1.8.0 and Hub 2.5.0 need. Linked from the roadmap and handover.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phases 4 and 5 swapped in ROADMAP-v3 (decision 38): Cross Events 3.0.0 is
phase 4, the Church Website phase 5. Phase 3 marked released; handover,
versions, README and the Accounts and Events 2.4 plans follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts: `crosscode demo <church> --profile … [--admin-email …]`: backup,
set-demo.js as the site's user, reload, wait for /health.
- Contracts 1.7.0: the seed-demo job, DEMO_PROFILES, SEED_DEMO_MIN_AGENT.
- Agent 1.2.0: seed-demo → crosscode demo.
- Events 2.4.1: set-demo.js stops with a clear message when it can't read
.env (was "client password must be a string", then a hang); keeps the
oldest admin when the default one isn't on the site; --admin-email=.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A server configuration with TRUST_PROXY=TRUE made an Events install build for
minutes, then fail: Express threw "invalid IP address: TRUE" at startup.
- scripts/lib/envtpl.cjs: VALUE_RULES checked before any .env is written
(exit 4, naming the value and the fix), for every release.
- Contracts 1.6.0: agent.checkEnvValue / agent.invalidValues, the same rules
for the Hub.
- Accounts 1.0.1: TRUST_PROXY read as Events reads it; loopback used to
turn proxy trust off.
- Docs: CHANGELOGs, WHATS-NEW, HANDOVER, AGENT-1.0-PLAN, ROLLOUT-1.0, READMEs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/products/accounts.sh (backup with pg_dump, build with the shared
packages, PM2, export, keep, failed-migration recovery); accounts in
SUPPORTED_PRODUCTS so deploy updates it where a church has it. Env
template in both places, PM2 example, export script, /api/health
version from package.json. README, CHANGELOG, WHATS-NEW; the plan's
changes while building and what's still to do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign-in steps (password, sign-up, email code, two-step sign-in and its
setup with recovery codes, privacy notice, news question), forgot and
reset password, the account page, admin (people, deletions, church
profile, linked products, settings, notice, licence, audit) and setup.
Strict CSP with a nonce per page; church colours from the profile.
@crosscode/ui gets its first components (shell, card, fields, buttons).
Plan: roles stay in each product (asked 2026-11-18).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>