managarten/services/mana-credits/src
Till JS 004fc0b2fd feat(credits): add 2-phase debit (reserve/commit/refund)
Introduces credit_reservations table + three internal endpoints so services
that need to charge only after a downstream call succeeds (notably the
upcoming mana-research fan-out across paid provider APIs) can reserve
credits atomically, then commit on success or refund on failure. One-shot
/credits/use remains for synchronous operations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 14:41:41 +02:00
..
db feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
lib feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
middleware refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
routes feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
services feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
config.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
index.ts feat(credits): admin-gifted sync subscriptions 2026-04-14 14:11:07 +02:00