cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
collect.bend
- def fp.rt
- def fp.pick
- def fingerprintoauth.credential_fingerprint: the refresh token's hash, else the whole credential's.
- def dead.cmp0 none, 1 dead refresh-token lineage, 2 a strike the credential has outgrown.
- def dead.go
- def dead.fp
- def dead.row
- def dead_state
- def static.cred
- def static.pick
- def static_of
- def held_row
- def expired_creds
- def expired.pick
- def expired_sentinelAn expired active token is never refreshed here (that is Claude Code's, under its own lock): it reads `token_expired` unless a held reading covers it.
- def first
- def dead.pick
- def dead_sentinel
- type StOne account with its stored row and the usage state read off them.
- def st.mk
- def row_or_null
- def creds_of
- def st.row
- def st.of
- def states
- def st_slot
- def st_healed
- def st_id
- def st_sentinel
collectrun.bend
- def claim.pick
- def claim_of
- def struck_json
- def run_fetch
- def rec.ok2
- def rec.ok
- def rec.err
- def rec.of
- def outcome_struck
- def rec.fetched
- def fetch_info
- def fetch_st
- type JobA state with the lease it won, if any.
- def jobs
- def fetch_all
- def healed.cons
- def fetchable.cons
- def fetchableSlots with nothing that rules out a fetch.
- def clear_if
- def login_secs
- def login.pick
- def login.int
- def login.num
- def login_expiresoauth.login_expires_at_iso: refreshTokenExpiresAt (epoch ms) as ISO, when the stored login records one.
- def acct.info
- def acct.of
- def accts
- def pass.final
- def pass.fetch
- def healed_ids
- def pass.heal
- def collectOne usage pass over `xs`: lease what is eligible, fetch it, merge the outcomes, and answer an Acct per account with the state read after the merge.
daemon/apply.bend
- def ActM
- def ActM.pure
- def ActM.bind
- def warnings_of
- def switched_res
- def num_of
- def from_number
- def record_sw
- def after_switch2
- def bool_of
- def is_switched
- def after_switch
- def cooldown_applies
- def cfg_cooldown
- def run_switch
- def locked_switch2
- def in_cool
- def locked_switch
- def dry_res
- def go_res
- def recoverA failed switch is an error event, not a crashed tick.
- def go_safe
- def applyAct on `d`.
daemon/auto.bend
- type Run
- def ActM
- def ActM.pure
- def ActM.bind
- def run_ctx
- def run_dir
- def run_cfg
- def run_fmt
- def run_dry
- def run_opts
- def run_started
- def run_version
- def run_pid
- def run_live
- def with_live
- def refreshedThe run with the settings of this tick: settings.json read again, the profile laid over it, the flags over both.