-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
247 lines (247 loc) · 6.92 KB
/
Copy pathpackage.json
File metadata and controls
247 lines (247 loc) · 6.92 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"name": "diffgate-review",
"displayName": "DiffGate — Review Gate for AI Code",
"description": "A deterministic guardrail for AI-edited code, inline on the lines you actually changed (🟢 merge / 🟡 glance / 🟠 verify). 0 false blocks; the same verdict as the DiffGate CLI and MCP server.",
"version": "0.7.3",
"publisher": "srbsa",
"license": "Apache-2.0",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "git+https://github.com/srbsa/diffgate.git"
},
"homepage": "https://github.com/srbsa/diffgate#readme",
"bugs": {
"url": "https://github.com/srbsa/diffgate/issues"
},
"keywords": [
"code review triage",
"ai code review",
"guardrails",
"code review",
"coding agent",
"mcp",
"claude code",
"cursor",
"security",
"secrets",
"sql injection",
"pre-commit",
"diff",
"gate"
],
"galleryBanner": {
"color": "#0d1117",
"theme": "dark"
},
"engines": {
"vscode": "^1.90.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Diff review runs read-only in Restricted Mode. AI-related settings (which can enable outbound calls) are ignored unless set at the User level, not from a workspace this repo could ship its own values for.",
"restrictedConfigurations": [
"diffgate.ai.enabled",
"diffgate.ai.provider",
"diffgate.ai.model",
"diffgate.ai.deepReview.model"
]
}
},
"categories": [
"Linters",
"Programming Languages",
"SCM Providers"
],
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "diffgate.analyzeWorkspace",
"title": "DiffGate: Review Pending Changes",
"icon": "$(refresh)"
},
{
"command": "diffgate.runGate",
"title": "DiffGate: Run Verification Gate"
},
{
"command": "diffgate.explainWithAI",
"title": "DiffGate: Explain Finding with AI"
},
{
"command": "diffgate.toggleScanMode",
"title": "DiffGate: Toggle Scan Mode (Diff / Whole File)"
},
{
"command": "diffgate.openConfig",
"title": "DiffGate: Open Config (.diffgate.json)"
},
{
"command": "diffgate.ignoreRule",
"title": "DiffGate: Disable Rule for Project"
},
{
"command": "diffgate.deepReview",
"title": "DiffGate: Deep Review Finding (Agentic)"
},
{
"command": "diffgate.dismissFinding",
"title": "DiffGate: Dismiss Finding as Noise"
},
{
"command": "diffgate.confirmFinding",
"title": "DiffGate: Confirm Finding as Real Risk"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "diffgate",
"title": "DiffGate",
"icon": "media/shield.svg"
}
]
},
"views": {
"diffgate": [
{
"id": "diffgateRisk",
"name": "Risk Review"
},
{
"type": "webview",
"id": "diffgateInspector",
"name": "DiffGate Inspector"
}
]
},
"chatParticipants": [
{
"id": "diffgate-review.diffgate",
"name": "diffgate",
"fullName": "DiffGate",
"description": "Ask about security findings, risk tiers, and fix explanations.",
"icon": "media/shield.svg"
}
],
"menus": {
"view/title": [
{
"command": "diffgate.analyzeWorkspace",
"when": "view == diffgateRisk",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "diffgate.explainWithAI",
"when": "false"
},
{
"command": "diffgate.deepReview",
"when": "false"
},
{
"command": "diffgate.ignoreRule",
"when": "false"
},
{
"command": "diffgate.dismissFinding",
"when": "false"
},
{
"command": "diffgate.confirmFinding",
"when": "false"
}
]
},
"configuration": {
"title": "DiffGate Review",
"properties": {
"diffgate.enable": {
"type": "boolean",
"default": true,
"description": "Enable inline diffgate analysis."
},
"diffgate.scanMode": {
"type": "string",
"enum": [
"diff",
"file"
],
"enumDescriptions": [
"Only flag risk on lines changed vs the committed baseline (recommended).",
"Flag risk across the entire file."
],
"default": "diff",
"description": "Whether to analyze only changed lines or the whole file."
},
"diffgate.diffMode": {
"type": "string",
"enum": [
"working",
"staged"
],
"default": "working",
"description": "Baseline for diff mode: all uncommitted changes (working) or staged only."
},
"diffgate.ai.enabled": {
"type": "boolean",
"default": false,
"description": "Enable LLM-powered explanations (requires the provider's API key in your environment, except for local providers)."
},
"diffgate.ai.provider": {
"type": "string",
"enum": [
"",
"anthropic",
"openai",
"openrouter",
"groq",
"together",
"lmstudio",
"ollama",
"custom"
],
"default": "",
"description": "LLM provider override (empty = use .diffgate.json). Anthropic uses the Messages API; the rest use the OpenAI-compatible API."
},
"diffgate.ai.model": {
"type": "string",
"default": "",
"description": "Model id override (empty = use .diffgate.json or the provider default)."
},
"diffgate.runGateOnSave": {
"type": "boolean",
"default": false,
"description": "Run the project's testCommand automatically on save when high-impact (orange) findings are present."
},
"diffgate.ai.deepReview.model": {
"type": "string",
"default": "",
"description": "Model override for Deep Review (agentic). Leave empty to use ai.model. Use a stronger model here (e.g. claude-opus-4-8, gpt-4o)."
},
"diffgate.showInlineAnnotations": {
"type": "boolean",
"default": true,
"description": "Show inline GitLens-style text annotations at the end of lines with findings."
}
}
}
},
"scripts": {
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"package": "npm run build && vsce package --no-dependencies"
},
"devDependencies": {
"@types/vscode": "^1.90.0",
"@vscode/vsce": "^2.24.0",
"esbuild": "^0.28.1"
}
}