//! GrowthBook-backed cron jitter configuration.
//!
//! Separated from cron_tasks.rs so the scheduler can be bundled in the
//! Agent SDK public build without pulling in analytics/growthbook.ts and
//! its large transitive dependency set.
use crate::utils::cron_tasks::{CronJitterConfig, DEFAULT_CRON_JITTER_CONFIG};
/// How often to re-fetch config from GrowthBook.
const JITTER_CONFIG_REFRESH_MS: u64 = 60 * 1000;
const HALF_HOUR_MS: u64 = 30 * 60 * 1000;
const THIRTY_DAYS_MS: u64 = 30 * 24 * 60 * 60 * 1000;
/// Read `tengu_kairos_cron_config` from GrowthBook, validate, fall back to
/// defaults on absent/malformed/out-of-bounds config.
pub fn get_cron_jitter_config() -> CronJitterConfig {
// TODO: Integrate with GrowthBook
// For now, return defaults
// The actual implementation would fetch from GrowthBook and validate
DEFAULT_CRON_JITTER_CONFIG
}