pub fn discover_plugin_specs(config_dir: &Path) -> Vec<String>Expand description
Auto-discovered plugin targets under <config_dir>/{plugin,plugins}.
Upstream v2 PluginSourceDirectory.discover: a FILE ending .ts/.js, or
ANY directory (a package with its own entrypoint). Sorted, deduped and
CAPPED — a hostile/huge config dir must not make every /api/plugin poll
pay an unbounded scan (AGENTS §2.3). .mjs files are deliberately not
discovered (upstream does not); an explicitly configured spec may still
name one.