cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
store.bend
- def capture
- def api_key_msg
- def alias_taken2
- def alias_taken
- def alias_conflict2
- def alias_conflict
- def same_alias
- def existing_alias2
- def existing_alias
- def carried_alias
- def sel.j
- def refresh_files
- def refresh_alias_seq
- def commit_active
- def refresh_msg
- def current_refresh
- def account_record
- def place_seq
- def place_log
- def place_msg
- def current_place2
- def current_place
- def current_branch2
- def refresh_for
- def current_branch
- def creds_checked
- def notice_for
- def current4
- def no_login
- def current3c
- def current3b
- def read_config_text2
- def read_config_text
- def current3
- def add_currentAdopt the live login (~/.claude.json oauthAccount + .credentials.json) into a slot.
- def env_or
- def ctx_with
- def ctx_envCtx from $HOME and $CLAUDE_CONFIG_DIR.
store/base.bend
- type Ctx
- def ctx_of2
- def ctx_of
- def root_of
- def live_creds_path
- def global_config_path
- def seq_path
- def lock_path
- def log_path
- def creds_dir
- def configs_dir
- def removed_dir
- def removed_configs_dir
- def enc_path
- def prev_path
- def config_path
- def removed_enc_pathcredentials/.removed/<utc-ts>-<slot>-<email>.enc, `ts` like 20261023T120000Z.
- def removed_config_path
- def sel.s
- def strip_chars.pick
- def strip_charsDrop every char of `drop` from `s`.
- def compact_ts2026-10-23T12:00:00Z becomes 20261023T120000Z, safe in a file name.
- def log_stampThe reference's `%(asctime)s` stamp: `2026-10-23 12:00:00,000`.
- def log_line
- def is_oauth_token
- def not_
- def looks_like_api_key2
- def looks_like_api_keyA bare `sk-ant-` value that is not an OAuth token is a managed API key.
- def email_char
- def domain_char
- def sel.b
- def all_chars
- def all_alpha
- def nonempty
- def valid_host2
- def valid_hosthost = prefix.tld: the last dot-separated part is 2+ letters and what is left of it is a non-empty run of host characters.
- def valid_email2
- def valid_emaillocal@host.tld by `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`.
- def all_digits
- def alias_okmodels.normalize_alias: lowercase, non-empty, not all digits, no leading `-`.
store/io.bend
- def ActM`do ActM<A>:` needs the monad defined in the file that uses it.
- def ActM.pure
- def ActM.bind
- def now_iso
- def swallow
- def log_write
- def logOne line in claude-swap.log, in the reference's format.
- def secure_dir
- def setup_dirsThe backup root, credentials/ and configs/, all 0700.
- def write_secret
- def write_seq
- def parse_seq
- def read_seq2
- def read_seqsequence.json, or None when there is none yet.
- def ensure_seq2
- def ensure_seqsequence.json, written fresh first when it does not exist.
- def decoded
- def read_cred2
- def read_credA slot's stored credential: the decoded text, "" when absent or undecodable.
- def keep_prev
- def write_credStore a slot's credential (0600).
- def write_config