def status

cswap-bend-cli@0.1.0.0 · daemon/freshen.bend:163

import cswap-bend-cli@0.1.0.0/daemon/freshen.bend as Freshen
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/io.bend as SIo
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase

163# Ensure a candidate's stored token outlives Claude Code's next minutes: a
164# credential within 10 minutes of expiry is refreshed under its consume lock.
165# An API key never expires.
166def status(+root: String, +slot: String, +email: String, +now: U32) -> Act.of(String):
167  do ActM<String>:
168    +creds : String <- SIo.read_cred(root, slot, email)
169    judge3(SBase.looks_like_api_key(creds), root, slot, email, creds, now)

Uses (8)

Used by (1)