IFClite TypeScript API
    Preparing search index...

    Interface IdleSchedulerOptions

    interface IdleSchedulerOptions {
        adaptive?: boolean;
        adaptiveSparseThreshold?: number;
        idleAfterMs?: number;
        miner?: SequenceMinerOptions;
        minIntervalMs?: number;
        now?: () => number;
        scoring?: ScoringOptions;
        setTimer?: (callback: () => void, ms: number) => () => void;
        topN?: number;
    }
    Index
    adaptive?: boolean

    Auto-relax thresholds when the action log is sparse so users see suggestions before they've built up weeks of activity.

    When fewer than adaptiveSparseThreshold events have been logged, the scheduler overrides miner.minOccurrences to 2 and miner.minSessions to 1, so a single-session repeat fires. Once the log grows past the threshold, the configured (or default) options apply — suggestions tighten as data gets real.

    Disable by passing adaptive: false. Default true.

    adaptiveSparseThreshold?: number

    Event count below which adaptive relaxation kicks in. Default 100.

    idleAfterMs?: number

    Idle time before a mine fires. Default 60 s.

    Miner options.

    minIntervalMs?: number

    Hard floor between mines regardless of idle. Default 5 min.

    now?: () => number

    Optional clock for tests.

    scoring?: ScoringOptions

    Scoring options.

    setTimer?: (callback: () => void, ms: number) => () => void

    Optional schedule function — replaces setTimeout. Tests pass a fake. Returns a cancel function.

    topN?: number

    How many top patterns to emit per fire. Default 5.