-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
502 lines (502 loc) · 14.9 KB
/
Copy pathpackage.json
File metadata and controls
502 lines (502 loc) · 14.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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
{
"name": "devspaces-remote-connector",
"displayName": "Dev Spaces Local/Remote Support",
"description": "Connect to Red Hat OpenShift Dev Spaces workspaces with zero configuration. Manage workspace lifecycle, authenticate via OpenShift OAuth, and establish remote development sessions.",
"version": "0.8.1",
"author": "Red Hat",
"publisher": "redhat",
"icon": "images/devspaces-icon.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/devspaces-remote-connector"
},
"engines": {
"node": ">=22.0.0",
"vscode": "^1.107.0"
},
"categories": [
"Other"
],
"keywords": [
"Kubernetes",
"OpenShift",
"DevSpaces",
"remote development",
"cloud IDE"
],
"activationEvents": [
"onView:devspacesWorkspaces",
"onCommand:devspaces.signIn",
"onResolveRemoteAuthority:devspaces"
],
"main": "./dist/extension.js",
"extensionKind": [
"ui"
],
"enabledApiProposals": [
"resolvers"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "devspaces-explorer",
"title": "Dev Spaces",
"icon": "images/devspaces-sidebar.svg"
}
]
},
"views": {
"devspaces-explorer": [
{
"id": "devspacesWorkspaces",
"name": "Workspaces",
"when": "devspaces.authenticated && !remoteName"
},
{
"id": "devspacesWelcome",
"name": "Welcome",
"when": "!devspaces.authenticated && !remoteName"
}
]
},
"viewsWelcome": [
{
"view": "devspacesWelcome",
"contents": "Connect to your Dev Spaces cluster to get started.\n[Sign In to Dev Spaces](command:devspaces.signIn)"
},
{
"view": "devspacesWorkspaces",
"contents": "$(loading~spin) Loading workspaces..."
}
],
"commands": [
{
"command": "devspaces.signIn",
"title": "Sign In to Dev Spaces",
"category": "Dev Spaces",
"icon": "$(sign-in)"
},
{
"command": "devspaces.signOutCluster",
"title": "Sign Out",
"category": "Dev Spaces",
"icon": "$(sign-out)"
},
{
"command": "devspaces.addCluster",
"title": "Add Cluster",
"category": "Dev Spaces",
"icon": "$(add)"
},
{
"command": "devspaces.refreshWorkspaces",
"title": "Refresh Workspaces",
"category": "Dev Spaces",
"icon": "$(refresh)"
},
{
"command": "devspaces.connectWorkspace",
"title": "Connect to Workspace",
"category": "Dev Spaces",
"icon": "$(remote-explorer)"
},
{
"command": "devspaces.startWorkspace",
"title": "Start Workspace",
"category": "Dev Spaces",
"icon": "$(play)"
},
{
"command": "devspaces.stopWorkspace",
"title": "Stop Workspace",
"category": "Dev Spaces",
"icon": "$(debug-stop)"
},
{
"command": "devspaces.restartWorkspace",
"title": "Restart Workspace",
"category": "Dev Spaces",
"icon": "$(debug-restart)"
},
{
"command": "devspaces.deleteWorkspace",
"title": "Delete Workspace",
"category": "Dev Spaces",
"icon": "$(trash)"
},
{
"command": "devspaces.createWorkspace",
"title": "Create Workspace from Git URL",
"category": "Dev Spaces",
"icon": "$(repo-clone)"
},
{
"command": "devspaces.createEmptyWorkspace",
"title": "Create Empty Workspace",
"category": "Dev Spaces",
"icon": "$(file-add)"
},
{
"command": "devspaces.newWorkspace",
"title": "New Workspace",
"category": "Dev Spaces",
"icon": "$(add)"
},
{
"command": "devspaces.openInBrowser",
"title": "Open in Browser",
"category": "Dev Spaces",
"icon": "$(globe)"
},
{
"command": "devspaces.openInDashboard",
"title": "Open Dashboard",
"category": "Dev Spaces",
"icon": "$(dashboard)"
},
{
"command": "devspaces.openConsole",
"title": "Open OpenShift Console",
"category": "Dev Spaces",
"icon": "$(globe)"
},
{
"command": "devspaces.restartFromLocalDevfile",
"title": "Restart Workspace from Local Devfile",
"category": "Dev Spaces",
"enablement": "devspaces.isRemoteSession"
},
{
"command": "devspaces.connectRecent",
"title": "Connect to Recent Workspace",
"category": "Dev Spaces"
},
{
"command": "devspaces.disconnect",
"title": "Disconnect",
"category": "Dev Spaces",
"icon": "$(debug-disconnect)"
},
{
"command": "devspaces.removeCluster",
"title": "Remove Cluster",
"category": "Dev Spaces",
"icon": "$(trash)"
},
{
"command": "devspaces.clearAuth",
"title": "Clear All Authentication",
"category": "Dev Spaces",
"icon": "$(clear-all)"
}
],
"menus": {
"commandPalette": [
{
"command": "devspaces.signIn",
"when": "!remoteName"
},
{
"command": "devspaces.signOutCluster",
"when": "!remoteName"
},
{
"command": "devspaces.addCluster",
"when": "!remoteName"
},
{
"command": "devspaces.removeCluster",
"when": "!remoteName"
},
{
"command": "devspaces.refreshWorkspaces",
"when": "!remoteName"
},
{
"command": "devspaces.connectWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.connectRecent",
"when": "!remoteName"
},
{
"command": "devspaces.startWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.createWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.createEmptyWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.newWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.deleteWorkspace",
"when": "!remoteName"
},
{
"command": "devspaces.openInBrowser",
"when": "!remoteName"
},
{
"command": "devspaces.clearAuth",
"when": "!remoteName"
},
{
"command": "devspaces.disconnect",
"when": "remoteName == devspaces"
},
{
"command": "devspaces.stopWorkspace",
"when": "remoteName == devspaces"
},
{
"command": "devspaces.restartWorkspace",
"when": "remoteName == devspaces"
},
{
"command": "devspaces.restartFromLocalDevfile",
"when": "remoteName == devspaces"
}
],
"view/title": [
{
"command": "devspaces.newWorkspace",
"when": "view == devspacesWorkspaces && !devspaces.initializing",
"group": "navigation@1"
},
{
"command": "devspaces.refreshWorkspaces",
"when": "view == devspacesWorkspaces",
"group": "navigation@2"
},
{
"command": "devspaces.createWorkspace",
"when": "view == devspacesWorkspaces && !devspaces.initializing",
"group": "create@1"
},
{
"command": "devspaces.createEmptyWorkspace",
"when": "view == devspacesWorkspaces && !devspaces.initializing",
"group": "create@2"
},
{
"command": "devspaces.clearAuth",
"when": "view == devspacesWorkspaces",
"group": "auth@1"
},
{
"command": "devspaces.openInDashboard",
"when": "view == devspacesWorkspaces",
"group": "auth@2"
}
],
"view/item/context": [
{
"command": "devspaces.connectWorkspace",
"when": "viewItem == workspace-running",
"group": "inline@1"
},
{
"command": "devspaces.startWorkspace",
"when": "viewItem == workspace-stopped",
"group": "inline@1"
},
{
"command": "devspaces.stopWorkspace",
"when": "viewItem == workspace-running",
"group": "inline@2"
},
{
"command": "devspaces.deleteWorkspace",
"when": "viewItem =~ /^workspace-/",
"group": "workspace@3"
},
{
"command": "devspaces.restartWorkspace",
"when": "viewItem == workspace-running || viewItem == workspace-failed",
"group": "workspace@1"
},
{
"command": "devspaces.openInBrowser",
"when": "viewItem == workspace-running",
"group": "workspace@2"
},
{
"command": "devspaces.removeCluster",
"when": "viewItem == cluster",
"group": "cluster@1"
},
{
"command": "devspaces.newWorkspace",
"when": "viewItem == cluster",
"group": "cluster@2"
},
{
"command": "devspaces.signOutCluster",
"when": "viewItem == cluster",
"group": "cluster@3"
}
]
},
"resourceLabelFormatters": [
{
"scheme": "vscode-remote",
"authority": "devspaces+*",
"formatting": {
"label": "${path}",
"separator": "/",
"tildify": true,
"workspaceSuffix": "DevSpaces"
}
}
],
"configuration": {
"title": "Dev Spaces Connector",
"properties": {
"devspaces.autoConnect": {
"type": "boolean",
"default": false,
"description": "Automatically connect to the last used workspace on startup."
},
"devspaces.autoOpenFolder": {
"type": "boolean",
"default": true,
"description": "Automatically open the project folder after connecting."
},
"devspaces.clusters": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of Dev Spaces cluster URLs. The first entry is used as the default cluster."
},
"devspaces.kiroCopyCredentials": {
"type": "boolean",
"default": true,
"markdownDescription": "Copy Kiro IDE authentication credentials to the workspace pod on connect.",
"when": "devspaces.isKiroIDE"
},
"devspaces.rehDownloadUrl": {
"type": "string",
"default": "",
"description": "Custom URL template for downloading the Remote Extension Host (REH) server binary. Format: `https://your-host/path/${commit}/kiro-reh-${os}-${arch}.tar.gz`. If empty, uses the `serverDownloadUrlTemplate` from the IDE's built-in product.json."
},
"devspaces.connectionTimeout": {
"type": "number",
"default": 300,
"description": "Maximum time in seconds to wait for a workspace to start."
},
"devspaces.reconnect.enabled": {
"type": "boolean",
"default": true,
"description": "Automatically attempt to reconnect when connection is lost."
},
"devspaces.reconnect.maxRetries": {
"type": "number",
"default": 5,
"description": "Maximum number of reconnection attempts."
},
"devspaces.logLevel": {
"type": "string",
"enum": [
"debug",
"info",
"warn",
"error"
],
"default": "info",
"description": "Logging verbosity level."
},
"devspaces.openBehavior": {
"type": "string",
"enum": [
"newWindow",
"currentWindow",
"prompt"
],
"enumDescriptions": [
"Always open the workspace in a new window",
"Always open the workspace in the current window",
"Ask each time whether to open in a new or current window"
],
"default": "newWindow",
"description": "Controls how a remote workspace session is opened when connecting."
},
"devspaces.hideRemoteExplorer": {
"type": "boolean",
"default": true,
"description": "Hide the Remote-SSH explorer sidebar. Users should use the Dev Spaces sidebar instead."
},
"devspaces.initialization.roleBindingName": {
"type": "string",
"default": "devspaces-user-container-build",
"description": "Name of the RoleBinding to wait for during namespace initialization. Change this for testing."
},
"devspaces.initialization.timeout": {
"type": "number",
"default": 120,
"description": "Maximum time in seconds to wait for namespace initialization."
},
"devspaces.initialization.pollInterval": {
"type": "number",
"default": 2,
"description": "Poll interval in seconds when checking for namespace readiness."
},
"devspaces.initialization.namespaceAgeThreshold": {
"type": "number",
"default": 300,
"description": "Namespace age threshold in seconds. Namespaces newer than this trigger the initialization check."
},
"devspaces.certificateValidation.enabled": {
"type": "boolean",
"default": true,
"description": "Whether to reject cluster SSL/TLS certificates that are invalid, expired or self-signed."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"prebuild": "node scripts/fetch-ca-bundle.js",
"clean": "rm -rf out dist",
"prepare-pre-release": "node scripts/index.mjs prepare-pre-release",
"compile": "npm run clean && node scripts/fetch-ca-bundle.js && node esbuild.js",
"watch": "node scripts/fetch-ca-bundle.js && node esbuild.js --watch",
"package": "node scripts/fetch-ca-bundle.js && node esbuild.js --production",
"lint": "eslint src --max-warnings 0",
"lint:dead": "knip",
"test": "jest",
"vsix": "vsce package && mv *.vsix devspaces-connector-$(node -p \"require('./package.json').version\").vsix",
"vsix:all": "npm run vsix"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.11.0",
"@types/vscode": "^1.107.0",
"@typescript-eslint/eslint-plugin": "^8.60.0",
"@typescript-eslint/parser": "^8.60.0",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.28.1",
"eslint": "^10.4.0",
"jest": "^29.7.0",
"jest-junit": "^17.0.0",
"knip": "^5.88.1",
"ts-jest": "^29.4.11",
"typescript": "^5.5.0"
},
"dependencies": {
"@kubernetes/client-node": "^1.0.0",
"js-yaml": "^4.1.1"
}
}