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:
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
import { useState } from 'react';
|
||||
import { SignIn, SignUp } from '@clerk/clerk-react';
|
||||
import EnterpriseCTA from './EnterpriseCTA';
|
||||
|
||||
type Mode = 'signin' | 'signup';
|
||||
|
||||
@@ -49,8 +48,6 @@ export default function ClerkAuthForm() {
|
||||
{mode === 'signin' ? 'Create an account' : 'Sign in'}
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<EnterpriseCTA />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* EnterpriseCTA — PR7b Auth (design §2d, D15). The SSO/enterprise panel as a custom
|
||||
* "Talk to sales → KVARK/Teams" CTA. NOT a live SAML/SCIM form: those are
|
||||
* Teams/KVARK/Clerk-Enterprise features, so rendering a working-looking SAML form would
|
||||
* be a fabrication (F11 / recon 03 §5.5). This is the KVARK funnel.
|
||||
*/
|
||||
export default function EnterpriseCTA() {
|
||||
return (
|
||||
<div className="mt-6 pt-5 border-t border-[var(--line-soft)] text-center">
|
||||
<p className="text-[12px] leading-relaxed text-[var(--text-muted)]">
|
||||
SAML, SCIM provisioning, and audit logs are available on{' '}
|
||||
<b className="text-foreground">Teams</b> and <b className="text-foreground">KVARK</b>.
|
||||
</p>
|
||||
<a
|
||||
href="https://www.kvark.ai"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-block mt-1.5 text-[12.5px] font-[650] text-honey hover:text-[var(--honey-bright)] transition-colors"
|
||||
>
|
||||
Talk to sales →
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user