Repository navigation
feat(agents): support git repository rename and smooth migration - #100
Merged
Merged
Conversation
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.
背景
用户在 GitLab 仓库修改了 Agent 名称和仓库路径(如从
operator-register-agent改为operator-registration-agent),并在代码清单中同步修改了name。在 Doraemon 平台更新仓库地址后,同步存在静默新增重复 Agent、原 Agent 变为僵尸数据、列表卡片分裂的问题。改动内容
importAgentFromGit支持传入currentAgent标识。在单 Agent 页面同步、配置更新立即同步、后台全量轮询等调用链中透传当前 Agent,精准判断 Manifestname是否发生变更。uk_agents_name唯一索引冲突),若冲突则友好拦截报错。agents原记录(保持自增id不变),级联更新agent_skills关系。agent-market/<old_name>)与本地临时检出目录(git_repos/<old_name>),避免磁盘空间泄漏。name,前端详情页检测到更名后弹出提示并自动通过路由跳转至/page/agents/<new_name>。test/agent-git-rename.test.js,覆盖名称冲突拦截、平滑重命名返回与识别等路径。关联 Issue