-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathpackage.json
427 lines (427 loc) · 11 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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
{
"name": "codify",
"displayName": "Refact",
"description": "Refact AI Assistant for Code Writing and Refactoring",
"publisher": "smallcloud",
"icon": "logo-small.png",
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"homepage": "https://refact.ai",
"author": "Small Magellanic Cloud AI <[email protected]> (https://refact.ai)",
"repository": {
"type": "git",
"url": "https://github.com/smallcloudai/refact-vscode"
},
"bugs": {
"url": "https://github.com/smallcloudai/refact-vscode/issues",
"email": "[email protected]"
},
"version": "5.1.2",
"dependencies": {
"@types/marked": "^4.0.8",
"@types/vscode": "^1.69.0",
"diff": "^7.0.0",
"difflib": "^0.2.4",
"fetch-h2": "^3.0.2",
"json5": "^2.2.3",
"marked": "^4.0.8",
"refact-chat-js": "~v2.0.1-alpha.14",
"uuid": "^9.0.1",
"vscode-languageclient": "^7.0.0"
},
"devDependencies": {
"@types/diff": "^5.2.2",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^20.4.2",
"@types/uuid": "^9.0.4",
"@types/vscode": "^1.69.0",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"@vscode/test-electron": "^2.1.5",
"esbuild": "^0.16.3",
"eslint": "^8.18.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"typescript": "^4.7.4"
},
"engines": {
"vscode": "^1.69.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other",
"Machine Learning",
"Education",
"Testing",
"Data Science"
],
"keywords": [
"refact",
"refact.ai",
"refactoring",
"copilot",
"tabnine",
"javascript",
"python",
"typescript",
"php",
"autocomplete",
"ruby",
"java",
"go",
"golang",
"bash",
"kotlin",
"html",
"scss",
"vue",
"react",
"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",
"chat",
"chatgpt",
"code completion",
"documentation",
"refactor",
"llm",
"test",
"security",
"coding"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Refact Assistant",
"properties": {
"refactai.addressURL": {
"type": "string",
"description": "For Enterprise, put there your company's server address. Your admin should have emailed that to you.\nFor self-hosted, use something like http://127.0.0.1:8008/\nFor inference in public cloud, use \"Refact\" or \"HF\".",
"default": "",
"order": 0
},
"refactai.infurl": {
"type": "string",
"deprecationMessage": "The new field is called addressURL. It's about the same, but it has special values like \"HF\" and if it's empty, makes the plugin do nothing, which is better for Enterprise use case to prevent leaks.",
"order": 0
},
"refactai.apiKey": {
"type": "string",
"default": "",
"description": "Secret API Key. It's used to authenticate your requests.",
"order": 1
},
"codify.apiKey": {
"type": "string",
"deprecationMessage": "Use refactai.apiKey instead.",
"order": 1
},
"refactai.insecureSSL": {
"type": "boolean",
"description": "Allow insecure server connections when using SSL, ignore certificate verification errors. Allows you to use self-signed certificates.",
"default": false,
"order": 2
},
"refactai.submitChatWithShiftEnter": {
"type": "boolean",
"description": "Send chat messages with Shift+Enter instead of Enter.",
"default": false,
"order": 3
},
"refactai.completionMaxTokens": {
"type": "number",
"markdownDescription": "Maximum number of tokens to generate for code completion. Leave 0 if not sure.",
"default": 0,
"order": 3
},
"refactai.codeCompletionModel": {
"type": "string",
"description": "Which model to use, for example \"starcoder2/3b\". Leave blank if not sure.",
"default": "",
"order": 4
},
"refactai.codeLens": {
"type": "boolean",
"description": "Enable inline annotations that provide chat actions directly within the code editor.",
"default": true,
"order": 5
},
"refactai.codeLensDebug": {
"type": "boolean",
"description": "See what the parser sees, useful for debugging the parser.",
"deprecationMessage": "debug only",
"default": false,
"order": 6
},
"refactai.pauseCompletion": {
"type": "boolean",
"description": "Pause automatic code suggestions. Manual activation still works.",
"default": false,
"order": 7
},
"refactai.ast": {
"type": "boolean",
"markdownDescription": "Enable context-aware code completion and chat, adds defintion() and references() functions for a chat model, and @definition, @references commands for you to add context manually.\n\nRAG works better with a larger context, available in the [Pro plan](https://refact.ai/pricing/?utm_source=vscode&utm_medium=settings&utm_campaign=plugin) and [for companies](https://refact.ai/enterprise/?utm_source=vscode&utm_medium=settings&utm_campaign=plugin).",
"default": true,
"order": 8
},
"refactai.astFileLimit": {
"type": "number",
"description": "Limit the number of files for AST to process, to avoid memory issues. Increase if you have a large project and sufficient memory.",
"default": 35000,
"order": 9
},
"refactai.vecdb": {
"type": "boolean",
"markdownDescription": "Enable vector database. This adds the ability for a chat model to perform a semantic search in your codebase, and the @workspace command for you to add context manually.\n\nRAG performs better with a larger context, available in the [Pro plan](https://refact.ai/pricing/?utm_source=vscode&utm_medium=settings&utm_campaign=plugin) and [for companies](https://refact.ai/enterprise/?utm_source=vscode&utm_medium=settings&utm_campaign=plugin).",
"default": true,
"order": 11
},
"refactai.vecdbFileLimit": {
"type": "number",
"description": "Limit the number of files for VecDB to process. Increase if you have a lot of files.",
"default": 15000,
"order": 12
},
"refactai.xDebug": {
"type": "number|undefined",
"description": "Set this to debug the Rust binary in console. If set, the plugin will not attempt to start its own, it will connect HTTP on the port 8001, LSP on the port 8002 instead.",
"order": 13
}
}
},
"properties": [],
"commands": [
{
"command": "refactaicmd.sendChatToSidebar",
"title": "Open in Sidebar",
"enablement": "refactaicmd.openSidebarButtonEnabled"
},
{
"command": "refactaicmd.closeInlineChat",
"title": "Close"
},
{
"command": "refactaicmd.activateToolboxDeprecated",
"title": "Activate Toolbox (deprecated)",
"category": "Refact.ai"
},
{
"command": "refactaicmd.activateToolbox",
"title": "Activate (opens chat)",
"category": "Refact.ai"
},
{
"command": "refactaicmd.login",
"title": "Login",
"category": "Refact.ai"
},
{
"command": "refactaicmd.completionManual",
"title": "Manual Completion Trigger",
"category": "Refact.ai"
},
{
"command": "refactaicmd.callChat",
"title": "Chat",
"key": "F1",
"category": "Refact.ai"
},
{
"command": "refactaicmd.openSettings",
"title": "Settings Page",
"category": "Refact.ai"
},
{
"command": "refactaicmd.openPromptCustomizationPage",
"title": "Open Prompt Customization Page",
"category": "Refact.ai"
}
],
"menus": {
"editor/context": [
{
"group": "z_commands",
"command": "refactaicmd.callChat"
}
]
},
"keybindings": [
{
"command": "refactaicmd.activateToolboxDeprecated",
"key": "alt+t"
},
{
"command": "refactaicmd.completionManual",
"key": "alt+space"
},
{
"command": "refactaicmd.esc",
"key": "escape",
"when": "refactcx.runEsc"
},
{
"command": "refactaicmd.tab",
"key": "tab",
"when": "refactcx.runTab"
},
{
"command": "refactaicmd.callChat",
"key": "F1"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "refact-toolbox-pane",
"title": "Refact",
"icon": "$(codify-logo)"
}
]
},
"views": {
"refact-toolbox-pane": [
{
"type": "webview",
"id": "refactai-toolbox",
"name": ""
}
]
},
"icons": {
"codify-logo": {
"description": "codify logo",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e899"
}
},
"codify-bookmark-unchecked": {
"description": "codify bookmark unchecked",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e801"
}
},
"codify-bookmark-checked": {
"description": "codify bookmark checked",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e800"
}
},
"codify-like": {
"description": "codify like",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e808"
}
},
"codify-life-checked": {
"description": "codify like checked",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e807"
}
},
"codify-coin": {
"description": "codify coin",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e802"
}
},
"codify-chat": {
"description": "codify chat",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e804"
}
},
"codify-reload": {
"description": "codify reload",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e809"
}
},
"codify-settings": {
"description": "codify settings",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e806"
}
},
"codify-link": {
"description": "codify link",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e80A"
}
},
"codify-send": {
"description": "codify send",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e803"
}
},
"codify-logout": {
"description": "codify logout",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e812"
}
},
"refact-icon-privacy": {
"description": "refacticon privacy",
"default": {
"fontPath": "./assets/codify.woff",
"fontCharacter": "\\e811"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
}
}