Repository navigation
Commit 6665e33
committed
Remove obsolete default API configurations for commit messages and intelligent file search and switch prompt view API config handling to ApiPromptType
- remove the ability to set a default commit message configuration
- remove the ability to set a default intelligent file search configuration
- Remove `'edit-files'` from `ApiFeature`, decouple prompt view configuration flows by replacing overloaded `api_feature` properties with `api_prompt_type?: ApiPromptType`, and eliminate the `as any` cast in `Main.tsx` across all related messages and handlers.
├── apps
│ └── editor
│ ├── package.json
│ └── src
│ ├── commands
│ │ └── generate-commit-message-commands
│ │ └── utils
│ │ └── get-commit-message-config.ts
│ ├── constants
│ │ └── state-keys.ts
│ ├── features
│ │ └── search-files
│ │ └── utils
│ │ └── prompt-for-config.ts
│ ├── services
│ │ └── providers-manager.ts
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ └── message-handlers
│ │ │ ├── handle-create-api-configuration.ts
│ │ │ └── handle-update-api-configuration.ts
│ │ ├── frontend
│ │ │ ├── Main
│ │ │ │ └── Main.tsx
│ │ │ └── hooks
│ │ │ └── use-api-configuration-editing.ts
│ │ └── types
│ │ └── messages.ts
│ ├── settings
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ ├── handle-create-api-configuration.ts
│ │ │ │ ├── handle-get-api-configurations.ts
│ │ │ │ ├── handle-select-default-api-configuration.ts
│ │ │ │ ├── handle-set-default-api-configuration.ts
│ │ │ │ └── handle-update-api-configuration.ts
│ │ │ └── settings-view-provider.ts
│ │ ├── frontend
│ │ │ ├── Home
│ │ │ │ ├── Home.tsx
│ │ │ │ └── sections
│ │ │ │ └── ApiSection.tsx
│ │ │ ├── hooks
│ │ │ │ ├── use-api-configuration-editing.ts
│ │ │ │ └── use-settings.ts
│ │ │ └── i18n
│ │ │ └── translations
│ │ │ └── api.ts
│ │ └── types
│ │ └── messages.ts
│ └── shared
│ ├── actions
│ │ └── api
│ │ └── update
│ │ └── update.ts
│ └── types
│ └── api-features.ts
└── packages
└── shared
└── src
└── types
└── prompt-types.ts1 parent dd534d5 commit 6665e33
15 files changed
Lines changed: 25 additions & 174 deletions
File tree
- apps/editor
- src
- commands/generate-commit-message-commands/utils
- features/search-files/utils
- services
- views
- prompt
- backend/message-handlers
- frontend
- Main
- hooks
- types
- settings
- backend/message-handlers
- frontend
- Home/sections
- i18n/translations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | 1196 | | |
1200 | 1197 | | |
1201 | 1198 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | 1199 | | |
1206 | 1200 | | |
1207 | 1201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 32 | + | |
39 | 33 | | |
40 | 34 | | |
41 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
189 | | - | |
190 | | - | |
191 | 187 | | |
192 | 188 | | |
193 | | - | |
194 | | - | |
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
| |||
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 291 | | |
316 | 292 | | |
317 | 293 | | |
| |||
330 | 306 | | |
331 | 307 | | |
332 | 308 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 309 | | |
352 | 310 | | |
353 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
417 | | - | |
| 416 | + | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
| |||
478 | 477 | | |
479 | 478 | | |
480 | 479 | | |
481 | | - | |
| 480 | + | |
482 | 481 | | |
483 | 482 | | |
484 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 36 | + | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
0 commit comments