feat: add plan stacking

This commit is contained in:
2026-03-24 21:47:25 +04:00
parent 7b8f693710
commit b987024f9d
9 changed files with 381 additions and 19 deletions
+9
View File
@@ -31,3 +31,12 @@ export const PRO_MULTIPLIERS = [
export const PRO_MONTHLY_USD = 12;
export const LIFETIME_USD = 140;
// Tier ranking for plan stacking decisions
const PLAN_RANK: Record<string, number> = {
free: 0, pro: 1, lifetime: 1, pro2x: 2, pro4x: 3,
};
export function planTier(plan: string): number {
return PLAN_RANK[plan] ?? 0;
}