Repository navigation
Commit 8a5b64d
committed
Replace hardcoded fallback port with configurable forwarded ports for Remote-SSH setups
- in Settings > WEB, below Chatbots, add Ports group. It should allow users add to settings.json-held array of numbers, a port number. Don't limit the number of added ports. in `apps/editor/package.json`, name the key 'forwardedPorts'.
- move the port forwarding ui to ui package
- rename 'add port' to 'Forwarded ports', add missing translations
- translate [Fragment], move
- move ports below defaults
- the field is red from the start, should not be when empty
- whenever 'forwarded ports' change, send them to the connected browser, so that it knows what ports it should try to connect to
- can multiple editors e.g. VS Code and VSCodium send their own sets of forwareded ports? they should
- remove the + 1 port, just check the default 55155 and user-specified ones
- in settings, rename WEB > Ports to WEB > Autofill. Place it as second, below Chatbots.
- make 'forwarded ports' collapsible
├── apps
│ ├── browser
│ │ └── src
│ │ └── background
│ │ ├── keep-alive.ts
│ │ ├── main.ts
│ │ ├── message-handler.ts
│ │ └── websocket.ts
│ └── editor
│ ├── package.json
│ └── src
│ ├── extension.ts
│ ├── services
│ │ ├── websocket-manager.ts
│ │ └── websocket-server-process.ts
│ ├── types
│ │ └── web-configuration.ts
│ ├── utils
│ │ └── web-configuration-format-converters.ts
│ └── views
│ ├── settings
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ ├── handle-create-web-configuration.ts
│ │ │ │ ├── handle-delete-web-configuration.ts
│ │ │ │ ├── handle-get-forwarded-ports.ts
│ │ │ │ ├── handle-get-web-configurations.ts
│ │ │ │ ├── handle-pick-chatbot.ts
│ │ │ │ ├── handle-pick-model.ts
│ │ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ │ ├── handle-reorder-web-configurations.ts
│ │ │ │ ├── handle-select-default-web-configuration.ts
│ │ │ │ ├── handle-set-default-web-configuration.ts
│ │ │ │ ├── handle-update-forwarded-ports.ts
│ │ │ │ ├── handle-update-web-configuration.ts
│ │ │ │ └── index.ts
│ │ │ └── settings-view-provider.ts
│ │ ├── frontend
│ │ │ ├── App.tsx
│ │ │ ├── Home
│ │ │ │ ├── Home.tsx
│ │ │ │ ├── hooks
│ │ │ │ │ └── use-scroll-to.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── sections
│ │ │ │ ├── ApiSection.tsx
│ │ │ │ ├── CliSection.tsx
│ │ │ │ ├── GeneralSection.tsx
│ │ │ │ └── WebSection.tsx
│ │ │ ├── Settings.tsx
│ │ │ ├── forms
│ │ │ │ ├── EditProviderForm
│ │ │ │ │ ├── EditProviderForm.module.scss
│ │ │ │ │ ├── EditProviderForm.tsx
│ │ │ │ │ └── index.ts
│ │ │ │ ├── EditTemplateForm
│ │ │ │ │ ├── EditTemplateForm.module.scss
│ │ │ │ │ ├── EditTemplateForm.tsx
│ │ │ │ │ └── index.ts
│ │ │ │ └── TemplatesForm
│ │ │ │ ├── TemplatesForm.tsx
│ │ │ │ └── index.ts
│ │ │ ├── hooks
│ │ │ │ ├── use-api-configuration-editing.ts
│ │ │ │ ├── use-cli-configuration-editing.ts
│ │ │ │ ├── use-provider-editing.ts
│ │ │ │ ├── use-settings.ts
│ │ │ │ ├── use-template-editing.ts
│ │ │ │ └── use-web-configuration-editing.ts
│ │ │ ├── i18n
│ │ │ │ ├── translations
│ │ │ │ │ ├── actions.ts
│ │ │ │ │ ├── api.ts
│ │ │ │ │ ├── cli.ts
│ │ │ │ │ ├── common.ts
│ │ │ │ │ ├── edit-provider-form.ts
│ │ │ │ │ ├── edit-template-form.ts
│ │ │ │ │ ├── general.ts
│ │ │ │ │ ├── index.ts
│ │ │ │ │ ├── sections.ts
│ │ │ │ │ └── web.ts
│ │ │ │ └── use-translation.tsx
│ │ │ └── utils
│ │ │ └── post-message.ts
│ │ └── types
│ │ └── messages.ts
│ └── shared
│ ├── actions
│ │ └── web
│ │ ├── create.ts
│ │ ├── delete.ts
│ │ ├── pick-chatbot.ts
│ │ ├── pick-model.ts
│ │ ├── reorder.ts
│ │ ├── toggle-pinned.ts
│ │ └── update.ts
│ ├── forms
│ │ └── EditWebConfigurationForm
│ │ ├── EditWebConfigurationForm.module.scss
│ │ ├── EditWebConfigurationForm.tsx
│ │ └── index.ts
│ ├── i18n
│ │ ├── translations
│ │ │ ├── edit-web-configuration-form.ts
│ │ │ └── index.ts
│ │ └── use-translation.tsx
│ └── utils
│ └── generate-unique-name.ts
└── packages
├── shared
│ └── src
│ ├── constants
│ │ ├── chatbots.ts
│ │ └── websocket.ts
│ └── types
│ └── websocket-message.ts
└── ui
└── src
└── components
└── editor
├── common
│ ├── Button
│ │ ├── Button.module.scss
│ │ ├── Button.tsx
│ │ └── index.ts
│ ├── Dropdown
│ │ ├── Dropdown.module.scss
│ │ ├── Dropdown.tsx
│ │ └── index.ts
│ ├── Field
│ │ ├── Field.module.scss
│ │ ├── Field.tsx
│ │ └── index.ts
│ ├── Icon
│ │ ├── Icon.tsx
│ │ └── index.ts
│ ├── IconButton
│ │ ├── IconButton.module.scss
│ │ ├── IconButton.tsx
│ │ └── index.ts
│ ├── Input
│ │ ├── Input.module.scss
│ │ ├── Input.stories.tsx
│ │ ├── Input.tsx
│ │ └── index.ts
│ ├── QuickPickButton
│ │ ├── QuickPickButton.module.scss
│ │ ├── QuickPickButton.tsx
│ │ └── index.ts
│ ├── Scrollable
│ │ ├── Scrollable.module.scss
│ │ ├── Scrollable.tsx
│ │ └── index.ts
│ ├── TextButton
│ │ ├── TextButton.module.scss
│ │ ├── TextButton.tsx
│ │ └── index.ts
│ ├── Textarea
│ │ ├── Textarea.module.scss
│ │ ├── Textarea.tsx
│ │ └── index.ts
│ └── Toggler
│ ├── Toggler.module.scss
│ ├── Toggler.tsx
│ └── index.ts
└── settings-view
├── DefaultConfigurationSelector
│ ├── DefaultConfigurationSelector.module.scss
│ ├── DefaultConfigurationSelector.tsx
│ └── index.ts
├── ForwardedPorts
│ ├── ForwardedPorts.module.scss
│ ├── ForwardedPorts.tsx
│ └── index.ts
├── Group
│ ├── Group.module.scss
│ └── Group.tsx
├── Item
│ ├── Item.module.scss
│ ├── Item.stories.tsx
│ ├── Item.tsx
│ └── index.ts
├── Layout
│ ├── Layout.module.scss
│ ├── Layout.tsx
│ └── index.ts
├── Modal
│ ├── Form
│ │ ├── Form.module.scss
│ │ ├── Form.tsx
│ │ └── index.ts
│ ├── Modal.module.scss
│ ├── Modal.tsx
│ └── index.ts
├── NavigationItemGroup
│ ├── NavigationItemGroup.module.scss
│ ├── NavigationItemGroup.tsx
│ └── index.ts
├── NavigationItemSection
│ ├── NavigationItemSection.module.scss
│ ├── NavigationItemSection.tsx
│ └── index.ts
├── NavigationSection
│ ├── NavigationSection.module.scss
│ ├── NavigationSection.tsx
│ └── index.ts
├── Notices
│ ├── Notices.module.scss
│ ├── Notices.tsx
│ └── index.ts
├── Section
│ ├── Section.module.scss
│ ├── Section.tsx
│ └── index.ts
├── SortableList
│ ├── SortableList.module.scss
│ ├── SortableList.stories.tsx
│ ├── SortableList.tsx
│ └── index.ts
└── Templates
├── Templates.module.scss
├── Templates.tsx
└── index.ts1 parent d81a77f commit 8a5b64d
20 files changed
Lines changed: 511 additions & 9 deletions
File tree
- apps
- browser/src/background
- editor
- src
- services
- views/settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- i18n/translations
- types
- packages
- ui/src/components/editor
- common/Input
- settings-view/ForwardedPorts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 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 | + | |
26 | 71 | | |
27 | 72 | | |
28 | 73 | | |
| |||
57 | 102 | | |
58 | 103 | | |
59 | 104 | | |
60 | | - | |
61 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
62 | 108 | | |
63 | 109 | | |
64 | 110 | | |
| |||
141 | 187 | | |
142 | 188 | | |
143 | 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 | + | |
144 | 217 | | |
145 | 218 | | |
146 | 219 | | |
| |||
164 | 237 | | |
165 | 238 | | |
166 | 239 | | |
167 | | - | |
168 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
169 | 243 | | |
170 | 244 | | |
171 | 245 | | |
| |||
182 | 256 | | |
183 | 257 | | |
184 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
185 | 282 | | |
186 | 283 | | |
187 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1118 | 1126 | | |
1119 | 1127 | | |
1120 | 1128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
302 | 312 | | |
303 | 313 | | |
304 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
| |||
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
263 | 278 | | |
264 | 279 | | |
265 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
284 | 303 | | |
285 | 304 | | |
286 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
| 333 | + | |
327 | 334 | | |
328 | 335 | | |
329 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| 218 | + | |
212 | 219 | | |
213 | 220 | | |
214 | 221 | | |
| |||
446 | 453 | | |
447 | 454 | | |
448 | 455 | | |
| 456 | + | |
| 457 | + | |
449 | 458 | | |
450 | 459 | | |
451 | 460 | | |
| |||
0 commit comments