Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
548 lines (548 loc) · 18.3 KB
/
Copy pathpackage.json
File metadata and controls
548 lines (548 loc) · 18.3 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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
{
"name": "codeforge",
"displayName": "CodeForge AI",
"description": "AI Agent sidebar and approval UI for CodeForge",
"version": "0.1.3",
"publisher": "kortexio",
"engines": {
"vscode": "^1.136.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"secondarySidebar": [
{
"id": "codeforge",
"title": "AI",
"icon": "resources/ai-icon.svg"
}
]
},
"views": {
"codeforge": [
{
"type": "webview",
"id": "codeforge.chat",
"name": "Agent",
"visibility": "visible",
"initialSize": 3
},
{
"id": "codeforge.sessions",
"name": "Sessions",
"visibility": "collapsed",
"initialSize": 1
},
{
"id": "codeforge.tasks",
"name": "Tasks",
"visibility": "collapsed",
"initialSize": 1
}
]
},
"commands": [
{
"command": "codeforge.focusChat",
"title": "Focus AI Chat",
"category": "CodeForge AI",
"icon": "$(comment-discussion)"
},
{
"command": "codeforge.newChat",
"title": "New Chat",
"category": "CodeForge AI",
"icon": "$(add)"
},
{
"command": "codeforge.chatHistory",
"title": "Chat History",
"category": "CodeForge AI",
"icon": "$(history)"
},
{
"command": "codeforge.runTask",
"title": "Run AI Task",
"category": "CodeForge AI"
},
{
"command": "codeforge.cancelTask",
"title": "Cancel AI Task",
"category": "CodeForge AI"
},
{
"command": "codeforge.openSettings",
"title": "Settings",
"category": "CodeForge AI",
"icon": "$(gear)"
},
{
"command": "codeforge.switchModel",
"title": "Switch Model",
"category": "CodeForge AI",
"icon": "$(symbol-misc)"
},
{
"command": "codeforge.configureProvider",
"title": "Settings (Servers & Models)",
"category": "CodeForge AI"
},
{
"command": "codeforge.resumeSession",
"title": "Open Session",
"category": "CodeForge AI"
},
{
"command": "codeforge.deleteSession",
"title": "Delete Session",
"category": "CodeForge AI"
},
{
"command": "codeforge.clearSessions",
"title": "Clear All Sessions",
"category": "CodeForge AI"
},
{
"command": "codeforge.exportSession",
"title": "Export Session",
"category": "CodeForge AI"
},
{
"command": "codeforge.importSession",
"title": "Import Session",
"category": "CodeForge AI"
},
{
"command": "codeforge.showTrace",
"title": "Show Execution Trace",
"category": "CodeForge AI"
},
{
"command": "codeforge.reloadSkills",
"title": "Reload Skills & Rules",
"category": "CodeForge AI"
},
{
"command": "codeforge.refreshMcp",
"title": "Refresh MCP Servers",
"category": "CodeForge AI"
},
{
"command": "codeforge.clearCompletedTasks",
"title": "Clear Completed Tasks",
"category": "CodeForge AI"
},
{
"command": "codeforge.toggleAutoApproveEdits",
"title": "Toggle Auto-Approve File Edits",
"category": "CodeForge AI"
},
{
"command": "codeforge.inspectWorkspace",
"title": "Inspect Workspace",
"category": "CodeForge AI"
},
{
"command": "codeforge.indexEmbeddings",
"title": "Index Semantic Embeddings",
"category": "CodeForge AI"
},
{
"command": "codeforge.generateInstructions",
"title": "Generate Agent Instructions",
"category": "CodeForge AI"
},
{
"command": "codeforge.checkForUpdates",
"title": "Check for Updates…",
"category": "CodeForge"
}
],
"keybindings": [
{
"command": "codeforge.focusChat",
"key": "ctrl+l",
"mac": "cmd+l",
"when": "!editorReadonly || editorFocus || !editorFocus"
},
{
"command": "codeforge.switchModel",
"key": "ctrl+shift+/",
"mac": "cmd+shift+/"
},
{
"command": "codeforge.openSettings",
"key": "ctrl+shift+,",
"mac": "cmd+shift+,"
},
{
"command": "codeforge.newChat",
"key": "ctrl+n",
"mac": "cmd+n",
"when": "view == codeforge.chat || focusedView == codeforge.chat"
}
],
"configuration": {
"title": "AI",
"properties": {
"codeforge.ai.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the CodeForge AI Agent. When disabled, the Agent sidebar will not run tasks."
},
"codeforge.ai.provider": {
"type": "string",
"enum": [
"openai",
"anthropic",
"google",
"xai",
"openrouter",
"ollama",
"vllm",
"lmstudio",
"custom"
],
"default": "openai",
"markdownDescription": "Mirror of the **active** server in [CodeForge Settings](command:codeforge.openSettings). Manage multiple providers there — this value is overwritten on save.",
"deprecationMessage": "Use CodeForge Settings (Models → Add Server) to manage providers. This setting only mirrors the active server."
},
"codeforge.ai.apiKey": {
"type": "string",
"default": "",
"scope": "application",
"markdownDescription": "Mirror of the active server API key. Edit keys in [CodeForge Settings](command:codeforge.openSettings).",
"deprecationMessage": "Use CodeForge Settings to manage API keys per server. This setting only mirrors the active server."
},
"codeforge.ai.model": {
"type": "string",
"default": "",
"markdownDescription": "Mirror of the active model. Pick models in [CodeForge Settings](command:codeforge.openSettings).",
"deprecationMessage": "Use CodeForge Settings to manage models per server. This setting only mirrors the active model."
},
"codeforge.ai.baseUrl": {
"type": "string",
"default": "",
"markdownDescription": "Mirror of the active server base URL. Edit URLs in [CodeForge Settings](command:codeforge.openSettings).",
"deprecationMessage": "Use CodeForge Settings to manage base URLs per server. This setting only mirrors the active server."
},
"codeforge.ai.mode": {
"type": "string",
"enum": [
"ask",
"plan",
"agent"
],
"default": "agent",
"description": "Default AI interaction mode (Ask = answers only, Plan = explore + wiki plan, Agent = tools with approvals). Use the Allow all permission chip for session auto-approve."
},
"codeforge.ai.weakModelMode": {
"type": "string",
"enum": [
"off",
"on"
],
"default": "off",
"markdownDescription": "Small-model harness: **on** = phase tool filtering + tighter guardrails; **off** = full tool surface (default). Legacy values: `force`→on, `auto`→off."
},
"codeforge.ai.collapseToolCards": {
"type": "boolean",
"default": true,
"description": "Collapse completed tool cards in the Agent chat, keeping only running tools expanded"
},
"codeforge.ai.autoApprove": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of tools to auto-approve"
},
"codeforge.ai.autoApproveEdits": {
"type": "boolean",
"default": false,
"description": "Automatically apply all file edits (write/rename/delete) without asking"
},
"codeforge.ai.previewEdits": {
"type": "boolean",
"default": false,
"description": "Show DiffPreview before writing existing files (off by default)"
},
"codeforge.ai.shellSandbox": {
"type": "string",
"enum": [
"restricted",
"safe-local",
"isolated",
"container",
"unrestricted"
],
"default": "restricted",
"markdownDescription": "Default shell sandbox. **restricted** (default): scrub secret env vars and block dangerous patterns. **unrestricted**: full env + no blocked patterns (still runs in the workspace folder). Overridden by **Full agent freedom**."
},
"codeforge.ai.fullAgentFreedom": {
"type": "boolean",
"default": false,
"markdownDescription": "Maximum autonomy: unrestricted shell sandbox, auto-approve file edits, and auto-approve shell for the session. Use only on trusted machines and workspaces."
},
"codeforge.ai.traceLevel": {
"type": "string",
"enum": [
"none",
"basic",
"detailed"
],
"default": "basic",
"description": "Level of execution tracing (none/basic/detailed)"
},
"codeforge.ai.tabCompletion": {
"type": "boolean",
"default": true,
"description": "Enable LLM-backed inline tab completion"
},
"codeforge.ai.agentCheckpointSteps": {
"type": "number",
"default": 30,
"minimum": 5,
"maximum": 200,
"description": "Checkpoint every N steps: evaluate agent progress and extend budget on positive reviews"
},
"codeforge.ai.agentHardCap": {
"type": "number",
"default": 100,
"minimum": 20,
"maximum": 500,
"description": "Max steps per agent task (absolute hard cap; uses your settings value as-is)"
},
"codeforge.ai.contextBudget": {
"type": "number",
"default": 32768,
"enum": [
8192,
16384,
32768,
65536
],
"description": "Fallback context window (tokens) when the active server has no num_ctx. Prefer setting num_ctx per server in CodeForge AI Settings."
},
"codeforge.ai.semanticIndex": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"off"
],
"description": "Build and refresh the code index (lexical + embeddings when the provider supports /embeddings). auto = on activation and on file changes; off = metadata index only."
},
"codeforge.ai.retrieveRerank": {
"type": "boolean",
"default": true,
"description": "Rerank retrieve candidates with a short LLM call before they enter the context packet."
},
"codeforge.ai.exploreSubagent": {
"type": "boolean",
"default": false,
"description": "Allow delegating broad exploration questions to a read-only explore subagent."
},
"codeforge.ai.toolGroups": {
"type": "array",
"items": {
"type": "string",
"enum": [
"git",
"wiki",
"browser",
"web",
"media",
"notebook",
"navigation",
"files"
]
},
"default": [],
"description": "Optional tool groups enabled on top of the Agent CORE surface (git, wiki, browser, web, media, notebook, navigation, files). Empty = CORE only."
},
"codeforge.ai.openModels": {
"type": "boolean",
"default": true,
"markdownDescription": "Manage API/local servers and models in **[CodeForge Settings → Models](command:codeforge.openSettings?%5B%22models%22%5D)** (Add Server, keys, fetch models). Same UI as the CodeForge Settings panel."
},
"codeforge.ai.openMcp": {
"type": "boolean",
"default": true,
"markdownDescription": "Manage MCP servers in **[CodeForge Settings → MCP](command:codeforge.openSettings?%5B%22mcp%22%5D)**. Same UI as the CodeForge Settings panel."
},
"codeforge.ai.openGuardrails": {
"type": "boolean",
"default": true,
"markdownDescription": "Manage Skills, Rules, Policies and Guardrails in **[CodeForge Settings → Guardrails](command:codeforge.openSettings?%5B%22guardrails%22%5D)**. Same UI as the CodeForge Settings panel."
},
"codeforge.update.checkOnStartup": {
"type": "boolean",
"default": true,
"description": "Check GitHub for a newer release a few seconds after startup and offer a download link when one is available."
},
"codeforge.update.githubRepo": {
"type": "string",
"default": "Kortexio/CodeForge",
"description": "GitHub owner/repo used for releases/latest (e.g. Kortexio/CodeForge). Leave empty to derive from the app name."
},
"codeforge.update.apiBaseUrl": {
"type": "string",
"default": "https://api.github.com",
"description": "GitHub API base URL. Change for GitHub Enterprise or a mirror. Path used: {apiBaseUrl}/repos/{githubRepo}/releases/latest"
},
"codeforge.update.downloadUrl": {
"type": "string",
"default": "",
"description": "Optional override URL for the Download button (internal page, CDN, SharePoint). When empty, opens the release page or Windows .exe asset."
},
"codeforge.update.currentVersion": {
"type": "string",
"default": "",
"description": "Optional local version override for update comparison. When empty, uses the codeforge extension package version."
}
}
},
"configurationDefaults": {
"workbench.sideBar.location": "left",
"workbench.secondarySideBar.defaultVisibility": "visible",
"workbench.activityBar.location": "default",
"chat.commandCenter.enabled": false,
"chat.disableAIFeatures": true
},
"menus": {
"view/title": [
{
"command": "codeforge.chatHistory",
"when": "view == codeforge.chat",
"group": "navigation@1"
},
{
"command": "codeforge.newChat",
"when": "view == codeforge.chat",
"group": "navigation@2"
},
{
"command": "codeforge.openSettings",
"when": "view == codeforge.chat",
"group": "navigation@3"
},
{
"command": "codeforge.clearSessions",
"when": "view == codeforge.sessions",
"group": "navigation"
},
{
"command": "codeforge.importSession",
"when": "view == codeforge.sessions",
"group": "navigation"
},
{
"command": "codeforge.clearCompletedTasks",
"when": "view == codeforge.tasks",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "codeforge.deleteSession",
"when": "view == codeforge.sessions && viewItem == session",
"group": "inline"
},
{
"command": "codeforge.exportSession",
"when": "view == codeforge.sessions && viewItem == session",
"group": "inline"
}
],
"editor/context": [
{
"command": "codeforge.runTask",
"group": "CodeForge"
}
],
"commandPalette": [
{
"command": "codeforge.focusChat"
}
]
},
"walkthroughs": [
{
"id": "codeforgeAiSetup",
"title": "Set up CodeForge AI",
"description": "Add a server, pick a model, and start building with Agent",
"steps": [
{
"id": "openAiSettings",
"title": "Open AI Settings",
"description": "CodeForge uses your own models — OpenAI, Anthropic, Ollama, LM Studio, or any OpenAI-compatible endpoint.\n\n[Open AI Settings](command:codeforge.openSettings)",
"media": {
"markdown": "walkthrough/ai-settings.md"
},
"completionEvents": [
"onCommand:codeforge.openSettings"
]
},
{
"id": "addServer",
"title": "Add a server",
"description": "In **Models**, click **Add server**, enter your API key or local base URL, then **Fetch models**.\n\n[Open AI Settings](command:codeforge.openSettings)",
"media": {
"markdown": "walkthrough/ai-settings.md"
},
"completionEvents": [
"onCommand:codeforge.openSettings"
]
},
{
"id": "pickModel",
"title": "Pick your model",
"description": "Use the model chip in the AI panel to switch models while you work.\n\n[Switch model](command:codeforge.switchModel)",
"media": {
"markdown": "walkthrough/ai-agent.md"
},
"completionEvents": [
"onCommand:codeforge.switchModel"
]
},
{
"id": "openAgent",
"title": "Open the AI Agent",
"description": "The Agent lives in the right sidebar. Ask questions, plan changes, and edit across your workspace.\n\n[Focus AI Agent](command:codeforge.focusChat)",
"media": {
"markdown": "walkthrough/ai-agent.md"
},
"completionEvents": [
"onCommand:codeforge.focusChat"
]
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/vscode": "^1.136.0",
"playwright": "^1.64.1",
"typescript": "^5.9.3"
},
"dependencies": {
"@highlightjs/cdn-assets": "^11.12.0",
"highlight.js": "^11.12.0",
"katex": "^0.19.0",
"marked": "^18.0.14",
"mermaid": "^12.0.0"
}
}