-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.json
More file actions
323 lines (323 loc) · 10.9 KB
/
Copy pathpackage.json
File metadata and controls
323 lines (323 loc) · 10.9 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
{
"name": "opencode-copilot-chat",
"displayName": "OpenCode for Copilot Chat — BYOK 30+ AI Models",
"description": "Use 30+ frontier AI models (DeepSeek V4, Kimi K2.6, GLM-5.1, Qwen3.7, MiMo V2.5, MiniMax M2.7, free Claude Opus, GPT-5.5, Gemini 3.5, Grok) in GitHub Copilot Chat. Bring Your Own Key — no Copilot Pro needed.",
"version": "0.4.1",
"publisher": "ltmoerdani",
"license": "MIT",
"icon": "media/opencodego.png",
"galleryBanner": {
"color": "#0d1117",
"theme": "dark"
},
"keywords": [
"opencode",
"copilot",
"copilot-chat",
"byok",
"bring-your-own-key",
"ai",
"language-model",
"openai",
"anthropic",
"claude",
"gpt",
"gemini",
"grok",
"deepseek",
"qwen",
"kimi",
"glm",
"minimax",
"mimo",
"llm",
"chat",
"agent",
"reasoning",
"thinking",
"free-models"
],
"repository": {
"type": "git",
"url": "https://github.com/ltmoerdani/opencode-copilot-chat.git"
},
"bugs": {
"url": "https://github.com/ltmoerdani/opencode-copilot-chat/issues"
},
"homepage": "https://github.com/ltmoerdani/opencode-copilot-chat#readme",
"engines": {
"vscode": "^1.125.0"
},
"categories": [
"AI",
"Machine Learning",
"Education",
"Other"
],
"activationEvents": [
"onStartupFinished",
"onLanguageModelChatProvider:opencodego",
"onLanguageModelChatProvider:opencodezen"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "opencodego.manage",
"title": "OpenCode Go: Manage Provider"
},
{
"command": "opencodego.setApiKey",
"title": "OpenCode Go: Set API Key"
},
{
"command": "opencodego.diagnostics",
"title": "OpenCode Go: Diagnostics"
},
{
"command": "opencodezen.diagnostics",
"title": "OpenCode Zen: Diagnostics"
},
{
"command": "opencodego.modelPickerDiagnostics",
"title": "OpenCode: Model Picker Diagnostics"
},
{
"command": "opencodego.setThinkingEffort",
"title": "OpenCode: Set Thinking Effort..."
},
{
"command": "opencodego.showUsageDetails",
"title": "OpenCode Go: Show Usage Details"
},
{
"command": "opencodego.setUsageTargets",
"title": "OpenCode Go: Set Usage Targets…"
},
{
"command": "opencodego.showUsageQuickPick",
"title": "OpenCode Go: Show Usage Quick Pick"
},
{
"command": "opencodego.renameActiveProfile",
"title": "OpenCode Go: Rename Active Profile"
},
{
"command": "opencodego.deleteProfile",
"title": "OpenCode Go: Delete Profile"
},
{
"command": "opencodego.configureVisionProxy",
"title": "OpenCode Go: Configure Vision Proxy"
}
],
"configuration": {
"title": "OpenCode",
"properties": {
"opencodego.temperature": {
"type": "number",
"default": 0.2,
"minimum": 0,
"maximum": 2,
"description": "Sampling temperature used for chat completions."
},
"opencodego.maxTokens": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Optional max output token override. Use 0 to request each OpenCode model's configured maximum."
},
"opencodego.maxInputTokens": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Optional context size override advertised to VS Code. Use 0 to advertise each OpenCode model's configured context window."
},
"opencodego.debugReasoning": {
"type": "boolean",
"default": false,
"description": "Write provider reasoning_content to the OpenCode output channel for debugging. Reasoning is not shown in Copilot Chat."
},
"opencodego.requestTimeoutSeconds": {
"type": "number",
"default": 600,
"minimum": 1,
"description": "Total request timeout in seconds for OpenCode Go and Zen chat requests. Prevents long-running Copilot requests from hanging indefinitely."
},
"opencodego.streamIdleTimeoutSeconds": {
"type": "number",
"default": 120,
"minimum": 1,
"description": "Streaming idle timeout in seconds. If OpenCode stops sending response chunks for this long, the request is cancelled with a clear error."
},
"opencodego.showUsageStatusBar": {
"type": "boolean",
"default": true,
"description": "Show the latest OpenCode prompt/output/cache usage summary in the VS Code status bar after each response."
},
"opencodego.freeOnly": {
"type": "boolean",
"default": true,
"description": "When enabled, only free OpenCode Zen models are shown in the Copilot model selector. Disable to include paid Zen models as well."
},
"opencodego.agentsWindow": {
"type": "boolean",
"default": true,
"markdownDescription": "Register separate agent-host providers for the Copilot Agents window. Disable to hide the Agents section entirely. Requires a window reload to take effect."
},
"opencodego.showAgentModelsInManagePanel": {
"type": "boolean",
"default": false,
"markdownDescription": "Show agent-host vendors in the Manage Language Models panel. When disabled (default), agent models still work in the Agents window but are hidden from the Manage panel to reduce clutter."
},
"opencodego.stripThinkTags": {
"type": "string",
"enum": [
"never",
"auto",
"always"
],
"default": "auto",
"markdownDescription": "How to handle `<think>...</think>` tags in model output. `auto` strips tags only for known reasoning models that inline thinking in the content field (minimax), accumulating the extracted reasoning content into the existing reasoning fallback. `always` strips for every model. `never` passes text through unchanged (use if a model legitimately uses `<think>` in its output)."
},
"opencodego.thinking.deepseek": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high",
"max"
],
"default": "off",
"markdownDescription": "Thinking mode for DeepSeek models (`deepseek-v4-flash`, `deepseek-v4-pro`). Maps to `reasoning_effort`. `low`/`medium`/`high` adjust reasoning depth; `max` enables maximum reasoning."
},
"opencodego.thinking.glm": {
"type": "string",
"enum": [
"off",
"high",
"max"
],
"default": "off",
"markdownDescription": "Thinking mode for GLM models. `high`/`max` enable thinking (interpreted as `on` for models that use toggle, e.g., GLM 5/5.1). Per-model picker shows only options supported by each model."
},
"opencodego.thinking.kimi": {
"type": "string",
"enum": [
"on",
"off"
],
"default": "off",
"markdownDescription": "Thinking mode for Kimi models (`kimi-k2.5`, `kimi-k2.6`). Maps to `thinking: { type: 'enabled' | 'disabled' }`."
},
"opencodego.thinking.minimax": {
"type": "string",
"enum": [
"off",
"on"
],
"default": "off",
"markdownDescription": "Thinking mode for MiniMax models (`minimax-m2.5`, `minimax-m3`, etc.). Maps to `thinking: { type: 'disabled'|'adaptive'|'enabled' }`. The OpenCode gateway only supports on/off for this family (`reasoning_effort` is silently ignored)."
},
"opencodego.thinking.mimo": {
"type": "string",
"enum": [
"off",
"low",
"medium",
"high"
],
"default": "off",
"markdownDescription": "Thinking mode for Mimo (Xiaomi) models. Maps to `reasoning_effort`. `low`/`medium`/`high` adjust reasoning depth."
},
"opencodego.thinking.qwen": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"default": "off",
"markdownDescription": "Thinking mode for Qwen models (`qwen3.5-plus`, `qwen3.6-plus`, `qwen3.6-plus-free`). Maps to `enable_thinking`. `auto` lets the model decide (omits the flag), `on`/`off` force-enable or disable hybrid thinking. Off is the recommended default to avoid empty Copilot replies."
},
"opencodego.thinking.qwenBudget": {
"type": "string",
"enum": [
"auto",
"4096",
"16384",
"32768",
"81920"
],
"default": "auto",
"markdownDescription": "Optional `thinking_budget` for Qwen models when thinking is `on` or `auto`. `auto` omits the field. Ignored when Qwen thinking is `off`."
}
}
},
"languageModelChatProviders": [
{
"vendor": "opencodego",
"displayName": "OpenCode Go",
"configuration": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"apiKey": {
"type": "string",
"title": "OpenCode Go API Key",
"description": "Enter your OpenCode Go API key.",
"secret": true
}
}
}
},
{
"vendor": "opencodezen",
"displayName": "OpenCode Zen",
"configuration": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"apiKey": {
"type": "string",
"title": "OpenCode Zen API Key",
"description": "Enter your OpenCode Zen API key.",
"secret": true
}
}
}
},
{
"vendor": "opencodego-agent",
"displayName": "OpenCode Go (Agents)",
"when": "config.opencodego.showAgentModelsInManagePanel"
},
{
"vendor": "opencodezen-agent",
"displayName": "OpenCode Zen (Agents)",
"when": "config.opencodego.showAgentModelsInManagePanel"
}
]
},
"scripts": {
"compile": "tsc -p ./",
"test": "npm run compile && node --test \"out/test/**/*.test.js\"",
"watch": "tsc -watch -p ./",
"validate-models": "npx --yes tsx scripts/validate-models.mts",
"test-retry": "npx --yes tsx scripts/test-retry-e2e.mts",
"prepackage": "npm run compile && npm test",
"package": "vsce package",
"vscode:prepublish": "npm run compile"
},
"devDependencies": {
"@types/node": "^26.1.0",
"@types/vscode": "^1.125.0",
"@vscode/vsce": "^3.9.2",
"typescript": "^6.0.3"
}
}