- `npm run demo -- --profile <p> --scenario <p>`: each profile's `scenarioTeam` names four
parts, roles and portraits; the names are the scenario's people from @crosscode/demo, the
pastor first (home page and messages' speaker).
- With a linked Cross Events, a scenario load makes no events of its own, turns on Show events
from and fetches Events' whole feed at once; an unreachable Events doesn't fail the load.
- A scenario on a site with no church profile saves the scenario's church, not Acacia Hill.
- crosscode script: `crosscode demo <church> website --scenario` passes it on and refuses a
Website before 1.8.0; the Website installs and builds packages/demo.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOGs, What's New.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Events 3.8.0 (one migration):
- STOP to the church's WhatsApp number stops all WhatsApp, not only news:
checked before every sendText/sendPdf against WhatsAppStop (by number) and
User.whatsappOptedOut (from Accounts' user.updated); 2FA codes go by email
- a STOP received here is passed on to Accounts (whatsapp.optout); START turns
it back on without Accounts; Accounts turning it back on clears it here
- the eight demo scenarios as set-demo profiles, around each church's own
people (@crosscode/demo, same accounts as Accounts) and campuses; the
scenario's people are never removed from Accounts
@crosscode/demo 1.1.0: each person's gender.
crosscode script: scenarios as Events demo profiles; Events builds packages/demo.
Checked on PostgreSQL 18: the migration and every scenario loaded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Accounts 1.9.0 (one migration):
- messaging.get (sealed settings) and the messaging.changed hint to products
that asked, on admin or product changes
- the WhatsApp opt-out for every product: whatsapp.optout, Accounts' own WAWP
webhook, WhatsAppOptOut kept per number, whatsapp_opted_out in user.updated,
no WhatsApp from Accounts to an opted-out person, "Turn WhatsApp back on"
- demo scenarios: npm run demo -- --profile <scenario> --force replaces the
church profile (with an SVG logo and icon at /api/demo-assets/) and the demo
people, ids kept across loads
@crosscode/demo 1.0.0 (new): the eight scenarios' churches, people and logos.
crosscode script: crosscode demo <church> accounts, --scenario on every demo,
Accounts installs and builds packages/demo.
Checked on PostgreSQL 18: migrations, scenario loads, opt-out, npm run demo.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight demo churches, two per template (the second on the template's other
recommended variants and header), loaded from the Hub on demo sites with
`crosscode demo <church> website --profile <p>`. A profile replaces 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.
- contracts: WEBSITE_DEMO_PROFILES, DEMO_PRODUCTS, SEED_WEBSITE_DEMO_MIN_AGENT;
seed-demo takes an optional product (events by default)
- agent: a Website seed-demo job runs `crosscode demo <church> website`
- crosscode script: backup, demo as the site's user, reload, health check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- 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>
- 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>
Found in the VM test: a site's PM2 daemon started from the agent's install
job belonged to the agent's service, so stopping or updating the agent took
down every site it had installed. Before any PM2 command as a site user,
the scripts now make sure that user's daemon runs under pm2-<user> (moving
one that runs elsewhere, keeping its process list). The agent's stats no
longer start an empty daemon by asking one that isn't running. Uninstall
stops the unit before removing it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every command takes --json (crosscode.script-report/1 on stdout, the
log on stderr) and --config (the .env values by layer, from the agent).
- .env files come from the release's env.template.json (lib/envtpl.js):
written whole on install; on deploy only new variables are appended,
and a new required one with no value stops the deploy at the checks.
- install --frp: Hub-given ports, a marked frpc.ini block (backup,
frpc verify, reload; [common] admin lines added once), no nginx.
A database on another server via DB_ADMIN_URL. Refuses an existing
database or role. Everything the run made is removed if it fails.
- restart, export (crosscode.church-export/1 ZIP), uninstall (final
backup, uploads and .env kept 30 days) and purge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>