fn extract_plugins_from_dir(dir: &Path) -> Vec<PluginRef>
Extract plugins from all files in a directory (for .logicx packages).