def specs
cswap-bend-cli@0.1.0.0 · settings.bend:308
import cswap-bend-cli@0.1.0.0/settings.bend as Settings
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
308
309def specs() -> List<&2, Spec>:
310 [spec.num("threshold", KFloat{}, "50", "99.9", "90.0"),
311 spec.num("intervalSeconds", KFloat{}, "15", "3600", "60.0"),
312 spec.num("cooldownSeconds", KFloat{}, "0", "86400", "300.0"),
313 spec.num("hysteresisPct", KFloat{}, "0", "50", "10.0"),
314 Spec{"autoswitch", "strategy", KChoice{}, "", "", "best,consume-first", Json.JStr{"best"}},
315 Spec{"autoswitch", "includeApiKeyAccounts", KBool{}, "", "", "", Json.JBool{False{}}},
316 spec.num("unhealthyTicks", KInt{}, "1", "100", "3"),
317 Spec{"autoswitch", "model", KString{}, "", "", "", Json.JNull{}},
318 Spec{"ui", "theme", KChoice{}, "", "", "dark,light,auto", Json.JStr{"auto"}}]