-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 6.95 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) · 6.95 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
{
"name": "copilot-commit",
"displayName": "Copilot Commit",
"description": "Generate structured, semantic commit messages using GitHub Copilot's language models",
"version": "0.0.2",
"publisher": "bizzkoot",
"license": "MIT",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/bizzkoot/copilot-commit"
},
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"SCM Providers",
"AI",
"Other"
],
"keywords": [
"copilot",
"commit",
"git",
"ai",
"commit message",
"conventional commits"
],
"extensionDependencies": [
"vscode.git"
],
"activationEvents": [
"workspaceContains:.git"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "copilotCommit.generateCommitMessage",
"title": "Generate Commit Message",
"category": "Copilot Commit",
"icon": "$(hubot)"
},
{
"command": "copilotCommit.selectModel",
"title": "Select Model",
"category": "Copilot Commit"
},
{
"command": "copilotCommit.selectStyle",
"title": "Select Commit Style",
"category": "Copilot Commit"
}
],
"menus": {
"scm/title": [
{
"command": "copilotCommit.generateCommitMessage",
"group": "navigation",
"when": "scmProvider == git"
}
]
},
"keybindings": [
{
"command": "copilotCommit.generateCommitMessage",
"key": "ctrl+shift+g g",
"mac": "cmd+shift+g g"
}
],
"configuration": {
"title": "Copilot Commit",
"properties": {
"copilotCommit.defaultModel": {
"type": "string",
"default": "auto",
"markdownDescription": "Default Copilot model family to use for commit generation. Set to `auto` to use the first available model.\n\n[✨ Select a model interactively](command:copilotCommit.selectModel)",
"order": 1
},
"copilotCommit.useCurrentChatModel": {
"type": "boolean",
"default": true,
"description": "Use the current model selected in Copilot Chat. When enabled, this overrides the defaultModel setting.",
"order": 2
},
"copilotCommit.defaultStyle": {
"type": "string",
"default": "conventional",
"enum": [
"conventional",
"simple",
"oneline",
"github",
"emoji",
"detailed",
"gitmoji",
"angular"
],
"enumItemLabels": [
"Conventional Commits",
"Simple Descriptive",
"One-Line Summary",
"GitHub-Style",
"Semantic Emoji",
"Detailed/Verbose",
"Gitmoji (Rich Emoji)",
"Angular Style"
],
"markdownEnumDescriptions": [
"Structured format: `<type>(<scope>): <summary>` with optional body\n\n---\n\n**Example output:**\n\n> feat(auth): add login endpoint with JWT validation\n>\n> \\- Implement token refresh flow\n>\n> \\- Add password hashing with bcrypt",
"Clear, human-readable description without strict conventions\n\n---\n\n**Example output:**\n\n> Add login endpoint with JWT token validation\n>\n> Implements secure authentication using JSON Web Tokens with refresh support.",
"Single concise line, perfect for small changes\n\n---\n\n**Example output:**\n\n> add login endpoint with jwt validation",
"Summary with optional issue/PR references and footers\n\n---\n\n**Example output:**\n\n> Add login endpoint with JWT validation\n>\n> Implement secure auth flow with token refresh and session management.\n>\n> Closes #42",
"Conventional commits with emoji prefixes for visual scanning\n\n---\n\n**Example output:**\n\n> ✨ feat(auth): add login endpoint with JWT validation\n>\n> \\- Implement token refresh flow\n>\n> \\- Add password hashing with bcrypt",
"Multi-paragraph with full context, reasoning, and impact analysis\n\n---\n\n**Example output:**\n\n> Add login endpoint\n>\n> The app lacked user authentication, blocking all protected routes from functioning.\n>\n> Adds a /login POST endpoint using JWT with 15-minute expiry and refresh tokens stored in httpOnly cookies.\n>\n> Impacts: middleware auth check, user session table, rate limiting.",
"Full gitmoji spec with 70+ emojis mapped to change types\n\n---\n\n**Example output:**\n\n> ✨ add login endpoint with jwt validation\n>\n> \\- Add JWT token generation and refresh\n>\n> \\- Add bcrypt password hashing",
"Angular commit convention with BREAKING CHANGE and footer support\n\n---\n\n**Example output:**\n\n> feat(auth): add login endpoint\n>\n> Implement JWT-based authentication with refresh tokens and password hashing using bcrypt.\n>\n> Closes #42"
],
"description": "Default commit message style template",
"order": 3
},
"copilotCommit.customPrompts": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name for this prompt template"
},
"template": {
"type": "string",
"description": "The prompt template. Include 'Diff:' at the end where the diff will be appended."
},
"description": {
"type": "string",
"description": "Short description of this style"
}
},
"required": [
"name",
"template"
]
},
"description": "Custom prompt templates for commit messages. Add your own styles here.",
"order": 4
},
"copilotCommit.showModelInStatusBar": {
"type": "boolean",
"default": true,
"description": "Show the current model indicator in the status bar",
"order": 5
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src/",
"format": "prettier --write 'src/**/*.ts'",
"test": "tsc -p src/test/tsconfig.test.json && node scripts/setup-test-mock.js && mocha",
"package": "npx @vscode/vsce package",
"changelog:generate": "VERSION=$(node -p \"require('./package.json').version\") node scripts/update-changelog.js $VERSION",
"release:prepare-local": "npm run compile && npm test && npm run changelog:generate"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^25.5.0",
"@types/vscode": "^1.110.0",
"@vscode/vsce": "^3.7.1",
"eslint": "^9.0.0",
"mocha": "^11.0.0",
"prettier": "^3.0.0",
"ts-node": "^10.9.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.0.0"
}
}