def add_token

cswap-bend-cli@0.1.0.0 · store/ops.bend:168

import cswap-bend-cli@0.1.0.0/store/ops.bend as Ops
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase

168# Register a raw setup-token or `sk-ant-` API key (no HTTP call). `assume_yes`
169# stands for the "Overwrite slot N?" answer; without it an occupied slot is
170# Fail{(10, ...)} for the CLI to confirm and retry. The record is written with
171# an empty identity and logged as unverified: a setup-token has no profile
172# scope, so the oracle cannot resolve it.
173def add_token(+ctx: SBase.Ctx, +token: String, +email0: Maybe<&2, String>, +slot0: Maybe<&2, U32>, +assume_yes: Bool) -> Act.of(String):
174  add_token2(SBase.root_of(ctx), String.trim(token), email0, slot0, assume_yes)

Uses (9)

Used by (1)