feat: add v1 plugin discovery API (#5983)