mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
Simplify plugin skill root snapshot cache
This commit is contained in:
@@ -5,7 +5,7 @@ use codex_config::ConfigLayerEntry;
|
||||
use codex_config::ConfigLayerSource;
|
||||
use codex_config::ConfigRequirements;
|
||||
use codex_config::ConfigRequirementsToml;
|
||||
use codex_core_skills::SkillRootLoader;
|
||||
use codex_core_skills::PluginSkillRootCache;
|
||||
use codex_plugin::PluginId;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
@@ -156,13 +156,13 @@ enabled = true
|
||||
)
|
||||
.expect("valid config layer stack");
|
||||
let store = PluginStore::new(temp_dir.path().to_path_buf());
|
||||
let skill_root_loader = SkillRootLoader::default();
|
||||
let plugin_skill_root_cache = PluginSkillRootCache::default();
|
||||
|
||||
let full = load_plugins_from_layer_stack(
|
||||
&stack,
|
||||
HashMap::new(),
|
||||
&store,
|
||||
&skill_root_loader,
|
||||
&plugin_skill_root_cache,
|
||||
Some(Product::Codex),
|
||||
/*prefer_remote_curated_conflicts*/ false,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user