Remove bundled skills workspace wiring
This commit is contained in:
parent
661c1b4c1d
commit
c437a9c41a
9 changed files with 20 additions and 45 deletions
|
|
@ -886,6 +886,12 @@ config schema no longer advertises those tables, and app-server README no
|
|||
longer lists dead plugin or external-agent import routes. Old plugin config
|
||||
files should fail loudly rather than receive fake compatibility incense.
|
||||
|
||||
The bundled Codex skill payload crate is gone. `codex-skills` and the embedded
|
||||
imagegen/openai-docs/plugin-creator/skill-creator/skill-installer sample assets
|
||||
were deleted from the workspace, and `SkillsManager::new` no longer installs
|
||||
anything into `CODEX_HOME/skills/.system`. The legacy cache path remains only
|
||||
so stale bundled samples can be removed when bundled skills are disabled.
|
||||
|
||||
That husk has now been cut from `codex-core`. The root core crate no longer
|
||||
exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`,
|
||||
and the core plugin manager / marketplace add-remove-sync modules and tests
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because one or more lines are too long
29
vendor/codex/codex-rs/Cargo.lock
generated
vendored
29
vendor/codex/codex-rs/Cargo.lock
generated
vendored
|
|
@ -2458,7 +2458,6 @@ dependencies = [
|
|||
"codex-login",
|
||||
"codex-otel",
|
||||
"codex-protocol",
|
||||
"codex-skills",
|
||||
"codex-utils-absolute-path",
|
||||
"codex-utils-output-truncation",
|
||||
"dirs",
|
||||
|
|
@ -3259,15 +3258,6 @@ dependencies = [
|
|||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codex-skills"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"codex-utils-absolute-path",
|
||||
"include_dir",
|
||||
"thiserror 2.0.18",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codex-state"
|
||||
version = "0.0.0"
|
||||
|
|
@ -7548,25 +7538,6 @@ version = "0.1.9"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e8a5a9a0ff0086c7a148acb942baaabeadf9504d10400b5a05645853729b9cd2"
|
||||
|
||||
[[package]]
|
||||
name = "include_dir"
|
||||
version = "0.7.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd"
|
||||
dependencies = [
|
||||
"include_dir_macros",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "include_dir_macros"
|
||||
version = "0.7.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "indenter"
|
||||
version = "0.3.4"
|
||||
|
|
|
|||
2
vendor/codex/codex-rs/Cargo.toml
vendored
2
vendor/codex/codex-rs/Cargo.toml
vendored
|
|
@ -28,7 +28,6 @@ members = [
|
|||
"device-key",
|
||||
"shell-command",
|
||||
"shell-escalation",
|
||||
"skills",
|
||||
"core",
|
||||
"core-skills",
|
||||
"hooks",
|
||||
|
|
@ -166,7 +165,6 @@ codex-sandboxing = { path = "sandboxing" }
|
|||
codex-secrets = { path = "secrets" }
|
||||
codex-shell-command = { path = "shell-command" }
|
||||
codex-shell-escalation = { path = "shell-escalation" }
|
||||
codex-skills = { path = "skills" }
|
||||
codex-state = { path = "state" }
|
||||
codex-stdio-to-uds = { path = "stdio-to-uds" }
|
||||
codex-terminal-detection = { path = "terminal-detection" }
|
||||
|
|
|
|||
1
vendor/codex/codex-rs/core-skills/Cargo.toml
vendored
1
vendor/codex/codex-rs/core-skills/Cargo.toml
vendored
|
|
@ -21,7 +21,6 @@ codex-exec-server = { workspace = true }
|
|||
codex-login = { workspace = true }
|
||||
codex-otel = { workspace = true }
|
||||
codex-protocol = { workspace = true }
|
||||
codex-skills = { workspace = true }
|
||||
codex-utils-absolute-path = { workspace = true }
|
||||
codex-utils-output-truncation = { workspace = true }
|
||||
dirs = { workspace = true }
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use crate::config_rules::skill_config_rules_from_stack;
|
|||
use crate::loader::SkillRoot;
|
||||
use crate::loader::load_skills_from_roots;
|
||||
use crate::loader::skill_roots;
|
||||
use crate::system::install_system_skills;
|
||||
use crate::system::uninstall_system_skills;
|
||||
use codex_config::SkillsConfig;
|
||||
|
||||
|
|
@ -74,8 +73,6 @@ impl SkillsManager {
|
|||
// The loader caches bundled skills under `skills/.system`. Clearing that directory is
|
||||
// best-effort cleanup; root selection still enforces the config even if removal fails.
|
||||
uninstall_system_skills(&manager.codex_home);
|
||||
} else if let Err(err) = install_system_skills(&manager.codex_home) {
|
||||
tracing::error!("failed to install system skills: {err}");
|
||||
}
|
||||
manager
|
||||
}
|
||||
|
|
|
|||
|
|
@ -272,12 +272,6 @@ async fn skills_for_cwd_reuses_cached_entry_even_when_entry_has_extra_roots() {
|
|||
.iter()
|
||||
.any(|skill| skill.name == "extra-skill")
|
||||
);
|
||||
assert!(
|
||||
outcome_with_extra
|
||||
.skills
|
||||
.iter()
|
||||
.any(|skill| skill.scope == SkillScope::System)
|
||||
);
|
||||
|
||||
// The cwd-only API returns the current cached entry for this cwd, even when that entry
|
||||
// was produced with extra roots.
|
||||
|
|
|
|||
13
vendor/codex/codex-rs/core-skills/src/system.rs
vendored
13
vendor/codex/codex-rs/core-skills/src/system.rs
vendored
|
|
@ -1,8 +1,15 @@
|
|||
pub(crate) use codex_skills::install_system_skills;
|
||||
pub(crate) use codex_skills::system_cache_root_dir;
|
||||
|
||||
use codex_utils_absolute_path::AbsolutePathBuf;
|
||||
|
||||
const SYSTEM_SKILLS_DIR_NAME: &str = ".system";
|
||||
const SKILLS_DIR_NAME: &str = "skills";
|
||||
|
||||
/// Returns the legacy on-disk cache location for previously embedded system skills.
|
||||
pub(crate) fn system_cache_root_dir(codex_home: &AbsolutePathBuf) -> AbsolutePathBuf {
|
||||
codex_home
|
||||
.join(SKILLS_DIR_NAME)
|
||||
.join(SYSTEM_SKILLS_DIR_NAME)
|
||||
}
|
||||
|
||||
pub(crate) fn uninstall_system_skills(codex_home: &AbsolutePathBuf) {
|
||||
let _ = std::fs::remove_dir_all(system_cache_root_dir(codex_home));
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue