AI status: tokens used and an estimated allowance in tokens, for churches (2.0.1)

Churches see their AI use as input/output tokens; rand stays on the Hub.
The status also carries usedInputTokens/usedOutputTokens and
capInputTokens/capOutputTokens (half the cap priced as input, half as
output). Cents unchanged for older installs. Protocol §3b updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 10:58:49 +02:00
co-authored by Claude Opus 5.5
parent bee19b494e
commit 7cd59ed651
4 changed files with 78 additions and 23 deletions
+9
View File
@@ -5,6 +5,15 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
### Added
- **AI use in tokens for churches** (planned as 2.0.1): the AI status (`/api/installs/ai/status`, and
the `status` in every AI reply) also carries `usedInputTokens` / `usedOutputTokens` (this month,
all the church's installs) and `capInputTokens` / `capOutputTokens`, an estimate of the allowance
(half the cap priced as input and half as output, at the current model price, exchange rate and
markup). Cross Events 2.3.0 shows only these and the percentage; rand stays on the Hub. The cents
fields are unchanged, so older installs keep working (protocol §3b).
## [2.0.0] - 2026-11-05
**Cross Code Hub**: every product a church has — Cross Events, Accounts, Church Website, Church App —