()
| 34 | * `CLAUDE_CODE_DISABLE_CRON` is a local override that wins over GB. |
| 35 | */ |
| 36 | export function isKairosCronEnabled(): boolean { |
| 37 | return feature('AGENT_TRIGGERS') |
| 38 | ? !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CRON) && |
| 39 | getFeatureValue_CACHED_WITH_REFRESH( |
| 40 | 'tengu_kairos_cron', |
| 41 | true, |
| 42 | KAIROS_CRON_REFRESH_MS, |
| 43 | ) |
| 44 | : false |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Kill switch for disk-persistent (durable) cron tasks. Narrower than |
no test coverage detected