-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
110 lines (110 loc) · 4.11 KB
/
package.json
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
{
"name": "commit-message-ai-generator",
"displayName": "Commit Message AI Generator",
"description": "It helps you save time writing submission information.use advanced OpenAI technology to automatically generate accurate and clearly described Git submission information. ",
"version": "0.0.1",
"engines": {
"vscode": "^1.79.0"
},
"icon": "assets/logo.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wweggplant/ComitGen"
},
"publisher": "AlexWang",
"categories": [
"Other"
],
"keywords":[
"git",
"generate commit message",
"openai"
],
"main": "./out/extension.js",
"activationEvents": [
"onCommand:ComitGen.startGenCommitMessage",
"onCommand:ComitGen.setApiKey",
"onCommand:ComitGen.clearApiKey"
],
"contributes": {
"configuration": {
"title": "ComitGen",
"properties": {
"ComitGen.baseURL": {
"type": "string",
"default": "https://api.openai.com/v1/",
"description": "The base URL for the OpenAI API. You can replace this with a proxy URL if required for network considerations."
},
"ComitGen.prompt": {
"type": "string",
"default": "As an experienced programmer well-versed in AngularJS commit conventions, please generate a Git commit message \nbased on the provided Git Diff content. Adhere to the following guidelines: \n \n The commit message must comply with AngularJS's Git Commit specification. \n The message should start with a suitable Emoji (Gitmoji) representing the type of changes made. \n The message should be written in Chinese. \n The format should be as follows: \n <type>(<scope>): <subject> \n <BLANK LINE> \n <body> \n <BLANK LINE> \n <footer> \n Please keep the overall length of the message within 80 words. \n",
"description": "This is the base template for generating commit messages. Modify it to meet specific requirements and structures of your project's commit messages."
},
"ComitGen.assistantPrompt": {
"type": "string",
"default": "✨ feat(module): 添加新功能模块\n\n新增了一个名为 module 的功能模块,该模块实现了以下特性:\n\n- 实现功能 A\n- 提供 API 接口 B\n- 优化性能问题\n\nBREAKING CHANGE: 该功能模块引入了一个新的配置项,旧有的配置文件需要进行相应的更新。\n",
"description": "This template guides the AI assistant to generate example commit messages. Customize it according to your project's commit message guidelines and structure."
}
}
},
"commands": [
{
"command": "ComitGen.startGenCommitMessage",
"title": "generate commit message",
"icon": "./assets/icon.svg"
},
{
"command": "ComitGen.setApiKey",
"title": "Enter and Save OpenAI API Key",
"category": "ComitGen"
},
{
"command": "ComitGen.clearApiKey",
"title": "Remove Existing OpenAI API Key",
"category": "ComitGen"
}
],
"menus": {
"scm/title": [
{
"command": "ComitGen.startGenCommitMessage",
"group": "navigation",
"when": "scmProvider == git"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.2",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/sinon": "^10.0.15",
"@types/vscode": "^1.79.1",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"jest": "^29.5.0",
"mocha": "^10.2.0",
"sinon": "^15.2.0",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"typescript": "^5.1.3"
},
"dependencies": {
"langchain": "^0.0.96",
"simple-git": "^3.19.0",
"tiktoken": "^1.0.9"
}
}