【Skill治理】B 任务 Git 外壳版本治理与回滚能力#3
Open
dydpop wants to merge 6 commits into
Open
Conversation
Collaborator
Author
|
已根据自查结果补充一个小修:加固 Skill snapshot 路径生成与写入校验。 具体变化:
补充验证:
|
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.
完成内容
这次 PR 是 B 任务的 Git 外壳版 Skill 治理收口。核心路线是不自研 Git-like 版本系统,而是用真实 Git 作为底层版本事实来源,SkillOS 在上面封装 Skill 语义。
已完成:
新增 API
全部在现有
/api/v1/lifecycle下:POST /lifecycle/{id}/snapshotGET /lifecycle/{id}/snapshot/historyGET /lifecycle/{id}/snapshot/diffPOST /lifecycle/{id}/release-tagPOST /lifecycle/{id}/rollback说明:
rollback只恢复 Git snapshot 文件,并创建新的 restore commit,不直接修改 Wiki 中的 live Skill 对象。没有改动的边界
docs/interfaces.md/docs/architecture.md。frontend-devPR。agents-devPR。git reset --hard、git clean或破坏性 checkout。验证结果
已通过:
git diff --check只有 Windows CRLF 提示,没有空白错误。剩余依赖 / 建议 review 重点
/versions页面可以接入这些 API 展示真实 Git-backed history / diff。