mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## What changed - Add `plugin_id`, `model_slug`, and `reasoning_effort` dimensions to `codex.skill.injected` metrics for explicit and implicit skill invocations. - Propagate plugin IDs from orchestrator skill metadata so resource-backed skill invocations can emit the same attribution. - Record `codex.skill.turn.duration_seconds` once per plugin used in a turn, tagged with the model, reasoning effort, and completed, aborted, or error status. GitOrigin-RevId: d249a9c4e85682b1106ac49d9e598535c6cbb06d
55 lines
1.5 KiB
Rust
55 lines
1.5 KiB
Rust
mod aliases;
|
|
pub mod catalog;
|
|
mod catalog_prompt;
|
|
mod config;
|
|
mod dynamic_skill_selector;
|
|
mod extension;
|
|
mod fragments;
|
|
mod host_aliases;
|
|
mod host_outcome;
|
|
mod host_prompt;
|
|
mod host_roots;
|
|
mod host_service;
|
|
mod host_snapshot;
|
|
mod invocation;
|
|
mod loader;
|
|
pub mod provider;
|
|
mod render;
|
|
mod render_observability;
|
|
mod selection;
|
|
mod shadow_selection_experiment;
|
|
mod sources;
|
|
mod state;
|
|
mod telemetry;
|
|
mod tools;
|
|
mod warnings;
|
|
mod world_state;
|
|
mod world_state_catalogs;
|
|
|
|
pub use config::SkillsExtensionConfig;
|
|
pub use extension::install;
|
|
pub use extension::install_with_providers;
|
|
pub use extension::install_with_providers_and_metrics;
|
|
pub use host_outcome::SkillLoadOutcome;
|
|
pub use host_prompt::HostSkillPrompts;
|
|
pub use host_prompt::InjectedHostSkillPrompts;
|
|
pub use host_service::HostSkillsLoadInput;
|
|
pub use host_service::HostSkillsRequest;
|
|
pub use host_service::HostSkillsService;
|
|
pub use host_snapshot::HostSkillsSnapshot;
|
|
pub use invocation::detect_implicit_skill_invocation;
|
|
pub use provider::ExecutorSkillProvider;
|
|
pub use provider::HostSkillProvider;
|
|
pub use provider::OrchestratorSkillProvider;
|
|
pub use provider::SkillProvider;
|
|
pub use sources::SkillProviderSource;
|
|
pub use sources::SkillProviders;
|
|
pub use telemetry::record_plugin_turn_usage;
|
|
|
|
/// Recognizes persisted explicit skill prompts without exposing their fragment implementation.
|
|
pub fn is_skill_prompt_fragment(text: &str) -> bool {
|
|
<fragments::SkillInstructions as codex_extension_api::ContextualUserFragment>::matches_text(
|
|
text,
|
|
)
|
|
}
|