Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
419 lines (419 loc) · 11.7 KB
/
Copy pathpackage.json
File metadata and controls
419 lines (419 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
{
"name": "champ",
"displayName": "Champ - AI Coding Agent",
"description": "AI coding agent with local LLM support, multi-agent orchestration, and autonomous workflows",
"version": "2.0.2",
"publisher": "champ-oss",
"license": "MIT",
"icon": "media/icon.png",
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"AI",
"Chat",
"Programming Languages"
],
"keywords": [
"ai",
"llm",
"claude",
"ollama",
"local-llm",
"coding-agent",
"autocomplete",
"multi-agent"
],
"repository": {
"type": "git",
"url": "https://github.com/hellodk/champ"
},
"bugs": {
"url": "https://github.com/hellodk/champ/issues"
},
"homepage": "https://github.com/hellodk/champ#readme",
"activationEvents": [
"onStartupFinished",
"onChatParticipant:champ.default"
],
"main": "./dist/extension.js",
"contributes": {
"chatParticipants": [
{
"id": "champ.default",
"name": "champ",
"fullName": "Champ",
"description": "AI coding agent with local LLM support",
"isSticky": true,
"commands": []
}
],
"viewsContainers": {
"activitybar": [
{
"id": "champ-sidebar",
"title": "Champ",
"icon": "media/icon.svg"
}
]
},
"views": {
"champ-sidebar": [
{
"type": "webview",
"id": "champ.chatView",
"name": "Chat"
}
]
},
"commands": [
{
"command": "champ.newChat",
"title": "Champ: New Chat"
},
{
"command": "champ.toggleMode",
"title": "Champ: Toggle Mode"
},
{
"command": "champ.saveCheckpoint",
"title": "Champ: Save Checkpoint",
"category": "Champ"
},
{
"command": "champ.indexWorkspace",
"title": "Champ: Index Workspace"
},
{
"command": "champ.restoreCheckpoint",
"title": "Champ: Restore Checkpoint"
},
{
"command": "champ.openSettings",
"title": "Champ: Settings"
},
{
"command": "champ.setApiKey",
"title": "Champ: Set API Key"
},
{
"command": "champ.setBraveApiKey",
"title": "Champ: Set Brave API Key",
"category": "Champ"
},
{
"command": "champ.generateConfig",
"title": "Champ: Generate Config File"
},
{
"command": "champ.about",
"title": "Champ: About"
},
{
"command": "champ.showEffectiveConfig",
"title": "Champ: Show Effective Config",
"category": "Champ"
},
{
"command": "champ.showHelp",
"title": "Champ: Show User Guide"
},
{
"command": "champ.setActiveModel",
"title": "Champ: Set Active Model"
},
{
"command": "champ.showOnboarding",
"title": "Champ: Show Onboarding"
},
{
"command": "champ.cleanupSessions",
"title": "Champ: Clean Up Old Sessions"
},
{
"command": "champ.runMultiAgent",
"title": "Champ: Run Multi-Agent Workflow"
},
{
"command": "champ.showAnalytics",
"title": "Champ: Show Analytics"
},
{
"command": "champ.reloadMcpServer",
"title": "Champ: Reload MCP Server",
"category": "Champ"
},
{
"command": "champ.openWorkflowRun",
"title": "Champ: Open Workflow Run",
"category": "Champ"
},
{
"command": "champ.rerunWorkflow",
"title": "Champ: Re-run Workflow",
"category": "Champ"
},
{
"command": "champ.runTeam",
"title": "Champ: Run Agent Team"
},
{
"command": "champ.listTeams",
"title": "Champ: List Agent Teams"
},
{
"command": "champ.createTeamFromTemplate",
"title": "Champ: Create Team from Template"
},
{
"command": "champ.listTeamRuns",
"title": "Champ: List Team Run History"
},
{
"command": "champ.quickOpenTeamRun",
"title": "Champ: Quick Open Team Run"
},
{
"command": "champ.resumeTeamRun",
"title": "Champ: Resume Team Run"
},
{
"command": "champ.configureProvider",
"title": "Champ: Configure Provider",
"category": "Champ"
},
{
"command": "champ.openTeamBuilder",
"title": "Champ: Open Team Builder"
},
{
"command": "champ.openRulesEditor",
"title": "Champ: Open Rules Editor"
},
{
"command": "champ.inlineEdit",
"title": "Champ: Edit Selection (Inline)"
},
{
"command": "champ.browseTeams",
"title": "Champ: Browse Team Marketplace"
},
{
"command": "champ.browseMcpServers",
"title": "Champ: Browse MCP Servers",
"category": "Champ"
},
{
"command": "champ.acceptHunkAtLine",
"title": "Champ: Accept Hunk",
"category": "Champ"
},
{
"command": "champ.rejectHunkAtLine",
"title": "Champ: Reject Hunk",
"category": "Champ"
},
{
"command": "champ.acceptAllHunks",
"title": "Champ: Accept All Hunks",
"category": "Champ"
},
{
"command": "champ.rejectAllHunks",
"title": "Champ: Reject All Hunks",
"category": "Champ"
},
{
"command": "champ.clearDiffOverlay",
"title": "Champ: Clear Diff Overlay",
"category": "Champ"
},
{
"command": "champ.openMemoryBank",
"title": "Champ: Open Memory Bank",
"category": "Champ"
},
{
"command": "champ.openGlobalMemoryBank",
"title": "Champ: Open Global Memory Bank",
"category": "Champ"
},
{
"command": "champ.exportConversation",
"title": "Champ: Export Conversation",
"category": "Champ"
},
{
"command": "champ.verifyAuditLog",
"title": "Champ: Verify Audit Log",
"category": "Champ"
},
{
"command": "champ.showServerInfo",
"title": "Champ: Show API Server Info",
"category": "Champ"
}
],
"configuration": {
"title": "Champ",
"properties": {
"champ.yoloMode": {
"type": "boolean",
"default": false,
"markdownDescription": "Skip approval prompts for terminal commands and file edits. **Use with caution.**"
},
"champ.autoFix.enabled": {
"type": "boolean",
"default": true,
"description": "Re-prompt the model with LSP errors after edits to auto-fix issues."
},
"champ.autoFix.maxIterations": {
"type": "number",
"default": 3,
"minimum": 1,
"description": "Maximum auto-fix iterations per edit cycle."
},
"champ.indexing.enabled": {
"type": "boolean",
"default": true,
"description": "Enable codebase indexing for @Codebase semantic search."
},
"champ.indexing.embeddingProvider": {
"type": "string",
"default": "ollama",
"enum": [
"ollama",
"openai"
],
"markdownDescription": "Provider for codebase embedding (semantic search). Only `ollama` and `openai` support embeddings."
},
"champ.autocomplete.enabled": {
"type": "boolean",
"default": true,
"description": "Enable inline ghost-text autocomplete."
},
"champ.autocomplete.debounceMs": {
"type": "number",
"default": 300,
"description": "Debounce delay (ms) before triggering a completion request."
},
"champ.autocomplete.model": {
"type": "string",
"default": "",
"description": "Model to use for inline autocomplete (can be a smaller/faster model than chat)."
},
"champ.userRules": {
"type": "string",
"default": "",
"description": "Global rules always injected into the agent system prompt."
},
"champ.mcp.servers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object"
}
}
},
"markdownDescription": "MCP server configurations. Each server extends the agent with external tools."
},
"champ.autoContext.enabled": {
"type": "boolean",
"default": true,
"description": "Automatically inject the active editor file as context when no @-references are present in the user's message."
}
}
},
"keybindings": [
{
"command": "champ.newChat",
"key": "ctrl+shift+l",
"mac": "cmd+shift+l"
},
{
"command": "champ.toggleMode",
"key": "ctrl+shift+m",
"mac": "cmd+shift+m"
},
{
"command": "champ.inlineEdit",
"key": "ctrl+k ctrl+i",
"mac": "cmd+k cmd+i",
"when": "editorFocus && editorHasSelection"
}
]
},
"scripts": {
"compile": "pnpm run check-types && node esbuild.mjs && node esbuild.webview.mjs --production && node scripts/copy-assets.mjs",
"build:webview": "node esbuild.webview.mjs --production && node scripts/copy-assets.mjs",
"watch:webview": "node esbuild.webview.mjs --watch",
"watch": "npm-run-all -p watch:*",
"watch:extension": "node esbuild.mjs --watch",
"watch:types": "tsc --noEmit --watch",
"check-types": "tsc --noEmit",
"package": "pnpm run check-types && node esbuild.mjs --production",
"vscode:prepublish": "pnpm run package",
"test": "vitest run",
"test:unit": "vitest run --config vitest.config.ts",
"test:integration": "vitest run --config vitest.integration.config.ts",
"test:e2e": "vitest run --config vitest.e2e.config.ts",
"test:report": "bash scripts/run-e2e.sh",
"test:report-legacy": "node scripts/run-tests-and-report.js",
"lint": "eslint src/ test/ --ext .ts,.tsx",
"format": "prettier --write 'src/**/*.ts' 'test/**/*.ts' 'webview-ui/src/**/*.tsx'",
"prepare": "husky"
},
"devDependencies": {
"@playwright/test": "^1.48.0",
"@preact/signals": "^1.3.4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/preact": "^3.2.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.11.0",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^3.9.2",
"esbuild": "^0.24.0",
"eslint": "^9.0.0",
"husky": "^9.0.0",
"jsdom": "^29.1.1",
"lint-staged": "^15.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"typescript": "^5.5.0",
"vitest": "^2.1.0"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.39.0",
"@google/generative-ai": "^0.21.0",
"@vscode/codicons": "^0.0.45",
"highlight.js": "^11.11.1",
"js-yaml": "^4.1.1",
"openai": "^4.77.0",
"preact": "^10.29.1",
"tiktoken": "^1.0.0"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc"
}