fix: simplify skills sync to stamp-based approach#1007
Conversation
Change-Id: Ic95e8a74a0d6fc7f89782dccde867fd794cfcf46
📝 WalkthroughWalkthroughThis PR replaces the complex ChangesSkills sync stamp-based refactoring
Install wizard simplification
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1007 +/- ##
==========================================
- Coverage 67.68% 67.62% -0.07%
==========================================
Files 576 575 -1
Lines 54548 54337 -211
==========================================
- Hits 36919 36743 -176
+ Misses 14568 14550 -18
+ Partials 3061 3044 -17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@35bcd4a25eea7393c55242ecef42b76357957c17🧩 Skill updatenpx skills add larksuite/cli#fix/revert-incremental-skills-sync -y -g |
Summary
Remove the incremental skills sync mechanism and restore the simpler stamp-based approach. The incremental sync added complexity (state.json, per-skill install, plan/diff logic) without sufficient benefit over the straightforward full sync via
npx skills add.Changes
internal/skillscheck/stamp.go— simple version stamp read/writeinternal/skillscheck/state.go,sync.goand their tests — incremental sync logicinternal/skillscheck/check.goto use stamp-based drift detectioncmd/update/update.goto userunSkillsAndStampinstead ofrunSkillsAndStateinternal/selfupdate/updater.goscripts/install-wizard.jsto full sync instead of incremental planTest Plan
Related Issues
N/A