feat(core): 支持取消同步并保护不完整产物 - #6
Open
sonofmagic wants to merge 1 commit into
Open
sonofmagic wants to merge 1 commit into
sonofmagic wants to merge 1 commit 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.
Figma 选中节点缺少导出 URL、SVG 下载或导入失败时,原先可能静默丢图并覆盖旧产物。这次统一加载、处理和校验的失败判断:默认拒绝不完整同步,返回可定位的失败明细并保留旧产物。
同时为
sync()增加可选AbortSignal,贯穿请求、下载及图标处理。所有产物先临时生成,提交前取消会保留旧产物;提交开始后等待提交完成并返回成功,I/O 失败尝试恢复备份。不承诺跨路径原子发布或进程崩溃恢复。主要变化
continueOnError返回complete: false和节点/阶段诊断,标记删除 diff 不可信,不生成删除记录或 changelog,并使完整同步缓存标记失效。验证
pnpm build、pnpm typecheck、pnpm lint通过;lint 仅有既有警告。repo doctor、repo check、pnpm change check通过。Closes #4
Closes #5