mirror of
https://github.com/openai/codex.git
synced 2026-05-02 18:37:01 +00:00
Add marketplace display names to plugin/list (#14861)
Add display_name support to marketplace.json.
This commit is contained in:
@@ -999,6 +999,7 @@ enabled = false
|
||||
tmp.path().join("repo/.agents/plugins/marketplace.json"),
|
||||
)
|
||||
.unwrap(),
|
||||
display_name: None,
|
||||
plugins: vec![
|
||||
ConfiguredMarketplacePluginSummary {
|
||||
id: "enabled-plugin@debug".to_string(),
|
||||
@@ -1043,6 +1044,7 @@ async fn list_marketplaces_includes_curated_repo_marketplace() {
|
||||
curated_root.join(".agents/plugins/marketplace.json"),
|
||||
r#"{
|
||||
"name": "openai-curated",
|
||||
"display_name": "ChatGPT Official",
|
||||
"plugins": [
|
||||
{
|
||||
"name": "linear",
|
||||
@@ -1077,6 +1079,7 @@ async fn list_marketplaces_includes_curated_repo_marketplace() {
|
||||
name: "openai-curated".to_string(),
|
||||
path: AbsolutePathBuf::try_from(curated_root.join(".agents/plugins/marketplace.json"))
|
||||
.unwrap(),
|
||||
display_name: Some("ChatGPT Official".to_string()),
|
||||
plugins: vec![ConfiguredMarketplacePluginSummary {
|
||||
id: "linear@openai-curated".to_string(),
|
||||
name: "linear".to_string(),
|
||||
@@ -1281,6 +1284,7 @@ enabled = true
|
||||
tmp.path().join("repo/.agents/plugins/marketplace.json"),
|
||||
)
|
||||
.unwrap(),
|
||||
display_name: None,
|
||||
plugins: vec![ConfiguredMarketplacePluginSummary {
|
||||
id: "sample-plugin@debug".to_string(),
|
||||
name: "sample-plugin".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user