mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-03 17:49:46 +08:00
Add typed provider functions and utilities to opencode_config.rs: - Typed provider operations (get_typed_providers, get_typed_provider, set_typed_provider, set_providers_batch) - MCP batch operations (set_mcp_servers_batch, clear_mcp_servers) - Utility functions (create_provider_config, validate_provider_config, provider_to_opencode_config, opencode_config_to_provider) - Enhanced module documentation with config file format examples The typed API layer provides type-safe access to OpenCode provider configurations while the untyped layer allows raw JSON operations when needed.