Status.cfg_json: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/status.bend as Status Lines 88-90 of cswap-bend-cli@0.1.0.0/daemon/status.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&start_line=88&end_line=90 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg def cfg_json(+c: Cfg.Cfg) -> Json.Json: Json.JObj{f("threshold", pct(Cfg.cfg_threshold(c)), f("interval_seconds", Json.JNum{U32.show(Cfg.cfg_interval(c))}, f("cooldown_seconds", Json.JNum{U32.show(Cfg.cfg_cooldown(c))}, f("strategy", Json.JStr{Cfg.cfg_strategy(c)}, f("models", Json.arr(str_arr(Cfg.cfg_models(c))), f("include_api_keys", Json.JBool{Cfg.cfg_include_api(c)}, Json.JNil{}))))))} Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=Cfg https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_cooldown https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_include_api https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_interval https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_models https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_strategy https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=cfg_threshold https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=f https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=pct https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=str_arr https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=arr