mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Allow publishing plugins through share updates (#33908)
## What changed - Accept `LISTED` discoverability in `plugin/share/updateTargets` and forward it to the remote plugin sharing API. - Update the generated JSON schemas and TypeScript type with the new enum value. ## Testing - Add an app-server integration test that publishes a workspace plugin and verifies the `LISTED` request and response. GitOrigin-RevId: 978f4b94b318e772bf80347e58dd5b1d2819a653
This commit is contained in:
1 parent
c1862b8db4
commit
3a06748458
9 files changed
+93
-5
No files matched your search
@@ -43,6 +43,7 @@ pub enum RemotePluginShareDiscoverability {
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
|
||||
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
|
||||
pub enum RemotePluginShareUpdateDiscoverability {
|
||||
Listed,
|
||||
Unlisted,
|
||||
Private,
|
||||
}
|
||||
@@ -300,6 +301,7 @@ pub async fn update_remote_plugin_share_targets(
|
||||
) -> Result<RemotePluginShareUpdateTargetsResult, RemotePluginCatalogError> {
|
||||
let auth = ensure_chatgpt_auth(auth)?;
|
||||
let target_discoverability = match discoverability {
|
||||
RemotePluginShareUpdateDiscoverability::Listed => RemotePluginShareDiscoverability::Listed,
|
||||
RemotePluginShareUpdateDiscoverability::Unlisted => {
|
||||
RemotePluginShareDiscoverability::Unlisted
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user