chore: reorder plugin configuration sequence in PluginRegistry.Configure method

## CHANGES

- Move CustomPatterns.Configure() before PatternsLoader.Configure()
- Adjust plugin initialization order in Configure method
- Ensure proper dependency sequence for pattern loading
This commit is contained in:
Kayvan Sylvan
2025-07-14 22:51:52 -07:00
parent 9e4ed8ecb3
commit 06fc8d8732

View File

@@ -259,8 +259,8 @@ func (o *PluginRegistry) GetModels() (ret *ai.VendorsModels, err error) {
func (o *PluginRegistry) Configure() (err error) {
o.ConfigureVendors()
_ = o.Defaults.Configure()
_ = o.PatternsLoader.Configure()
_ = o.CustomPatterns.Configure()
_ = o.PatternsLoader.Configure()
// Refresh the database custom patterns directory after custom patterns plugin is configured
customPatternsDir := os.Getenv("CUSTOM_PATTERNS_DIRECTORY")