Matthew Meszaros
053ca6a71d
feat: usage-based AI credit system — every AI call reserves its flat minimum then settles the real token cost per model (light 1500/standard 400 tokens per credit, drain-to-zero overage settle wired into writing assistant, reply drafts, dashboard agent, inbox agent, research, automation nodes, and campaign switches), org spend controls in a new org_ai_settings table (day/week/month hard limits enforced in Consume, low-balance alert threshold, auto top-up config), a credit-watch monitor hook that fires BILLING_CREDITS_LOW realtime alerts once per day and buys the configured pack off-session via a new Stripe AutoTopUpCredits (idempotent on the PaymentIntent, bounded per month, Redis-locked), GET /subscription/credits/usage + GET/PATCH settings endpoints, and an AI usage & spend controls billing card (spend vs limits, 30-day chart, per-feature and per-model breakdowns, limits/reminder/auto-top-up form) with a realtime low-credit toast
2026-07-18 08:39:41 +02:00
..
2026-06-11 13:00:18 +02:00
2026-01-30 08:47:26 +01:00
2026-01-30 08:47:26 +01:00
2026-01-30 08:47:26 +01:00
2026-06-05 06:04:31 +02:00
2026-05-23 16:37:53 +00:00
2026-02-10 19:30:47 +01:00
2026-01-30 08:47:26 +01:00
2026-01-30 08:47:26 +01:00
2026-06-04 09:30:36 +02:00
2026-06-11 08:04:11 +02:00
2026-06-11 08:25:00 +02:00
2026-01-30 08:47:26 +01:00
2026-06-12 04:34:13 +02:00
2026-06-13 07:18:23 +02:00
2026-01-30 08:47:26 +01:00
2026-06-11 13:00:18 +02:00
2026-06-12 09:38:11 +02:00
2026-06-14 10:48:06 +02:00
2026-06-14 09:52:49 +02:00
2026-06-05 16:36:34 +02:00
2026-06-11 10:08:46 +02:00
2026-05-25 05:43:58 +00:00
2026-07-16 07:50:24 +02:00
2026-07-02 20:33:44 +02:00
2026-07-02 20:33:44 +02:00
2026-06-30 19:20:08 +02:00
2026-05-23 16:37:53 +00:00
2026-06-12 10:03:02 +02:00
feat: usage-based AI credit system — every AI call reserves its flat minimum then settles the real token cost per model (light 1500/standard 400 tokens per credit, drain-to-zero overage settle wired into writing assistant, reply drafts, dashboard agent, inbox agent, research, automation nodes, and campaign switches), org spend controls in a new org_ai_settings table (day/week/month hard limits enforced in Consume, low-balance alert threshold, auto top-up config), a credit-watch monitor hook that fires BILLING_CREDITS_LOW realtime alerts once per day and buys the configured pack off-session via a new Stripe AutoTopUpCredits (idempotent on the PaymentIntent, bounded per month, Redis-locked), GET /subscription/credits/usage + GET/PATCH settings endpoints, and an AI usage & spend controls billing card (spend vs limits, 30-day chart, per-feature and per-model breakdowns, limits/reminder/auto-top-up form) with a realtime low-credit toast
2026-07-18 08:39:41 +02:00
2026-06-01 04:25:14 +02:00
2026-04-03 06:08:52 +00:00
2026-01-30 08:47:26 +01:00