-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathpackage.json
More file actions
236 lines (236 loc) · 10.7 KB
/
Copy pathpackage.json
File metadata and controls
236 lines (236 loc) · 10.7 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
{
"name": "deepseek-v4-for-copilot",
"displayName": "DeepSeek V4 for Copilot Chat",
"description": "Use DeepSeek V4.1 Flash in Copilot Chat with native vision, Vision Proxy, reasoning, and agent tools.",
"icon": "resources/icon.png",
"version": "0.9.2",
"publisher": "Vizards",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Vizards/deepseek-v4-for-copilot"
},
"engines": {
"vscode": "^1.116.0",
"node": ">=24"
},
"categories": [
"AI",
"Chat",
"Programming Languages"
],
"keywords": [
"deepseek",
"deepseek v4",
"deepseek-v4",
"copilot",
"github copilot",
"copilot chat",
"vision",
"byok",
"language model",
"thinking",
"reasoning",
"ai",
"chat"
],
"activationEvents": [
"onUri",
"onStartupFinished"
],
"enabledApiProposals": [],
"main": "./out/extension.js",
"contributes": {
"languageModelChatProviders": [
{
"vendor": "deepseek",
"displayName": "DeepSeek"
}
],
"commands": [
{
"command": "deepseek-copilot.setApiKey",
"title": "%deepseek-copilot.command.setApiKey%"
},
{
"command": "deepseek-copilot.getApiKey",
"title": "%deepseek-copilot.command.getApiKey%"
},
{
"command": "deepseek-copilot.clearApiKey",
"title": "%deepseek-copilot.command.clearApiKey%"
},
{
"command": "deepseek-copilot.resetBaseUrl",
"title": "%deepseek-copilot.command.resetBaseUrl%"
},
{
"command": "deepseek-copilot.setVisionModel",
"title": "%deepseek-copilot.command.setVisionModel%"
},
{
"command": "deepseek-copilot.openSettings",
"title": "%deepseek-copilot.command.openSettings%"
},
{
"command": "deepseek-copilot.showLogs",
"title": "%deepseek-copilot.command.showLogs%"
},
{
"command": "deepseek-copilot.openRequestDumpsFolder",
"title": "%deepseek-copilot.command.openRequestDumpsFolder%"
}
],
"walkthroughs": [
{
"id": "deepseekGettingStarted",
"title": "%deepseek-copilot.walkthrough.title%",
"description": "%deepseek-copilot.walkthrough.description%",
"steps": [
{
"id": "setApiKey",
"title": "%deepseek-copilot.walkthrough.setApiKey.title%",
"description": "%deepseek-copilot.walkthrough.setApiKey.description%",
"media": {
"markdown": "resources/walkthrough/set-api-key.md"
},
"completionEvents": [
"onCommand:deepseek-copilot.setApiKey"
]
},
{
"id": "showModels",
"title": "%deepseek-copilot.walkthrough.showModels.title%",
"description": "%deepseek-copilot.walkthrough.showModels.description%",
"media": {
"markdown": "resources/walkthrough/show-models.md"
}
},
{
"id": "advancedSettings",
"title": "%deepseek-copilot.walkthrough.advancedSettings.title%",
"description": "%deepseek-copilot.walkthrough.advancedSettings.description%",
"media": {
"markdown": "resources/walkthrough/advanced-settings.md"
}
}
]
}
],
"configuration": {
"title": "%deepseek-copilot.config.title%",
"properties": {
"deepseek-copilot.baseUrl": {
"type": "string",
"default": "https://api.deepseek.com",
"markdownDescription": "%deepseek-copilot.config.baseUrl.description%"
},
"deepseek-copilot.maxTokens": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "%deepseek-copilot.config.maxTokens.description%"
},
"deepseek-copilot.requestHeaders": {
"type": "object",
"default": {},
"additionalProperties": {
"type": "string"
},
"markdownDescription": "%deepseek-copilot.config.requestHeaders.description%"
},
"deepseek-copilot.experimental.stabilizeToolList": {
"type": "boolean",
"default": false,
"markdownDescription": "%deepseek-copilot.config.experimental.stabilizeToolList.description%",
"tags": [
"experimental"
]
},
"deepseek-copilot.modelIdOverrides": {
"type": "object",
"default": {
"deepseek-flash": "deepseek-flash",
"deepseek-v4-flash": "deepseek-v4-flash",
"deepseek-v4-pro": "deepseek-v4-pro",
"deepseek-v4-flash-vision-exp": "deepseek-v4-flash-vision-exp"
},
"description": "%deepseek-copilot.config.modelIdOverrides.description%",
"additionalProperties": false,
"properties": {
"deepseek-flash": {
"type": "string",
"description": "%deepseek-copilot.config.modelIdOverrides.deepseek-flash.description%"
},
"deepseek-v4-flash": {
"type": "string",
"description": "%deepseek-copilot.config.modelIdOverrides.deepseek-v4-flash.description%"
},
"deepseek-v4-pro": {
"type": "string",
"description": "%deepseek-copilot.config.modelIdOverrides.deepseek-v4-pro.description%"
},
"deepseek-v4-flash-vision-exp": {
"type": "string",
"description": "%deepseek-copilot.config.modelIdOverrides.deepseek-v4-flash-vision-exp.description%"
}
}
},
"deepseek-copilot.visionModel": {
"type": "string",
"default": "",
"tags": [
"advanced"
],
"markdownDescription": "%deepseek-copilot.config.visionModel.description%"
},
"deepseek-copilot.visionPrompt": {
"type": "string",
"editPresentation": "multilineText",
"default": "Text extraction is mandatory. Visual description required except T2.5. See OUTPUT FORMAT.\n\n---\n\nTASK 1 - TEXT EXTRACTION (always):\n\n1. Transcribe every detectable character verbatim - all text, symbols, and glyphs of any kind, in any location. Never correct, alter, summarize, paraphrase, or truncate the source.\n\n2. Preserve formatting and spatial grouping:\n - Monospaced → code block (hint if known). Triple backticks in source → 4-backtick fence.\n - Proportional → plain text, paragraph breaks.\n - Tabular → Markdown table.\n - Ambiguous → code block.\n\n3. Annotate spatial position:\n - Isolated elements: label + colon.\n - Multi-region: `[Region: name]` headers (avoids T1.4 collision).\n [Region: name]\n (content)\n\n4. Uncertainty markers (place at position):\n [?] = uncertain char.\n [unclear] = uncertain span.\n [possible-artifact] = may not be text.\n [unreadable] = illegible.\n [truncated] = cut off at edge (place after last readable char).\n Never guess or fabricate. If source contains a marker literally, backslash-escape it.\n\n5. Low-quality image: place after `--- Extracted Text ---`, before code block or transcription:\n (Low image quality - confidence reduced.)\n\n6. No text: output \"No text detected.\" No code block, no other text.\n\n---\n\nTASK 2 - VISUAL DESCRIPTION (unless T2.5):\n\n1. Describe all non-text visual content.\n\n2. Text-heavy: describe application, window chrome, UI state, and color coding.\n\n3. Visual-primary: describe concisely but fully. Note color coding. Do not invent.\n\n4. Diagrams: describe structure - what labels represent, how elements connect. Diagram should be understandable from both sections.\n\n5. Omit Visual Context only for tightly cropped text. If any visual element beyond text is visible, include.\n\n---\n\nMULTIPLE IMAGES:\n\n- Label \"Image 1:\", \"Image 2:\", etc. Single image: skip label.\n- Combined summary only if images are related. If unsure, skip.\n\n---\n\nOUTPUT FORMAT:\n\nSingle image:\n--- Extracted Text ---\n[transcription]\n--- Visual Context ---\n[description]\n\nIf Visual Context omitted (T2.5), drop it.\n\nMultiple images (repeat for each):\nImage 1:\n--- Extracted Text ---\n[transcription]\n--- Visual Context ---\n[description]\n\n--- Combined Summary ---\n[summary - if applicable]\n\n---\n\nSPECIAL CASES:\n\n- Handwriting: best-effort; prepend \"(Handwriting - lower confidence.)\".\n- RTL: preserve direction; note in Visual Context.\n- Overlapping layers: extract all; flag [Foreground:] / [Background:].\n- Color: describe scheme in Visual Context only. Never encode in Extracted Text.\n- Image-in-image: treat as flat; note nesting in Visual Context.\n- Long lines: transcribe fully, no wrap; note overflow in Visual Context.\n\n---\n\nESCAPING - if source text contains a line exactly matching any format marker, backslash-escape it:\n\n- \\--- Extracted Text ---\n- \\--- Visual Context ---\n- \\--- Combined Summary ---\n- \\Image N: (standalone line immediately before a `---` marker)\n\nIf source contains any T1.4 marker literally, backslash-escape it.",
"markdownDescription": "%deepseek-copilot.config.visionPrompt.description%"
},
"deepseek-copilot.debugMode": {
"type": "string",
"default": "minimal",
"enum": [
"minimal",
"metadata",
"verbose"
],
"enumItemLabels": [
"%deepseek-copilot.config.debugMode.minimal.label%",
"%deepseek-copilot.config.debugMode.metadata.label%",
"%deepseek-copilot.config.debugMode.verbose.label%"
],
"markdownEnumDescriptions": [
"%deepseek-copilot.config.debugMode.minimal.description%",
"%deepseek-copilot.config.debugMode.metadata.description%",
"%deepseek-copilot.config.debugMode.verbose.description%"
],
"markdownDescription": "%deepseek-copilot.config.debugMode.description%"
}
}
}
},
"scripts": {
"clean": "node -e \"require('node:fs').rmSync('out', { recursive: true, force: true, maxRetries: process.platform === 'win32' ? 10 : 0 })\"",
"vscode:prepublish": "bash .github/scripts/prepare-marketplace-readme.sh && npm run compile",
"compile": "npm run clean && tsc -p ./",
"watch": "npm run clean && tsc -watch -p ./",
"lint": "oxlint",
"format": "oxfmt --write src/",
"format:check": "oxfmt --check src/",
"package": "vsce package --readme-path dist/README.marketplace.md -o dist/",
"login": "vsce login Vizards"
},
"devDependencies": {
"@types/node": "^25.6.0",
"@types/vscode": "^1.116.0",
"@vscode/vsce": "^3.9.1",
"ovsx": "0.10.12",
"oxfmt": "^0.47.0",
"oxlint": "^1.62.0",
"typescript": "^6.0.3"
}
}