feat: reuse current plugin metadata for provider discovery

This commit is contained in:
Shakker
2026-04-27 17:18:12 +01:00
parent a478ab3dfa
commit 4e7de4b5c9
10 changed files with 305 additions and 3 deletions

View File

@@ -151,6 +151,8 @@ Gateway startup builds one `PluginMetadataSnapshot` for the current config snaps
Plugin-aware config validation, startup auto-enable, and Gateway plugin bootstrap consume that snapshot instead of rebuilding manifest/index metadata independently. `PluginLookUpTable` is derived from the same snapshot and adds the startup plugin plan for the current runtime config.
After startup, Gateway keeps the current metadata snapshot as a replaceable runtime product. Repeated runtime provider discovery can borrow that snapshot instead of reconstructing the installed index and manifest registry for each provider-catalog pass. The snapshot is cleared or replaced on Gateway shutdown, config/plugin inventory changes, and installed index writes; callers fall back to the cold manifest/index path when no compatible current snapshot exists.
The snapshot and lookup table keep repeated startup decisions on the fast path:
- channel ownership