-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 4.5 KB
/
package.json
File metadata and controls
160 lines (160 loc) · 4.5 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
{
"name": "code-explainer",
"displayName": "Code Explainer",
"description": "Branch-aware code comprehension for VS Code.",
"version": "0.0.1",
"publisher": "charley",
"license": "MIT",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:codeExplainer.explainRepo",
"onCommand:codeExplainer.explainSelection",
"onCommand:codeExplainer.compareBranch",
"onCommand:codeExplainer.traceRelationships",
"onCommand:codeExplainer.drawFlowChart",
"onView:codeExplainer.sidebar"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "codeExplainer.explainRepo",
"title": "Code Explainer: Explain Repo"
},
{
"command": "codeExplainer.explainSelection",
"title": "Code Explainer: Explain Selection"
},
{
"command": "codeExplainer.compareBranch",
"title": "Code Explainer: Compare Branch with Main"
},
{
"command": "codeExplainer.traceRelationships",
"title": "Code Explainer: Trace Relationships"
},
{
"command": "codeExplainer.drawFlowChart",
"title": "Code Explainer: Draw Current Branch Diagram"
},
{
"command": "codeExplainer.refreshSidebar",
"title": "Code Explainer: Refresh Sidebar"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "codeExplainer",
"title": "Code Explainer",
"icon": "media/activity.svg"
}
]
},
"views": {
"codeExplainer": [
{
"id": "codeExplainer.sidebar",
"name": "Overview"
}
]
},
"menus": {
"editor/context": [
{
"command": "codeExplainer.explainSelection",
"group": "navigation@100"
},
{
"command": "codeExplainer.traceRelationships",
"group": "navigation@101"
},
{
"command": "codeExplainer.drawFlowChart",
"group": "navigation@102"
}
],
"explorer/context": [
{
"command": "codeExplainer.explainRepo",
"group": "navigation@100"
}
]
},
"configuration": {
"title": "Code Explainer",
"properties": {
"codeExplainer.provider": {
"type": "string",
"enum": [
"openai",
"anthropic"
],
"default": "openai",
"description": "The LLM provider used for analysis."
},
"codeExplainer.baseBranch": {
"type": "string",
"default": "main",
"description": "Default branch to compare against."
},
"codeExplainer.maxFilesInContext": {
"type": "number",
"default": 30,
"minimum": 5,
"description": "Maximum number of files to include when building repo context."
},
"codeExplainer.enableDiagrams": {
"type": "boolean",
"default": true,
"description": "Render custom flow-chart visualizations in the explanation panel when available."
},
"codeExplainer.openai.apiKey": {
"type": "string",
"default": "",
"markdownDescription": "OpenAI API key. Prefer moving this to SecretStorage in a later iteration."
},
"codeExplainer.openai.model": {
"type": "string",
"default": "gpt-4.1-mini",
"description": "OpenAI model name."
},
"codeExplainer.openai.baseUrl": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "Override the OpenAI-compatible base URL."
},
"codeExplainer.anthropic.apiKey": {
"type": "string",
"default": "",
"markdownDescription": "Anthropic API key. Prefer moving this to SecretStorage in a later iteration."
},
"codeExplainer.anthropic.model": {
"type": "string",
"default": "claude-3-7-sonnet-latest",
"description": "Anthropic model name."
},
"codeExplainer.anthropic.baseUrl": {
"type": "string",
"default": "https://api.anthropic.com/v1",
"description": "Override the Anthropic base URL."
}
}
}
},
"scripts": {
"build": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "^20.14.9",
"@types/vscode": "^1.90.0",
"typescript": "^5.5.4"
}
}