-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
258 lines (258 loc) · 9.58 KB
/
package.json
File metadata and controls
258 lines (258 loc) · 9.58 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
248
249
250
251
252
253
254
255
256
257
258
{
"name": "coder",
"displayName": "ИИ Кодогенератор",
"description": "ИИ-кодогенератор для VS Code с агентным циклом и поддержкой любого LLM API.",
"version": "0.0.285",
"author": "Мартин Газов (gmrx)",
"publisher": "gmrx",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "https://github.com/gmrx/coder.git"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished",
"onCommand:ai-assistant.ask",
"onCommand:ai-assistant.configure",
"onView:aiAssistant.chatView"
],
"contributes": {
"commands": [
{
"command": "ai-assistant.ask",
"title": "ИИ Кодогенератор: Спросить модель"
},
{
"command": "ai-assistant.configure",
"title": "ИИ Кодогенератор: Открыть настройки"
},
{
"command": "ai-assistant.showScmDiff",
"title": "Показать diff"
},
{
"command": "ai-assistant.acceptScmFile",
"title": "Принять",
"icon": "$(check)"
},
{
"command": "ai-assistant.rejectScmFile",
"title": "Отклонить",
"icon": "$(discard)"
},
{
"command": "ai-assistant.acceptAllChanges",
"title": "Принять все изменения",
"icon": "$(check-all)"
},
{
"command": "ai-assistant.rejectAllChanges",
"title": "Отклонить все изменения",
"icon": "$(close-all)"
}
],
"menus": {
"scm/resourceState/context": [
{
"command": "ai-assistant.acceptScmFile",
"when": "scmProvider == ai-agent",
"group": "inline"
},
{
"command": "ai-assistant.rejectScmFile",
"when": "scmProvider == ai-agent",
"group": "inline"
}
],
"scm/title": [
{
"command": "ai-assistant.acceptAllChanges",
"when": "scmProvider == ai-agent",
"group": "navigation"
},
{
"command": "ai-assistant.rejectAllChanges",
"when": "scmProvider == ai-agent",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "aiAssistant",
"title": "ИИ Кодогенератор",
"icon": "resources/ai.svg"
}
]
},
"views": {
"aiAssistant": [
{
"id": "aiAssistant.chatView",
"name": "Диалог",
"type": "webview"
}
]
},
"configuration": {
"type": "object",
"title": "ИИ Кодогенератор",
"properties": {
"aiAssistant.apiBaseUrl": {
"type": "string",
"default": "",
"description": "Базовый URL API вашей модели (endpoint)."
},
"aiAssistant.apiKey": {
"type": "string",
"default": "",
"description": "API ключ для доступа к модели.",
"markdownDescription": "API ключ для доступа к модели. **Не коммитьте его в git!**"
},
"aiAssistant.model": {
"type": "string",
"default": "Qwen3.5-35B-A3B-FP8",
"description": "Имя модели (например, gpt-4.1, gpt-4.1-mini или другая)."
},
"aiAssistant.embeddingsModel": {
"type": "string",
"default": "Qwen3-Embedding-0.6B",
"description": "Имя модели эмбеддингов (для анализа проекта и поиска по коду). Оставьте пустым, если не используете."
},
"aiAssistant.rerankModel": {
"type": "string",
"default": "bge-reranker-v2-m3",
"description": "Имя модели rerank (для переупорядочивания файлов/фрагментов под запрос). Оставьте пустым, если не используете."
},
"aiAssistant.systemPrompt": {
"type": "string",
"default": "",
"markdownDescription": "Дополнительные постоянные инструкции для агента. Этот текст подмешивается в системный prompt и задаёт стиль работы, ограничения и предпочтения."
},
"aiAssistant.jiraBaseUrl": {
"type": "string",
"default": "",
"description": "Базовый URL Jira-сервиса."
},
"aiAssistant.jiraUsername": {
"type": "string",
"default": "",
"description": "Логин для чтения проектов и задач из Jira."
},
"aiAssistant.jiraPassword": {
"type": "string",
"default": "",
"markdownDescription": "Пароль или персональный токен для Jira. **Не коммитьте его в git!**"
},
"aiAssistant.tfsBaseUrl": {
"type": "string",
"default": "",
"description": "Базовый URL TFS-сервера, например http://server:8080/tfs."
},
"aiAssistant.tfsCollection": {
"type": "string",
"default": "DefaultCollection",
"description": "Коллекция проектов TFS."
},
"aiAssistant.tfsUsername": {
"type": "string",
"default": "",
"description": "Логин для чтения проектов и work items из TFS. Можно указать DOMAIN\\\\login."
},
"aiAssistant.tfsPassword": {
"type": "string",
"default": "",
"markdownDescription": "Пароль для TFS. **Не коммитьте его в git!**"
},
"aiAssistant.mcpConfigPath": {
"type": "string",
"default": "",
"description": "Устаревшее поле. MCP сохраняется во внутреннем хранилище расширения, без файлов в workspace."
},
"aiAssistant.mcpServers": {
"type": "object",
"default": {},
"markdownDescription": "Необязательная карта MCP серверов. Сохраняется во внутреннем хранилище расширения, без файлов в workspace. Сейчас поддерживаются `stdio` и `http`."
},
"aiAssistant.mcpDisabledTools": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Список выключенных MCP tools в формате `server::toolName`. Выключенные tools не предлагаются агенту и не могут быть вызваны через `mcp_tool`."
},
"aiAssistant.mcpTrustedTools": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Список MCP tools в формате `server::toolName`, которые разрешено вызывать без отдельного подтверждения."
},
"aiAssistant.autoApproval": {
"type": "object",
"default": {
"fileCreate": true,
"fileEdit": true,
"fileDelete": true,
"webFetch": false,
"shell": false,
"worktree": false,
"mcp": false
},
"markdownDescription": "Настройки авторазрешения действий агента. По умолчанию разрешены `fileCreate`, `fileEdit`, `fileDelete`, а `webFetch`, `shell`, `worktree` и `mcp` остаются выключены."
},
"aiAssistant.webTrustedHosts": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Хосты, для которых `web_fetch` можно выполнять без дополнительного подтверждения. Указывайте только домены, например `example.com`."
},
"aiAssistant.webBlockedHosts": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Хосты, которые `web_fetch` всегда блокирует, даже если агент попытается открыть их автоматически."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"clean": "rm -rf dist",
"build": "npm run clean && tsc -p ./",
"test": "npm run build && node --test dist/core/modelClient.test.js dist/telemetry/*.test.js",
"watch": "tsc -watch -p ./",
"lint": "echo \"no lint configured\"",
"bump-version": "npm version patch --no-git-tag-version",
"package": "npm run bump-version && vsce package"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.75.0",
"typescript": "^5.0.0",
"vsce": "^2.15.0"
},
"dependencies": {
"highlight.js": "^11.11.1",
"markdown-it": "^14.1.1",
"mermaid": "^11.13.0",
"undici": "^6.25.0"
},
"overrides": {
"xml2js": ">=0.5.0"
}
}