New warnings flag file paths that are symlinks, hardlinks, or outside the session's working directories
New helper functions inspect a file path and add bracketed warnings when the file is a symbolic link, when the path resolves somewhere else, when the file is hard-linked, meaning edits to it may affect other paths that share the same underlying data, or when the path is outside the session's working directories or in the uploads folder. These appear designed to annotate the inputs or outputs of file tools like Read, Write, and Edit with these warnings.
This helps catch cases where a file path isn't what it appears to be, such as a symlink pointing elsewhere or a hardlinked file whose edits ripple to other locations, before a tool acts on it.