fix: allow read to be used at the top-level of remote function files (#14672)
read
fix: more robust remote files generation (#14682)