Repository navigation
fix: replace skill directory on skill-get - #84
Open
FatOnionLee wants to merge 3 commits into
Open
FatOnionLee wants to merge 3 commits into
FatOnionLee wants to merge 3 commits into
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.
背景
当前
skill-get在下载 skill 时,使用的是原地解压覆盖的方式。这种方式可以更新 ZIP 中仍然存在的文件,但不会删除旧版本本地目录中那些已经被远端移除、且新 ZIP 中不再存在的文件。因此在 skill 更新后,本地目录可能残留陈旧文件,导致本地内容与远端实际包内容不一致。
Related to #83
改动内容
本次将
skill-get的下载/更新逻辑调整为“临时目录解压 + 整目录替换”:skillName/顶层目录下skillName/SKILL.md同时将
GetSkill和QuerySkill两条下载路径统一到这套目录替换逻辑上,避免不同入口行为不一致。修复效果
修复后,
skill-get在更新 skill 时:测试
已补充并通过以下测试:
本地已执行: