mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 14:57:06 +01:00
A pass changed one number nobody reaches, was sold only for Bitcoin, and was switched off. This makes a pass worth having and gives an organisation a way to get one for each of its people. - Pass codes (lib/pay/codes.ts, drizzle/0020_pass_codes.sql): the owner issues one code per person at /owner/pass-codes, each person redeems theirs on /pass. A code grants once, through paykit's extendEntitlement, and only its hash is stored. Needs no price and no OrangeCat. - /pass takes a code whether or not passes are sold for Bitcoin; a pass is a pass without a price being set (hasPass no longer depends on one). - The model a pass buys (lib/domain/model/pass-model.ts): one paid row in front of the free chain, named by HEIDI_PASS_MODELS, gated by ai-kit's spend rules. Off until configured; /pass promises it only then. - Fixed: a pass tripled the allowance only in /api/chat. Saved conversations, where a pass holder writes, counted at the open rate. - /organisations: a card for passes for a team, with a mail link. - Wording in all seven interface languages; privacy page names pass_codes; account deletion keeps a redeemed code used and unattributed. Claude-Session: https://claude.ai/code/session_019MDtmteJuDGFouA1itJ5tM Co-authored-by: Claude <noreply@anthropic.com>