Repository navigation
fix(resource-library): 完整备份 Skill/Plugin 并复用原生恢复校验 - #238
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.
背景
资源已成功安装,但设备云盘备份过去使用另一套严格目录/扩展名白名单,并会自动剔除
.env、凭据及依赖,造成备份失败或恢复内容缺失。最终行为
.env、credentials/、secrets/、私钥、配置、静态数据库、依赖和缓存,不按文件名/扩展名实行特殊规则。仍与原生 Skill/Plugin 的 macOS ZIP 传输元数据处理一致。uvwt/nexusdock-cloud#80配套。.env,已同步放宽这条限制,避免完整备份后无法从 ZIP 恢复。其他安装审核与风险确认边界不变。天翼 Windows 验证
go test -p 2 ./internal/resourcelibrary ./internal/skill ./internal/plugin ./internal/tool/skill ./internal/tool/plugin -count=1✅go vet ./internal/resourcelibrary ./internal/skill ./internal/plugin✅git diff --check✅范围与风险
Cloud 是服务端可读取的对象存储 ZIP,没有用户持有密钥的端到端加密。按产品要求,备份不会隐藏、过滤或提示凭据类文件;用户主动提交的凭据会随资源包上传。仍需等待 GitHub CI 合并门禁,当前没有合并、部署或发布设备端新版。