-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
252 lines (252 loc) · 7.87 KB
/
Copy pathpackage.json
File metadata and controls
252 lines (252 loc) · 7.87 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
{
"name": "grok-vscode-phuryn",
"displayName": "Grok Build",
"description": "Thin VS Code sidebar client for the Grok Build CLI over Agent Client Protocol (ACP). Streams responses with thinking traces, tool calls, file chips, and permission cards with diff preview. All session state stays in the CLI. Not affiliated with xAI.",
"version": "1.4.10",
"publisher": "PawelHuryn",
"author": {
"name": "Paweł Huryn",
"url": "https://www.productcompass.pm"
},
"license": "MIT",
"homepage": "https://github.com/phuryn/grok-build-vscode",
"repository": {
"type": "git",
"url": "https://github.com/phuryn/grok-build-vscode"
},
"engines": {
"vscode": "^1.94.0"
},
"categories": [
"AI",
"Chat"
],
"keywords": [
"grok",
"grok-build",
"xai",
"xai-grok",
"acp",
"acp-client",
"agent-client-protocol",
"agent",
"ai",
"chat",
"thinking",
"tool-calls",
"sidebar"
],
"icon": "resources/grok-icon.png",
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "grokSidebar",
"title": "Grok",
"icon": "resources/grok-icon.svg"
}
],
"secondarySideBar": [
{
"id": "grokSidebar",
"title": "Grok",
"icon": "resources/grok-icon.svg"
}
]
},
"views": {
"grokSidebar": [
{
"type": "webview",
"id": "grok.chat",
"name": "Grok"
}
]
},
"commands": [
{
"command": "grok.open",
"title": "Grok: Open"
},
{
"command": "grok.newSession",
"title": "Grok: New Session"
},
{
"command": "grok.compact",
"title": "Grok: Compact Conversation"
},
{
"command": "grok.pickModel",
"title": "Grok: Pick Model"
},
{
"command": "grok.toggleMode",
"title": "Grok: Toggle Plan / Agent Mode"
},
{
"command": "grok.sendSelection",
"title": "Grok: Send Selection"
},
{
"command": "grok.sendFile",
"title": "Grok: Send File"
},
{
"command": "grok.insertAtMention",
"title": "Grok: Insert @-Mention"
},
{
"command": "grok.showLogs",
"title": "Grok: Show Logs"
},
{
"command": "grok.logout",
"title": "Grok: Log Out"
},
{
"command": "grok._debugDummyPlan",
"title": "Grok: Debug — Show dummy plan card (for testing Approve/Reject/Cancel)"
}
],
"keybindings": [
{
"command": "grok.open",
"key": "ctrl+;",
"mac": "cmd+;"
},
{
"command": "grok.insertAtMention",
"key": "alt+g",
"when": "editorTextFocus"
}
],
"menus": {
"editor/context": [
{
"command": "grok.sendSelection",
"when": "editorHasSelection",
"group": "grok@1"
}
],
"explorer/context": [
{
"command": "grok.sendFile",
"when": "resourceScheme == file",
"group": "grok@1"
}
],
"editor/title/context": [
{
"command": "grok.sendFile",
"when": "resourceScheme == file",
"group": "grok@1"
}
]
},
"configuration": {
"title": "Grok",
"properties": {
"grok.cliPath": {
"type": "string",
"default": "",
"description": "Path to the grok binary. Empty = auto-discover (~/.grok/bin/grok, then PATH)."
},
"grok.defaultModel": {
"type": "string",
"default": "",
"description": "Model ID to use on new sessions. Empty = CLI default."
},
"grok.includeActiveFileByDefault": {
"type": "boolean",
"default": true,
"description": "Auto-add the active editor file as a context chip."
},
"grok.defaultEffort": {
"type": "string",
"enum": [
"",
"none",
"minimal",
"low",
"medium",
"high",
"xhigh"
],
"enumDescriptions": [
"CLI default (no flag passed to grok agent stdio)",
"None",
"Minimal",
"Low — faster, lighter reasoning",
"Medium",
"High",
"XHigh — deepest reasoning, slowest"
],
"default": "",
"description": "Reasoning effort passed as --reasoning-effort to grok agent stdio. Values match the grok CLI's accepted set (none, minimal, low, medium, high, xhigh). Changing this restarts the session."
},
"grok.useCtrlEnterToSend": {
"type": "boolean",
"default": false,
"description": "Use Ctrl/Cmd+Enter to send (Enter inserts newline)."
},
"grok.chatFontScale": {
"type": "number",
"default": 100,
"minimum": 60,
"maximum": 300,
"markdownDescription": "Zoom for the Grok chat panel only, as a percent (100 = default). Scales the whole chat UI — text, icons, spacing — without affecting the rest of VS Code (unlike `Ctrl/Cmd+Shift+=`). Applies live, no reload needed. Supports User (global) and Workspace (local) scope."
},
"grok.voiceApiKey": {
"type": "string",
"default": "",
"markdownDescription": "xAI API key for voice input (Speech-to-Text via `api.x.ai/v1/stt`). This is a **separate** developer key from [console.x.ai](https://console.x.ai) — it is billed pay-as-you-go and is unrelated to the Grok CLI login. Leave empty to fall back to `GROK_VOICE_API_KEY` or `XAI_API_KEY` in your workspace `.env`."
},
"grok.ffmpegPath": {
"type": "string",
"default": "",
"description": "Path to the ffmpeg binary used to record the microphone for voice input. Empty = use 'ffmpeg' from PATH. Install ffmpeg from https://ffmpeg.org if voice input reports it as missing."
},
"grok.voiceInputDevice": {
"type": "string",
"default": "",
"description": "Microphone device for voice input. Empty = system default (on Windows, the first DirectShow audio device is auto-detected). Set this to a specific device name (Windows/dshow) or index (macOS/avfoundation) to override."
},
"grok.voiceSendPhrase": {
"type": "string",
"default": "grok send",
"description": "Spoken phrase that auto-submits the message when it ends a voice transcription (e.g. say \"…fix the bug, grok send\"). The phrase is stripped before sending. Leave empty to disable hands-free sending."
},
"grok.voiceStreaming": {
"type": "boolean",
"default": true,
"description": "Stream voice transcription live as you speak (words appear in the composer in real time, and \"grok send\" can submit without a second click). Disable to use one-shot batch mode (click to start, click to stop, then transcribe). Streaming costs $0.20/hr of audio vs $0.10/hr batch."
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p .",
"compile": "tsc -p .",
"watch": "tsc -p . -w",
"test": "vitest run",
"test:watch": "vitest",
"test:perf": "vitest run --config vitest.perf.config.ts",
"test:live": "tsc -p . && node scripts/live-tests.cjs",
"prepackage": "node -e \"for (const f of require('fs').readdirSync('.')) if (f.endsWith('.vsix')) require('fs').unlinkSync(f)\"",
"package": "npx @vscode/vsce package",
"publish": "npx @vscode/vsce publish"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.94.0",
"@types/ws": "^8.18.1",
"happy-dom": "^20.9.0",
"typescript": "^5.4.0",
"vitest": "^1.6.0"
},
"dependencies": {
"ws": "^8.21.0"
}
}