refactor: remove the billing tier model (P0.1)
The community edition has no monetization (ADR-0001). Remove the tier model (packages/shared/src/tiers.ts), the requireTier middleware and every tier gate, GET/PATCH /api/tier and the trial start, and the Stripe integration, which depends on the tier model. Personal features a tier used to limit are open to everyone: unlimited workspaces and connectors, every embedding provider including LiteLLM, per-workspace costs, Approvals. The workspace session cap is one constant (100). Team and enterprise surfaces are hidden instead of unlocked (team dock zone, Settings Team/Enterprise/Plan tabs, workspace Team tab); cloud sync reports unavailable, as it did for free users. The sidecar ignores the tier keys in config.json but does not delete them: both editions may still share ~/.waggle. Web billing UI is deleted: plan cards, upgrade and trial modals, payment success route, the KVARK sales block, tier 403 handling.
This commit is contained in:
@@ -43,7 +43,6 @@ interface SidebarProps {
|
||||
onOpenCommand: () => void;
|
||||
onSpawnAgent: () => void;
|
||||
userName: string | null;
|
||||
tierLabel: string;
|
||||
}
|
||||
|
||||
function initialOf(name: string | null, fallback: string): string {
|
||||
@@ -59,7 +58,6 @@ const Sidebar = ({
|
||||
onOpenCommand,
|
||||
onSpawnAgent,
|
||||
userName,
|
||||
tierLabel,
|
||||
}: SidebarProps) => {
|
||||
const navigate = useNavigate();
|
||||
const { pathname } = useLocation();
|
||||
@@ -207,9 +205,6 @@ const Sidebar = ({
|
||||
<span className="block truncate text-[13px] font-semibold">
|
||||
{userName ?? "Account"}
|
||||
</span>
|
||||
{/* Lane F2: --text-dim measured 4.47:1 on --bg-2 (nav) in light — sub-AA.
|
||||
--text-tertiary clears it (4.77:1 light / 6.31:1 dark). */}
|
||||
<span className="font-mono text-[10.5px] text-[var(--text-tertiary)]">{tierLabel}</span>
|
||||
</span>
|
||||
</button>
|
||||
</HintTooltip>
|
||||
|
||||
Reference in New Issue
Block a user