Commit history for src/server/ai
- Harden billing after review: draw credit only in the batch that inserted the event, keep refunds and disputes to each pack's unspent share and restore won disputes, scope failed-payment downgrades to the current subscription, restrict repo AI endpoints to the owner, and re-seal migrated keys.03a03e8⌁taigrr committed
- Add optional Stripe billing: Pro subscriptions via Checkout and the Customer Portal, signed idempotent webhooks driving setPlan, a local prepaid credit ledger drawn after plan allowances, and account- and repo-level bring-your-own AI endpoints behind one SSRF-guarded resolver.8329407⌁taigrr committed