-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
221 lines (221 loc) · 6.27 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
{
"name": "pro-commit",
"displayName": "ProCommit",
"description": "📝 A Customizable VS Code extension for AI-generated commit messages.",
"version": "2.0.6",
"homepage": "https://prplmoe.me",
"bugs": "https://github.com/koimoee/ProCommit/issues",
"repository": {
"type": "git",
"url": "https://github.com/koimoee/ProCommit"
},
"license": "MIT",
"engines": {
"vscode": "^1.76.0"
},
"publisher": "Kochan",
"categories": [
"Other",
"SCM Providers"
],
"keywords": [
"Commit",
"AI",
"ChatGPT",
"GPT",
"git",
"repository"
],
"icon": "assets/images/icon256.png",
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "procommit.generateAICommit",
"title": "Generate ProCommit",
"category": "ProCommit",
"icon": {
"dark": "assets/icons/commit-dark.svg",
"light": "assets/icons/commit-light.svg"
}
},
{
"command": "procommit.setOpenAIApiKey",
"title": "Set API key",
"category": "ProCommit"
},
{
"command": "procommit.setGenerator",
"title": "Set Generator",
"category": "ProCommit",
"arguments": [
{
"name": "generator",
"description": "Generator used to create commit messages",
"type": "string",
"enum": [
"ChatGPT",
"Custom"
]
}
]
},
{
"command": "procommit.setLanguage",
"title": "Set Language",
"category": "ProCommit",
"arguments": [
{
"name": "language",
"description": "Language used for commit messages",
"type": "string",
"enum": [
"English",
"Japanese",
"Korean",
"German",
"Russian"
]
}
]
},
{
"command": "procommit.setMessageApproveMethod",
"title": "Set Message Approve Method",
"category": "ProCommit"
},
{
"command": "procommit.setModelVersion",
"title": "Set Model Version",
"category": "ProCommit"
},
{
"command": "procommit.setCustomEndpoint",
"title": "Set Custom Endpoint",
"category": "ProCommit"
},
{
"command": "procommit.setTemperature",
"title": "Set Temperature",
"category": "ProCommit"
},
{
"command": "procommit.setMaxTokens",
"title": "Set Max Tokens",
"category": "ProCommit"
}
],
"menus": {
"scm/title": [
{
"command": "procommit.generateAICommit",
"when": "scmProvider == git",
"group": "navigation"
}
]
},
"configuration": {
"title": "ProCommit",
"properties": {
"procommit.general.generator": {
"type": "string",
"enum": [
"ChatGPT",
"Custom"
],
"markdownEnumDescriptions": [
"Use ChatGPT to generate commit messages",
"Use a custom generator to create commit messages"
],
"default": "ChatGPT",
"description": "Generator used to create commit messages"
},
"procommit.general.language": {
"type": "string",
"enum": [
"English",
"Japanese",
"Korean",
"German",
"Russian"
],
"default": "English",
"description": "Language used for commit messages"
},
"procommit.general.showEmoji": {
"type": "boolean",
"default": false,
"description": "Include emojis in commit messages"
},
"procommit.general.messageApproveMethod": {
"type": "string",
"enum": [
"Quick pick",
"Message file"
],
"default": "Quick pick",
"description": "Method used to approve generated commit messages"
},
"procommit.general.useMultipleResults": {
"type": "boolean",
"default": false,
"description": "Allow using multiple results for commit messages"
},
"procommit.openAI.apiKey": {
"type": "string",
"default": "",
"description": "Needed for generating AI commit messages"
},
"procommit.openAI.modelVersion": {
"type": "string",
"default": "gpt-4o-mini",
"description": "Model Version used for generating AI commit messages"
},
"procommit.openAI.customEndpoint": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "Custom endpoint URL"
},
"procommit.openAI.temperature": {
"type": "number",
"default": 0.2,
"description": "Controls randomness. Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive"
},
"procommit.openAI.maxTokens": {
"type": "number",
"default": 196,
"description": "The maximum number of tokens to generate. Requests can use up to 2048 tokens shared between prompt and completion"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"build": "npm run esbuild-base -- --sourcemap",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"lint": "eslint src --ext ts",
"package:vsix": "vsce package",
"package:out": "vsce package -o packages",
"package:publish": "vsce publish"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/node": "22.x",
"@types/vscode": "^1.76.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.1.0",
"esbuild": "^0.24.2",
"eslint": "^8.36.0",
"glob": "^11.0.0",
"typescript": "^5.7.3"
},
"dependencies": {
"execa": "^9.5.2",
"openai": "^3.3.0",
"zod": "^3.24.1"
}
}