From 0ed4a12ba75245ac629af9b7753142e4b8cfa83c Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 18 Dec 2025 20:02:40 -0500 Subject: [PATCH] Restore extension_manifest.rs to origin/main --- crates/extension/src/extension_manifest.rs | 52 ---------------------- 1 file changed, 52 deletions(-) diff --git a/crates/extension/src/extension_manifest.rs b/crates/extension/src/extension_manifest.rs index b52ba1bd0ac46db08b6b985a7eca25571caea334..39b629db30d0d1cee3374dafc317bdeb0f368146 100644 --- a/crates/extension/src/extension_manifest.rs +++ b/crates/extension/src/extension_manifest.rs @@ -298,58 +298,6 @@ pub struct LanguageModelProviderManifestEntry { /// Path to an SVG icon file relative to the extension root (e.g., "icons/provider.svg"). #[serde(default)] pub icon: Option, - /// Hardcoded models to always show (as opposed to a model list loaded over the network). - #[serde(default)] - pub models: Vec, - /// Authentication configuration. - #[serde(default)] - pub auth: Option, -} - -/// Manifest entry for a language model. -#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)] -pub struct LanguageModelManifestEntry { - /// Unique identifier for the model. - pub id: String, - /// Display name for the model. - pub name: String, - /// Maximum input token count. - pub max_token_count: u64, - /// Maximum output tokens (optional). - pub max_output_tokens: Option, - /// Whether the model supports image inputs. - pub supports_images: bool, - /// Whether the model supports tool/function calling. - pub supports_tools: bool, - /// Whether the model supports extended thinking/reasoning. - pub supports_thinking: bool, -} - -/// Authentication configuration for a language model provider. -#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)] -pub struct LanguageModelAuthConfig { - /// Human-readable name for the credential shown in the UI input field (e.g. "API Key", "Access Token"). - pub credential_label: Option, - /// Environment variable names for the API key (if env var auth supported). - /// Multiple env vars can be specified; they will be checked in order. - #[serde(default)] - pub env_vars: Option>, - /// OAuth configuration for web-based authentication flows. - #[serde(default)] - pub oauth: Option, -} - -/// OAuth configuration for web-based authentication. -#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)] -pub struct OAuthConfig { - /// The text to display on the sign-in button (e.g. "Sign in with GitHub"). - pub sign_in_button_label: Option, - /// The Zed icon path to display on the sign-in button (e.g. "github"). - #[serde(default)] - pub sign_in_button_icon: Option, - /// The description text shown next to the sign-in button in edit prediction settings. - #[serde(default)] - pub sign_in_description: Option, } impl ExtensionManifest {