Port-spec lookup for the policy editor's dynamic handles.
Wraps the ports field carried by every GET /api/plugins catalog entry
(see src/plugins/ports.rs, src/admin/policies.rs::plugin_catalog) into a
type-keyed lookup for module:components/PluginNode and
module:components/GraphCanvas, with a hard-coded success+error
fallback for any plugin type missing from the catalog — a stale UI build
talking to an older gateway, or a node type the catalog doesn't cover —
so the editor stays usable rather than rendering no handles at all.
Port-spec lookup for the policy editor's dynamic handles.
Wraps the
portsfield carried by everyGET /api/pluginscatalog entry (see src/plugins/ports.rs, src/admin/policies.rs::plugin_catalog) into a type-keyed lookup for module:components/PluginNode and module:components/GraphCanvas, with a hard-coded success+error fallback for any plugin type missing from the catalog — a stale UI build talking to an older gateway, or a node type the catalog doesn't cover — so the editor stays usable rather than rendering no handles at all.