WIP Hub 1.6.0: AI proxy for Cross Events 2.0
Signed /installs/ai/status and /installs/ai/complete (protocol 3b): the Hub holds the Claude key, holds each call's worst case against the licence's monthly cap in a locked transaction, calls Claude Haiku 5.5 and meters real cost and charged amount (markup) in rand. Settings -> AI, licence markup override, AI use on the install page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,25 @@ versions follow [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.6.0] - 2026-10-30
|
||||
|
||||
### Added
|
||||
|
||||
- **AI for Cross Events 2.0** (protocol §3b) — sites call AI through the Hub, which holds the Claude
|
||||
API key, checks each licence's monthly cap and meters every call. `POST /api/installs/ai/status`
|
||||
tells a site whether to show its AI buttons (hidden at a R0 cap, disabled once the month's
|
||||
allowance is used up); `POST /api/installs/ai/complete` runs one helper call (Claude Haiku 5.5,
|
||||
instructions prompt-cached, optional JSON schema). Both are signed like the heartbeat.
|
||||
- **Metering in rand:** real cost from the tokens, the model's price and an exchange rate set in the
|
||||
Hub; charged = real × (1 + markup). The cap counts charged rand. The worst case of each call is
|
||||
held against the cap in a locked transaction before Claude is called, so calls at the same moment
|
||||
can't push a month over; failed calls cost nothing, refused or cut-off answers cost what they used.
|
||||
Only the install, helper, tokens, cost and time are kept — never prompt or response text.
|
||||
- **Settings → AI:** Claude API key (encrypted), model, prices, exchange rate, default markup,
|
||||
**Test the saved key**, and every site's use per month (real cost, charged, profit).
|
||||
- **Licences:** an AI markup override next to the AI cap. **Install page:** this month's AI use
|
||||
against the cap, use by helper, and six months of real cost, charged and profit.
|
||||
|
||||
## [1.5.0] - 2026-10-28
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user