-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
173 lines (173 loc) · 4.54 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
{
"name": "ai-commit",
"displayName": "AI Commit",
"description": "Use Azure/OpenAI API to review Git changes, generate conventional commit messages that meet the conventions, simplify the commit process, and keep the commit conventions consistent.",
"version": "0.0.9",
"engines": {
"node": ">=16",
"vscode": "^1.77.0"
},
"categories": [
"Other"
],
"keywords": [
"Azure",
"OpenAI",
"ChatGPT",
"GitEmoji",
"Git Commit",
"Conventional Commits",
"Commitizen",
"Commit Message",
"Commit Message Generator",
"AI Commit",
"Auto Commit"
],
"publisher": "sitoi",
"repository": "https://github.com/sitoi/ai-commit",
"icon": "images/logo.png",
"activationEvents": [
"onCommand:ai-commit"
],
"contributes": {
"commands": [
{
"command": "extension.ai-commit",
"icon": {
"dark": "images/icon.svg",
"light": "images/icon.svg"
},
"title": "AI Commit"
},
{
"command": "ai-commit.showAvailableModels",
"title": "Show Available OpenAI Models"
}
],
"configuration": {
"properties": {
"ai-commit.AI_COMMIT_LANGUAGE": {
"default": "English",
"description": "Commit message language",
"enum": [
"Simplified Chinese",
"Traditional Chinese",
"Japanese",
"Korean",
"Czech",
"German",
"French",
"Italian",
"Dutch",
"Portuguese",
"Vietnamese",
"English",
"Spanish",
"Swedish",
"Russian",
"Bahasa",
"Polish",
"Turkish",
"Thai"
],
"enumDescriptions": [
"简体中文",
"繁體中文",
"にほんご",
"한국어",
"česky",
"Deutsch",
"française",
"italiano",
"Nederlands",
"português",
"tiếng Việt",
"english",
"español",
"Svenska",
"русский",
"bahasa",
"Polski",
"Turkish",
"ไทย"
],
"type": "string"
},
"ai-commit.AZURE_API_VERSION": {
"default": "",
"description": "AZURE API VERSION",
"type": "string"
},
"ai-commit.OPENAI_API_KEY": {
"default": "",
"description": "OpenAI API Key",
"type": "string"
},
"ai-commit.OPENAI_BASE_URL": {
"default": "",
"description": "OpenAI BASE URL",
"type": "string"
},
"ai-commit.OPENAI_MODEL": {
"default": "gpt-4o",
"description": "OpenAI MODEL, you can select a model from the list by running the 'Show Available OpenAI Models' command",
"type": "string"
},
"ai-commit.AI_COMMIT_SYSTEM_PROMPT": {
"type": "string",
"default": "",
"description": "Custom system prompt for generating commit messages"
}
},
"title": "AI Commit"
},
"menus": {
"scm/title": [
{
"command": "extension.ai-commit",
"group": "navigation"
}
]
}
},
"main": "./dist/extension.js",
"scripts": {
"build": "webpack --mode production --devtool hidden-source-map",
"compile": "webpack",
"compile-tests": "tsc -p . --outDir out",
"lint": "eslint src --ext ts",
"package": "npm vsce package --no-dependencies",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"publish": "npm vsce publish --no-dependencies",
"test": "node ./out/test/runTest.js",
"vscode:prepublish": "npm run build",
"watch": "webpack --watch",
"watch-tests": "tsc -p . -w --outDir out"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"openai": "^4.14.2",
"simple-git": "^3.17.0",
"fs-extra": "^11.0.4"
},
"resolutions": {
"@types/node": "16.x"
},
"license": "MIT"
}