Record added marketplaces in local registry

This commit is contained in:
xli-oai
2026-04-08 10:32:47 -07:00
parent b8a9e8870a
commit faaff79b41
5 changed files with 122 additions and 1 deletions
+3
View File
@@ -53,6 +53,9 @@ async fn marketplace_add_local_directory_installs_valid_marketplace_root() -> Re
let installed_root = marketplace_install_root(codex_home.path()).join("debug");
assert_eq!(validate_marketplace_root(&installed_root)?, "debug");
let registry = std::fs::read_to_string(codex_home.path().join(".tmp/known_marketplaces.json"))?;
assert!(registry.contains(r#""name": "debug""#));
assert!(registry.contains(r#""installLocation""#));
assert!(
installed_root
.join("plugins/sample/.codex-plugin/plugin.json")