-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
77 lines (77 loc) · 2.82 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
{
"name": "chatgpt-commit",
"displayName": "chatgpt-commit",
"description": "Generate commit message with ChatGPT api",
"version": "0.0.2",
"publisher": "Nicolas Brobst",
"engines": {
"vscode": "^1.76.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "chatgpt-commit.commitChatGpt",
"title": "ChatGPT Commit : Generate a commit message"
},
{
"command": "chatgpt-commit.setProjectKeywords",
"title": "ChatGPT Commit : Set project keywords"
},
{
"command": "chatgpt-commit.setApiKey",
"title": "ChatGPT Commit : Set API key"
}
],
"configuration": {
"type": "object",
"title": "ChatGPT Commit",
"properties": {
"chatgpt-commit.chatGptApikey": {
"type": "string",
"default": "",
"description": "ChatGPT API key"
},
"chatgpt-commit.keywords": {
"type": "string",
"default": "",
"description": "List of keywords to use in commit messages"
},
"chatgpt-commit.systemPrompt": {
"type": "string",
"default": "As a professional web developer, require project keywords, subject, Git diff as input and generate a commit message using following template\\n[type]: [Concise commit message]\\n\\n[Bullet list commit summary]\\n\\nTypes: fix feat build chore docs style refactor",
"description": "The system prompt provided to ChatGPT api",
"multiline": true
},
"chatgpt-commit.userPrompt": {
"type": "string",
"default": "Keywords : [keywords]\\nSubject : [subject]\\nDiff :\\n[diff]",
"description": "The user prompt provided to ChatGPT api. You can use [keywords] [subject] [diff] variables.",
"multiline": true
}
}
}
},
"scripts": {
"package": "vsce package -o dist/chatgpt-commit.vsix --yarn --allow-missing-repository",
"install": "code --install-extension dist/chatgpt-commit.vsix --force "
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.76.0",
"@vscode/test-electron": "^2.2.3",
"eslint": "^8.34.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"openai": "^3.2.1"
}
}