Add a dependencies hook for plugin dependency management