feat: Handle alternate plugin manifest paths (#18182)

Load plugin manifests through a shared discoverable-path helper so
manifest reads, installs, and skill names all see the same alternate
manifest location.
This commit is contained in:
xl-openai
2026-04-16 19:43:19 -07:00
committed by GitHub
parent a803790a10
commit 37161bc76e
13 changed files with 581 additions and 222 deletions
+4 -8
View File
@@ -173,13 +173,9 @@ fn install_rejects_blank_manifest_version() {
.expect_err("blank manifest version should be rejected");
let err = err.to_string().replace('\\', "/");
assert!(
err.starts_with("invalid plugin version in manifest "),
"unexpected error: {err}"
);
assert!(
err.ends_with("sample-plugin/.codex-plugin/plugin.json: must not be blank"),
"unexpected error: {err}"
assert_eq!(
err,
"invalid plugin version in plugin.json: must not be blank"
);
}
@@ -305,6 +301,6 @@ fn install_rejects_manifest_names_that_do_not_match_marketplace_plugin_name() {
assert_eq!(
err.to_string(),
"plugin manifest name `manifest-name` does not match marketplace plugin name `different-name`"
"plugin.json name `manifest-name` does not match marketplace plugin name `different-name`"
);
}