This file editor is largely based on Anthorpic released str_replace_editor. The original code was released under MIT license.
str_replace_editor