cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
poll.bend
- def tenths.json
- type WinOne usage window: its percentage (tenths) and when it resets.
- def win.parse
- def win.reset
- def min_acc
- def any.step
- def earliest_resetThe earliest reset of any relevant window (past or future): trust ends there.
- type SchedWhen to poll next and the interval it came from.
- def interval.moving
- def interval.still
- def interval.baseDefault for unknown utilization, halve on movement, back off x1.5 otherwise.
- def interval.pick
- def is_moving
- def is_known
- def new_ge
- def exhausted
- def plan.r429
- def plan.exh
- def plan.interval
- def plan.cap
- def keep.m
- def plan.reset.pick
- def plan.fin
- def nat_maybe
- def reset_nat
- def centi
- def pct_centi
- def scoped.mk
- def scoped.item
- def scoped.cons
- def scoped.all
- def window_of
- def policy_usageThe policy core's view of a `usage` object (centi-percent windows).
- def maybe_u32
- def win.back
- def relevantEvery window that gates an account (5h, 7d, and the scoped windows of the named models): policy's `windows`, back as tenths for the planner.
- def future.pick
- def future.step
- def earliest_future
- def max_acc
- def limiting.step
- def limiting_reset
- def plan.go
- def plan.with
- def dflt_of
- def ceil_of
- def plan.start
- def max_pct
- def binding
- def plan_after_fetchplan_after_fetch (no jitter): `threshold` in tenths, `models` the scoped names that gate the account, times in unix seconds.
pollrow.bend
- type RowThe fields of one usage.json row that planning and display read.
- def is_err
- def recent_429.anchorA 429 on this token is recent enough to keep the post-429 cadence: measured from when the honoured backoff lifts, for one hour.
- def recent.of
- def recent_429
- def num.int
- def num.uAn integer second count from a JSON number (`1792740000.1` -> 1792740000).
- def jget
- def num.field
- def str.field
- def obj_or_null
- def last_good.of
- def row.of
- def before.m
- def legacy_claim
- def live_claimA fetch lease is live: claimUntil when present, else the legacy 10 s after lastAttemptAt.
- def age_le
- def age_of
- def err_kind
- def failure_backoffSeconds to stay in backoff after the n-th failure: src/policy's backoff_for (30 s * 2^(n-1) capped at 600 s; a Retry-After raises it).
- def nat_of
- def blocked
- def mode.pick
- def mode.go
- def mode.row
- def row_eligibleWhether a stored row may be fetched now: not dead, in backoff, held or claimed, then by caller mode (on-demand `respect` = stale and due; the scheduled tick is policy's poll_due).
- def nat0
- def err_pick
- def kind_of_err
- def legacy_until
- def lease_untilA claim lease: claimUntil, else the legacy 10 s after lastAttemptAt.
- def policy_with
- def policy_rowThe policy core's view of a stored row: its windows, freshness and holds.
- def decision.pick
- def last_good_of
- def decision_usageThe value switch decisions run on: last-good while policy trusts it (at most 300 s old, or deliberately stale and inside the cap), JNull when unknown.
profcmd.bend
- def ActM
- def ActM.pure
- def ActM.bind
- type Plan2What a command settled on: an answer without writing, or the settings to write and the answer to give once they are.
- def doc
- def err
- def unknown_msg
- def active_json
- def list_doc
- def list_out
- def yes_no
- def show_text2
- def show_text
- def show_out