crosscode.church-export/1 with its app part, in plain terms with refs made
for the export: members as people with every role, the wall's rules,
commitments as rules (with skips), "I prayed" marks, campaigns, testimonies,
prayer requests with their updates and moderation (who and why; the whole
export is encrypted by the agent), the emergency numbers, announcements,
the church's own devotionals (not Cross Code's) and simple events; uploaded
images listed under uploads/. scripts/export-church.ts writes export.json
for the crosscode script (app.sh comes with slice 7). A test checks the
schema and that no internal id is in it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The church's one set of settings from Accounts (messaging.get; the SMTP
password and WAWP token sealed with the link's secret, kept encrypted in
AppSetting messaging_settings), fetched when the App links to Accounts, on
Accounts' signed messaging.changed, once a day and on the admin's Fetch again.
messages-send (every minute): the outbox by email (nodemailer) and WhatsApp
(WAWP), STOP checked before every WhatsApp (the member and anyone with the
same number), email instead for what a member asked for (never
announcements), retries after 2, 4, 8 and 16 minutes, a reminder never after
its slot started, nothing more than 3 days late. announcement-sends and
devotional-sends queue "Also send it" at the publish time and today's
devotional at each member's time. Members' choices (NotificationSettings),
news consent kept from Accounts, MessageCount for the heartbeat's messages,
the admin's Email and WhatsApp API with Send a test.
Migration messaging (checked on PostgreSQL 18). 110 backend tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>