feat(generate-test-token): cn-prod env + --skip-merchant flag#15
Open
xbfool wants to merge 1 commit into
Open
Conversation
cn-prod (阿里云 cn-beijing 部署线 Optima-Chat/optima-terraform#52) W2 收尾, user-auth 已 RUNNING 在 https://auth-cn.optima.chat。本 PR 让 dev-skills CLI 能在 cn-prod 跑 auth flow,用于: - W3 启动前验证 cn user-auth 可用 - W3-W6 部署 cn gateway/commerce/agentic-chat 时手工测试 token 变更: - ENV_CONFIG 加 'cn-prod' 项: authUrl: https://auth-cn.optima.chat apiUrl: https://commerce-backend-cn.optima.chat (W4 上线后可用) clientId: dev-skill-cli-cn-pro-acvkmcuq (cn user-auth 已注册 OAuth client) - Environment type 加 'cn-prod' - --env 解析加 'cn-prod' 校验 - 新增 --skip-merchant flag (适用所有 env): 跳过 Commerce API merchant profile 步骤, 仅做 auth + token。cn-prod commerce 上线前必加。 - help 文档更新 实测验证: --env cn-prod --skip-merchant 已跑通,token 正确生成。 Refs: Optima-Chat/optima-terraform#52 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
让
optima-generate-test-token支持 cn-prod(阿里云 cn-beijing 部署线,Optima-Chat/optima-terraform#52),用户能在 cn-prod 跑 auth 流程验证 token。变更
ENV_CONFIG加'cn-prod':authUrl: https://auth-cn.optima.chatapiUrl: https://commerce-backend-cn.optima.chat(W4 上线后可用)clientId: dev-skill-cli-cn-pro-acvkmcuq(cn user-auth 已注册 OAuth client,public type)Environmenttype 加'cn-prod',--env校验同步加--skip-merchantflag(适用所有 env):跳过 Commerce API merchant profile 设置,仅 auth + token。cn-prod W4 之前 commerce 不可达必加;其他 env 调试时也有用。验证
$ optima-generate-test-token --env cn-prod --skip-merchant ✅ Test token generated successfully! Environment: cn-prod Role: merchant Token File: /tmp/optima-test-token-1780036856033.txttoken 可用,role 正确,账户在 cn user-auth 数据库注册成功。
Test plan
--env cn-prod --skip-merchant跑通(注册 + token)--help显示 cn-prod 选项--env cn-prod(不带 skip)verify merchant 设置链路背景
cn-prod 部署进度: Optima-Chat/optima-terraform#52 (W2 收尾,含 user-auth + admin)
KB 详细 spec: https://github.com/xbfool/kb/blob/main/current-work/wiki/analyses/2026-05-29-cn-prod-spec-revision.md
🤖 Generated with Claude Code