Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
458 lines (458 loc) · 14.9 KB
/
Copy pathpackage.json
File metadata and controls
458 lines (458 loc) · 14.9 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
{
"name": "nuvo-commit",
"displayName": "Nuvo Commit",
"description": "Write commits, not novels. Local-first AI commit message generator.",
"version": "1.4.0",
"publisher": "nuvocode",
"icon": "images/logo.png",
"engines": {
"vscode": "^1.90.0",
"node": ">=18"
},
"categories": [
"SCM Providers",
"Machine Learning"
],
"keywords": [
"git",
"commit",
"ai",
"ollama",
"openai",
"anthropic",
"local-first",
"multi-provider",
"copilot",
"conventional commits",
"commit message",
"pull request",
"llm",
"gitmoji"
],
"galleryBanner": {
"color": "#1e1e2e",
"theme": "dark"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "nuvoCommit.generate",
"title": "Nuvo Commit: Generate Commit Message",
"icon": "$(sparkle)"
},
{
"command": "nuvoCommit.generatePullRequestContent",
"title": "Nuvo Commit: Generate Pull Request Content",
"icon": "$(git-pull-request-create)"
},
{
"command": "nuvoCommit.settings",
"title": "Nuvo Commit: Settings"
},
{
"command": "nuvoCommit.selectModel",
"title": "Nuvo Commit: Select Model",
"icon": "$(symbol-boolean)"
},
{
"command": "nuvoCommit.setApiKey",
"title": "Nuvo Commit: Set API Key"
},
{
"command": "nuvoCommit.checkSetup",
"title": "Nuvo Commit: Check Setup"
}
],
"keybindings": [
{
"command": "nuvoCommit.generate",
"key": "ctrl+alt+g",
"mac": "cmd+alt+g",
"when": "focusedView == workbench.scm"
}
],
"menus": {
"scm/title": [
{
"command": "nuvoCommit.generate",
"when": "scmProvider == git",
"group": "navigation"
},
{
"command": "nuvoCommit.generatePullRequestContent",
"when": "scmProvider == git",
"group": "navigation"
}
]
},
"configuration": [
{
"id": "nuvoCommit.general",
"title": "General",
"order": 1,
"properties": {
"nuvoCommit.autoAccept": {
"type": "boolean",
"default": true,
"order": 1,
"description": "Skip the approval dialog and directly fill the commit message input. Disable to see the approval dialog."
},
"nuvoCommit.autoCommit": {
"type": "boolean",
"default": false,
"order": 2,
"description": "Run `git commit -m <message>` automatically after the user accepts the suggestion."
},
"nuvoCommit.includeBody": {
"type": "boolean",
"default": false,
"order": 3,
"description": "Generate a commit body after the Conventional Commit header. Disabled by default."
},
"nuvoCommit.maxDiffChars": {
"type": "number",
"default": 12000,
"minimum": 1000,
"order": 4,
"description": "Maximum diff characters sent to the model. Diffs above this are truncated."
},
"nuvoCommit.language": {
"type": "string",
"default": "English",
"order": 5,
"examples": [
"English",
"Turkish",
"German",
"Spanish",
"French",
"Japanese"
],
"description": "Language for generated commit messages and pull request content. Conventional Commit types (feat, fix, ...) stay in English."
},
"nuvoCommit.ticketId": {
"type": "string",
"enum": [
"off",
"footer",
"prefix"
],
"enumDescriptions": [
"Do not add a ticket ID.",
"Add a `Refs: ABC-123` footer.",
"Add the ticket ID before the subject, e.g. `feat: ABC-123 add login`."
],
"default": "off",
"order": 6,
"description": "Add the ticket ID found in the branch name (e.g. `feat/ABC-123-login`) to the commit message."
},
"nuvoCommit.ticketPattern": {
"type": "string",
"default": "[A-Z][A-Z0-9]+-\\d+",
"order": 7,
"markdownDescription": "Regular expression that finds the ticket ID in the branch name. The whole match is used. Default matches Jira-style keys like `ABC-123`."
},
"nuvoCommit.suggestions": {
"type": "number",
"default": 1,
"minimum": 1,
"maximum": 5,
"order": 8,
"description": "Number of commit messages to generate. With more than one, the suggestions are shown in a list to pick from, even when Auto Accept is on."
},
"nuvoCommit.style": {
"type": "string",
"enum": [
"conventional",
"gitmoji",
"plain"
],
"enumDescriptions": [
"Conventional Commits, e.g. `feat(auth): add login`.",
"gitmoji, e.g. `✨ auth: add login`.",
"No type prefix, e.g. `Add login`."
],
"default": "conventional",
"order": 9,
"description": "Format of the commit message header."
},
"nuvoCommit.gitmoji": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"order": 10,
"markdownDescription": "Emoji per commit type for the `gitmoji` style, e.g. `{ \"feat\": \"🚀\", \"breaking\": \"🔥\" }`. Overrides the gitmoji.dev defaults; `breaking` is used for `!` headers."
}
}
},
{
"id": "nuvoCommit.pullrequests",
"title": "Pull Requests",
"order": 2,
"properties": {
"nuvoCommit.pullRequestBaseBranch": {
"type": "string",
"default": "",
"order": 1,
"description": "Base branch used when generating pull request content. Leave empty to auto-detect origin/HEAD, then main, then master."
},
"nuvoCommit.pullRequestOpenCreateView": {
"type": "boolean",
"default": true,
"order": 2,
"description": "Open the GitHub Pull Requests create view after accepting generated pull request content."
},
"nuvoCommit.pullRequestIncludeCommitList": {
"type": "boolean",
"default": true,
"order": 3,
"description": "Include branch commit summaries in the prompt when generating pull request content."
}
}
},
{
"id": "nuvoCommit.provider",
"title": "Provider",
"order": 3,
"properties": {
"nuvoCommit.provider": {
"type": "string",
"enum": [
"ollama",
"openai",
"anthropic",
"vscode"
],
"enumDescriptions": [
"Ollama - Local AI provider for running models locally",
"OpenAI - Cloud API provider (requires API key)",
"Anthropic - Cloud API provider (requires API key)",
"VS Code - Language models already available in VS Code, such as GitHub Copilot (no API key)"
],
"default": "ollama",
"order": 1,
"description": "AI provider used to generate commit messages."
},
"nuvoCommit.requestTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"order": 2,
"description": "Maximum time in milliseconds to wait for a provider response before aborting the request."
}
}
},
{
"id": "nuvoCommit.ollama",
"title": "Ollama",
"order": 4,
"properties": {
"nuvoCommit.ollama.endpoint": {
"type": "string",
"default": "http://localhost:11434/api/generate",
"order": 1,
"description": "Ollama API endpoint URL."
},
"nuvoCommit.ollama.model": {
"type": "string",
"default": "qwen3:4b",
"order": 2,
"examples": [
"qwen3:4b",
"llama3.2:3b",
"mistral:7b",
"codellama:7b",
"deepseek-coder:6.7b"
],
"description": "Ollama model identifier."
}
}
},
{
"id": "nuvoCommit.openai",
"title": "OpenAI",
"order": 5,
"properties": {
"nuvoCommit.openai.endpoint": {
"type": "string",
"default": "",
"order": 1,
"description": "OpenAI API endpoint URL. Leave empty to use the default OpenAI endpoint."
},
"nuvoCommit.openai.model": {
"type": "string",
"default": "gpt-4o-mini",
"order": 2,
"examples": [
"gpt-4o",
"gpt-4o-mini",
"local-model"
],
"description": "OpenAI model identifier."
}
}
},
{
"id": "nuvoCommit.anthropic",
"title": "Anthropic",
"order": 6,
"properties": {
"nuvoCommit.anthropic.endpoint": {
"type": "string",
"default": "",
"order": 1,
"description": "Anthropic API endpoint URL. Leave empty to use the default Anthropic endpoint."
},
"nuvoCommit.anthropic.model": {
"type": "string",
"default": "claude-haiku-4-5",
"order": 2,
"examples": [
"claude-haiku-4-5",
"claude-sonnet-5-5"
],
"description": "Anthropic model identifier."
}
}
},
{
"id": "nuvoCommit.vscode",
"title": "VS Code",
"order": 7,
"properties": {
"nuvoCommit.vscode.model": {
"type": "string",
"default": "",
"order": 1,
"description": "VS Code language model id (e.g. from GitHub Copilot). Leave empty to use the first available model. Run 'Nuvo Commit: Select Model' to pick one."
}
}
},
{
"id": "nuvoCommit.deprecated",
"title": "Deprecated",
"order": 8,
"properties": {
"nuvoCommit.apiKey": {
"type": "string",
"default": "",
"order": 1,
"markdownDeprecationMessage": "**Deprecated:** API keys are now stored securely. Run the `Nuvo Commit: Set API Key` command instead. Any value here is migrated automatically and then cleared.",
"description": "Deprecated. Use the 'Nuvo Commit: Set API Key' command instead."
},
"nuvoCommit.endpoint": {
"type": "string",
"default": "http://localhost:11434/api/generate",
"order": 2,
"markdownDeprecationMessage": "**Deprecated:** Use provider-specific endpoint settings such as `nuvoCommit.ollama.endpoint`, `nuvoCommit.openai.endpoint`, or `nuvoCommit.anthropic.endpoint`.",
"description": "Deprecated fallback endpoint setting."
},
"nuvoCommit.model": {
"type": "string",
"default": "qwen3:4b",
"order": 3,
"examples": [
"qwen3:4b",
"llama3.2:3b",
"mistral:7b",
"codellama:7b",
"deepseek-coder:6.7b",
"gpt-4o",
"gpt-4o-mini",
"claude-haiku-4-5",
"claude-sonnet-5-5"
],
"markdownDeprecationMessage": "**Deprecated:** Use provider-specific model settings such as `nuvoCommit.ollama.model`, `nuvoCommit.openai.model`, or `nuvoCommit.anthropic.model`.",
"description": "Deprecated fallback model setting."
}
}
}
],
"walkthroughs": [
{
"id": "gettingStarted",
"title": "Get Started with Nuvo Commit",
"description": "Pick an AI provider, check that it works, and generate your first commit message.",
"steps": [
{
"id": "chooseProvider",
"title": "Choose a provider",
"description": "Run models locally with Ollama, or use OpenAI or Anthropic in the cloud.\n[Choose Provider](command:nuvoCommit.settings)",
"media": {
"markdown": "walkthrough/provider.md"
},
"completionEvents": [
"onCommand:nuvoCommit.settings",
"onSettingChanged:nuvoCommit.provider"
]
},
{
"id": "checkSetup",
"title": "Check your setup",
"description": "Send a small sample to the provider to make sure everything works. If not, you'll be pointed to the fix.\n[Check Setup](command:nuvoCommit.checkSetup)",
"media": {
"markdown": "walkthrough/check.md"
},
"completionEvents": [
"onContext:nuvoCommit.setupVerified"
]
},
{
"id": "generate",
"title": "Generate your first commit message",
"description": "Stage some changes and click ✨ in the Source Control view.\n[Open Source Control](command:workbench.view.scm)",
"media": {
"markdown": "walkthrough/generate.md"
},
"completionEvents": [
"onCommand:nuvoCommit.generate"
]
}
]
}
]
},
"scripts": {
"clean": "node -e \"require('fs').rmSync('out',{recursive:true,force:true})\"",
"compile": "npm run clean && tsc -p ./",
"watch": "tsc -watch -p ./",
"vscode:prepublish": "npm run compile",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "vscode-test",
"test:unit": "jest",
"test:coverage": "jest --coverage"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.0",
"@types/vscode": "~1.90.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"jest": "^29.7.0",
"prettier": "^3.3.0",
"ts-jest": "^29.1.2",
"typescript": "^5.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/nuvocode/nuvo-commit.git"
},
"homepage": "https://github.com/nuvocode/nuvo-commit#readme",
"bugs": {
"url": "https://github.com/nuvocode/nuvo-commit/issues"
},
"license": "MIT"
}