cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
daemon/auto.bend
- def refresh
- def tagged
- def interval
- def show2
- def show
- def print_all
- def failed_out
- def prepend
- def tick_out
- def release_with
- def release_now
- def releasedQuarantines that no longer hold (the account was replaced, or its login was renewed) are released before deciding; a dry run changes nothing.
- def fetched
- def lookRelease what no longer holds, snapshot, fetch what is due, decide, and walk the ranking.
- def tick_safe
- def out_info
- def out_events
- def out_mem
- def out_active
- def out_entries
- def out_checked
- def out_accts
- def info_outcome
- def outcome_name
- def status_of
- def level_ofA blocked tick is a warning, a failed one an error.
- def log_jsonOne JSONL log line: the tick, what came of it, and per account where its reading came from (usage-endpoint, header-probe or cache).
- def swallow
- def best_effort
- def write_status
- def write_log
- def record_tick
- def sleep_if
- def sleep_event
- def env_of
- def finish_tick
- def first_tick
- def out_code
- def once
- def napTick, record, sleep, repeat.
- def pace
- def settle
- def tick_tagged
- def round
- def forever
daemon/cadence.bend
- type Outcome
- type InfoWhat the tick tells the sleeper: when the soonest reset is (all exhausted), whether waiting a long time is right (no candidates), whether the active token is expired on an idle Claude Code, and the active row's next poll.
- def exit_code
- def no_reset_fallback
- def max_sleep
- def urgent
- def sel
- def max_u
- def min_u
- def sincea - b, 0 when b is later.
- def respect_planShorten a normal sleep to the active row's own next poll, never under 60 s.
- def blocked_delay
- def next_delay2
- def next_delay
- def announceA `sleep` event is emitted only when the delay is over 1.5 intervals.
daemon/collect.bend
- def ActM
- def ActM.pure
- def ActM.bind
- def is_token_expired
- def escalate2
- def should_escalateFetch every candidate too when the active account's headroom is unknown (and the token is not just expired on an idle Claude Code), or it is within 15 points of the threshold.
- def fetch_pass
- def escalation
- def shaky
- def second_pass
- def collectFetch what is due, in two passes (the active account and one candidate; then everyone when the active account is shaky), and answer the rows as they stand.
- def snap_with
- def refresh2
- def refresh3The snapshot with the due accounts fetched; unchanged without an active account.
- def refreshThe snapshot with the due accounts fetched; unchanged without an active account.
- def some
- def refresh_opt
daemon/config.bend
- type Cfg
- type Flags
- def defaults
- def sel_u
- def clamp
- def digits
- def read_u32b
- def read_u32
- def cents2
- def centi2
- def centi"12.34" -> 1234, "7" -> 700, "5.5" -> 550; None for anything else (signs, exponents, text).
- def num_text
- def centi_of
- def field_centi2
- def field_centiA numeric settings field, centi, clamped; the default when absent or not a number.
- def field_secsWhole seconds from a centi field (the fraction is dropped).
- def truthyA bool field is read by truthiness: the string "false" is true.
- def pick_strategy
- def strategy_of
- def has_ci
- def keep_name
- def seen_after
- def out_name