/** * Access gate for the newer AI Visibility features (funnel coverage, cited * sources, AEO checklist). These have now graduated to general availability, * so the gate is open to every merchant. The allow-list is kept so the gate * can be narrowed again without touching call sites: set * ``GENERALLY_AVAILABLE = false`` to fall back to it. */ const GENERALLY_AVAILABLE = true; const BETA_FEATURE_CLIENT_IDS = new Set([ 'RECOMAZE-kmB65nVUWZNQ1MERwVrfxEJ4l0f4BG3g6Np2GDNeIx4cN7NHLyRfXEJM2MrUKD', ]); /** * Whether a merchant may see the newer AI Visibility features. * * @param {string} clientId - The merchant client id from the session. * @returns {boolean} ``true`` for everyone while generally available; otherwise * only for client ids on the allow-list. */ export function canSeeBetaVisibilityFeatures(clientId: string): boolean { return GENERALLY_AVAILABLE || BETA_FEATURE_CLIENT_IDS.has(clientId); }