▲ 6 r/MistralAI
This is what ai gave me about instructions. I think fp is the thing.
The codebase has no registry/DI for conditions — a sealed class Condition + an
enum ConditionType, and a custom detekt rule (ExhaustiveDispatchRule) that forbids
else on when over those sealed types. So a new condition is added by mirroring an
existing leaf's branch at every exhaustive when. The closest templates are
HealthCondition (watcher-backed leaf, externally fed) and DeviceStateCondition
(single parametrized enum + a BroadcastReceiver-driven watcher). The compiler + detekt
enumerate any site I miss.
u/SecretSchedule9020 — 15 hours ago