Module diff

Module diff 

Source
Expand description

Diff rendering for file change confirmation

Provides visual diff display for file modifications, showing additions in green and deletions in red with line numbers.

When an IDE companion extension is connected, diffs can be shown in the IDE’s native diff viewer for a better experience.

Functions§

confirm_file_write
Confirm file write with diff display and optional IDE integration
confirm_file_write_with_ide
Confirm file write with IDE integration
render_diff
Render a diff between old and new content
render_new_file
Render a new file (all additions)