cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
store/plan.bend
- def plan_slot1
- def plan_slot
- def with_kind
- def token_record
- def with_alias2
- def with_alias
- def setup_token_creds{"claudeAiOauth": {"accessToken": T, "scopes": ["user:inference"]}}, as json.dumps writes it.
- def token_configThe config backup add-token synthesizes.
- def default_email
- def kind_label
- def kind_name
- def kind_title
- def ActM`do ActM<A>:` blocks (the do-notation needs the monad's name defined here).
- def ActM.pure
- def ActM.bind
store/seq.bend
- def jstr
- def jnum
- def obj1
- def seq_freshA new roster: no accounts, nobody active.
- def get_or2
- def get_or
- def str_or
- def field_strA string field, "" when missing or not a string.
- def unwrap_obj
- def unwrap_arr
- def accounts_of
- def fields_ofThe fields chain of `accounts`, and the items chain of `sequence`.
- def items_of
- def rec_is
- def pick_slot
- def find_in
- def find_slotThe slot whose record is (email, organizationUuid), as `_find_account_slot`.
- def sel.u
- def max_u32
- def str_u32
- def max_in
- def next_slotmax(slot) + 1, or 1 for an empty roster.
- def slot_record
- def is_api_key_rec
- def num_of
- def nums_ofThe slot numbers listed in `sequence`.
- def seq_nums
- def insert_pick
- def insert_sorted
- def without_pick
- def without
- def nums_json2
- def nums_json
- def stamp
- def set_active
- def put_accountRecord `rec` under slot `num` (replacing in place or appending) and list the slot in `sequence`, kept sorted.
- def drop_accountForget slot `num`: its record and its place in `sequence`.
- def alias_in
- def find_alias
- def emails_pick
- def emails_in
- def slots_for_email
- def org_tag2
- def org_tag
- def amb_org
- def amb_details
- def ambiguous_msgThe reference's ambiguity text for an email in several orgs.
- type ResolvedA slot number, an alias, an email: in that order (`_resolve_account_identifier`).
- def resolve_email
- def resolve_by_alias
- def resolve_digits
- def resolve
swbase.bend
- def e_config
- def e_validation
- def e_not_found
- def e_overriddenA switch that did not stick: a keychain login overrode the files.
- def error_type
- def merge_oauthoauthAccount replaced in place (or appended), every other key kept in order.
- def approved_form
- def has_text
- def snoc
- def approved_list
- def with_rejected
- def responses2
- def responses_of
- def add_approved
- def is_some_json
- def managed_responses
- def set_managedA managed API key goes in as primaryApiKey and is approved by its last 20 characters (credentials.py _write_managed_credentials, file backend).
- def activate2
- def activate_configThe live config after activating a target: its oauthAccount, and primaryApiKey either set (target is an API key) or dropped (target is OAuth).
- def num_json
- def ref
- def strs_json
- def result
- def error_envelope{"schemaVersion": 1, "error": {"type", "message"}}
- def ref_text
- def same_ref
- def switched_msg
- def result_of_op4
- def texts_chain
- def texts_of
- def result_of_op3
- def result_of_op2
- def result_of_op`_switch_result_from_op`: the op is {"from", "to", "warnings"}.