Commit history for src/server/billing
- Read the plan and balance for credit draws inside the batch, restore a pack's reversal total when a dispute is won, let subscription status alone drive downgrades after failed payments, and let a returning customer's checkout replace an ended subscription.16af5d2⌁taigrr committed
- 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