Repository navigation
Commit 917564b
committed
Refactor message handlers to group configuration handlers into a configurations subdirectory
- place selected handlers in `apps/editor/src/views/prompt/backend/message-handlers/configurations`
- move `apps/editor/src/views/prompt/backend/message-handlers/handle-agentic-search/handle-agentic-search.ts` to `apps/editor/src/views/prompt/backend/message-handlers`
- move `apps/editor/src/views/prompt/backend/message-handlers/handle-at-sign-quick-pick/handle-at-sign-quick-pick.ts` to `apps/editor/src/views/prompt/backend/message-handlers`
- updating last used web configuration should be a util so that `apps/editor/src/views/prompt/backend/message-handlers/handle-autofill.ts`doesn't call another handle
- create index.ts in `apps/editor/src/views/prompt/backend/message-handlers/configurations`, fix imports in `apps/editor/src/views/prompt/backend/prompt-view-provider.ts`
└── apps
└── editor
└── src
└── views
└── prompt
└── backend
├── message-handlers
│ ├── configurations
│ │ ├── handle-create-api-configuration.ts
│ │ ├── handle-create-cli-configuration.ts
│ │ ├── handle-create-web-configuration.ts
│ │ ├── handle-delete-api-configuration.ts
│ │ ├── handle-delete-cli-configuration.ts
│ │ ├── handle-delete-web-configuration.ts
│ │ ├── handle-get-api-configurations.ts
│ │ ├── handle-pick-api-model.ts
│ │ ├── handle-pick-api-reasoning-effort.ts
│ │ ├── handle-pick-chatbot.ts
│ │ ├── handle-pick-model.ts
│ │ ├── handle-pick-provider.ts
│ │ ├── handle-pick-reasoning-effort.ts
│ │ ├── handle-reorder-api-configurations.ts
│ │ ├── handle-reorder-cli-configurations.ts
│ │ ├── handle-reorder-web-configurations.ts
│ │ ├── handle-toggle-pinned-api-configuration.ts
│ │ ├── handle-toggle-pinned-cli-configuration.ts
│ │ ├── handle-toggle-pinned-web-configuration.ts
│ │ ├── handle-update-api-configuration.ts
│ │ ├── handle-update-cli-configuration.ts
│ │ ├── handle-update-last-used-web-configuration.ts
│ │ ├── handle-update-web-configuration.ts
│ │ └── index.ts
│ ├── handle-agentic-search.ts
│ ├── handle-autofill.ts
│ ├── index.ts
│ └── utils
│ ├── build-cli-prompt.ts
│ ├── build-prompt-payload.ts
│ ├── patch-repair-utils.ts
│ └── update-last-used-web-configuration.ts
└── prompt-view-provider.ts1 parent 3d7f239 commit 917564b
33 files changed
Lines changed: 99 additions & 77 deletions
File tree
- apps/editor/src/views/prompt/backend
- message-handlers
- configurations
- handle-agentic-search
- handle-at-sign-quick-pick
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
0 commit comments