-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
384 lines (384 loc) · 12.1 KB
/
Copy pathpackage.json
File metadata and controls
384 lines (384 loc) · 12.1 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
{
"name": "opencode-bridge-copilot-chat",
"displayName": "OpenCode for Copilot Chat",
"description": "Use OpenCode Zen, Go, and Console models in GitHub Copilot Chat.",
"version": "0.4.3",
"publisher": "grikomsn",
"license": "MIT",
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/grikomsn/opencode-copilot-chat.git"
},
"bugs": {
"url": "https://github.com/grikomsn/opencode-copilot-chat/issues"
},
"homepage": "https://github.com/grikomsn/opencode-copilot-chat#readme",
"engines": {
"vscode": "^1.125.0"
},
"categories": [
"AI",
"Chat",
"Machine Learning"
],
"keywords": [
"opencode",
"zen",
"opencode-go",
"console",
"copilot",
"copilot-chat",
"language-model",
"api-key",
"reasoning",
"vision"
],
"activationEvents": [
"onStartupFinished",
"onLanguageModelChatProvider:opencodezen",
"onLanguageModelChatProvider:opencodego",
"onLanguageModelChatProvider:opencodeconsole"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "opencodeCopilot.manage",
"title": "OpenCode: Manage Connection"
},
{
"command": "opencodeCopilot.manageZen",
"title": "OpenCode Zen: Manage Connection"
},
{
"command": "opencodeCopilot.manageGo",
"title": "OpenCode Go: Manage Connection"
},
{
"command": "opencodeCopilot.manageConsole",
"title": "OpenCode Console: Manage Connection"
},
{
"command": "opencodeCopilot.importConsoleSession",
"title": "OpenCode Console: Import Local Session"
},
{
"command": "opencodeCopilot.addConsoleAccount",
"title": "OpenCode: Add Console Account"
},
{
"command": "opencodeCopilot.selectConsoleProfile",
"title": "OpenCode: Select Console Profile for Usage and Management"
},
{
"command": "opencodeCopilot.refreshModels",
"title": "OpenCode: Refresh Models (Legacy Key / Active Console Profile)"
},
{
"command": "opencodeCopilot.testConnection",
"title": "OpenCode: Test Connection (Legacy Key / Active Console Profile)"
},
{
"command": "opencodeCopilot.showUsage",
"title": "OpenCode: Show Usage"
},
{
"command": "opencodeCopilot.diagnostics",
"title": "OpenCode: Show Diagnostics"
}
],
"configuration": {
"title": "OpenCode for Copilot Chat",
"properties": {
"opencode.defaultMode": {
"type": "string",
"enum": [
"zen",
"go",
"console"
],
"default": "zen",
"enumDescriptions": [
"Target OpenCode Zen for generic connection, refresh, and test commands",
"Target OpenCode Go for generic connection, refresh, and test commands",
"Target OpenCode Console for generic connection, refresh, and test commands"
],
"description": "OpenCode group targeted by generic connection, refresh, and test commands. Zen, Go, and Console models remain visible as separate provider groups."
},
"opencode.freeOnly": {
"type": "boolean",
"default": true,
"description": "Show only zero-cost OpenCode Zen models in the model picker."
},
"opencode.reasoningEffort": {
"type": "string",
"enum": [
"off",
"on",
"auto",
"minimal",
"low",
"medium",
"high",
"xhigh",
"max"
],
"default": "high",
"enumDescriptions": [
"Disable optional thinking when supported",
"Enable thinking with the provider default",
"Let the model choose how much to think",
"Use minimal reasoning for faster responses",
"Use lighter reasoning for faster responses",
"Balance response speed and reasoning depth",
"Use greater reasoning depth for complex tasks",
"Use extra-high reasoning effort when supported",
"Use the maximum reasoning effort when supported"
],
"description": "Legacy fallback thinking mode. Per-family opencode.thinking settings and per-model composer selections take precedence."
},
"opencode.thinking.deepseek": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high",
"max"
],
"default": "high",
"enumDescriptions": [
"Disable optional DeepSeek thinking",
"Use light DeepSeek thinking",
"Use balanced DeepSeek thinking",
"Use greater DeepSeek thinking depth",
"Use maximum DeepSeek thinking depth"
],
"description": "Default thinking effort for DeepSeek models when no per-model composer selection is set."
},
"opencode.thinking.glm": {
"type": "string",
"enum": [
"off",
"on",
"high",
"max"
],
"default": "high",
"enumDescriptions": [
"Disable optional GLM thinking",
"Enable thinking with the provider default",
"Use high GLM reasoning effort when supported",
"Use maximum GLM reasoning effort when supported"
],
"description": "Default thinking mode or effort for GLM models when no per-model composer selection is set."
},
"opencode.thinking.kimi": {
"type": "string",
"enum": [
"on",
"off"
],
"default": "on",
"enumDescriptions": [
"Enable Kimi thinking",
"Disable optional Kimi thinking"
],
"description": "Default thinking mode for Kimi models when no per-model composer selection is set."
},
"opencode.thinking.minimax": {
"type": "string",
"enum": [
"off",
"on"
],
"default": "on",
"enumDescriptions": [
"Disable optional MiniMax thinking",
"Enable MiniMax thinking"
],
"description": "Default thinking mode for MiniMax models when no per-model composer selection is set."
},
"opencode.thinking.openai": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high",
"xhigh"
],
"default": "high",
"enumDescriptions": [
"Disable optional OpenAI reasoning",
"Use light OpenAI reasoning",
"Use balanced OpenAI reasoning",
"Use greater OpenAI reasoning depth",
"Use extra-high OpenAI reasoning effort"
],
"description": "Default reasoning effort for OpenAI models when no per-model composer selection is set."
},
"opencode.thinking.mimo": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high"
],
"default": "high",
"enumDescriptions": [
"Disable optional MiMo thinking",
"Use light MiMo thinking",
"Use balanced MiMo thinking",
"Use greater MiMo thinking depth"
],
"description": "Default thinking effort for MiMo models when no per-model composer selection is set."
},
"opencode.thinking.qwen": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"default": "auto",
"enumDescriptions": [
"Let Qwen choose whether to think",
"Enable Qwen thinking",
"Disable optional Qwen thinking"
],
"description": "Default thinking mode for Qwen models when no per-model composer selection is set."
},
"opencode.thinking.qwenBudget": {
"type": "string",
"enum": [
"auto",
"4096",
"16384",
"32768",
"81920"
],
"default": "auto",
"enumDescriptions": [
"Use the provider default thinking budget",
"Allow up to 4,096 thinking tokens",
"Allow up to 16,384 thinking tokens",
"Allow up to 32,768 thinking tokens",
"Allow up to 81,920 thinking tokens"
],
"description": "Default Qwen thinking budget. Auto omits the budget so the provider chooses it."
},
"opencode.maxOutputTokens": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Optional output-token limit. Use 0 to use the model's advertised maximum."
},
"opencode.requestTimeoutSeconds": {
"type": "number",
"default": 600,
"minimum": 10,
"description": "Maximum OpenCode request duration in seconds."
},
"opencode.streamIdleTimeoutSeconds": {
"type": "number",
"default": 120,
"minimum": 10,
"description": "Maximum time without a streamed response event before cancellation."
},
"opencode.catalogCacheMinutes": {
"type": "number",
"default": 5,
"minimum": 1,
"description": "How long the live OpenCode model catalog is reused before refreshing."
},
"opencode.debugLogging": {
"type": "boolean",
"default": false,
"description": "Log request, response, retry, and discovery metadata. Credentials, prompts, responses, and tool data are never logged."
},
"opencode.showUsageStatusBar": {
"type": "boolean",
"default": true,
"description": "Show locally tracked OpenCode inference usage in the status bar."
}
}
},
"languageModelChatProviders": [
{
"vendor": "opencodezen",
"displayName": "OpenCode Zen",
"configuration": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"apiKey": {
"type": "string",
"title": "OpenCode Zen API Key",
"description": "API key for this OpenCode Zen provider entry.",
"secret": true
}
}
}
},
{
"vendor": "opencodego",
"displayName": "OpenCode Go",
"configuration": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"apiKey": {
"type": "string",
"title": "OpenCode Go API Key",
"description": "API key for this OpenCode Go provider entry.",
"secret": true
}
}
}
},
{
"vendor": "opencodeconsole",
"displayName": "OpenCode Console",
"configuration": {
"type": "object",
"properties": {
"profile": {
"type": "string",
"title": "OpenCode Console Profile",
"description": "Profile ID created with OpenCode: Add Console Account.",
"default": "default",
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$"
}
}
}
}
]
},
"scripts": {
"clean": "node -e \"require('node:fs').rmSync('out',{recursive:true,force:true})\"",
"compile": "npm run clean && tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && node --test \"out/**/*.test.js\"",
"check": "npm test",
"changeset": "changeset",
"version": "changeset version",
"release": "npm run check && vsce publish --skip-duplicate",
"prepackage": "npm run check",
"package": "vsce package",
"vscode:prepublish": "npm run compile"
},
"devDependencies": {
"@changesets/cli": "^2.31.0",
"@types/node": "^24.0.0",
"@types/vscode": "^1.125.0",
"@vscode/vsce": "^3.9.2",
"typescript": "^6.0.3"
}
}