mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
Three follow-ups to the Agent Trading Cards mint flow (#3278): 1. Inline OPENAI_API_KEY capture: new card_mint_key_status command checks (never returns) whether a key resolves through the existing env layering. When none does, the mint dialog swaps to a key-setup panel with a cost disclosure, a pointer to platform.openai.com, and a pointer to the free Export sharing path. Saving writes the key to the global Agent Defaults env — the same single source of truth the mint already reads; no second key store. A NO_OPENAI_KEY mint error now flips into key-setup mode instead of a dead-end toast. 2. Owner-direction primacy: the direction box explicitly accepts card TEXT direction as well as art, and the Responses prompt is restructured so the owner's directions override the default art-style and copy guidance (but never the fixed frame/layout/ text-fidelity contract). Dialog placeholder updated to match. 3. OPENAI_BASE_URL override resolved through the same env layering, unlocking Azure OpenAI and Responses-speaking proxies; trailing slashes normalized. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>