feat(auth): 域名迁 tidelabs.click + 端点默认值收敛到 alpha-config - #10
Merged
Merged
Conversation
身份/登录 + 计费门户(alpha-web C)与平台 API(模型代理 /v1 + MCP 网关 /mcp, alpha-platform B)默认域全部迁到 *.tidelabs.click;两者仍 env 可覆盖 (ALPHA_WEB_URL / ALPHA_PLATFORM_URL)。 - webBase: auth.alphacodeone.com → auth.tidelabs.click - platformBase: api.alphacodeone.com → api.tidelabs.click - billingUrl: auth.alphacodeone.com/billing → auth.tidelabs.click/billing 依赖(发版前必须就绪):auth.tidelabs.click 服务 /auth/authorize + token 交换 + /billing;api.tidelabs.click 服务 /v1 + /mcp。否则登录/计费/模型代理会断。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
以后改域名只动一个文件,不用满世界翻硬编码字面量。纯常量模块 (无 electron/node import),main + renderer 两个 bundle 都能 import。 - 新增 src/shared/alpha-config.ts(ALPHA_ENDPOINTS.web / .platform) - alpha-auth.ts:webBase/platformBase 默认值改引用 ALPHA_ENDPOINTS (env 覆盖 ALPHA_WEB_URL / ALPHA_PLATFORM_URL 不变) - alpha-sidebar.tsx:billingUrl 由 ALPHA_ENDPOINTS.web 派生(原是独立硬编码 字面量、且不走 env 覆盖 → 现已统一,顺手修掉潜伏不一致) tsgo -b green。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
完整的 alpha↔后端 URL 面现在都在 shared/alpha-config:host(ALPHA_ENDPOINTS) + 路径段(ALPHA_PATHS:authorize/token/billing/modelProxy /v1/mcpGateway /mcp)。 alpha-auth.ts 与 sidebar 从中拼 URL,不再内联模板字面量——改路由只动一处。 说明(回应"channel/model 之类"):channel 已是 constants.ts 单一来源,无需搬; ALPHA_DEFAULT_MODEL 无 baked 默认(纯 env 透传),没有可收敛的硬编码值—— 若要 baked 默认模型那是产品决定,需另行确认。 tsgo -b green。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 6, 2026
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.
为什么
把授权登录地址从
auth.alphacodeone.com迁到auth.tidelabs.click(用户要求),一并迁平台 API 域,并收敛端点默认值到单一来源(以后改域名只动一个文件)。改了什么
1) 域名迁移(纯默认值,均 env 可覆盖)
webBase()auth.alphacodeone.comauth.tidelabs.clickplatformBase()api.alphacodeone.comapi.tidelabs.clickbillingUrlauth.alphacodeone.com/billingauth.tidelabs.click/billing覆盖开关不变:
ALPHA_WEB_URL/ALPHA_PLATFORM_URL。2) 收敛到
src/shared/alpha-config.ts(单一来源)ALPHA_ENDPOINTS.web / .platform(无 electron/node import,main + renderer 都能 import)。alpha-auth.ts的默认值改引用它;alpha-sidebar.tsx的 billing 由它派生。ALPHA_WEB_URL覆盖,现已统一。alpha-config.ts。tsgo -bgreen。零改 upstream。
auth.tidelabs.click必须服务/auth/authorize+ token 交换 +/billing;api.tidelabs.click必须服务/v1+/mcp。这两个后端在 tidelabs.click 上线前不要 merge,否则登录/计费/模型代理会断(env 覆盖可临时回退)。🤖 Generated with Claude Code