refactor: module 路径与二进制名对齐 JoyCode2Api#23
Merged
Conversation
仓库已从 vibe-coding-labs/JoyCodeProxy 改名为 JoyCode2Api,本次把代码侧 全面对齐到新名: - go module: github.com/vibe-coding-labs/JoyCodeProxy → JoyCode2Api - 23 个 .go 文件的 import 路径同步更新 - cmd/JoyCodeProxy/ 目录改名 cmd/JoyCode2Api/(git mv 保留历史) - 构建配置跟随: Dockerfile / scripts/release.sh / web/vite.config.ts - 二进制名与发布产物名 JoyCodeProxy → JoyCode2Api - 前端 GitHub 链接、README、dashboard ghRepo 常量对齐新仓库 - 重新构建前端 embed 资源 不改: docs/superpowers/plans/ 历史规划文档(保持历史原貌); JWT issuer "joycode-proxy"(改会使现有 dashboard 会话全部失效,不在范围); .gitignore 中 snake_case/kebab 产物防御规则(保留以防本地旧二进制误提交)。 验证: go build/vet/test 全过;前端构建产物无旧链接残留; 启动重构后二进制 /health、/api/qr-login/init、/v1/models 路由均正常。 Co-Authored-By: Claude Opus 4.8 <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.
背景
仓库已从
vibe-coding-labs/JoyCodeProxy改名为vibe-coding-labs/JoyCode2Api,但 Go module 路径、cmd 目录名、二进制名、文档链接仍停留在旧名。本次把代码侧全面对齐到JoyCode2Api。改动
Go 包路径(核心)
go.mod: moduleJoyCodeProxy→JoyCode2Apicmd/JoyCodeProxy/目录git mv→cmd/JoyCode2Api/(保留文件历史)构建配置(跟随 cmd 目录改名):
Dockerfile/scripts/release.sh/web/vite.config.ts二进制名 / 发布产物名(全面品牌一致):Dockerfile ENTRYPOINT、release.sh
BINARY_NAME与产物名JoyCodeProxy-*→JoyCode2Api-*文档 / 链接:前端 GitHub 链接(Login/MainLayout)、README、dashboard
ghRepo常量对齐新仓库;重新构建前端 embed 资源明确不改
docs/superpowers/plans/(42 份历史规划文档,保持历史原貌)joycode-proxy(改会使现有 dashboard 会话全部失效).gitignore中 snake_case/kebab 产物防御规则(防本地旧二进制误提交)验证
go build/vet/test ./...全过;前端npm run build产物落cmd/JoyCode2Api/static/,无旧链接残留JoyCodeProxy零残留(仅 docs 历史文档保留)/health200、/api/qr-login/init正常、/v1/models路由存在备注
JoyCodeProxy-*变为JoyCode2Api-*(已下载旧版不受影响)🤖 Generated with Claude Code