forked from cyberprophet/diff-to-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
168 lines (168 loc) · 4.99 KB
/
package.json
File metadata and controls
168 lines (168 loc) · 4.99 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
{
"name": "diff-to-commit",
"displayName": "Diff to Commit",
"description": "Fill SCM commit message from git diff",
"version": "1.0.7",
"publisher": "Dayond",
"icon": "assets/icon.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cyberprophet/diff-to-commit.git"
},
"bugs": {
"url": "https://github.com/cyberprophet/diff-to-commit/issues"
},
"changelog": "https://github.com/cyberprophet/diff-to-commit/blob/main/CHANGELOG.md",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:diff-to-commit.fillMessageStaged",
"onCommand:diff-to-commit.fillMessageWorkingTree",
"onCommand:diff-to-commit.setApiKey",
"onCommand:diff-to-commit.clearApiKey",
"onCommand:diff-to-commit.signIn",
"onCommand:diff-to-commit.signOut"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "diff-to-commit.fillMessageStaged",
"title": "Diff to Commit: Fill Message (Staged)",
"icon": "$(chat-sparkle)"
},
{
"command": "diff-to-commit.fillMessageWorkingTree",
"title": "Diff to Commit: Fill Message (Working Tree)"
},
{
"command": "diff-to-commit.setApiKey",
"title": "Diff to Commit: Set API Key"
},
{
"command": "diff-to-commit.clearApiKey",
"title": "Diff to Commit: Clear API Key"
},
{
"command": "diff-to-commit.signIn",
"title": "Diff to Commit: Sign In (Account)"
},
{
"command": "diff-to-commit.signOut",
"title": "Diff to Commit: Sign Out (Account)"
}
],
"menus": {
"scm/title": [
{
"command": "diff-to-commit.fillMessageStaged",
"icon": "$(chat-sparkle)",
"group": "navigation",
"when": "scmProvider == git"
}
]
},
"configuration": {
"title": "Diff to Commit",
"properties": {
"diffToCommit.backend": {
"type": "string",
"enum": [
"auto",
"account",
"apikey"
],
"default": "auto",
"description": "Backend selection: account OAuth, API key, or auto fallback"
},
"diffToCommit.account.providerId": {
"type": "string",
"default": "github",
"description": "Authentication provider ID for account sign-in"
},
"diffToCommit.account.scopes": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"read:user"
],
"description": "Scopes requested for account sign-in"
},
"diffToCommit.account.baseUrl": {
"type": "string",
"default": "",
"description": "Base URL for OpenAI-compatible API using account auth"
},
"diffToCommit.account.authHeaderName": {
"type": "string",
"default": "Authorization",
"description": "Header name for account auth token"
},
"diffToCommit.account.authHeaderPrefix": {
"type": "string",
"default": "Bearer ",
"description": "Prefix for account auth header value"
},
"diffToCommit.account.usableEndpoint": {
"type": "string",
"default": "/v1/models",
"description": "Endpoint path for account usability check"
},
"diffToCommit.ai.baseUrl": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "Base URL for OpenAI-compatible API"
},
"diffToCommit.ai.model": {
"type": "string",
"default": "gpt-5-nano",
"description": "Model name for commit message generation"
},
"diffToCommit.behavior.allowOverwrite": {
"type": "boolean",
"default": false,
"description": "Allow overwriting a non-empty SCM commit message"
},
"diffToCommit.diff.maxChars": {
"type": "number",
"default": 20000,
"minimum": 1000,
"description": "Maximum characters of diff to send to AI"
},
"diffToCommit.output.language": {
"type": "string",
"enum": [
"english",
"korean",
"auto"
],
"default": "english",
"description": "Language for commit message generation"
}
}
}
},
"scripts": {
"compile": "tsc -p ./tsconfig.json && tsc -p ./tsconfig.test.json",
"watch": "tsc -watch -p ./tsconfig.json",
"test:unit": "vitest run",
"test:integration": "node ./out/test/test/integration/runTest.js",
"test": "npm run test:unit && npm run test:integration"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.30",
"@types/vscode": "^1.80.0",
"@vscode/test-electron": "^2.5.0",
"mocha": "^10.2.0",
"typescript": "^5.4.5",
"vitest": "^4.0.18"
}
}