-
Notifications
You must be signed in to change notification settings - Fork 144
/
package.json
359 lines (358 loc) · 11.8 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
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
{
"publisher": "OpenVINO",
"name": "openvino-code-completion",
"version": "0.1.0",
"displayName": "OpenVINO Code Completion",
"description": "VSCode extension for AI code completion with OpenVINO",
"icon": "media/logo.png",
"author": "",
"contributors": [],
"license": "https://github.com/openvinotoolkit/openvino_contrib/blob/master/LICENSE",
"homepage": "https://docs.openvino.ai/",
"repository": {
"type": "git",
"url": "https://github.com/openvinotoolkit/openvino_contrib"
},
"bugs": {
"url": "https://github.com/openvinotoolkit/openvino_contrib/issues"
},
"engines": {
"vscode": "^1.79.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"ai",
"autocomplete",
"intellicode",
"intellisense",
"method completion",
"python",
"snippets",
"openvino",
"openvinotoolkit"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension",
"scripts": {
"analyze:bundle": "webpack --env analyzeBundle",
"vscode:prepublish": "npm run clear-out && npm run build:side-panel && webpack --mode production",
"watch": "webpack --mode development --watch",
"build": "webpack --mode development",
"start:side-panel": "npm run dev --workspace side-panel-ui",
"build:side-panel": "npm run build --workspace side-panel-ui",
"prettier": "prettier --write src/",
"prettier:check": "prettier --check src/",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix",
"lint:side-panel": "npm run lint -w side-panel-ui",
"lint:all": "npm run lint && npm run lint --workspaces",
"test": "node ./out/test/runTest.js",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish",
"ovsx:publish": "ovsx publish",
"clear-out": "rimraf ./out"
},
"devDependencies": {
"@types/glob": "8.1.0",
"@types/mocha": "10.0.1",
"@types/mustache": "4.2.2",
"@types/node": "^16.17.0",
"@types/vscode": "^1.79.0",
"@types/webpack-bundle-analyzer": "4.6.0",
"@typescript-eslint/eslint-plugin": "6.2.1",
"@typescript-eslint/parser": "6.2.1",
"@vscode/test-electron": "2.3.4",
"@vscode/vsce": "2.20.0",
"copy-webpack-plugin": "11.0.0",
"eslint": "8.46.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-prettier": "8.10.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-import": "2.28.0",
"glob": "10.3.3",
"ncp": "2.0.0",
"ovsx": "0.8.2",
"prettier": "3.0.1",
"rimraf": "5.0.1",
"terser-webpack-plugin": "5.3.9",
"ts-loader": "9.4.4",
"typescript": "5.1.6",
"webpack": "5.88.2",
"webpack-bundle-analyzer": "4.9.0",
"webpack-cli": "5.1.4"
},
"dependencies": {
"lru-cache": "10.0.1",
"mustache": "4.2.0",
"node-fetch": "3.3.2"
},
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "openvino-code-sidebar",
"title": "OpenVINO Code",
"icon": "media/sidebar-icon.png"
}
]
},
"views": {
"openvino-code-sidebar": [
{
"id": "openvino-code-side-panel",
"name": "OpenVINO Code",
"type": "webview",
"contextualTitle": "OpenVINO Code"
}
]
},
"commands": [
{
"command": "openvinoCode.generateInlineCompletion",
"category": "OpenVINO Code",
"title": "Generate Inline Code Completion"
},
{
"command": "openvinoCode.generateInlineCompletionTab",
"category": "OpenVINO Code",
"title": "Generate Inline Code Completion In New Tab"
},
{
"command": "openvinoCode.generateDocstring",
"category": "OpenVINO Code",
"title": "Generate Docstring",
"when": "editorLangId == python"
},
{
"command": "openvinoCode.startServerNative",
"category": "OpenVINO Code",
"title": "Start Server Native"
},
{
"command": "openvinoCode.stopServerNative",
"category": "OpenVINO Code",
"title": "Stop Server Native"
},
{
"command": "openvinoCode.checkConnection",
"category": "OpenVINO Code",
"title": "Check Server Connection"
},
{
"command": "openvinoCode.openSettings",
"category": "OpenVINO Code",
"title": "Show OpenVINO Code Settings",
"icon": "$(gear)"
}
],
"menus": {
"view/title": [
{
"command": "openvinoCode.openSettings",
"when": "view == openvino-code-side-panel",
"group": "navigation"
}
],
"editor/context": [
{
"command": "openvino-code-completion.toggle",
"group": "openvino-code-completion",
"when": "editorTextFocus && config.openvino-code-completion.showCommandsInContextMenu"
},
{
"command": "openvinoCode.generateInlineCompletion",
"when": "editorFocus",
"group": "openvino-code-completion@1"
},
{
"command": "openvinoCode.generateInlineCompletionTab",
"when": "editorFocus",
"group": "openvino-code-completion@2"
}
]
},
"configuration": [
{
"title": "OpenVINO Code",
"properties": {
"openvinoCode.model": {
"order": 0,
"type": "string",
"default": "code-t5",
"enum": [
"code-t5",
"decicoder-1b-openvino",
"stablecode-completion",
"deepseek-coder",
"phi-2"
],
"description": "Which model to use for code generation."
},
"openvinoCode.device": {
"order": 1,
"type": "string",
"default": "CPU",
"enum":[
"CPU",
"GPU",
"NPU"
],
"description": "Which device to use for code generation"
},
"openvinoCode.serverUrl": {
"order": 1,
"type": "string",
"default": "http://127.0.0.1:8000",
"markdownDescription": "OpenVINO Code server URL with host and port (e.g. `http://127.0.0.1:8000`) where requests will be sent to."
},
"openvinoCode.serverRequestTimeout": {
"order": 2,
"type": "integer",
"exclusiveMinimum": 0,
"default": 30,
"markdownDescription": "Server request timeout in seconds after which request will be aborted. Constrains the number of generated tokens in non-streaming mode."
},
"openvinoCode.minNewTokens": {
"order": 3,
"type": "number",
"default": 1,
"description": "Minimum of new generated tokens."
},
"openvinoCode.maxNewTokens": {
"order": 3,
"type": "number",
"default": 100,
"description": "Maximum of new generated tokens."
},
"openvinoCode.streamInlineCompletion": {
"order": 3,
"type": "boolean",
"default": "false",
"description": "When checked inline complention will be generated in streaming mode"
},
"openvinoCode.fillInTheMiddleMode": {
"order": 4,
"type": "boolean",
"default": "false",
"description":
"When checked, text before (above) and after (below) the cursor will be used for completion generation. When unckecked, only text before (above) the cursor will be used."
},
"openvinoCode.startToken": {
"order": 7,
"type": "string",
"default": "< |fim_begin| >",
"description":
"String that is sent to server is in format: `{startToken}{text above cursor}{middleToken}{text below cursor if fillInTheMiddleMode=true}{endToken}`. Leave `startToken`, `middleToken`, or `endToken` empty if there is no special token for those placements."
},
"openvinoCode.middleToken": {
"order": 8,
"type": "string",
"default": "<|fim▁hole|>",
"description":
"String that is sent to server is in format: `{startToken}{text above cursor}{middleToken}{text below cursor if fillInTheMiddleMode=true}{endToken}`. Leave `startToken`, `middleToken`, or `endToken` empty if there is no special token for those placements."
},
"openvinoCode.endToken": {
"order": 9,
"type": "string",
"default": "<|fim▁end|>",
"description":
"String that is sent to server is in format: `{startToken}{text above cursor}{middleToken}{text below cursor if fillInTheMiddleMode=true}{endToken}`. Leave `startToken`, `middleToken`, or `endToken` empty if there is no special token for those placements."
},
"openvinoCode.stopToken": {
"order": 10,
"type": "string",
"default": "<|endoftext|>",
"description": "(Optional) Stop token."
},
"openvinoCode.temperature": {
"order": 4,
"type": "number",
"default": 0.2,
"description": "Non-zero value. The higher the value, the more diverse the code suggestions and the lower temperature emphasizes the most likely words."
},
"openvinoCode.topK": {
"order": 4,
"type": "integer",
"default": 10,
"description": "Select the next word during suggestion generation from the top K candidates. Improves diversity of generated suggestions."
},
"openvinoCode.topP": {
"order": 4,
"type": "number",
"default": 1,
"description": "A value between 0 and 1. Similar to Top K, it adjusts the number of candidate words based on their probability. Candidates will be added for selection until the cumulative probability exceeds P."
},
"openvinoCode.repetitionPenalty": {
"order": 4,
"type": "number",
"default": 1,
"description": "A non-negative value that discourages the repetition of the same words. 1.0 means no penalty."
},
"openvinoCode.quoteStyle": {
"order": 5,
"type": "string",
"default": "\"\"\"",
"enum": [
"\"\"\"",
"'''"
],
"description": "Style of quote used with generate docstring command"
},
"openvinoCode.docstringFormat": {
"order": 6,
"type": "string",
"default": "google_summary_only",
"enum": [
"google_summary_only",
"google",
"docblockr",
"sphinx",
"numpy"
],
"description": "Which docstring format to use."
}
}
}
],
"keybindings": [
{
"command": "openvinoCode.generateInlineCompletion",
"key": "ctrl+alt+space",
"mac": "ctrl+alt+space",
"when": "editorTextFocus"
},
{
"command": "openvinoCode.generateInlineCompletionTab",
"key": "ctrl+alt+shift+1",
"mac": "ctrl+alt+shift+1",
"when": "editorTextFocus"
},
{
"command": "openvinoCode.stopGeneration",
"key": "escape",
"mac": "escape",
"when": "openvinoCode.generating"
},
{
"command": "openvinoCode.acceptInlineCompletion",
"key": "tab",
"when": "inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
}
]
},
"workspaces": [
"side-panel-ui"
]
}