Pure data structure and functions for Oil.nvim-style directory buffers.
A Dired listing is an editable buffer where each line is a filename. Saving the buffer diffs current content against the original entry list and applies the resulting file operations (renames, deletes, creates).
Layer 0: pure functions, no process dependencies.