forked from ThePush/azurecodegpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
251 lines (251 loc) · 9.21 KB
/
package.json
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
{
"name": "aoaicodegpt",
"displayName": "aoaicodegpt: write and improve code using AI, in commercial and govcloud.",
"description": "Use GPT3 or ChatGPT right inside the IDE to enhance and automate your coding with AI-powered assistance",
"version": "1.0.0",
"publisher": "BartonMathis",
"icon": "resources/extensionIcon.png",
"license": "MIT",
"repository": {
"url": "https://github.com/rbmathis/aoaicodegpt"
},
"engines": {
"vscode": "^1.73.0"
},
"categories": [
"Other",
"Programming Languages",
"Snippets",
"Azure"
],
"keywords": [
"chatgpt",
"openai",
"gpt3",
"copilot",
"ai",
"explain",
"find bugs",
"explain ",
"refactor",
"azure",
"govcloud"
],
"main": "./dist/extension.js",
"activationEvents": ["onStartupFinished"],
"contributes": {
"commands": [
{
"command": "aoaicodegpt.ask",
"title": "Ask aoaicodegpt"
},
{
"command": "aoaicodegpt.explain",
"title": "aoaicodegpt: Explain this"
},
{
"command": "aoaicodegpt.refactor",
"title": "aoaicodegpt: Refactor this"
},
{
"command": "aoaicodegpt.findProblems",
"title": "aoaicodegpt: Find problems"
},
{
"command": "aoaicodegpt.optimize",
"title": "aoaicodegpt: Optimize this"
},
{
"command": "aoaicodegpt.documentation",
"title": "aoaicodegpt: Write documentation"
}
],
"menus": {
"editor/context": [
{
"command": "aoaicodegpt.ask",
"when": "editorTextFocus",
"group": "aoaicodegpt-menu-group@1"
},
{
"command": "aoaicodegpt.explain",
"when": "editorHasSelection",
"group": "aoaicodegpt-menu-group@2"
},
{
"command": "aoaicodegpt.refactor",
"when": "editorHasSelection",
"group": "aoaicodegpt-menu-group@3"
},
{
"command": "aoaicodegpt.findProblems",
"when": "editorHasSelection",
"group": "aoaicodegpt-menu-group@4"
},
{
"command": "aoaicodegpt.optimize",
"when": "editorHasSelection",
"group": "aoaicodegpt-menu-group@5"
},
{
"command": "aoaicodegpt.documentation",
"when": "editorHasSelection",
"group": "aoaicodegpt-menu-group@6"
}
],
"commandPalette": [
{
"command": "aoaicodegpt.ask"
},
{
"command": "aoaicodegpt.explain",
"when": "editorHasSelection"
},
{
"command": "aoaicodegpt.refactor",
"when": "editorHasSelection"
},
{
"command": "aoaicodegpt.findProblems",
"when": "editorHasSelection"
},
{
"command": "aoaicodegpt.optimize",
"when": "editorHasSelection"
},
{
"command": "aoaicodegpt.documentation",
"when": "editorHasSelection"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "aoaicodegpt",
"title": "aoaicodegpt",
"icon": "resources/icon.png"
}
]
},
"views": {
"aoaicodegpt": [
{
"type": "webview",
"id": "aoaicodegpt.chatView",
"name": "aoaicodegpt"
}
]
},
"configuration": {
"title": "aoaicodegpt",
"type": "object",
"properties": {
"aoaicodegpt.azureCloud": {
"type": "string",
"default": "AzureCloud",
"enum": [
"AzureCloud",
"AzureUSGovernment"
],
"description": "The Azure cloud to use for Authorization and KeyVault. Ex: 'AzureCloud' or 'AzureUSGovernment'",
"order": 0
},
"aoaicodegpt.keyvaultName": {
"type": "string",
"default": "",
"description": "The name (not Uri) of the Azure KeyVault that contains the secrets for [AOAIDeployment], [AOAIKey], [AOAIEndpoint]",
"order": 1
},
"aoaicodegpt.maxTokens": {
"type": "number",
"default": 1024,
"description": "Maximum number of tokens inside response per request",
"order": 2
},
"aoaicodegpt.temperature": {
"type": "number",
"default": 0.5,
"description": "Temperature to use for the GPT3 (between 0 (conservative) and 1 (creative))",
"order": 3
},
"aoaicodegpt.pasteOnClick": {
"type": "boolean",
"default": true,
"description": "Paste the code from a codeblock inside the response into the editor when you click on it",
"order": 4
},
"aoaicodegpt.promptPrefix.explain": {
"type": "string",
"default": "Explain what this code does: ",
"description": "The prompt prefix used for explaining the selected code",
"order": 5
},
"aoaicodegpt.promptPrefix.refactor": {
"type": "string",
"default": "Refactor this code and then explain what's changed: ",
"description": "The prompt prefix used for refactoring the selected code",
"order": 6
},
"aoaicodegpt.promptPrefix.findProblems": {
"type": "string",
"default": "Find problems with the following code, fix them and explain what was wrong (Do not change anything else, if there are no problems say so): ",
"description": "The prompt prefix used for finding problems in the selected code",
"order": 7
},
"aoaicodegpt.promptPrefix.optimize": {
"type": "string",
"default": "Optimize the following code if there is anything to improve, if not say so: ",
"description": "The prompt prefix used for optimizing the selected code",
"order": 8
},
"aoaicodegpt.promptPrefix.documentation": {
"type": "string",
"default": "Write documentation for the following code: ",
"description": "The prompt prefix used for writing documentation for the selected code",
"order": 9
},
"aoaicodegpt.selectedInsideCodeblock": {
"type": "boolean",
"default": true,
"description": "Append selected code as a codeblock (```...code...```) instead of plain text",
"order": 10
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"update-package-lock": "npm install --package-lock-only"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.73.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"ts-loader": "^9.4.1",
"typescript": "^4.9.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"@azure/identity": "^4.4.1",
"@azure/keyvault-secrets": "^4.8.0",
"@azure/openai": "^1.0.0-beta.10",
"openai": "^3.1.0"
}
}