-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
104 lines (104 loc) · 2.7 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
{
"name": "commit-message-helper",
"displayName": "Commit Message Helper",
"description": "Generates commit messages using ChatGPT",
"version": "0.0.4",
"publisher": "iduane",
"icon": "LOGO.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/iduane/commit-message-helper.git"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./src/extension.js",
"contributes": {
"commands": [
{
"command": "extension.generateCommitMessageSCM",
"title": "Generate Commit Message (SCM)",
"icon": {
"dark": "resources/commit-dark.svg",
"light": "resources/commit-light.svg"
}
}
],
"menus": {
"scm/title": [
{
"command": "extension.generateCommitMessageSCM",
"when": "scmProvider == git || scmProvider == svn",
"group": "navigation",
"icon": "$(git-commit)"
}
]
},
"configuration": {
"title": "Commit Message Helper",
"properties": {
"commitMessageHelper.apiKey": {
"type": "string",
"default": "",
"description": "API key for OpenAI"
},
"commitMessageHelper.customPromptTemplatePath": {
"type": "string",
"default": "",
"description": "Path to a custom prompt template file"
},
"commitMessageHelper.baseUrl": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "Base URL for OpenAI API"
},
"commitMessageHelper.model": {
"type": "string",
"default": "gpt-4o-mini",
"description": "OpenAI model to use for generating commit messages"
},
"commitMessageHelper.tokenLimit": {
"type": "number",
"default": 8000,
"description": "Maximum number of tokens allowed in the commit message before asking for confirmation"
},
"commitMessageHelper.language": {
"type": "string",
"default": "en",
"description": "Language for the commit message"
}
}
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/vscode": "^1.60.0",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"typescript": "^4.3.2",
"vscode-test": "^1.5.2"
},
"dependencies": {
"openai": "^4.61.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
}
}