def prepare_activation

cswap-bend-cli@0.1.0.0 · swcreds.bend:78

import cswap-bend-cli@0.1.0.0/swcreds.bend as Swcreds
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

78# The credential to write for `target` while `live` is replaced: Claude Code's
79# account-independent fields (MCP logins, plugin secrets) ride along from the
80# live one. A live API key or non-JSON leaves the target as is.
81def prepare_activation(+target: String, +live: String) -> String:
82  merge1(Json.parse(live), Json.parse(target), target)

Uses (3)

Used by (1)