Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Extend plugin configuration loader to support dynamic levels
Previously, the configuration loader in `BasePlugin` only supported loading plugin configurations from the `plugins` section of the `config.yaml` file. This approach limited flexibility and made it incompatible with new configuration structures. With this update, the configuration loader now supports additional sections, such as `community-plugins` and `custom-plugins`, while maintaining backward compatibility. Plugins can access their configurations regardless of where they are defined in the file. - Added dynamic search across multiple levels: `plugins`, `community-plugins`, and `custom-plugins`. - Ensured `plugins` is prioritized to avoid breaking existing setups. - Plugins retain access to their full configuration through `self.config`. How to access configuration in plugins: - Use `self.config` to retrieve plugin-specific options. - Example: `self.config.get('active', False)` checks if the plugin is active. - All configuration options from the corresponding section (e.g., `plugins`, `community-plugins`) are available dynamically.
- Loading branch information