managarten/services/mana-credits/src/db
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
..
schema feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
connection.ts feat(services): create mana-credits service (Hono + Bun) 2026-03-27 22:08:43 +01:00