Skip to content

Commit 1e8d95b

Browse files
author
LittleCoinCoin
committed
feat: implement host strategy classes with inheritance architecture
Add concrete host strategy implementations using decorator registration with inheritance patterns for code reuse and maintainability. Strategy families: - Claude family: ClaudeDesktopHostStrategy, ClaudeCodeHostStrategy * Shared validation requiring absolute command paths * Common Anthropic-specific configuration handling - Cursor family: CursorHostStrategy, LMStudioHostStrategy * Flexible path handling and shared configuration format * Common cursor-based editor patterns - Independent: VSCodeHostStrategy, GeminiHostStrategy * Unique configuration formats and validation rules * Updated Gemini strategy based on official documentation Features: - @register_host_strategy decorator usage for all strategies - Inheritance-based code sharing within families - Host-specific configuration path resolution - Atomic configuration operations with backup integration - Consolidated MCPServerConfig model usage throughout Updates Gemini strategy to use official ~/.gemini/settings.json configuration path and mcpServers key structure.
1 parent b424520 commit 1e8d95b

File tree

1 file changed

+479
-0
lines changed

1 file changed

+479
-0
lines changed

0 commit comments

Comments
 (0)