Repository navigation
Commit 9089e10
committed
Add voice input instructions and default option settings
- in 'General' section, add 'Features' group. In there we want multi-option configuration setting: 'Default option for Code At Cursor...' (desc: Decide whether any option should be preselected): 'Ask'/'Send request'/'Invoke agent'/'Autofill chatbot'/'Copy prompt'
- [Changes] rename 'default option for code at cursor' to 'code at cursor', desc: 'Choose how to proceed.'
- [Changes] move 'code at cursor' to `apps/editor/src/views/settings/frontend/i18n/translations/common.ts`
- rename 'choices' to 'default actions'
- default action should not be for 'code at cursor' but for 'voice input'
- rename 'default actions' to 'Voice Input'
- voice input's default action should have options: ask, send request, invoke agent
- voice input's default action should be named 'Handle with...'
- add translations to [Fragment]
- use [Fragment] in `apps/editor/src/views/prompt/backend/message-handlers/handle-voice-input.ts`
- '[Fragment]' should be in '# Task' section, how should respond in '# Output formatting' section
- move [Pasted text] to package.json as 'VoiceInputInstructions'
- should not read [Pasted text] twice
- allow configuring voiceInputInstructions in settings
- add translations [Pasted text]
- fill missing handlers
- move [Fragment] to common, and use for 'commit message instructions' as well (replacing)
- change order [Image]
└── apps
└── editor
├── package.json
└── src
├── constants
│ └── instructions.ts
└── views
├── prompt
│ └── backend
│ └── message-handlers
│ └── handle-voice-input.ts
└── settings
├── backend
│ ├── message-handlers
│ │ ├── add-provider
│ │ │ ├── handle-add-provider.ts
│ │ │ ├── pick-extended-provider.ts
│ │ │ └── pick-provider-source.ts
│ │ ├── handle-create-api-configuration.ts
│ │ ├── handle-create-cli-configuration.ts
│ │ ├── handle-create-template.ts
│ │ ├── handle-create-web-configuration.ts
│ │ ├── handle-delete-api-configuration.ts
│ │ ├── handle-delete-cli-configuration.ts
│ │ ├── handle-delete-provider.ts
│ │ ├── handle-delete-template.ts
│ │ ├── handle-delete-web-configuration.ts
│ │ ├── handle-get-ai-studio-user-id.ts
│ │ ├── handle-get-api-configurations.ts
│ │ ├── handle-get-attach-ascii-tree-of-context.ts
│ │ ├── handle-get-cli-configurations.ts
│ │ ├── handle-get-commit-message-instructions.ts
│ │ ├── handle-get-default-option-for-voice-input.ts
│ │ ├── handle-get-edit-files-system-instructions.ts
│ │ ├── handle-get-gemini-user-id.ts
│ │ ├── handle-get-include-prompts-in-commit-messages.ts
│ │ ├── handle-get-is-modern-ui.ts
│ │ ├── handle-get-providers.ts
│ │ ├── handle-get-send-with-shift-enter.ts
│ │ ├── handle-get-templates.ts
│ │ ├── handle-get-use-context-files-in-commit-message-prompt.ts
│ │ ├── handle-get-voice-input-instructions.ts
│ │ ├── handle-get-web-configurations.ts
│ │ ├── handle-open-allow-patterns-settings.ts
│ │ ├── handle-open-editor-settings.ts
│ │ ├── handle-open-ignore-patterns-settings.ts
│ │ ├── handle-open-keybindings.ts
│ │ ├── handle-pick-agent.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-providers.ts
│ │ ├── handle-reorder-web-configurations.ts
│ │ ├── handle-select-default-api-configuration.ts
│ │ ├── handle-select-default-cli-configuration.ts
│ │ ├── handle-select-default-web-configuration.ts
│ │ ├── handle-set-default-api-configuration.ts
│ │ ├── handle-set-default-cli-configuration.ts
│ │ ├── handle-set-default-web-configuration.ts
│ │ ├── handle-update-ai-studio-user-id.ts
│ │ ├── handle-update-api-configuration.ts
│ │ ├── handle-update-attach-ascii-tree-of-context.ts
│ │ ├── handle-update-cli-configuration.ts
│ │ ├── handle-update-commit-message-instructions.ts
│ │ ├── handle-update-default-option-for-voice-input.ts
│ │ ├── handle-update-edit-files-system-instructions.ts
│ │ ├── handle-update-gemini-user-id.ts
│ │ ├── handle-update-include-prompts-in-commit-messages.ts
│ │ ├── handle-update-provider.ts
│ │ ├── handle-update-send-with-shift-enter.ts
│ │ ├── handle-update-templates.ts
│ │ ├── handle-update-use-context-files-in-commit-message-prompt.ts
│ │ ├── handle-update-voice-input-instructions.ts
│ │ ├── handle-update-web-configuration.ts
│ │ └── index.ts
│ └── settings-view-provider.ts
├── frontend
│ ├── Home
│ │ ├── Home.tsx
│ │ ├── hooks
│ │ │ └── use-scroll-to.ts
│ │ ├── index.ts
│ │ └── sections
│ │ ├── ApiSection.tsx
│ │ ├── CliSection.tsx
│ │ ├── GeneralSection.tsx
│ │ └── WebSection.tsx
│ ├── Settings.tsx
│ ├── hooks
│ │ └── use-settings.ts
│ └── i18n
│ └── translations
│ ├── api.ts
│ ├── common.ts
│ └── general.ts
└── types
└── messages.ts1 parent a6d7d82 commit 9089e10
17 files changed
Lines changed: 502 additions & 32 deletions
File tree
- apps/editor
- src
- constants
- views
- prompt/backend/message-handlers
- settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- i18n/translations
- types
- packages/ui/src/components/editor/common/DropdownMenu
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
952 | 957 | | |
953 | 958 | | |
954 | 959 | | |
| |||
974 | 979 | | |
975 | 980 | | |
976 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
977 | 992 | | |
978 | 993 | | |
979 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
135 | 151 | | |
136 | 152 | | |
137 | 153 | | |
| |||
140 | 156 | | |
141 | 157 | | |
142 | 158 | | |
143 | | - | |
| 159 | + | |
144 | 160 | | |
145 | 161 | | |
146 | 162 | | |
| |||
196 | 212 | | |
197 | 213 | | |
198 | 214 | | |
199 | | - | |
200 | | - | |
201 | | - | |
| 215 | + | |
202 | 216 | | |
203 | 217 | | |
204 | 218 | | |
| |||
213 | 227 | | |
214 | 228 | | |
215 | 229 | | |
216 | | - | |
| 230 | + | |
217 | 231 | | |
218 | 232 | | |
219 | 233 | | |
| |||
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
265 | | - | |
| 279 | + | |
266 | 280 | | |
267 | 281 | | |
268 | 282 | | |
| |||
306 | 320 | | |
307 | 321 | | |
308 | 322 | | |
309 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
310 | 327 | | |
311 | 328 | | |
312 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
188 | 200 | | |
189 | 201 | | |
190 | 202 | | |
| |||
273 | 285 | | |
274 | 286 | | |
275 | 287 | | |
| 288 | + | |
| 289 | + | |
276 | 290 | | |
277 | 291 | | |
278 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
212 | 224 | | |
213 | 225 | | |
214 | 226 | | |
| 227 | + | |
215 | 228 | | |
216 | 229 | | |
217 | 230 | | |
| |||
231 | 244 | | |
232 | 245 | | |
233 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
234 | 251 | | |
235 | 252 | | |
236 | 253 | | |
| |||
326 | 343 | | |
327 | 344 | | |
328 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
329 | 369 | | |
330 | 370 | | |
331 | 371 | | |
| |||
0 commit comments