mirror of
https://github.com/openai/codex.git
synced 2026-11-20 15:07:25 +00:00
Move the host skills service into the skills extension (#36921)
## What changed - Move host skill discovery, snapshot caching, and configuration handling from `codex-core-skills` to `codex-skills-extension`. - Rename `SkillsService` and `SkillsLoadInput` to `HostSkillsService` and `HostSkillsLoadInput` to distinguish the host implementation from other skill providers. - Keep shared loading primitives and skill outcome modeling in `codex-core-skills`. GitOrigin-RevId: d81a21791d2ef8c066e157e7e538b8cb7ee4c24b
This commit is contained in:
1 parent
d75f94a94d
commit
02bc1dd796
26 files changed
+111
-115
No files matched your search
@@ -7,8 +7,8 @@ use codex_app_server_protocol::ServerNotification;
|
||||
use codex_app_server_protocol::SkillsChangedNotification;
|
||||
use codex_core::ThreadManager;
|
||||
use codex_core::config::Config;
|
||||
use codex_core::skills::SkillsLoadInput;
|
||||
use codex_core::skills::SkillsService;
|
||||
use codex_core::skills::HostSkillsLoadInput;
|
||||
use codex_core::skills::HostSkillsService;
|
||||
use codex_file_watcher::FileWatcher;
|
||||
use codex_file_watcher::FileWatcherSubscriber;
|
||||
use codex_file_watcher::Receiver;
|
||||
@@ -37,7 +37,7 @@ pub(crate) struct SkillsWatcher {
|
||||
|
||||
impl SkillsWatcher {
|
||||
pub(crate) fn new(
|
||||
skills_service: Arc<SkillsService>,
|
||||
skills_service: Arc<HostSkillsService>,
|
||||
codex_home: &AbsolutePathBuf,
|
||||
outgoing: Arc<OutgoingMessageSender>,
|
||||
) -> Arc<Self> {
|
||||
@@ -113,7 +113,7 @@ impl SkillsWatcher {
|
||||
let plugins_input = config.plugins_config_input();
|
||||
let plugins_manager = thread_manager.plugins_manager();
|
||||
let plugin_outcome = plugins_manager.plugins_for_config(&plugins_input).await;
|
||||
let skills_input = SkillsLoadInput::new(
|
||||
let skills_input = HostSkillsLoadInput::new(
|
||||
config.cwd.clone(),
|
||||
plugin_outcome.effective_plugin_skill_roots(),
|
||||
config.config_layer_stack.clone(),
|
||||
@@ -137,7 +137,7 @@ impl SkillsWatcher {
|
||||
|
||||
fn spawn_event_loop(
|
||||
rx: Receiver,
|
||||
skills_service: Arc<SkillsService>,
|
||||
skills_service: Arc<HostSkillsService>,
|
||||
system_skills_root: AbsolutePathBuf,
|
||||
outgoing: Arc<OutgoingMessageSender>,
|
||||
shutdown_token: CancellationToken,
|
||||
|
||||
Reference in new issue
Block a user