Repository navigation
feat: calculate and verify file checksums - #293
athousanddetails wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (13)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughAdds CRC-32, MD5, SHA-1, and SHA-256 calculation and clipboard verification. Finder menu actions open a checksum window for selected files, where results can be copied or saved as SHA-256 files. ChangesFile checksum workflow
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant FinderSync
participant AppDelegate
participant AppUrlChecksumHandler
participant ChecksumWindowController
participant FileChecksumCalculator
FinderSync->>AppDelegate: Forward checksum action
AppDelegate->>AppUrlChecksumHandler: Handle checksum app URL
AppUrlChecksumHandler->>AppUrlChecksumHandler: Check access to parent folders
AppUrlChecksumHandler->>ChecksumWindowController: Open window with files and verification flag
ChecksumWindowController->>FileChecksumCalculator: Calculate checksums for each file
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue remains in the reviewed checksum workflow; it is ready to merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new actions reuse existing file-access permissions and keep results in a visible window. Copying or saving a checksum requires user action. No authorization bypass or automatic disclosure was established, but the externally callable workflow and its signed-runtime behavior warrant a bounded design review. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.82% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 11 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 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 |
Closes #233.
Finder now offers two optional actions, Checksums… and Verify Checksum from Clipboard, both off by default. For each selected file, MacPacker calculates CRC-32, MD5, SHA-1 and SHA-256 in one chunked background read. The window can copy any value, show a match or mismatch against a pasted checksum, and save a standard
file.ext.sha256checksum file. This uses system hashing APIs rather than an archive engine.Verification
swift test --package-path Modules: 585 tests passed in 138 suites. New tests cover known values, empty files, a read-chunk boundary, clipboard parsing, and both Finder URL actions.hash filenameline. Confirmed both new settings are unchecked in the Release app. The unsigned build did not enable the live Finder extension, so Finder-menu click-through was covered by the menu and URL tests rather than a live context-menu test.AI disclosure: Codex was the primary author and performed the verification described above. The human contributor remains responsible for review before merge.
Summary by CodeRabbit