refactor: remove agent flavours, move provider to Agent (#2091)
This commit is contained in:
@@ -25,9 +25,9 @@ pub fn name_to_key(name: &str) -> String {
|
||||
}
|
||||
|
||||
/// Extension configuration management
|
||||
pub struct ExtensionManager;
|
||||
pub struct ExtensionConfigManager;
|
||||
|
||||
impl ExtensionManager {
|
||||
impl ExtensionConfigManager {
|
||||
/// Get the extension configuration if enabled -- uses key
|
||||
pub fn get_config(key: &str) -> Result<Option<ExtensionConfig>> {
|
||||
let config = Config::global();
|
||||
|
||||
@@ -6,7 +6,7 @@ pub mod permission;
|
||||
pub use crate::agents::ExtensionConfig;
|
||||
pub use base::{Config, ConfigError, APP_STRATEGY};
|
||||
pub use experiments::ExperimentManager;
|
||||
pub use extensions::{ExtensionEntry, ExtensionManager};
|
||||
pub use extensions::{ExtensionConfigManager, ExtensionEntry};
|
||||
pub use permission::PermissionManager;
|
||||
|
||||
pub use extensions::DEFAULT_DISPLAY_NAME;
|
||||
|
||||
Reference in New Issue
Block a user