-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
92 lines (92 loc) · 2.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
{
"name": "ai-rename",
"displayName": "AI Rename",
"author": {
"name": "Paco"
},
"publisher": "paco0x",
"description": "Naming is one of the hardest things in programming, this extension helps to rename symbols in your code by using AI",
"categories": [
"Formatters"
],
"version": "0.2.2",
"repository": {
"url": "https://github.com/paco0x/vscode-ai-rename",
"type": "git"
},
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.75.0"
},
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "ai-rename.rename",
"title": "AI Rename: Rename",
"when": "activeEditor && editorTextFocus && !editorReadonly"
}
],
"configuration": {
"title": "AI Rename",
"properties": {
"aiRename.openAiApiKey": {
"displayName": "API key",
"type": "string",
"description": "the API key of OpenAI"
},
"aiRename.maxSuggestionsNum": {
"displayName": "Max Suggestions Number",
"type": "number",
"default": 3,
"description": "Max number of naming suggestions generated by openAI, it can quickly consume your token quota if it's too high"
},
"aiRename.maxNameLength": {
"displayName": "Max Name Length",
"type": "number",
"default": 30,
"description": "Max length of generated name"
},
"aiRename.openAiTemperature": {
"displayName": "Temperature param in openAI requests",
"type": "number",
"default": 1,
"description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic."
},
"aiRename.maxCharactersNum": {
"displayName": "Max Number Characters of Document",
"type": "number",
"default": 5000,
"description": "Maximum number of characters of the document when calling the command `ai-rename.rename`, don't set it too high since it'll send all the document to openAI"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/node-fetch": "^2.6.2",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@vscode/test-electron": "^2.2.2",
"eslint": "^8.33.0",
"glob": "^8.1.0",
"mocha": "^10.1.0",
"prettier": "^2.8.4",
"typescript": "^4.9.4"
},
"dependencies": {
"node-fetch": "2.6.7"
}
}