Commit caca9a3
committed
feat(mpp-vscode): integrate ConfigManager for ~/.autodev/config.yaml
Phase 8 - Configuration Management Integration
Changes:
- Add ConfigManager service to load config from ~/.autodev/config.yaml
- Refactor ChatViewProvider to use ConfigManager instead of VSCode settings
- Mirror IdeaAgentViewModel's loadConfiguration() pattern
- Add lazy initialization of CodingAgent with proper config validation
- Create renderer that forwards events to webview (like TuiRenderer)
- Add 'Open Config' button in header and config prompt
- Support all LLM providers: openai, anthropic, deepseek, ollama, etc.
- Auto-create config template when file doesn't exist
Architecture:
- ConfigManager.load() → AutoDevConfigWrapper → getActiveConfig()
- isValid() check before agent initialization
- JsKoogLLMService + JsCodingAgent from mpp-core
- Renderer implements all JsCodingAgentRenderer methods
All 63 tests passing.
Refs #311 parent 8d64f56 commit caca9a3
File tree
6 files changed
+506
-78
lines changed- mpp-vscode
- src
- providers
- services
- webview/src
- hooks
6 files changed
+506
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
108 | | - | |
109 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
110 | 123 | | |
111 | 124 | | |
112 | 125 | | |
| |||
140 | 153 | | |
141 | 154 | | |
142 | 155 | | |
| 156 | + | |
143 | 157 | | |
144 | 158 | | |
145 | 159 | | |
146 | | - | |
147 | 160 | | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
153 | 166 | | |
| 167 | + | |
154 | 168 | | |
155 | 169 | | |
156 | 170 | | |
157 | | - | |
| |||
0 commit comments