-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
107 lines (107 loc) · 3.36 KB
/
Copy pathpackage.json
File metadata and controls
107 lines (107 loc) · 3.36 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
{
"name": "ai-commit-assistant",
"displayName": "AI Commit Assistant",
"publisher": "OlivierFch",
"version": "0.0.1",
"description": "Generate clear, consistent commit messages from staged changes using AI.",
"engines": { "vscode": "^1.93.0" },
"categories": ["SCM Providers", "Other"],
"activationEvents": [
"onSCM"
],
"main": "./dist/main.js",
"contributes": {
"commands": [
{
"command": "aiCommit.generate",
"title": "AI Commit: Generate from staged changes",
"when": "scmProvider == git"
},
{
"command": "aiCommit.refine",
"title": "AI Commit: Refine current message",
"when": "scmProvider == git"
},
{
"command": "aiCommit.refine",
"title": "AI Commit: Refine current message",
"when": "scmProvider == git"
},
{
"command": "aiCommit.setApiKey",
"title": "AI Commit Assistant: Set OpenAI API Key"
},
{
"command": "aiCommit.clearApiKey",
"title": "AI Commit Assistant: Clear OpenAI API Key"
}
],
"configuration": {
"title": "AI Commit Assistant",
"properties": {
"aiCommit.api.provider": {
"type": "string",
"default": "openai",
"enum": ["openai", "azure", "http"],
"description": "Backend provider (openai, azure, or generic HTTP-compatible)."
},
"aiCommit.api.model": {
"type": "string",
"default": "gpt-4o-mini",
"description": "Model name (e.g., gpt-4o-mini, gpt-4o)."
},
"aiCommit.api.endpoint": {
"type": "string",
"default": "https://api.openai.com/v1/chat/completions",
"description": "Full HTTP endpoint for chat completions (override for Azure/proxy/Ollama gateway)."
},
"aiCommit.api.key": {
"type": "string",
"default": "",
"markdownDescription": "API key. **Recommended**: leave empty"
},
"aiCommit.prompt.language": {
"type": "string",
"default": "en",
"description": "Commit message language (en, fr, ...)."
},
"aiCommit.prompt.conventional": {
"type": "boolean",
"default": true,
"description": "Enforce Conventional Commits format."
},
"aiCommit.prompt.emoji": {
"type": "boolean",
"default": false,
"description": "Prefix with an emoji (e.g., ✨ feat:)."
},
"aiCommit.prompt.maxDiffChars": {
"type": "number",
"default": 8000,
"description": "Max diff size sent to the model (to avoid token overflows)."
},
"aiCommit.prompt.type": {
"type": "string",
"default": "auto",
"enum": ["auto", "feat", "fix", "docs", "style", "refactor", "test", "chore", "perf", "build", "ci"],
"description": "Commit type. 'auto' lets the AI decide."
},
"aiCommit.security.redactSecrets": {
"type": "boolean",
"default": true,
"description": "Attempt to redact potential secrets in the diff before sending."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -w -p ./"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/vscode": "^1.93.0",
"typescript": "^5.6.0"
},
"dependencies": {}
}