mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Expose hosted plugin extensions in app-server summaries (#47263)
## What changed - Request installed-plugin metadata with `includeExtensions=true` and carry optional `extensions` through the cache into `PluginSummary`. - Add typed declarations for global, settings, thread, and file entrypoints, quick actions, settings tools, icons, and search mention providers. Update JSON schemas and TypeScript and Python bindings. - Accept supported snake_case aliases and emit camelCase fields. Discard incompatible extension declarations without invalidating the installed-plugin inventory. ## Testing Add an integration test covering extension metadata preservation, field normalization, and unknown entrypoint and quick-action types across live and cached `plugin/installed` reads. Update pagination assertions to require `includeExtensions=true`. GitOrigin-RevId: b73b0d13c151a30dc1fb9cda70b5cd6d7e3e2441
This commit is contained in:
@@ -151,11 +151,11 @@ async fn remote_installed_plugins_paginate_across_all_scopes_without_download_ur
|
||||
recorded_http_client_urls(&selected_urls),
|
||||
vec![
|
||||
format!(
|
||||
"{}/backend-api/ps/plugins/installed?limit=200",
|
||||
"{}/backend-api/ps/plugins/installed?includeExtensions=true&limit=200",
|
||||
server.uri()
|
||||
),
|
||||
format!(
|
||||
"{}/backend-api/ps/plugins/installed?limit=200&pageToken=next+page%2F%2B",
|
||||
"{}/backend-api/ps/plugins/installed?includeExtensions=true&limit=200&pageToken=next+page%2F%2B",
|
||||
server.uri()
|
||||
),
|
||||
]
|
||||
@@ -333,6 +333,7 @@ fn build_remote_marketplace_preserves_directory_order_and_appends_installed_only
|
||||
directory_plugin("plugin-m", "mike"),
|
||||
];
|
||||
let installed_plugins = vec![RemotePluginInstalledItem {
|
||||
extensions: None,
|
||||
plugin: directory_plugin("plugin-a", "alpha"),
|
||||
installed_at: None,
|
||||
enabled: true,
|
||||
@@ -365,6 +366,7 @@ fn installation_policy_source_is_preserved_across_remote_summary_paths() {
|
||||
directory_plugin.installation_policy_source =
|
||||
Some(RemotePluginInstallPolicySource::ImplicitCanonicalApp);
|
||||
let installed_plugin = RemotePluginInstalledItem {
|
||||
extensions: None,
|
||||
plugin: directory_plugin.clone(),
|
||||
installed_at: None,
|
||||
enabled: true,
|
||||
@@ -420,6 +422,7 @@ fn plan_eligibility_is_preserved_across_remote_summary_paths() {
|
||||
"enterprise_cbp_automation".to_string(),
|
||||
]);
|
||||
let installed_plugin = RemotePluginInstalledItem {
|
||||
extensions: None,
|
||||
plugin: directory_plugin.clone(),
|
||||
installed_at: None,
|
||||
enabled: false,
|
||||
@@ -513,6 +516,7 @@ fn installation_interstitial_requirement_is_preserved_across_remote_summary_path
|
||||
|
||||
directory_plugin.must_show_installation_interstitial = Some(false);
|
||||
let installed_plugin = remote_installed_plugin_to_cache_entry(&RemotePluginInstalledItem {
|
||||
extensions: None,
|
||||
plugin: directory_plugin,
|
||||
installed_at: None,
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user