Skip to main content

Module discovery

Module discovery 

Source
Expand description

Discover a sidecar from loaded plugin manifests.

Walks the loaded plugin set and returns the first plugin that declares a sidecar binary in its manifest. Synaps CLI today supports at most one active sidecar per session.

The command field from the manifest is resolved to an absolute path: relative paths are joined to the plugin root.

§Manifest schema

Plugins declare a sidecar via provides.sidecar in their plugin manifest.

Structs§

DiscoveredSidecar
A discovered sidecar, resolved against its plugin root and ready to be spawned by crate::sidecar::manager::SidecarManager.

Functions§

discover
Discover by walking the default plugin roots — a thin wrapper around crate::skills::loader::load_all for callers that don’t already hold the plugin set.
discover_all
Discover every sidecar by walking the default plugin roots.
discover_all_in
Discover every sidecar declared by any plugin in plugins.
discover_in
Discover the first sidecar declared by any plugin in plugins.