Extract agent role loading into a dedicated crate (#40487)

## What changed

- Add `codex-agent-roles` for agent role configuration types, parsing,
  discovery, validation, and layered loading.
- Update `codex-core` to consume the new crate's public role configuration and
  parsing APIs.

GitOrigin-RevId: 5a963a219a581b2848dae6fd071aa31a0b5ff22c
This commit is contained in:
rhan-oai authored and copyberry committed 2026-08-24 22:40:35 +00:00
1 parent 49880081fe
commit fb9311db5c
11 files changed
+317 -248

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
mod agent_role_config;
mod discovery;
mod loader;
pub use agent_role_config::AgentRoleConfig;
pub use agent_role_config::ResolvedAgentRoleFile;
pub use agent_role_config::parse_agent_role_file_contents;
pub use loader::load_agent_roles;