-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
167 lines (167 loc) · 4.09 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
{
"name": "commitollama",
"displayName": "commitollama",
"description": "AI Commits with ollama",
"publisher": "Commitollama",
"version": "1.8.0",
"repository": {
"type": "git",
"url": "https://github.com/anjerodev/commitollama.git"
},
"engines": {
"vscode": "^1.93.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": "Model to use for the commit creations.",
"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 description.",
"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. Empty for default ollama endpoint.",
"order": 4
},
"commitollama.custom.model": {
"type": "string",
"description": "You can use a non-listed model always that you have it pulled from ollama. Note: It only will be selected when model is set to \"Custom\".",
"order": 5
},
"commitollama.custom.summaryPrompt": {
"type": "string",
"description": "Custom prompt for summarize the git diff.",
"order": 6
},
"commitollama.custom.summaryTemperature": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Custom temperature for summarize the git diff. (greater = more creative)",
"default": 0.8,
"order": 7
},
"commitollama.custom.commitPrompt": {
"type": "string",
"description": "Custom prompt for commit message.",
"order": 8
},
"commitollama.custom.commitTemperature": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Custom temperature for commit message. (greater = more creative)",
"default": 0.2,
"order": 9
}
}
}
]
},
"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"
},
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@types/mocha": "10.0.8",
"@types/node": "22.7.4",
"@types/sinon": "17.0.3",
"@types/vscode": "1.93.0",
"@vscode/test-cli": "0.0.10",
"@vscode/test-electron": "2.4.1",
"esbuild": "0.24.0",
"mocha": "10.7.3",
"sinon": "19.0.2",
"typescript": "5.6.2"
},
"dependencies": {
"ollama": "0.5.9"
},
"extensionDependencies": [
"vscode.git"
]
}