-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
111 lines (111 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "smartcommentai",
"displayName": "SmartCommentAI",
"description": "Generate commentaries automatically directly to your code",
"icon": "./icon.png",
"publisher": "CodeSacha",
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/SBigz/CommentsAI/blob/main/README.md",
"bugs": {
"url": "https://github.com/SBigz/CommentsAI/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/SBigz/commentsai"
},
"version": "0.7.0",
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"activationEvents": [],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "commentsai.commentCode",
"title": "Comment Code",
"category": "SmartCommentAI",
"icon": {
"light": "./icon.png",
"dark": "./icon.png"
}
}
],
"menus": {
"editor/title": [
{
"command": "commentsai.commentCode",
"group": "navigation",
"when": "editorTextFocus"
}
]
},
"configuration": [
{
"title": "SmartCommentAI",
"properties": {
"commentsai.apiKey": {
"type": "string",
"default": "",
"description": "API key for OpenAI API."
},
"commentsai.model": {
"type": "string",
"default": "text-davinci-003",
"description": "Model to use for generating comments.",
"enum": [
"text-davinci-002",
"text-davinci-003"
]
},
"commentsai.language": {
"type": "string",
"default": "english",
"description": "Language to use for generating comments."
},
"commentsai.maxTokens": {
"type": "number",
"default": 200,
"description": "Maximum number of tokens for the generated comment."
},
"commentsai.temperature": {
"type": "number",
"default": 0.5,
"description": "Creativity of the model (lower value means more consistent responses)."
},
"commentsai.commentColor": {
"type": "string",
"default": "#00FF00",
"description": "Color of the generated comments.",
"scope": "resource"
}
}
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "yarn run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"openai": "^3.2.1"
}
}