From fbae9ced72f70e6e06e9695df769955e1c66d7bf Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 14 Apr 2026 14:38:36 -0700 Subject: [PATCH] feat(kiwi): add LIFETIME_ORCH_CAPS and LIFETIME_SOURCES constants --- app/tiers.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/tiers.py b/app/tiers.py index 293e3aa..1341999 100644 --- a/app/tiers.py +++ b/app/tiers.py @@ -19,6 +19,16 @@ KIWI_BYOK_UNLOCKABLE: frozenset[str] = frozenset({ "community_fork_adapt", }) +# Sources subject to monthly cf-orch call caps. Subscription-based sources are uncapped. +LIFETIME_SOURCES: frozenset[str] = frozenset({"lifetime", "founders"}) + +# (source, tier) → monthly cf-orch call allowance +LIFETIME_ORCH_CAPS: dict[tuple[str, str], int] = { + ("lifetime", "paid"): 60, + ("lifetime", "premium"): 180, + ("founders", "premium"): 300, +} + # Feature → minimum tier required KIWI_FEATURES: dict[str, str] = { # Free tier