Skip to content

Commit caca9a3

Browse files
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 #31
1 parent 8d64f56 commit caca9a3

File tree

6 files changed

+506
-78
lines changed

6 files changed

+506
-78
lines changed

mpp-vscode/package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@
7070
"autodev.provider": {
7171
"type": "string",
7272
"default": "openai",
73-
"enum": ["openai", "anthropic", "google", "deepseek", "ollama", "openrouter"],
73+
"enum": [
74+
"openai",
75+
"anthropic",
76+
"google",
77+
"deepseek",
78+
"ollama",
79+
"openrouter"
80+
],
7481
"description": "LLM provider"
7582
},
7683
"autodev.model": {
@@ -105,8 +112,14 @@
105112
"languages": [
106113
{
107114
"id": "DevIns",
108-
"aliases": ["devins", "devin"],
109-
"extensions": [".devins", ".devin"],
115+
"aliases": [
116+
"devins",
117+
"devin"
118+
],
119+
"extensions": [
120+
".devins",
121+
".devin"
122+
],
110123
"configuration": "syntaxes/language-configuration.json",
111124
"icon": {
112125
"light": "./resources/icon.svg",
@@ -140,18 +153,18 @@
140153
"@types/vscode": "^1.85.0",
141154
"@typescript-eslint/eslint-plugin": "^6.13.0",
142155
"@typescript-eslint/parser": "^6.13.0",
156+
"@vscode/vsce": "^2.22.0",
143157
"esbuild": "^0.19.8",
144158
"eslint": "^8.54.0",
145159
"typescript": "^5.3.2",
146-
"@vscode/vsce": "^2.22.0",
147160
"vitest": "^1.0.0"
148161
},
149162
"dependencies": {
150163
"@autodev/mpp-core": "file:../mpp-core/build/packages/js",
151164
"@modelcontextprotocol/sdk": "^1.0.0",
152165
"cors": "^2.8.5",
153166
"express": "^4.18.2",
167+
"yaml": "^2.8.2",
154168
"zod": "^3.22.4"
155169
}
156170
}
157-

0 commit comments

Comments
 (0)