-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
199 lines (199 loc) · 5.9 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
{
"name": "gptbrushes",
"author": "Thomas Krause",
"publisher": "AkzenteIT",
"displayName": "GPT4 Brushes",
"description": "Custom Code Brushes using GPT-4",
"version": "1.2.0",
"repository": {
"type": "git",
"url": "https://github.com/aKzenT/gptbrushes/"
},
"icon": "assets/icon.png",
"engines": {
"vscode": "^1.76.0"
},
"license": "MIT",
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.gptbrushes"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "gptbrushes",
"title": "Code Brushes",
"icon": "assets/icon.svg"
}
]
},
"views": {
"gptbrushes": [
{
"id": "gptbrushes.brushList",
"name": "Brush List"
}
]
},
"commands": [
{
"command": "gptbrushes.updateApiKey",
"title": "GPT-4 Brushes: Update OpenAI API Key",
"category": "GPT-4 Brushes"
}
],
"configuration": {
"title": "GPT Brushes",
"properties": {
"gptbrushes.openaiBasePath": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "OpenAI API base path to use for all requests"
},
"gptbrushes.brushes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the brush"
},
"icon": {
"type": "string",
"description": "Brush icon to show, can either be a ThemeIcon/codicon Id or an Emoji"
},
"type": {
"type": "string",
"enum": [
"gpt-4",
"javascript"
],
"default": "gpt-4",
"description": "Provider of the brush. Either GPT-4 or a Node.js script."
},
"prompt": {
"type": "string",
"description": "Prompt to be sent to the provider for this brush"
},
"variables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the variable"
},
"defaultValue": {
"type": "string",
"description": "Default value of the variable"
},
"description": {
"type": "string",
"description": "Description of the variable"
}
},
"required": [
"name",
"description"
]
},
"description": "Variables to be used in the prompt"
}
},
"required": [
"name",
"icon",
"prompt"
]
},
"default": [
{
"name": "Add Comments",
"icon": "comment",
"prompt": "Please add code comments to the code."
},
{
"name": "Fix Bugs",
"icon": "bug",
"prompt": "Identify and fix bugs in the code provided by the user. Answer directly with the fixed code. Do not use a markdown code block. You can add a code comment to explain the fix."
},
{
"name": "Add Types",
"icon": "symbol-type-parameter",
"prompt": "Please add type annotations to the code provided by the user."
},
{
"name": "Translate to German",
"icon": "symbol-text",
"prompt": "Translate the user text to German."
},
{
"name": "Translate to English",
"icon": "symbol-text",
"prompt": "Translate the user text to English."
},
{
"name": "Refactor Code",
"icon": "tools",
"prompt": "Improve the user code by refactoring it."
},
{
"name": "Custom Brush",
"icon": "question",
"prompt": "{{prompt}}",
"variables": [
{
"name": "prompt",
"description": "Please describe the brush."
}
]
}
],
"description": "The available brushes, including their names, icons, and prompts"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm 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": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.76.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"axios": "^1.3.5",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "^2.8.7",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"openai": "^3.2.1"
}
}