26 lines
1.4 KiB
Markdown
26 lines
1.4 KiB
Markdown
# Plugin Configuration and Context
|
|
|
|
## Module
|
|
Plugin
|
|
|
|
## Status
|
|
IMPLEMENTED
|
|
|
|
## Description
|
|
Plugin configuration loading and context injection for runtime plugin behavior customization.
|
|
|
|
## Implementation Details
|
|
- **IPluginContext**: `src/Plugin/StellaOps.Plugin.Abstractions/Context/IPluginContext.cs` -- provides configuration, logging, and service access to plugins during initialization
|
|
- **PluginContext**: `src/Plugin/StellaOps.Plugin.Host/Context/PluginContext.cs` -- implementation of IPluginContext with runtime services
|
|
- **PluginConfiguration**: `src/Plugin/StellaOps.Plugin.Host/Context/PluginConfiguration.cs` -- loads plugin-specific configuration from host settings
|
|
- **PluginLogger**: `src/Plugin/StellaOps.Plugin.Host/Context/PluginLogger.cs` -- IPluginLogger implementation wrapping host logging
|
|
- **PluginServices**: `src/Plugin/StellaOps.Plugin.Host/Context/PluginServices.cs` -- service locator for plugin runtime dependencies
|
|
- **PluginContextFactory**: creates PluginContext instances per plugin with trust level and shutdown token
|
|
- **Source**: Feature matrix scan
|
|
|
|
## E2E Test Plan
|
|
- [ ] Verify plugin context provides correct configuration values for plugin-specific settings
|
|
- [ ] Test plugin logger routes messages through host logging infrastructure
|
|
- [ ] Verify plugin services resolve registered dependencies correctly
|
|
- [ ] Test context creation includes trust level and cancellation token propagation
|