-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
230 lines (230 loc) · 8.42 KB
/
package.json
File metadata and controls
230 lines (230 loc) · 8.42 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
{
"name": "opencoder-ui",
"displayName": "Opencoder UI",
"description": "OpenCode VSCode Extension",
"version": "0.1.0",
"publisher": "siilver",
"license": "MIT",
"icon": "opencoder.png",
"repository": {
"type": "git",
"url": "https://github.com/SilverC0de/Opencoder"
},
"engines": {
"vscode": "^1.96.0"
},
"categories": ["Other", "Chat"],
"keywords": ["opencoder", "opencode", "ai", "assistant", "chat", "sidebar"],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "opencoder-ui",
"title": "Opencoder",
"icon": "media/opencode.svg"
}
]
},
"views": {
"opencoder-ui": [
{
"type": "webview",
"id": "opencoder-ui.sidebar",
"name": "Opencoder",
"icon": "media/opencode.svg"
}
]
},
"commands": [
{ "command": "opencoder-ui.focus", "title": "Opencoder: Focus Sidebar" },
{ "command": "opencoder-ui.newSession", "title": "Opencoder: New Session", "icon": "$(add)" },
{ "command": "opencoder-ui.refresh", "title": "Opencoder: Refresh", "icon": "$(refresh)" },
{ "command": "opencoder-ui.openSettings", "title": "Opencoder: Open Settings", "icon": "$(gear)" },
{ "command": "opencoder-ui.restartServer", "title": "Opencoder: Restart Local Server" },
{ "command": "opencoder-ui.openTerminal", "title": "Opencoder: Open Terminal", "icon": "$(terminal)" },
{ "command": "opencoder-ui.installCli", "title": "Opencoder: Install CLI" },
{ "command": "opencoder-ui.switchSession", "title": "Opencoder: Switch Session", "icon": "$(history)" }
],
"keybindings": [
{
"command": "opencoder-ui.focus",
"key": "ctrl+shift+alt+oem_period",
"mac": "cmd+shift+alt+oem_period",
"when": "editorTextFocus || terminalFocus"
},
{
"command": "opencoder-ui.newSession",
"key": "ctrl+shift+alt+o",
"mac": "cmd+shift+alt+o",
"when": "editorTextFocus || terminalFocus"
},
{
"command": "opencoder-ui.switchSession",
"key": "ctrl+shift+alt+s",
"mac": "cmd+shift+alt+s",
"when": "editorTextFocus || terminalFocus"
}
],
"menus": {
"commandPalette": [
{ "command": "opencoder-ui.focus" },
{ "command": "opencoder-ui.newSession" },
{ "command": "opencoder-ui.refresh" },
{ "command": "opencoder-ui.openSettings" },
{ "command": "opencoder-ui.restartServer" },
{ "command": "opencoder-ui.openTerminal" },
{ "command": "opencoder-ui.installCli" },
{ "command": "opencoder-ui.switchSession" }
]
},
"configuration": {
"title": "Opencoder",
"properties": {
"opencoder-ui.opencodePath": {
"type": "string",
"default": "opencode",
"description": "CLI command or path used to launch the OpenCode server."
},
"opencoder-ui.serverBaseUrl": {
"type": "string",
"default": "http://127.0.0.1:4096",
"description": "Base URL for the OpenCode server."
},
"opencoder-ui.autoStartServer": {
"type": "boolean",
"default": true,
"description": "Auto-start `opencode serve` if the server is not running."
},
"opencoder-ui.debugServerLogs": {
"type": "boolean",
"default": false,
"description": "Stream OpenCode server logs into the output channel."
},
"opencoder-ui.language": {
"type": "string",
"enum": ["auto", "en", "zh", "zht", "ko", "de", "es", "fr", "da", "ja", "pl", "ru", "ar", "no", "br", "th", "bs", "tr"],
"default": "auto",
"description": "App language. 'auto' follows system language."
},
"opencoder-ui.uiColorScheme": {
"type": "string",
"enum": ["system", "light", "dark"],
"default": "system",
"description": "Color scheme preference."
},
"opencoder-ui.themeId": {
"type": "string",
"default": "oc-2",
"description": "OpenCode UI theme id."
},
"opencoder-ui.uiFont": {
"type": "string",
"default": "",
"description": "UI font family override."
},
"opencoder-ui.codeFont": {
"type": "string",
"default": "",
"description": "Code font family override."
},
"opencoder-ui.autoSave": {
"type": "boolean",
"default": true,
"description": "Auto-save edits in OpenCode sessions."
},
"opencoder-ui.fontSize": {
"type": "number",
"default": 14,
"minimum": 10,
"maximum": 28,
"description": "Font size for the OpenCode UI."
},
"opencoder-ui.showReasoningSummaries": {
"type": "boolean",
"default": false,
"description": "Show reasoning summaries in the feed."
},
"opencoder-ui.shellToolPartsExpanded": {
"type": "boolean",
"default": false,
"description": "Expand shell tool result parts by default."
},
"opencoder-ui.editToolPartsExpanded": {
"type": "boolean",
"default": false,
"description": "Expand edit tool result parts by default."
},
"opencoder-ui.releaseNotes": {
"type": "boolean",
"default": true,
"description": "Show release notes after updates."
},
"opencoder-ui.checkUpdatesOnStartup": {
"type": "boolean",
"default": true,
"description": "Check for updates on startup."
},
"opencoder-ui.notifyAgent": {
"type": "boolean",
"default": true,
"description": "Desktop notifications for agent events."
},
"opencoder-ui.notifyPermissions": {
"type": "boolean",
"default": true,
"description": "Desktop notifications for permission prompts."
},
"opencoder-ui.notifyErrors": {
"type": "boolean",
"default": false,
"description": "Desktop notifications for errors."
},
"opencoder-ui.soundAgentEnabled": { "type": "boolean", "default": true, "description": "Sound for agent notifications." },
"opencoder-ui.soundAgent": { "type": "string", "default": "staplebops-01", "description": "Sound id for agent notifications." },
"opencoder-ui.soundPermissionsEnabled": { "type": "boolean", "default": true, "description": "Sound for permission notifications." },
"opencoder-ui.soundPermissions": { "type": "string", "default": "staplebops-02", "description": "Sound id for permission notifications." },
"opencoder-ui.soundErrorsEnabled": { "type": "boolean", "default": true, "description": "Sound for error notifications." },
"opencoder-ui.soundErrors": { "type": "string", "default": "nope-03", "description": "Sound id for error notifications." },
"opencoder-ui.autoAcceptWorkspacePermissions": {
"type": "boolean",
"default": false,
"description": "Auto-accept permission prompts for the current workspace."
},
"opencoder-ui.customKeybinds": {
"type": ["object", "null"],
"default": null,
"additionalProperties": { "type": "string" },
"description": "Override OpenCode keybinds by command id."
},
"opencoder-ui.modelVisibility": {
"type": ["object", "null"],
"default": null,
"additionalProperties": { "type": "string", "enum": ["show", "hide"] },
"description": "Per-model visibility map."
}
}
}
},
"scripts": {
"build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js",
"watch": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --watch",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.6",
"@types/node": "^22.0.0",
"@types/vscode": "^1.96.0",
"esbuild": "^0.25.0",
"typescript": "^5.6.0"
},
"dependencies": {
"@opencode-ai/sdk": "^1.3.17",
"cross-spawn": "^7.0.6"
},
"author": "Silver",
"capabilities": {
"untrustedWorkspaces": { "supported": true },
"virtualWorkspaces": false
}
}