Commit Graph

11 Commits

Author SHA1 Message Date
Charlie Lamb
402b73f716 chore: cleanup async diff 2026-06-10 13:27:14 +01:00
Ridhwan Hussain
c3dd74c3eb chore: dedupe buildUnlimitedPlanMutationLog 2026-06-01 14:48:16 +01:00
Charlie Lamb
8822664df9 feat: AI credit system with model-based token pricing
Adds a new FeatureType.AiCreditSystem that enables model-based token
pricing with per-model markup configuration. Includes the @useautumn/ai-sdk
package for Vercel AI SDK integration with automatic token tracking.

Co-authored-by: TheUntraceable <73362400+TheUntraceable@users.noreply.github.com>
2026-05-19 19:05:37 +01:00
amianthus
f9e475ef08 feat: 🎸 unlimited decutions + collapse plan id 2026-05-18 20:18:29 +01:00
John Yeo
37aedf546d fix: release / finalize inserts into events table 2026-05-13 00:46:54 +08:00
Ayush Rodrigues
9ae91bc54c fix: save lock receipt for unlimited balance features
When check is called with lock=true on an unlimited-balance feature,
the deduction executors skipped the entire iteration (including lock
receipt save), causing finalize to fail with "Lock not found". Now
saves an empty lock receipt before continuing so finalize can find,
claim, and delete it as a no-op.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 16:39:48 +01:00
John Yeo
4181610a73 fix: optimized cache and lock 2026-04-23 17:44:57 +01:00
John Yeo
8b2a07a7d9 feat: swappable redis 2026-04-21 00:08:34 +01:00
John Yeo
7e820d4591 fix: comments and tests 2026-04-20 12:33:44 +01:00
John Yeo
ef447a3df0 got all tests passing 2026-04-19 15:21:44 +01:00
John Yeo
04ef54726a feat: moved lua scripts to new cache structure 2026-04-14 17:46:08 +01:00