-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
180 lines (180 loc) · 4.61 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
{
"name": "commitollama",
"displayName": "commitollama",
"description": "AI Commits with ollama",
"publisher": "Commitollama",
"version": "1.10.0",
"repository": {
"type": "git",
"url": "https://github.com/anjerodev/commitollama.git"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Machine Learning",
"Programming Languages"
],
"icon": "icon.jpg",
"license": "MIT",
"keywords": [
"code",
"assistant",
"ai",
"llm",
"commits",
"ollama"
],
"main": "./out/extension.js",
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "commitollama.createCommit",
"title": "Run Commitollama",
"icon": "$(sparkle)"
},
{
"command": "commitollama.runOllamaPull",
"title": "Pull model from ollama"
}
],
"menus": {
"scm/title": [
{
"when": "scmProvider == git",
"command": "commitollama.createCommit",
"group": "navigation"
}
]
},
"configuration": [
{
"type": "object",
"title": "Commitollama",
"properties": {
"commitollama.model": {
"type": "string",
"enum": [
"Llama",
"Codegemma",
"Codellama",
"Mistral",
"Custom"
],
"description": "Specify the desired model for generating commit messages.",
"default": "Llama",
"order": 0
},
"commitollama.useEmojis": {
"type": "boolean",
"description": "Enable or disable the use of emojis in commit messages.",
"default": false,
"order": 1
},
"commitollama.useDescription": {
"type": "boolean",
"description": "Enable or disable the use of commit descriptions.",
"default": false,
"order": 2
},
"commitollama.commitEmojis": {
"type": "object",
"description": "Map commit types to emojis. Only used if emojis are enabled.",
"default": {
"feat": "✨",
"fix": "🐛",
"docs": "📝",
"style": "💎",
"refactor": "♻️",
"test": "🧪",
"chore": "📦",
"revert": "⏪"
},
"order": 3
},
"commitollama.custom.endpoint": {
"type": "string",
"description": "Ollama Server Endpoint. Leave empty to use the default ollama endpoint.",
"order": 4
},
"commitollama.custom.model": {
"type": "string",
"description": "Allows you to specify any model name. The model has to be downloaded and available on your Ollama instance. **Note:** Ignored if `commitollama.model` is not set to \"Custom\".",
"order": 5
},
"commitollama.custom.summaryPrompt": {
"type": "string",
"description": "Custom prompt to summarize the git diff.",
"order": 6
},
"commitollama.custom.summaryTemperature": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Custom temperature to summarize the git diff. (Higher number = more creative)",
"default": 0.8,
"order": 7
},
"commitollama.custom.commitPrompt": {
"type": "string",
"description": "Custom prompt to generate the commit message with.",
"order": 8
},
"commitollama.custom.commitTemperature": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Custom temperature for generating the commit message. (Higher number = more creative)",
"default": 0.2,
"order": 9
},
"commitollama.useLowerCase": {
"type": "boolean",
"description": "Enable or disable lowercase commit messages.",
"default": false,
"order": 10
},
"commitollama.commitTemplate": {
"type": "string",
"description": "Custom template for commit messages.",
"default": "{{type}} {{emoji}}: {{message}}",
"order": 11
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "npx @biomejs/biome lint ./src",
"format": "npx @biomejs/biome format ./src",
"format-fix": "npx @biomejs/biome format ./src --fix",
"test": "vscode-test",
"publish": "npm run build && vsce publish",
"publish:minor": "npm run build && vsce publish minor",
"publish:patch": "npm run build && vsce publish patch",
"package": "vsce package"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/mocha": "10.0.10",
"@types/node": "22.13.5",
"@types/sinon": "17.0.4",
"@types/vscode": "^1.90.0",
"@vscode/test-cli": "0.0.10",
"@vscode/test-electron": "2.4.1",
"esbuild": "0.25.0",
"mocha": "11.1.0",
"sinon": "19.0.2",
"typescript": "5.7.3"
},
"dependencies": {
"ollama": "0.5.13"
},
"extensionDependencies": [
"vscode.git"
]
}