From 0b518761b762c2b119531eaa33c8ea981ff28ecf Mon Sep 17 00:00:00 2001 From: Joshua Oosthuizen Date: Mon, 30 Nov 2026 16:29:58 +0200 Subject: [PATCH] docs: Website 1.8.0, agent 1.7.0 and contracts 1.23.0 in every handover and plan ROADMAP phase 6, the root README (packages/demo in the Website), the contracts README (seed-scenario), AGENT-1.0-PLAN's job table (seed-demo for every product, seed-scenario), VERSIONS' Website row, and HANDOVER's demo-scenario rule (one job, whatever is installed). Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- docs/AGENT-1.0-PLAN.md | 3 ++- docs/HANDOVER.md | 6 ++++++ docs/ROADMAP-v3.md | 2 +- docs/VERSIONS.md | 2 +- packages/contracts/README.md | 2 +- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 62802d0..e817c9b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ stand is in [`docs/HANDOVER.md`](./docs/HANDOVER.md), and the latest release of | `packages/auth-client` | `@crosscode/auth-client`: how a product signs in through Accounts | In use | | `packages/seo` | `@crosscode/seo`: JSON-LD and meta for every public site | In use | | `packages/ui` | `@crosscode/ui`: fonts, brand style, `ChurchFooter` | In use | -| `packages/demo` | `@crosscode/demo`: the demo scenarios' churches, people and logos | In use (Accounts, Events) | +| `packages/demo` | `@crosscode/demo`: the demo scenarios' churches, people and logos | In use (Accounts, Events, the Website) | | `scripts/` | The `crosscode` script: install, deploy, demo, env, export, uninstall on the servers | In use (`main` is the release) | Cross Code Hub (`joshua/events-hub`) stays in its own repo and gets `@crosscode/contracts` as a diff --git a/docs/AGENT-1.0-PLAN.md b/docs/AGENT-1.0-PLAN.md index 69fffa3..1a37cfd 100644 --- a/docs/AGENT-1.0-PLAN.md +++ b/docs/AGENT-1.0-PLAN.md @@ -102,7 +102,8 @@ build differs from this plan, see [Changes while building](#changes-while-buildi | `deploy` | `crosscode deploy [products] [--version …] --json` | emergency only | | `adopt` / `adopt-undo` | `crosscode adopt …` | no | | `restart` | `crosscode restart [product]` (PM2 reload) | no | -| `seed-demo` | `crosscode demo --profile [--admin-email …]` (backup, demo data, reload; agent 1.2.0+) | no, but only for installs marked as demo sites in the Hub, and typing the short name | +| `seed-demo` | `crosscode demo [website\|app\|accounts] --profile [--scenario ] [--admin-email …]` (backup, demo data, reload; agent 1.2.0+, the Website 1.6.0+, Accounts, the App and `--scenario` 1.7.0+) | no, but only for installs marked as demo sites in the Hub, and typing the short name | +| `seed-scenario` | `crosscode demo --scenario [--admin-email …]`: a whole demo scenario on every product the church has installed, Accounts first, the rest skipped; every release checked first (contracts 1.23.0, agent 1.7.0+) | no, as `seed-demo` | | `export` | `crosscode export --json` (§9) | no | | `uninstall` | `crosscode uninstall --json` | **yes**, and typing the short name | | `purge` | `crosscode purge ` (deletes the 30-day keep, §9) | no (scheduled at uninstall) | diff --git a/docs/HANDOVER.md b/docs/HANDOVER.md index e402928..b1f6071 100644 --- a/docs/HANDOVER.md +++ b/docs/HANDOVER.md @@ -194,6 +194,12 @@ rollout. the Website and the App with the same profile name. People keep the same account id everywhere and on every load (`demoId`); everything is at example.com with no phone numbers. A new demo feature that should look the same in every product goes in `packages/demo`, not in one app. + **A whole scenario is one job** (contracts 1.23.0 `seed-scenario`, agent 1.7.0): + `crosscode demo --scenario ` loads it on **whatever the church has installed**, + Accounts first, and skips the rest (a client with only Accounts and the Website gets both). + Every product must also work without the others (the Website without Accounts uses the + scenario's own profile, without Events its own events); the App 1.0.0 must do the same, and + add its branch to `cmd_demo_scenario` in `scripts/lib/manage.sh`. - **WhatsApp STOP** (APP-1.0-PLAN decision 11, from Accounts 1.9.0 / Events 3.8.0): STOP means no WhatsApp from any product, of any kind. Accounts keeps it (`whatsapp_opted_out` in `user.updated`); every product checks it before sending (Events: `utils/whatsappStop.js`), and diff --git a/docs/ROADMAP-v3.md b/docs/ROADMAP-v3.md index abb0d18..1452187 100644 --- a/docs/ROADMAP-v3.md +++ b/docs/ROADMAP-v3.md @@ -642,7 +642,7 @@ Planned in [AGENT-1.0-PLAN.md](./AGENT-1.0-PLAN.md). In short: | 3 | **Accounts 1.0.0** | OIDC provider, sign-in, 2FA (email, WhatsApp, authenticator app), password reset, consent and notice, export / delete fan-out, admin, install script. [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md) (with contracts 1.5.0, `packages/auth-client`, Hub 2.3.0). **Released 2026-11-18** (`accounts@1.0.0`, 1.0.1 on 2026-11-19); the VM test and a run on real Postgres are still to do before a church gets it | Every later product signs in through it | | 4 | **Cross Events 3.0.0** | Sign-in moves to Accounts; user migration keeping password hashes; migration guide. **Planned 2026-11-19:** [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md) (with contracts 1.8.0, Accounts 1.1.0, Hub 2.5.0; decisions confirmed 2026-11-19) | Breaking change, so a major version. **Moved before the Website on 2026-11-19** (decision 38): Events is the product churches use today, so Accounts is proven on real users first, and the Website then starts with a church whose people already have accounts | | 5 | **Church Website 1.0.0** | Public site with the **four templates** (§6), admin, simple events + feed, SEO (§11), Hope Family Church as the first church, then a second test church on a different template to prove it repeats. **Planned 2026-11-21:** [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (with contracts 1.17.0, Accounts 1.7.0, Events 3.7.0 for the shared fonts and footer, Hub 2.21.0). **Released 2026-11-26, done 2026-11-30** (Hope Family Church and a second church live, crosscode-site sells it) | More churches need a website than an app; it also covers the "website only" case. Built on Accounts from day one | -| 6 | **Church App 1.0.0** | Foundation (PWA, branding, Accounts), House of Prayer, announcements, devotionals, events (simple + feed). **Planned 2026-11-30:** [APP-1.0-PLAN.md](./APP-1.0-PLAN.md) (with contracts 1.20.0 and 1.21.0, Accounts 1.9.0, Events 3.8.0, Website 1.8.0, agent 1.7.0, Hub 2.26.0; also **demo scenarios**: eight preset churches loaded into every product of a demo client). contracts 1.20.0 / 1.21.0, Accounts 1.9.0 and Events 3.8.0 **released 2026-11-30** | Starts with shared users and the feed already in place | +| 6 | **Church App 1.0.0** | Foundation (PWA, branding, Accounts), House of Prayer, announcements, devotionals, events (simple + feed). **Planned 2026-11-30:** [APP-1.0-PLAN.md](./APP-1.0-PLAN.md) (with contracts 1.20.0 and 1.21.0, Accounts 1.9.0, Events 3.8.0, Website 1.8.0, agent 1.7.0, Hub 2.26.0; also **demo scenarios**: eight preset churches loaded into every product of a demo client). contracts 1.20.0 to 1.23.0, Accounts 1.9.0, Events 3.8.0, Website 1.8.0 and agent 1.7.0 **released 2026-11-30**; next Hub 2.26.0, then App 1.0.0 | Starts with shared users and the feed already in place | | 7 | Church App 1.x | Reading plans, sermons, groups, pastoral care, serving, giving links, directory | After House of Prayer is in use | Each phase adds help content, audit log entries, tests, a CHANGELOG entry and updates to the diff --git a/docs/VERSIONS.md b/docs/VERSIONS.md index e61e3ef..c1cc72f 100644 --- a/docs/VERSIONS.md +++ b/docs/VERSIONS.md @@ -31,7 +31,7 @@ on each run, so merging to `main` and pushing releases it. Its changes are liste | `@crosscode/demo` | `packages/demo` | 1.1.0 (the demo scenarios' churches, people and logos; ships with Accounts 1.9.0, Events 3.8.0 and Website 1.8.0) | | `@crosscode/seo` | `packages/seo` | 1.0.0 (released with Events 2.4.0) | | `@crosscode/ui` | `packages/ui` | 0.3.0 (fonts, `ChurchFooter`; 0.2.0 with Accounts 1.7.0, 0.3.0 with Events 3.7.0) | -| Website | `apps/website` | 1.7.1 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28; installed for the demo church cross-demo2 (1.7.1) only, Hope Family Church next) | +| Website | `apps/website` | 1.8.0 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30; tagged as `website@…`; see "Deployed / rolled out" for where it runs) | | App | `apps/app` | 0.0.0 (not started, phase 6) | These shared packages ship inside the apps that use them, from the same checkout, so they don't diff --git a/packages/contracts/README.md b/packages/contracts/README.md index 555cdf2..546c212 100644 --- a/packages/contracts/README.md +++ b/packages/contracts/README.md @@ -17,7 +17,7 @@ Events and the Hub, uses it, so the key fields are the same in every product's J | Env template | `crosscode.env-template/1` | Each product's `.env` variables by layer; `missingRequired` and, from 1.6.0, `checkEnvValue` / `invalidValues` (values an app can't start with, e.g. `TRUST_PROXY=TRUE`), which the Hub checks before a job | `src/agent.ts` (exported as `agent`) | | Devotional | `crosscode.devotional/1` | From 1.20.0: one day's devotional for the Church App (Cross Code's from the Hub at `GET /api/v2/devotionals`, or the church's own), the CSV import's columns and row checks (`checkDevotionalCsv`, `DEVOTIONAL_CSV_TEMPLATE`), shared by the Hub and the App | `src/devotional.ts` | | Bible passages | — | From 1.20.0: the 66 books (USFM codes, English and Afrikaans names), the seven translations with their YouVersion ids and copyright lines, `parseBibleReference`, `formatBibleReference`, `youVersionUrl`. From 1.22.0: the Berean Standard Bible, `licence` and `FREE_BIBLE_TRANSLATION_IDS` (only those in App 1.0), each publisher's exact notices (`copyright` under the verse, `acknowledgement`, the Bible Society's `disclaimer`), who to ask (`publisher`, `permissionsUrl`), `FREE_QUOTE_VERSES` and `quotedVerses` (docs/BIBLE-PERMISSIONS.md) | `src/bible.ts` | -| Demo scenarios | — | From 1.21.0: `agent.DEMO_SCENARIOS`, eight preset churches that load every product of a demo client alike (Accounts first, `DEMO_SCENARIO_ORDER`), each product's profiles, the minimum releases and agent; `seed-demo` takes `scenario` | `src/agent.ts` (exported as `agent`) | +| Demo scenarios | — | From 1.21.0: `agent.DEMO_SCENARIOS`, eight preset churches that load every product of a demo client alike (Accounts first, `DEMO_SCENARIO_ORDER`), each product's profiles, the minimum releases and agent; `seed-demo` takes `scenario`. From 1.23.0: the `seed-scenario` job, a whole scenario in one job on whatever the church has installed (`SEED_SCENARIO_JOB_MIN_AGENT`) | `src/agent.ts` (exported as `agent`) | | Signing | — | HMAC request signing for the Hub and for product links (Node only) | `src/signing.ts` (`@crosscode/contracts/signing`) | ## Using it