Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
339 lines (339 loc) · 10.4 KB
/
Copy pathpackage.json
File metadata and controls
339 lines (339 loc) · 10.4 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
{
"name": "relaycode-huxon",
"displayName": "RelayCode — AI Coding Agent",
"description": "A focused AI coding workspace with Agent, Chat, Plan, multi-provider routing, MCP tools and safe reviewable changes.",
"version": "2.0.12",
"publisher": "huxon",
"icon": "media/icon.png",
"license": "MIT",
"author": {
"name": "Huxon",
"url": "https://github.com/hungson1002"
},
"repository": {
"type": "git",
"url": "https://github.com/hungson1002/RelayCode.git"
},
"homepage": "https://github.com/hungson1002/RelayCode#readme",
"bugs": {
"url": "https://github.com/hungson1002/RelayCode/issues"
},
"galleryBanner": {
"color": "#171819",
"theme": "dark"
},
"keywords": [
"ai",
"assistant",
"codex",
"chat",
"agent",
"9router",
"openai",
"anthropic",
"claude",
"ollama",
"local-first",
"mcp",
"telemetry"
],
"engines": {
"vscode": "^1.100.0",
"node": ">=20.0.0"
},
"categories": [
"AI",
"Machine Learning",
"Programming Languages",
"Other"
],
"activationEvents": [
"onView:nineRouter.chatView",
"onCommand:nineRouter.openChat",
"onCommand:nineRouter.configure",
"onCommand:nineRouter.openDashboard",
"onCommand:nineRouter.manageClaudeWebBridge"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "nineRouter.openChat",
"title": "Open Chat",
"category": "RelayCode",
"icon": "$(comment-discussion)"
},
{
"command": "nineRouter.configure",
"title": "Configure Provider",
"category": "RelayCode",
"icon": "$(settings-gear)"
},
{
"command": "nineRouter.newThread",
"title": "New Thread",
"category": "RelayCode",
"icon": "$(add)"
},
{
"command": "nineRouter.openDashboard",
"title": "Open Provider Dashboard",
"category": "RelayCode",
"icon": "$(server-process)"
},
{
"command": "nineRouter.showLogs",
"title": "Show Agent Logs",
"category": "RelayCode",
"icon": "$(output)"
},
{
"command": "nineRouter.openTerminal",
"title": "Open Integrated Terminal",
"category": "RelayCode",
"icon": "$(terminal)"
},
{
"command": "nineRouter.openBrowserPreview",
"title": "Open Browser Preview",
"category": "RelayCode",
"icon": "$(globe)"
},
{
"command": "nineRouter.manageChatGptBridge",
"title": "Manage ChatGPT Web Bridge",
"category": "RelayCode",
"icon": "$(link)"
},
{
"command": "nineRouter.manageClaudeWebBridge",
"title": "Manage Claude Web Bridge",
"category": "RelayCode",
"icon": "$(globe)"
},
{
"command": "nineRouter.clearRememberedChatGptCommands",
"title": "Clear Remembered ChatGPT Web Commands",
"category": "RelayCode",
"icon": "$(clear-all)"
},
{
"command": "nineRouter.manageScheduledTasks",
"title": "Manage Scheduled Tasks",
"category": "RelayCode",
"icon": "$(clock)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "nineRouter",
"title": "RelayCode",
"icon": "media/activity.svg"
}
]
},
"views": {
"nineRouter": [
{
"type": "webview",
"id": "nineRouter.chatView",
"name": "Chat"
}
]
},
"menus": {
"view/title": [
{
"command": "nineRouter.newThread",
"when": "view == nineRouter.chatView",
"group": "navigation@1"
}
]
},
"configuration": {
"title": "RelayCode — AI Coding Agent",
"properties": {
"nineRouter.language": {
"type": "string",
"enum": [
"vi",
"en"
],
"enumDescriptions": [
"Tiếng Việt",
"English"
],
"default": "en",
"description": "Interface language used by the RelayCode sidebar."
},
"nineRouter.provider": {
"type": "string",
"enum": [
"omniroute",
"9router",
"cockpit",
"opencode",
"openai",
"anthropic",
"openai-compatible",
"ollama",
"lm-studio"
],
"default": "9router",
"enumDescriptions": [
"🧭 OmniRoute - Local OpenAI-compatible gateway with automatic routing",
"🔷 9Router - Local-first routing with multi-model support",
"🛩️ Cockpit Tools - Local multi-account API gateway",
"⌨️ OpenCode - OpenAI-compatible inference through OpenCode Console",
"🤖 OpenAI - GPT-4, GPT-3.5 and more",
"🧠 Anthropic - Claude family models",
"🔌 OpenAI-Compatible - Custom endpoints (Together, Groq, etc.)",
"🦙 Ollama - Local models running on your machine",
"🎨 LM Studio - Local model server with UI"
],
"description": "🌐 AI provider for chat and Agent mode. Choose your preferred model source."
},
"nineRouter.endpoint": {
"type": "string",
"default": "http://127.0.0.1:20128/v1",
"description": "🔗 9Router OpenAI-compatible API endpoint URL."
},
"nineRouter.defaultMode": {
"type": "string",
"enum": [
"chat",
"agent"
],
"default": "agent",
"enumDescriptions": [
"💬 Chat - Direct conversation with AI",
"🤖 Agent - AI with workspace tool access"
],
"description": "🎯 Default mode when opening the chat view."
},
"nineRouter.defaultModel": {
"type": "string",
"default": "",
"description": "🎭 Default model ID to select on startup. Leave empty for provider default. Supports custom 9Router model names."
},
"nineRouter.fallbackModels": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Model IDs tried in order when the selected model fails before producing a response."
},
"nineRouter.monthlyCostLimit": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Estimated monthly cost limit in USD. 0 disables the limit."
},
"nineRouter.commandAllowList": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Optional command prefixes Agent may run."
},
"nineRouter.commandDenyList": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"format-volume",
"diskpart",
"shutdown",
"remove-item -recurse"
],
"description": "Command fragments Agent must never run, including in Full access."
},
"nineRouter.planBeforeRun": {
"type": "boolean",
"default": false,
"description": "Ask Agent to state a short plan before using tools."
},
"nineRouter.autoValidateChanges": {
"type": "boolean",
"default": true,
"description": "Automatically run the most appropriate project validation after Agent changes code and before the turn completes."
},
"nineRouter.notifyOnComplete": {
"type": "boolean",
"default": true,
"description": "Show an IDE notification when an Agent task completes."
},
"nineRouter.agentInactivityTimeoutSeconds": {
"type": "number",
"default": 180,
"minimum": 60,
"maximum": 900,
"description": "Stop a provider request after this many seconds without a completed model, tool or terminal event. Non-streaming Agent tool calls may legitimately take more than 60 seconds; progress heartbeats remain visible while waiting."
},
"nineRouter.contextMaxChars": {
"type": "number",
"default": 120000,
"minimum": 16000,
"description": "Maximum context characters sent in one request before automatic compaction."
},
"nineRouter.confirmFallback": {
"type": "boolean",
"default": true,
"description": "Ask before switching to a fallback model."
},
"nineRouter.routerCommand": {
"type": "string",
"default": "9router",
"description": "🚀 9Router CLI executable name or path. Used to start the local server."
},
"nineRouter.chatGptBridge.port": {
"type": "number",
"default": 43119,
"minimum": 1024,
"maximum": 65535,
"description": "Loopback port used by the private ChatGPT Web MCP bridge."
},
"nineRouter.chatGptBridge.autoStart": {
"type": "boolean",
"default": false,
"description": "Start the private ChatGPT Web MCP bridge when RelayCode activates in a trusted workspace."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run check",
"build": "node esbuild.mjs --production",
"watch": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:e2e": "vitest run test/routerExternal.e2e.test.ts test/agentRecovery.e2e.test.ts",
"check": "npm run typecheck && npm test && npm run build",
"package": "npm run check && vsce package --no-dependencies --no-rewrite-relative-links",
"release:patch": "npm version patch -m \"release: v%s\" && git push origin main --follow-tags",
"publish:vscode": "node scripts/publish.mjs vscode",
"publish:openvsx": "node scripts/publish.mjs openvsx"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/vscode": "^1.100.0",
"@vscode/vsce": "^3.6.0",
"esbuild": "^0.25.0",
"ovsx": "^1.0.2",
"sharp": "^0.35.3",
"typescript": "^5.8.0",
"vitest": "^3.2.0"
},
"dependencies": {
"@lobehub/icons-static-svg": "^1.94.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@phosphor-icons/core": "^2.1.1",
"ajv": "^8.20.0",
"simple-icons": "^16.27.1",
"zod": "^4.4.3"
}
}