forked from huggingface/llm-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
295 lines (295 loc) · 9.45 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
{
"publisher": "HuggingFace",
"name": "huggingface-vscode",
"version": "0.0.30",
"displayName": "HF Code Autocomplete",
"description": "AI Autocomplete for OSS code-gen models",
"icon": "small_logo.png",
"author": "Mishig Davaadorj <mishig@hf.co> (https://hf.co/)",
"license": "License at https://github.com/huggingface/huggingface-vscode",
"galleryBanner": {
"color": "#100f11",
"theme": "dark"
},
"badges": [
{
"url": "https://img.shields.io/github/stars/huggingface/huggingface-vscode?style=social",
"description": "Star huggingface-vscode on Github",
"href": "https://github.com/huggingface/huggingface-vscode"
},
{
"url": "https://img.shields.io/twitter/follow/huggingface?style=social",
"description": "Follow Huggingface on Twitter",
"href": "https://twitter.com/huggingface"
}
],
"homepage": "https://hf.co",
"repository": {
"type": "git",
"url": "https://github.com/huggingface/huggingface-vscode"
},
"bugs": {
"url": "https://github.com/huggingface/huggingface-vscode/issues",
"email": "mishig@hf.co"
},
"engines": {
"vscode": "^1.50.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"javascript",
"python",
"typescript",
"php",
"autocomplete",
"ruby",
"java",
"go",
"golang",
"bash",
"kotlin",
"html",
"css",
"ocaml",
"perl",
"rust",
"julia",
"lua",
"haskell",
"c",
"cpp",
"c++",
"csharp",
"c#",
"react",
"swift",
"objective-c",
"objectivec",
"ai",
"method completion",
"intellicode",
"intellisense",
"snippets",
"kite",
"nodejs",
"node",
"node.js",
"jupyter"
],
"activationEvents": [
"*"
],
"main": "./out/extension",
"scripts": {
"analyze:bundle": "webpack --env analyzeBundle",
"vscode:prepublish": "yarn --frozen-lockfile && yarn clear-out && webpack --mode production",
"compile": "webpack --mode development --watch",
"build": "webpack --mode development",
"test:copyassets": "ncp ./src/test/fixture ./out/test/fixture/",
"prettier": "prettier --write src/",
"prettier:check": "prettier --check src/",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix",
"test:prepare": "yarn clear-out && tsc && yarn test:copyassets",
"test": "yarn test:prepare && node ./out/test/runTest.js",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish",
"ovsx:publish": "ovsx publish",
"teamcity:test": "tsc && node ./out/test/runTest.js",
"clear-out": "rimraf ./out"
},
"peerDependencies": {
"vscode": "^1.1.37"
},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/debounce": "^1.2.1",
"@types/diff": "^5.0.2",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/mock-fs": "^4.13.0",
"@types/ncp": "^2.0.4",
"@types/node": "^12.0.10",
"@types/node-fetch": "^2.6.3",
"@types/rimraf": "^3.0.0",
"@types/semver": "^7.3.4",
"@types/sinon": "^9.0.11",
"@types/tmp": "^0.2.0",
"@types/vscode": "^1.50.0",
"@types/yauzl": "^2.9.1",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^4.18.0",
"assert": "^2.0.0",
"chai": "^4.2.0",
"chai-shallow-deep-equal": "^1.4.6",
"deep-object-diff": "^1.1.0",
"eslint": "^8.28.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.2.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"glob": "^7.1.6",
"husky": "^5.1.2",
"lint-staged": "^13.0.4",
"mocha": "^10.1.0",
"mocha-teamcity-reporter": "^3.0.0",
"mock-fs": "^4.13.0",
"ncp": "^2.0.0",
"ovsx": "^0.5.2",
"prettier": "2.2.1",
"rimraf": "^3.0.2",
"sinon": "^10.0.0",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.1",
"ts-mockito": "^2.6.1",
"typescript": "^4.2.2",
"vsce": "^1.93.0",
"vscode-test": "^1.6.1",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"axios": "^0.21.0",
"debounce": "^1.2.1",
"diff": "^5.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"extract-zip": "^2.0.1",
"https-proxy-agent": "^5.0.0",
"node-fetch": "^3.3.0",
"semver": "^7.3.2",
"systeminformation": "^5.6.10",
"tmp": "^0.2.1",
"vscode-extension-telemetry": "^0.1.7"
},
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"commands": [
{
"command": "HuggingFaceCode::setApiToken",
"title": "Hugging Face Code: Set API token"
},
{
"command": "tabnine.attribution",
"title": "Hugging Face Code: Show Code Attribution"
},
{
"command": "HuggingFaceCode::openGithub",
"title": "Hugging Face Code: Open project GitHub"
}
],
"configuration": [
{
"title": "Hugging Face Code",
"properties": {
"HuggingFaceCode.modelIdOrEndpoint": {
"type": "string",
"default": "bigcode/starcoder",
"description": "Supply huggingface model id (ex: `bigcode/starcoder`) or custom endpoint (ex: https://bigcode-large-xl.eu.ngrok.io/generate) to which request will be sent to. When huggingface model id is supplied, hugging face API inference will be used."
},
"HuggingFaceCode.isFillMode": {
"type": "boolean",
"default": true,
"description": "Whether to send to inference server: codes that are on top of cursor only (isFillMode=false) OR codes that are both above & below the cursor (isFillMode=true)"
},
"HuggingFaceCode.startToken": {
"type": "string",
"default": "<fim_prefix>",
"description": "String that is sent to server is in format: {startToken}{code above cursor}{middleToken}{code below cursor if isFillMode=true}{endToken}. Leave startToken, middleToken, or endToken empty if there is no special token for those placements."
},
"HuggingFaceCode.middleToken": {
"type": "string",
"default": "<fim_middle>",
"description": "String that is sent to server is in format: {startToken}{code above cursor}{middleToken}{code below cursor if isFillMode=true}{endToken}. Leave startToken, middleToken, or endToken empty if there is no special token for those placements."
},
"HuggingFaceCode.endToken": {
"type": "string",
"default": "<fim_suffix>",
"description": "String that is sent to server is in format: {startToken}{code above cursor}{middleToken}{code below cursor if isFillMode=true}{endToken}. Leave startToken, middleToken, or endToken empty if there is no special token for those placements."
},
"HuggingFaceCode.temperature": {
"type": "float",
"default": 0.2,
"description": "Sampling temperature"
},
"HuggingFaceCode.stopToken": {
"type": "string",
"default": "<|endoftext|>",
"description": "(Optional) Stop token"
},
"HuggingFaceCode.attributionWindowSize": {
"type": "integer",
"default": 250,
"description": "Number of characters to scan for code attribution"
}
}
}
],
"keybindings": [
{
"key": "tab",
"command": "tabnine.accept-inline-suggestion",
"when": "tabnine.snippet-suggestion:enabled && tabnine.in-inline-suggestions || tabnine.inline-suggestion:enabled && tabnine.in-inline-suggestions"
},
{
"key": "tab",
"command": "tabnine.tab-override",
"when": "tabnine.tab-override && suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
},
{
"key": "tab",
"command": "editor.action.inlineSuggest.commit",
"when": "tabnine.tab-override && inlineSuggestionVisible && !editorTabMovesFocus"
},
{
"key": "cmd+shift+a",
"command": "tabnine.attribution"
},
{
"key": "ctrl+z",
"mac": "cmd+z",
"command": "tabnine.escape-inline-suggestion",
"when": "tabnine.snippet-suggestion:enabled && tabnine.in-inline-suggestions || tabnine.inline-suggestion:enabled && tabnine.in-inline-suggestions"
},
{
"key": "alt+]",
"command": "tabnine.next-inline-suggestion",
"when": "tabnine.snippet-suggestion:enabled && tabnine.in-inline-suggestions || tabnine.inline-suggestion:enabled && tabnine.in-inline-suggestions"
},
{
"key": "alt+[",
"command": "tabnine.prev-inline-suggestion",
"when": "tabnine.snippet-suggestion:enabled && tabnine.in-inline-suggestions || tabnine.inline-suggestion:enabled && tabnine.in-inline-suggestions"
},
{
"key": "alt+.",
"mac": "ctrl+.",
"command": "tabnine.snippet-suggestion",
"when": "tabnine.snippet-suggestion:enabled"
}
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,css,md}": "prettier --write src/"
},
"__metadata": {
"id": "75da638c-c45a-44ea-aa3b-8570a3559810",
"publisherDisplayName": "TabNine",
"publisherId": "1924b661-7c19-45d9-9800-edeb32848fd7",
"isPreReleaseVersion": false
}
}