managarten/services/mana-credits
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
..
src feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
CLAUDE.md feat(credits): add 2-phase debit (reserve/commit/refund) 2026-04-17 14:41:41 +02:00
Dockerfile fix(mana-credits): multi-stage Dockerfile with node+pnpm installer 2026-04-11 16:35:36 +02:00
drizzle.config.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
package.json refactor: rename planta → plants, clean up codebase 2026-04-12 18:59:44 +02:00
tsconfig.json feat(services): create mana-credits service (Hono + Bun) 2026-03-27 22:08:43 +01:00