Public declaration syntax from forge-rs/crates/forge-provider-coding/src/lib.rs Original source SHA-256: c4f2e4a02fd5048b3c7433d03fcb21e6150af04cbc3e6f3a025919666e25627b Function bodies and constant values are omitted. This is not the complete implementation. Source line 61 #[derive(Debug, Clone, PartialEq, Eq)] pub struct CliCommandSpec { pub program: String, pub args: Vec, pub current_dir: Option, pub final_output_path: Option } Source line 69 #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct AuthorizedSessionRequest { pub provider_ref: String, pub required_capabilities: Vec, pub prompt: String, pub system_prompt: Option, #[serde(skip_serializing_if = "Option::is_none")] pub working_directory: Option, #[serde(skip_serializing_if = "Option::is_none")] pub timeout_seconds: Option } Source line 81 #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct AuthorizedSessionExecution { pub session_id: String, pub provider_ref: String, pub events: Vec, pub usage: ProviderUsageSummary } Source line 90 #[cfg(not(target_arch = "wasm32"))] #[derive(Clone)] pub struct AuthorizedSessionHandle { } Source line 99 #[cfg(not(target_arch = "wasm32"))] pub fn session_id(&self) -> &str; Source line 103 #[cfg(not(target_arch = "wasm32"))] pub fn provider_ref(&self) -> &str; Source line 107 #[cfg(not(target_arch = "wasm32"))] pub fn preflight(&self) -> &CodingProviderPreflight; Source line 111 #[cfg(not(target_arch = "wasm32"))] pub async fn execute(&self) -> ForgeResult; Source line 224 #[cfg(not(target_arch = "wasm32"))] pub struct OfficialCodingProviderManager { } Source line 230 #[cfg(not(target_arch = "wasm32"))] pub fn new() -> ForgeResult; Source line 236 #[cfg(not(target_arch = "wasm32"))] pub fn registry(&self) -> &ProviderRegistry; Source line 240 #[cfg(not(target_arch = "wasm32"))] pub async fn start_authorized_session( &self, agent: &AgentConfig, request: &AuthorizedSessionRequest, verifier: &V, ) -> Result; Source line 269 #[cfg(not(target_arch = "wasm32"))] pub fn official_provider_registry() -> ForgeResult; Source line 276 #[cfg(not(target_arch = "wasm32"))] pub fn register_official_coding_providers(registry: &mut ProviderRegistry) -> ForgeResult<()>; Source line 329 #[cfg(not(target_arch = "wasm32"))] #[derive(Debug, Clone)] pub struct OpenAiCompatibleCodingLanguageModel { } Source line 339 #[cfg(not(target_arch = "wasm32"))] pub fn new( provider_namespace: impl Into, model_id: impl Into, api_key_env: impl Into, base_url_env: impl Into, default_base_url: impl Into, ) -> Self; Source line 445 #[cfg(not(target_arch = "wasm32"))] #[derive(Debug, Clone)] pub struct CodexCliAdapter { pub program: String } Source line 460 #[cfg(not(target_arch = "wasm32"))] pub fn build_command( &self, prompt: &str, system_prompt: Option<&str>, cwd: Option<&Path>, ) -> CliCommandSpec; Source line 487 #[cfg(not(target_arch = "wasm32"))] #[derive(Debug, Clone)] pub struct ClaudeCodeAdapter { pub program: String } Source line 502 #[cfg(not(target_arch = "wasm32"))] pub fn build_command( &self, prompt: &str, system_prompt: Option<&str>, cwd: Option<&Path>, ) -> CliCommandSpec; Source line 934 #[cfg(not(target_arch = "wasm32"))] pub fn official_provider_metadata<'a>( registry: &'a ProviderRegistry, provider_ref: &str, ) -> Option<&'a ProviderMetadata>;