Download codex-rs/core/src/plugins/mod.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/core/src/plugins/mod.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/core/src/plugins/mod.rs
-
curl -L -o mod.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/core/src/plugins/mod.rs
1.45 kB
| mod discoverable; | |
| mod injection; | |
| mod mentions; | |
| pub(crate) mod metrics; | |
| mod render; | |
| mod skill_snapshot_tests; | |
| pub(crate) mod test_support; | |
| use crate::config::Config; | |
| use codex_core_plugins::PluginsManager; | |
| use codex_login::AuthManager; | |
| use codex_skills_extension::HostSkillsService; | |
| use std::sync::Arc; | |
| pub(crate) use codex_plugin::PluginCapabilitySummary; | |
| pub(crate) use discoverable::list_tool_suggest_discoverable_plugins; | |
| pub(crate) use injection::build_plugin_injections; | |
| pub(crate) use render::render_explicit_plugin_instructions; | |
| pub(crate) use mentions::build_connector_slug_counts; | |
| pub(crate) use mentions::collect_explicit_app_ids; | |
| pub(crate) use mentions::collect_explicit_plugin_ids; | |
| pub(crate) use mentions::collect_explicit_plugin_mentions; | |
| pub(crate) use mentions::collect_tool_mentions_from_messages; | |
| /// Constructs a standalone plugin manager with extension-owned plugin skill loading. | |
| /// | |
| /// Callers that already own a host skills service should inject that existing service instead. | |
| pub fn plugins_manager_for_config( | |
| config: &Config, | |
| auth_manager: Arc<AuthManager>, | |
| ) -> PluginsManager { | |
| let skill_root_loader = Arc::new(HostSkillsService::new( | |
| config.codex_home.clone(), | |
| /*bundled_skills_enabled*/ false, | |
| )); | |
| PluginsManager::new( | |
| config.codex_home.to_path_buf(), | |
| auth_manager, | |
| skill_root_loader, | |
| ) | |
| } | |