-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
235 lines (235 loc) · 6.39 KB
/
Copy pathpackage.json
File metadata and controls
235 lines (235 loc) · 6.39 KB
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"name": "commitollama",
"displayName": "commitollama",
"description": "AI Commits with ollama",
"publisher": "Commitollama",
"version": "3.0.1",
"repository": {
"type": "git",
"url": "https://github.com/anjerodev/commitollama.git"
},
"engines": {
"vscode": "^1.120.0"
},
"categories": [
"Machine Learning",
"Programming Languages"
],
"icon": "icon.jpg",
"license": "MIT",
"packageManager": "pnpm@9.15.9",
"keywords": [
"code",
"assistant",
"ai",
"llm",
"commits",
"ollama"
],
"main": "./out/extension.js",
"activationEvents": [],
"vsce": {
"dependencies": false
},
"contributes": {
"commands": [
{
"command": "commitollama.createCommit",
"title": "Run Commitollama",
"icon": "$(sparkle)"
},
{
"command": "commitollama.switchModel",
"title": "Commitollama: Switch Model",
"icon": "$(arrow-swap)"
}
],
"menus": {
"scm/title": [
{
"when": "scmProvider == git",
"command": "commitollama.createCommit",
"group": "navigation"
},
{
"when": "scmProvider == git",
"command": "commitollama.switchModel",
"group": "navigation"
}
]
},
"configuration": [
{
"type": "object",
"title": "Commitollama",
"properties": {
"commitollama.model": {
"type": "string",
"description": "Ollama model for generating commit messages (e.g. llama3.2:latest). Set automatically on first use.",
"default": "llama3.2:latest",
"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.useLowerCase": {
"type": "boolean",
"description": "Enable or disable lowercase commit messages.",
"default": false,
"order": 3
},
"commitollama.language": {
"type": "string",
"enum": [
"Arabic",
"Chinese",
"English",
"French",
"German",
"Italian",
"Japanese",
"Korean",
"Portuguese",
"Russian",
"Spanish",
"Custom"
],
"description": "Language for commit messages.",
"default": "English",
"order": 4
},
"commitollama.promptTemperature": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Custom temperature for generating the commit message. (Higher number = more creative)",
"default": 0.2,
"order": 7
},
"commitollama.commitTemplate": {
"type": "string",
"description": "Custom template for commit messages.",
"default": "{{type}} {{emoji}}: {{message}}",
"order": 8
},
"commitollama.custom.language": {
"type": "string",
"description": "Allows you to specify any language for the commit messages. **Note:** Ignored if `commitollama.language` is not set to \"Custom\".",
"order": 6
},
"commitollama.custom.emojis": {
"type": "object",
"description": "Map commit types to emojis. Only used if emojis are enabled.",
"order": 9
},
"commitollama.custom.endpoint": {
"type": "string",
"description": "Ollama Server Endpoint. Leave empty to use the default ollama endpoint.",
"order": 10
},
"commitollama.custom.prompt": {
"type": "string",
"description": "Custom prompt to generate the commit message with.",
"order": 11
},
"commitollama.custom.typeRules": {
"type": "string",
"description": "Custom rules for commit message types.",
"order": 12
},
"commitollama.custom.commitMessageRules": {
"type": "string",
"description": "Custom rules for commit messages.",
"order": 13
},
"commitollama.custom.descriptionPrompt": {
"type": "string",
"description": "Custom prompt to generate the commit description with.",
"order": 14
},
"commitollama.custom.requestHeaders": {
"type": "object",
"description": "Custom request headers to send with the Ollama request. Useful for authentication or custom headers.",
"order": 15
},
"commitollama.background.enabled": {
"type": "boolean",
"description": "Enable background pre-generation of commit summaries while you work (on save and on a periodic scan).",
"default": true,
"order": 16
},
"commitollama.background.interval": {
"type": "number",
"description": "Interval in seconds to scan for changes in the background (if enabled).",
"default": 60,
"order": 17
},
"commitollama.background.onSave": {
"type": "boolean",
"description": "Trigger background generation when a file is saved.",
"default": true,
"order": 18
}
}
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run build",
"build": "node scripts/build.mjs && tsc -p ./",
"typecheck": "tsc -p ./",
"watch": "node scripts/build.mjs --watch",
"lint": "pnpm exec biome lint ./src",
"lint:fix": "pnpm exec biome check --write ./src",
"format": "pnpm exec biome format ./src",
"format-fix": "pnpm exec biome check --write ./src",
"test": "vscode-test",
"publish": "pnpm run build && pnpm exec vsce publish --no-dependencies",
"publish:major": "pnpm run build && pnpm exec vsce publish major --no-dependencies",
"publish:minor": "pnpm run build && pnpm exec vsce publish minor --no-dependencies",
"publish:patch": "pnpm run build && pnpm exec vsce publish patch --no-dependencies",
"package": "pnpm exec vsce package --no-dependencies"
},
"devDependencies": {
"@biomejs/biome": "2.5.0",
"@tanstack/ai": "0.29.0",
"@tanstack/ai-ollama": "0.8.2",
"@types/mocha": "10.0.10",
"@types/node": "25.9.3",
"@types/sinon": "21.0.1",
"@types/vscode": "1.120.0",
"@vscode/test-cli": "0.0.12",
"@vscode/test-electron": "3.0.0",
"@vscode/vsce": "3.9.2",
"diff": "9.0.0",
"esbuild": "0.28.1",
"mocha": "11.7.6",
"serialize-javascript": "7.0.5",
"sinon": "22.0.0",
"typescript": "6.0.3",
"zod": "4.4.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"@vscode/vsce-sign",
"esbuild",
"keytar"
],
"overrides": {
"serialize-javascript": "7.0.5",
"diff": "8.0.3"
}
},
"extensionDependencies": [
"vscode.git"
]
}