-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
216 lines (216 loc) · 5.96 KB
/
package.json
File metadata and controls
216 lines (216 loc) · 5.96 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
{
"name": "claude-git-commit",
"displayName": "Claude Git Commit",
"description": "AI-powered git commit message generator using Claude AI",
"version": "1.0.18",
"publisher": "ZakhariiMelnyk",
"icon": "icon.png",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"SCM Providers",
"Other"
],
"keywords": [
"git",
"commit",
"ai",
"claude",
"conventional-commits",
"anthropic"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "claude-commit.generate",
"title": "Generate Commit Message",
"category": "Claude Commit",
"icon": "$(sparkle)"
},
{
"command": "claude-commit.generateWithCustomPrompt",
"title": "Generate Commit Message with Custom Prompt",
"category": "Claude Commit"
}
],
"menus": {
"scm/title": [
{
"command": "claude-commit.generate",
"group": "navigation",
"when": "scmProvider == git"
}
]
},
"configuration": {
"title": "Claude Commit",
"properties": {
"claudeCommit.cliPath": {
"type": "string",
"default": "",
"description": "Path to Claude Code CLI executable (leave empty for auto-detection)",
"order": 1
},
"claudeCommit.apiKey": {
"type": "string",
"default": "",
"description": "Anthropic API key for Claude AI (optional if using Claude Code CLI)",
"order": 2
},
"claudeCommit.preferredMethod": {
"type": "string",
"enum": [
"auto",
"cli",
"api"
],
"default": "auto",
"description": "Preferred method for generating commits: auto (try CLI first, then API), cli (Claude Code CLI only), or api (Anthropic API only)",
"order": 3
},
"claudeCommit.model": {
"type": "string",
"enum": [
"haiku",
"sonnet",
"opus"
],
"default": "haiku",
"enumDescriptions": [
"Claude Haiku - Fast and cost-effective",
"Claude Sonnet - Balanced performance",
"Claude Opus - Most capable"
],
"description": "Claude model to use for commit generation",
"order": 4
},
"claudeCommit.language": {
"type": "string",
"enum": [
"en",
"ua",
"zh"
],
"default": "en",
"enumDescriptions": [
"English",
"Ukrainian",
"Chinese"
],
"description": "Language for commit messages",
"order": 5
},
"claudeCommit.multiLineCommit": {
"type": "boolean",
"default": false,
"description": "Generate detailed multi-line commits with body and footer (conventional commits extended format)",
"order": 6
},
"claudeCommit.diffSource": {
"type": "string",
"enum": [
"staged",
"all",
"auto"
],
"default": "auto",
"enumDescriptions": [
"Only use staged changes",
"Use all changes (staged + unstaged)",
"Use staged changes if available, otherwise use all changes"
],
"description": "Which changes to use for generating commit messages",
"order": 7
},
"claudeCommit.claudeCodeManaged": {
"type": "boolean",
"default": false,
"markdownDescription": "Claude Code managed mode: Let Claude Code's haiku model generate commit messages with minimal intervention (only language hint provided). **Only works when preferredMethod is 'cli'**",
"order": 8
},
"claudeCommit.keepCoAuthoredBy": {
"type": "boolean",
"default": false,
"markdownDescription": "Keep Co-Authored-By signature in commit message. **Only works in Claude Code managed mode**",
"order": 9
},
"claudeCommit.messageAutoCloseSeconds": {
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 60,
"description": "Auto-close timeout for the success message in seconds. Set to 0 to disable auto-close.",
"order": 10
},
"claudeCommit.privacyMode": {
"type": "boolean",
"default": false,
"markdownDescription": "Privacy mode: Restrict temporary prompt file permissions to owner-only (0600). When disabled, uses default permissions (0644). **Note: This option only takes effect on Linux/macOS. On Windows, file permissions are managed by the OS and this setting is ignored.**",
"order": 11
},
"claudeCommit.commitStyle": {
"type": "string",
"enum": [
"conventional",
"prefix",
"default",
"custom"
],
"default": "conventional",
"enumDescriptions": [
"Conventional Commits with scope - feat(auth): added user login",
"Type prefix only - feat: added user login",
"Simple description - added user login",
"Custom template using {diff} and {stats} variables"
],
"markdownDescription": "Commit message style format. Choose 'custom' to use your own prompt template.",
"order": 12
},
"claudeCommit.customPromptTemplate": {
"type": "string",
"default": "",
"markdownDescription": "Custom prompt template. Use `{diff}` for diff content and `{stats}` for change statistics. Only used when commitStyle is set to 'custom'. Example: `Generate a commit message for:\n\n{stats}\n\n{diff}`",
"editPresentation": "multilineText",
"order": 13
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"package": "webpack --mode production --devtool false",
"compile": "webpack",
"watch": "webpack --watch",
"lint": "biome check src",
"lint:fix": "biome check --write src",
"format": "biome format --write src"
},
"devDependencies": {
"@biomejs/biome": "2.4.11",
"@types/node": "^18.0.0",
"@types/vscode": "^1.75.0",
"@types/webpack": "^5.28.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.0",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4"
},
"optionalDependencies": {
"@anthropic-ai/sdk": "^0.68.0"
},
"repository": {
"type": "git",
"url": "https://github.com/uaoa/claude-commit-vscode.git"
},
"author": {
"name": "Zakharii Melnyk",
"url": "https://github.com/uaoa"
},
"license": "MIT"
}