mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Move skill catalog rendering out of core (#36364)
## What changed - Make the skills extension own the catalog prompt templates and rendering path. - Remove the duplicate core fallback that injected available skills into initial context. - Update core integration tests to install the skills extension explicitly when they expect model-visible skill context. GitOrigin-RevId: bbe6b15c4e776a09c98b7f4166426fe4e58434ba
This commit is contained in:
1 parent
da2c7ca8d1
commit
0d109f097c
21 files changed
+161
-2167
No files matched your search
@@ -5,7 +5,6 @@ use std::path::Component;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use codex_core_skills::render_available_skills_body;
|
||||
use codex_protocol::protocol::SkillScope;
|
||||
use codex_utils_string::approx_token_count;
|
||||
use codex_utils_string::take_bytes_at_char_boundary;
|
||||
@@ -13,6 +12,7 @@ use codex_utils_string::take_bytes_at_char_boundary;
|
||||
use crate::catalog::SkillCatalog;
|
||||
use crate::catalog::SkillCatalogEntry;
|
||||
use crate::catalog::SkillSourceKind;
|
||||
use crate::catalog_prompt::render_available_skills_body;
|
||||
use crate::fragments::AvailableSkillsInstructions;
|
||||
|
||||
const DEFAULT_SKILL_METADATA_CHAR_BUDGET: usize = 8_000;
|
||||
|
||||
Reference in new issue
Block a user