Repository navigation
refactor(resource-library): 简化备份链路并统一 Skill 根目录语义 - #239
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.
背景
Resource Library 已不再维护第二套文件/扩展名白名单,但导出链路仍残留
portable命名、恒为空的warnings字段,以及单独拒绝嵌套SKILL.md的历史规则。修改
collectPortableFiles→collectBackupFiles,writePortableZip→writeBackupZip,命名回归实际职责。Export、staged export 以及export_prepare响应中移除恒为空的导出warnings字段;Plugin 原生安装审核的 warnings 保持不变。SKILL.md的额外拒绝。Standalone Skill 只以安装根目录的SKILL.md作为当前包 Manifest;子目录同名文件按普通资源保留,不自动注册第二个 Skill。验证(天翼 Windows)
go test -p 2 ./internal/resourcelibrary ./internal/skill ./internal/plugin ./internal/tool/skill ./internal/tool/plugin -count=1✅go vet ./internal/resourcelibrary✅git diff --check✅StartDeviceExport只读取download_grant/archive_digest/size,不依赖导出warnings字段。不涉及 Cloud 部署、AgentDock 发布或生产配置修改。