init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
14
commands/review/ultrareviewEnabled.ts
Normal file
14
commands/review/ultrareviewEnabled.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.js'
|
||||
|
||||
/**
|
||||
* Runtime gate for /ultrareview. GB config's `enabled` field controls
|
||||
* visibility — isEnabled() on the command filters it from getCommands()
|
||||
* when false, so ungated users don't see the command at all.
|
||||
*/
|
||||
export function isUltrareviewEnabled(): boolean {
|
||||
const cfg = getFeatureValue_CACHED_MAY_BE_STALE<Record<
|
||||
string,
|
||||
unknown
|
||||
> | null>('tengu_review_bughunter_config', null)
|
||||
return cfg?.enabled === true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue