- 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>
- @crosscode/ui: Shell with the church's colour wash, logo (or its initial)
and name, footer; Card edged in the church's colour; Heading with an
icon tile. Icons on every sign-in step.
- contracts 1.9.0: churchLookSchema (logo, accent colour) in import.begin;
church.branding request. Accounts fills (move) or replaces (button) the
church profile's name, logo and colours.
- Events 3.1.0: src/accounts/look.ts (logo as a full address), sent with a
move; Settings -> Sign-in "Use this site's logo and colours".
Tests: Accounts 55, contracts 218, Events 774, test:accounts 16.
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>
POST /api/accounts/v1/requests (crosscode.identity-request/1): import.* keeps
each person's Events id as sub, password hash and authenticator secret
(sealed in transit), consent, notices and lockout; linked when the email
already has an account. people.* for product admins, limited to people the
product knows. New recovery codes after the first 2FA sign-in for people
moved in with 2FA. screen=signup. auth-client: request(), seal(), signUp.
8 new tests (47 in all).
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>
- 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>
oidc-provider 9.13.3 with PKCE, ES256, crosscode.identity/1 claims and
back-channel logout; clients are the linked products (Connect). Sign-in
steps (password, sign-up, email check, 2FA and its setup, privacy notice,
news question, password reset) survive to the product. Account page and
admin API, church profile, export and deletion fan-out, Hub v2 client,
jobs. End-to-end tests with a test product on openid-client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Hub client: register and heartbeat on protocol v2 with the site's
Ed25519 key (sent on the heartbeat until the Hub has it); falls back to
v1 for a day if the Hub refuses v2, so the licence always refreshes.
- crosscode.link/1 Connect / Disconnect, both directions, trusted through
the Hub's cached linkedProducts (ProductLink, LinkNonce).
- GET /api/feed/v1/events from FeedEntry (go-live, closing and selling
out are changes; deactivated events go in deleted), event.changed to
connected products, and showing their events (ImportedEvent).
- /api/v2/linked-products, /api/v2/linked-events; /events/:id/full gains
crosscodeEvent and priceRangeCents for the JSON-LD.
- Contracts: FEED_PATHS, typesVersions for @crosscode/contracts/signing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- crosscode.link/1 (link.connect / link.connected / link.disconnect), with
signLink / verifyLink, PEM conversion, link secrets and nonces.
- The v2 heartbeat can carry the install's publicKey; the reply says
saved / matches / mismatch (Hub 2.2.0). Never a failed heartbeat.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jobs of fixed types with strict argument schemas, signed by the Hub with
Ed25519 over canonical JSON. Agent requests signed with the server's
Ed25519 key. Config sealed to the server's X25519 key (X25519 + HKDF +
AES-256-GCM; Node has no XSalsa20). Exports encrypted with a key that
only travels in the download link.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Site settings → AI, the usage tables and the 80% email show input/output
tokens and the percentage; the rand amounts from the Hub are dropped on
arrival. AiCall stores each call's tokens (migration ai_tokens). v2
/ai/status and /ai/usage carry tokens instead of cents. Needs Hub 2.0.1
for the token figures; older Hubs show the percentage only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- crosscode.event/1 and crosscode.event-feed/1 (feed, event.changed
webhook), with session and registration rules; parseEventFeed skips
and reports bad events instead of failing the whole feed.
- crosscode.church/1: branding, campuses, service times, contact, links.
- crosscode.identity/1: sign-in claims and the user.updated /
user.deleted / user.export back-channel calls and replies.
- Sign-in return helpers (isSafeReturnPath, encodeState/decodeState,
isRegisteredRedirectUri) so every product returns people to the page
they came from in the same safe way.
- Hub protocol v2: product on register/heartbeat, stats per product,
install public key, linked products, customerId/product in licences.
- @crosscode/contracts/signing (Node only): the Hub's HMAC scheme.
- Samples for every contract in samples/, checked by the tests (120).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm workspaces (packages/*, apps/*) with shared TypeScript, ESLint and
Jest setup and `npm run check`. @crosscode/contracts builds to CommonJS
and ESM (tsup) with the crosscode.<name>/<major> schema-name helpers.
packages/ui and apps/{accounts,website,app} are placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>