View.sentinel_of: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/view.bend as View Lines 104-109 of cswap-bend-cli@0.1.0.0/daemon/view.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/view.bend&start_line=104&end_line=109 import Base import cswap-bend-cli@0.1.0.0/store/base.bend as SBase import cswap-bend-cli@0.1.0.0/policy/types.bend as T import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G # The overlay that hides a row: an expired token on the active account (idle # Claude Code), or an account with no usable credential or no quota to read. def sentinel_of(+is_active: Bool, +e: G.Ent, +now: U32) -> T.Sentinel: match e: case G.Ent{slot, email, org, +creds, acct}: sent2(is_active, SBase.nonempty(creds), SBase.looks_like_api_key(creds), creds, now) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/gather.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/view.bend&name=sent2 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=Sentinel https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=looks_like_api_key https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/base.bend&name=nonempty