-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 3.17 KB
/
package.json
File metadata and controls
106 lines (106 loc) · 3.17 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
{
"name": "sy-ai-commit",
"displayName": "sy-ai-commit",
"description": "一键自动配置 Git Commit 快捷键和 Cursor 规则,提升提交效率,使用 AI 生成提交信息",
"version": "1.2.0",
"publisher": "sy-ai-commit",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other",
"SCM Providers"
],
"keywords": [
"git",
"commit",
"cursor",
"ai",
"auto commit"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "auto-commit-assistant.setup",
"title": "sy commit: 初始化配置"
},
{
"command": "auto-commit-assistant.commitWithGenerate",
"title": "sy commit: 一键提交"
},
{
"command": "auto-commit-assistant.generateOnly",
"title": "sy commit: 仅生成提交信息"
},
{
"command": "auto-commit-assistant.testProgress",
"title": "sy commit: 测试进度显示(仅用于调试)"
}
],
"configuration": {
"title": "AI Auto Commit Assistant",
"properties": {
"autoCommitAssistant.autoSetupOnStartup": {
"type": "boolean",
"default": true,
"description": "在工作区首次打开时自动配置"
},
"autoCommitAssistant.keybinding": {
"type": "string",
"default": "ctrl+g ctrl+g",
"description": "一键提交快捷键(保存→暂存→生成信息→提交)"
},
"autoCommitAssistant.generateOnlyKeybinding": {
"type": "string",
"default": "ctrl+t ctrl+t",
"description": "仅生成提交信息快捷键(保存→暂存→生成信息)"
},
"autoCommitAssistant.testProgressKeybinding": {
"type": "string",
"default": "ctrl+h ctrl+h",
"description": "测试进度显示快捷键(仅用于调试,不执行实际 git 操作)"
},
"autoCommitAssistant.enablePush": {
"type": "boolean",
"default": false,
"description": "是否在提交后自动推送"
},
"autoCommitAssistant.addGeneratedByTrailer": {
"type": "boolean",
"default": true,
"description": "是否在 AI 生成的提交信息末尾添加 'Generated-by: sy-ai-commit' 标记(用于统计使用量)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/test-electron": "^2.3.0",
"@vscode/vsce": "^2.19.0",
"eslint": "^8.45.0",
"typescript": "^5.1.6"
},
"repository": {
"type": "git",
"url": "https://github.com/your-username/auto-commit-assistant.git"
},
"license": "MIT",
"icon": "icon.png"
}