What to build
Implement the documented file deduplication mechanism within the generation workflow. The engine should calculate the SHA-256 hash of each freshly compiled string output and compare it against the file currently existing at the destination path. If they match, the file write operation should be safely skipped to reduce disk wear and optimize incremental re-runs without clobbering manual edits.
Files to modify
Specs
- Refer to Section 5.2 (File Generation Algorithm) of the Technical Documentation.
Acceptance criteria
Dependencies
What to build
Implement the documented file deduplication mechanism within the generation workflow. The engine should calculate the SHA-256 hash of each freshly compiled string output and compare it against the file currently existing at the destination path. If they match, the file write operation should be safely skipped to reduce disk wear and optimize incremental re-runs without clobbering manual edits.
Files to modify
src/generate.jsSpecs
Acceptance criteria
fs.writeFileSynccall if the compiled output hash matches the existing file hash.--verbosemode.Dependencies