-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
590 lines (590 loc) · 17.7 KB
/
Copy pathpackage.json
File metadata and controls
590 lines (590 loc) · 17.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
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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
{
"name": "opencode-sidebar-tui",
"displayName": "ulwcode-sidebar-terminal",
"description": "sidebar terminal Extension for VS Code with tmux, zellij, and native terminal support",
"version": "1.12.3",
"publisher": "islee23520",
"icon": "icon.png",
"engines": {
"vscode": "^1.106.0",
"node": ">=20.0.0"
},
"categories": [
"Other"
],
"keywords": [
"terminal",
"sidebar",
"tui",
"ai"
],
"repository": {
"type": "git",
"url": "https://github.com/islee23520/ulwcode.git"
},
"license": "MIT",
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"viewsContainers": {
"secondarySidebar": [
{
"id": "ulwContainer",
"title": "ULW",
"icon": "resources/ulwcode-sidebar.svg"
}
]
},
"views": {
"ulwContainer": [
{
"id": "ulw",
"name": "Terminal",
"type": "webview",
"icon": "resources/ulwcode-sidebar.svg",
"initialOrder": 1
}
]
},
"commands": [
{
"command": "ulw.start",
"title": "Start ULW Terminal",
"category": "ULW"
},
{
"command": "ulw.focus",
"title": "ULW: Focus Terminal"
},
{
"command": "ulw.sendToTerminal",
"title": "Send to Active Terminal",
"category": "ULW"
},
{
"command": "ulw.sendAtMention",
"title": "Send File Reference (@file)",
"category": "ULW"
},
{
"command": "ulw.sendAllOpenFiles",
"title": "Send All Open File References",
"category": "ULW"
},
{
"command": "ulw.sendFileToTerminal",
"title": "Send to Agent Terminal",
"category": "ULW"
},
{
"command": "ulw.paste",
"title": "Paste",
"category": "ULW",
"icon": "$(clippy)"
},
{
"command": "ulw.openInNewWindow",
"title": "Open Tmux Session in New Window",
"category": "ULW",
"icon": "$(empty-window)"
},
{
"command": "ulw.openSessionInNewWindow",
"title": "Open Session in New Window",
"category": "ULW",
"icon": "$(empty-window)"
},
{
"command": "ulw.spawnForWorkspace",
"title": "Spawn Tmux Session for Workspace",
"category": "ULW",
"icon": "$(add)"
},
{
"command": "ulw.selectInstance",
"title": "Select Agent Tmux Session",
"category": "ULW",
"icon": "$(server-environment)"
},
{
"command": "ulw.switchTmuxSession",
"title": "Switch Tmux Session",
"category": "ULW"
},
{
"command": "ulw.createTmuxSession",
"title": "ULW: Create Tmux Session"
},
{
"command": "ulw.browseTmuxSessions",
"title": "Browse Tmux Sessions",
"category": "ULW",
"icon": "$(server-environment)"
},
{
"command": "ulw.switchNativeShell",
"title": "Switch to Native Shell",
"category": "ULW"
},
{
"command": "ulw.killNativeShell",
"title": "ULW: Kill Native Shell"
},
{
"command": "ulw.toggleTmuxCommandToolbar",
"title": "Toggle Tmux Command Toolbar",
"category": "ULW",
"icon": "$(terminal-tmux)"
},
{
"command": "ulw.openTerminalInEditor",
"title": "Open Terminal in Editor",
"category": "ULW",
"icon": {
"light": "resources/ulwcode-activity-bar.svg",
"dark": "resources/ulwcode-activity-bar-dark.svg"
}
},
{
"command": "ulw.openNewSessionTerminalInEditor",
"title": "Open New Session Terminal in Editor",
"category": "ULW",
"icon": "$(empty-window)"
},
{
"command": "ulw.restoreTerminalToSidebar",
"title": "Restore Terminal to Sidebar",
"category": "ULW",
"icon": "$(layout-sidebar-left)"
},
{
"command": "ulw.tmuxSwitchPane",
"title": "Switch to Pane",
"category": "ULW",
"icon": "$(check)"
},
{
"command": "ulw.tmuxSplitPaneH",
"title": "Split Pane Side by Side",
"category": "ULW",
"icon": "$(split-horizontal)"
},
{
"command": "ulw.tmuxSplitPaneV",
"title": "Split Pane Top/Bottom",
"category": "ULW",
"icon": "$(split-vertical)"
},
{
"command": "ulw.tmuxSplitPaneWithCommand",
"title": "Split Pane with Command",
"category": "ULW",
"icon": "$(terminal)"
},
{
"command": "ulw.tmuxSendTextToPane",
"title": "Send Text to Pane",
"category": "ULW",
"icon": "$(file-symlink-file)"
},
{
"command": "ulw.tmuxResizePane",
"title": "Resize Pane",
"category": "ULW",
"icon": "$(move)"
},
{
"command": "ulw.tmuxSwapPane",
"title": "Swap Panes",
"category": "ULW",
"icon": "$(arrow-swap)"
},
{
"command": "ulw.tmuxKillPane",
"title": "Kill Pane",
"category": "ULW",
"icon": "$(trash)"
},
{
"command": "ulw.tmuxNextWindow",
"title": "Next Window",
"category": "ULW",
"icon": "$(chevron-right)"
},
{
"command": "ulw.tmuxPrevWindow",
"title": "Previous Window",
"category": "ULW",
"icon": "$(chevron-left)"
},
{
"command": "ulw.tmuxCreateWindow",
"title": "Create Window",
"category": "ULW",
"icon": "$(add)"
},
{
"command": "ulw.tmuxKillWindow",
"title": "Kill Window",
"category": "ULW",
"icon": "$(trash)"
},
{
"command": "ulw.tmuxSelectWindow",
"title": "Select Window",
"category": "ULW",
"icon": "$(list-selection)"
},
{
"command": "ulw.tmuxKillSession",
"title": "Kill Session",
"category": "ULW",
"icon": "$(trash)"
},
{
"command": "ulw.killTmuxSession",
"title": "ULW: Kill Tmux Session"
},
{
"command": "ulw.tmuxRefresh",
"title": "Restart Terminal",
"category": "ULW",
"icon": "$(refresh)"
}
],
"menus": {
"view/title": [
{
"command": "ulw.toggleTmuxCommandToolbar",
"group": "navigation",
"when": "view == ulw"
}
],
"editor/title": [
{
"command": "ulw.openTerminalInEditor",
"group": "navigation@1",
"when": "ulw.active"
}
],
"explorer/context": [
{
"command": "ulw.sendFileToTerminal",
"group": "2_workspace",
"when": "!explorerResourceIsFolder"
},
{
"command": "ulw.sendFileToTerminal",
"group": "2_workspace",
"when": "explorerResourceIsFolder"
}
],
"editor/context": [
{
"command": "ulw.sendAtMention",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "ulw.sendAtMention",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorTextFocus || terminalFocus"
},
{
"command": "ulw.sendAllOpenFiles",
"key": "ctrl+alt+a",
"mac": "cmd+alt+a",
"when": "editorTextFocus || terminalFocus"
},
{
"command": "ulw.browseTmuxSessions",
"key": "ctrl+alt+t",
"mac": "cmd+alt+t",
"when": "focusedView == 'ulw'"
},
{
"command": "-workbench.action.quickOpen",
"key": "ctrl+p",
"when": "focusedView == 'ulw'"
},
{
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"key": "ctrl+p",
"when": "inFilesPicker && inQuickOpen"
},
{
"command": "ulw.paste",
"key": "ctrl+v",
"mac": "cmd+v",
"when": "focusedView == 'ulw'"
},
{
"command": "ulw.toggleTmuxCommandToolbar",
"key": "ctrl+alt+m",
"mac": "cmd+alt+m",
"when": "focusedView == 'ulw'"
}
],
"configuration": {
"title": "ULW",
"properties": {
"ulw.fontSize": {
"type": "number",
"default": 14,
"minimum": 6,
"maximum": 25,
"description": "Terminal font size in pixels"
},
"ulw.fontFamily": {
"type": "string",
"default": "'JetBrainsMono Nerd Font', 'FiraCode Nerd Font', 'CascadiaCode NF', Menlo, monospace",
"description": "Terminal font family (Nerd Font recommended for Powerline/glyph support)"
},
"ulw.cursorBlink": {
"type": "boolean",
"default": true,
"description": "Enable cursor blinking"
},
"ulw.cursorStyle": {
"type": "string",
"default": "block",
"enum": [
"block",
"underline",
"bar"
],
"description": "Cursor style"
},
"ulw.scrollback": {
"type": "number",
"default": 10000,
"minimum": 0,
"maximum": 100000,
"description": "Maximum number of lines in scrollback buffer"
},
"ulw.autoFocusOnSend": {
"type": "boolean",
"default": true,
"description": "Automatically focus ULW after sending file references or text"
},
"ulw.autoStartOnOpen": {
"type": "boolean",
"default": true,
"description": "Automatically start the AI tool when the sidebar is opened. When false, shows a tool selector each time."
},
"ulw.shellPath": {
"type": "string",
"default": "",
"description": "Custom shell path to use for the terminal. Leave empty to use VS Code's default shell. Useful for specifying PowerShell, Git Bash, or other shells on Windows."
},
"ulw.shellArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Custom arguments to pass to the shell. Leave empty for automatic detection. Example: [\"/c\"] for cmd.exe or [\"-Command\"] for PowerShell."
},
"ulw.sendKeybindingsToShell": {
"type": "boolean",
"default": true,
"description": "Send Ctrl/Cmd + letter shortcuts (including Ctrl+P) directly to the sidebar terminal instead of letting VS Code intercept them. This extension's main purpose is running opencode (a TUI with its own keybindings), so the default is ON. You can turn it off if you prefer normal IDE shortcuts even when the sidebar terminal is focused. Control keys like Ctrl+C are always sent to the terminal."
},
"ulw.autoSwitchKoreanKeyboard": {
"type": "boolean",
"default": false,
"description": "Automatically switch the macOS system input source between English and Korean when the sidebar terminal detects likely Korean/English keyboard layout mistakes. Disabled by default."
},
"ulw.showTmuxWindowControls": {
"type": "boolean",
"default": true,
"description": "Show direct tmux session and window controls (+S, previous window, +W, next window) in the terminal toolbar. Turn this off to keep only the tmux command menu."
},
"ulw.autoShareContext": {
"type": "boolean",
"default": true,
"description": "Automatically share editor context (open files, selections) with OpenCode"
},
"ulw.httpTimeout": {
"type": "number",
"default": 5000,
"minimum": 1000,
"maximum": 30000,
"description": "HTTP API request timeout in milliseconds for communication with OpenCode"
},
"ulw.enableHttpApi": {
"type": "boolean",
"default": true,
"description": "Enable HTTP API for bidirectional communication between VS Code and OpenCode"
},
"ulw.logLevel": {
"type": "string",
"enum": [
"debug",
"info",
"warn",
"error"
],
"default": "info",
"description": "Log output level for ULW"
},
"ulw.contextDebounceMs": {
"type": "number",
"default": 500,
"minimum": 100,
"maximum": 5000,
"description": "Debounce delay for context updates (ms)"
},
"ulw.maxDiagnosticLength": {
"type": "number",
"default": 500,
"minimum": 100,
"maximum": 2000,
"description": "Maximum length of diagnostic messages"
},
"ulw.enableAutoSpawn": {
"type": "boolean",
"default": false,
"description": "When enabled, discovery may spawn OpenCode in the background if no instance is found (does not affect sidebar terminal startup)"
},
"ulw.terminalBackend": {
"type": "string",
"default": "tmux",
"enum": [
"native",
"tmux",
"zellij"
],
"enumDescriptions": [
"Native terminal — basic shell only, no multiplexer features (panes, tabs, sessions)",
"Tmux — full session, pane, and window management via tmux",
"Zellij — full session, pane, and tab management via zellij"
],
"description": "Select the terminal backend. Unavailable backends safely fall back to native.",
"order": 1
},
"ulw.terminal.defaultLocation": {
"type": "string",
"default": "editor",
"enum": [
"editor",
"sidebar"
],
"enumDescriptions": [
"Open ULW as a VS Code editor tab by default.",
"Show and use the ULW secondary sidebar terminal by default."
],
"description": "Choose where ULW opens by default. Use editor for a separate terminal window inside VS Code, or sidebar to expose the secondary sidebar terminal.",
"order": 2
},
"ulw.collapseSecondaryBarOnEditorOpen": {
"type": "boolean",
"default": true,
"description": "Close the secondary sidebar before moving the terminal into an editor group so the new editor tab gets the full workspace width."
},
"ulw.codeActionSeverities": {
"type": "array",
"items": {
"type": "string",
"enum": [
"error",
"warning",
"information",
"hint"
]
},
"default": [
"error",
"warning"
],
"description": "Diagnostic severities that trigger code actions"
},
"ulw.pane.defaultSplitDirection": {
"type": "string",
"default": "horizontal",
"enum": [
"horizontal",
"vertical"
],
"description": "Default direction when splitting a terminal pane"
},
"ulw.pane.focusOnClick": {
"type": "boolean",
"default": true,
"description": "Focus a pane when clicking on it"
},
"ulw.pane.showPaneActions": {
"type": "boolean",
"default": true,
"description": "Show pane action buttons (split, close) in the terminal"
},
"ulw.pane.renderer": {
"type": "string",
"default": "auto",
"enum": [
"webgl",
"canvas",
"auto"
],
"description": "Terminal renderer: webgl (fast), canvas (fallback), or auto (webgl up to 4 panes, then canvas)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\" && webpack",
"compile:e2e": "tsc -p tsconfig.e2e.json",
"watch": "webpack --watch",
"package": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\" && webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts",
"format": "prettier --write \"src/**/*.{ts,js,json,css,md}\"",
"test": "vitest run",
"pretest:e2e": "node -e \"require('fs').rmSync('out', { recursive: true, force: true })\" && npm run compile && npm run compile:e2e",
"test:e2e": "vscode-test",
"test:all": "npm run test && npm run test:e2e",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"build-and-install": "npx @vscode/vsce package -o build/extension.vsix && code --install-extension build/extension.vsix --force"
},
"dependencies": {
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/addon-webgl": "^0.19.0",
"@xterm/xterm": "^6.0.0",
"node-pty": "^1.2.0-beta.11",
"preact": "^10.29.1"
},
"overrides": {
"serialize-javascript": "^7.0.5"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^24.10.13",
"@types/vscode": "^1.106.1",
"@typescript-eslint/eslint-plugin": "^8.55.0",
"@typescript-eslint/parser": "^8.55.0",
"@vitest/coverage-v8": "^4.1.8",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"copy-webpack-plugin": "^14.0.0",
"css-loader": "^7.1.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-prettier": "^5.5.4",
"jsdom": "^29.0.1",
"mocha": "^11.7.5",
"prettier": "^3.7.2",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.4",
"typescript": "^5.9.3",
"vitest": "^4.1.8",
"webpack": "^5.105.2",
"webpack-cli": "^6.0.0"
}
}