mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Move explicit skill selection into the skills crate (#37177)
## What changed - Add `ExplicitSkillLookup` to decouple explicit mention selection from the core skill-loading model. - Export `collect_explicit_skill_mentions` from `codex-skills` and implement the lookup interface for `SkillLoadOutcome`. - Move the selection tests into `codex-skills` while keeping the prompt-size boundary test with prompt injection. GitOrigin-RevId: 21105af31c9b519c231c5ea02464da560705c293
This commit is contained in:
1 parent
6bb6e9045f
commit
a3ebd19fa4
7 files changed
+268
-188
No files matched your search
@@ -5,6 +5,7 @@ mod model;
|
||||
mod name_counts;
|
||||
mod parser;
|
||||
mod policy;
|
||||
mod selection;
|
||||
|
||||
pub use interface::SkillInterfaceAssetPolicy;
|
||||
pub use interface::SkillInterfaceFile;
|
||||
@@ -33,6 +34,8 @@ pub use parser::ParsedSkillFrontmatter;
|
||||
pub use parser::SkillParseError;
|
||||
pub use parser::parse_skill_frontmatter_metadata;
|
||||
pub use policy::resolve_disabled_skill_paths;
|
||||
pub use selection::ExplicitSkillLookup;
|
||||
pub use selection::collect_explicit_skill_mentions;
|
||||
|
||||
use codex_utils_absolute_path::AbsolutePathBuf;
|
||||
use include_dir::Dir;
|
||||
|
||||
Reference in new issue
Block a user