Repository navigation
Commit d3e1748
committed
Add example flags quick pick to agent configuration form and consolidate unset translations
- on agents, place optional key 'example_flags'. it's an array of strings. if set, where you typically set 'unset', place text button: 'examples'. Upon click, open a quick pick with the examples. Upon selection, update 'flags' field value
- use lower case [Fragment]
- once something is typed in the field, instead of 'examples', show 'unset' button. 'eamples' should only be shown when the field is empty
- ERROR in ./src/views/shared/actions/agent/pick-example-flags.ts:9:22 TS2339: Property 'example_flags' does not exist on type '{ docs_url: string; homepage_url: string; flags_placeholder: string; example_flags: string[]; } | { docs_url: string; homepage_url: string; flags_placeholder: string; example_flags: string[]; } | { ...; } | { ...; } | { ...; } | { ...; }'. Property 'example_flags' does not exist on type '{ docs_url: string; homepage_url: string; flags_placeholder: string; }'. 7 | }): Promise<string | undefined> => { 8 | const agent_config = AGENTS[params.agent as keyof typeof AGENTS] > 9 | if (!agent_config?.example_flags?.length) { | ^^^^^^^^^^^^^ 10 | return undefined 11 | } 12 | ERROR in ./src/views/shared/actions/agent/pick-example-flags.ts:13:54 TS2339: Property 'example_flags' does not exist on type '{ docs_url: string; homepage_url: string; flags_placeholder: string; example_flags: string[]; } | { docs_url:...
- to avoid [Pasted text], make example flags required property and provide empty array if necessary
- 'unset' should be in common
- lowercase unset translations
├── apps
│ ├── browser
│ │ └── package.json
│ ├── editor
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── constants
│ │ │ │ └── agents.ts
│ │ │ ├── i18n
│ │ │ │ ├── index.ts
│ │ │ │ └── translations
│ │ │ │ └── views
│ │ │ │ ├── index.ts
│ │ │ │ └── shared
│ │ │ │ ├── actions
│ │ │ │ │ ├── agent
│ │ │ │ │ │ ├── index.ts
│ │ │ │ │ │ ├── pick-agent.ts
│ │ │ │ │ │ └── pick-example-flags.ts
│ │ │ │ │ └── index.ts
│ │ │ │ └── index.ts
│ │ │ ├── services
│ │ │ │ └── providers-manager.ts
│ │ │ ├── types
│ │ │ │ ├── cli-configuration.ts
│ │ │ │ └── web-configuration.ts
│ │ │ ├── utils
│ │ │ │ ├── agentic-cli-invocation
│ │ │ │ │ ├── agents
│ │ │ │ │ │ └── index.ts
│ │ │ │ │ └── invoke-agentic-cli.ts
│ │ │ │ ├── apply-reasoning-effort.ts
│ │ │ │ ├── cli-configuration-format-converters.ts
│ │ │ │ └── web-configuration-format-converters.ts
│ │ │ └── views
│ │ │ ├── prompt
│ │ │ │ ├── backend
│ │ │ │ │ ├── message-handlers
│ │ │ │ │ │ ├── configurations
│ │ │ │ │ │ │ ├── handle-pick-api-reasoning-effort.ts
│ │ │ │ │ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ │ │ │ │ └── index.ts
│ │ │ │ │ │ ├── handle-invoke-agentic-cli.ts
│ │ │ │ │ │ ├── handle-pick-agent.ts
│ │ │ │ │ │ ├── handle-pick-example-flags.ts
│ │ │ │ │ │ └── index.ts
│ │ │ │ │ └── prompt-view-provider.ts
│ │ │ │ ├── frontend
│ │ │ │ │ ├── Prompt.tsx
│ │ │ │ │ └── hooks
│ │ │ │ │ └── use-cli-configuration-editing.ts
│ │ │ │ └── types
│ │ │ │ └── messages.ts
│ │ │ ├── settings
│ │ │ │ ├── backend
│ │ │ │ │ ├── message-handlers
│ │ │ │ │ │ ├── handle-pick-agent.ts
│ │ │ │ │ │ ├── handle-pick-api-reasoning-effort.ts
│ │ │ │ │ │ ├── handle-pick-example-flags.ts
│ │ │ │ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ │ │ │ └── index.ts
│ │ │ │ │ └── settings-view-provider.ts
│ │ │ │ ├── frontend
│ │ │ │ │ ├── Settings.tsx
│ │ │ │ │ └── hooks
│ │ │ │ │ └── use-cli-configuration-editing.ts
│ │ │ │ └── types
│ │ │ │ └── messages.ts
│ │ │ └── shared
│ │ │ ├── actions
│ │ │ │ ├── agent
│ │ │ │ │ ├── create.ts
│ │ │ │ │ ├── pick-agent.ts
│ │ │ │ │ ├── pick-example-flags.ts
│ │ │ │ │ └── update.ts
│ │ │ │ ├── api
│ │ │ │ │ ├── create
│ │ │ │ │ │ └── interactions
│ │ │ │ │ │ └── verify-reasoning-effort.ts
│ │ │ │ │ ├── pick-reasoning-effort.ts
│ │ │ │ │ └── update
│ │ │ │ │ ├── interactions
│ │ │ │ │ │ ├── edit-reasoning-effort-for-api-config.ts
│ │ │ │ │ │ └── index.ts
│ │ │ │ │ └── update.ts
│ │ │ │ └── web
│ │ │ │ └── update.ts
│ │ │ ├── forms
│ │ │ │ ├── EditApiConfigurationForm
│ │ │ │ │ └── EditApiConfigurationForm.tsx
│ │ │ │ ├── EditCliConfigurationForm
│ │ │ │ │ └── EditCliConfigurationForm.tsx
│ │ │ │ └── EditWebConfigurationForm
│ │ │ │ └── EditWebConfigurationForm.tsx
│ │ │ ├── hooks
│ │ │ │ └── use-translation.tsx
│ │ │ └── i18n
│ │ │ ├── translations
│ │ │ │ ├── common.ts
│ │ │ │ ├── edit-api-configuration-form.ts
│ │ │ │ ├── edit-cli-configuration-form.ts
│ │ │ │ ├── edit-web-configuration-form.ts
│ │ │ │ └── index.ts
│ │ │ └── use-translation.tsx
│ │ ├── tsconfig.json
│ │ └── webpack.config.ts
│ └── web
│ └── package.json
├── package.json
└── packages
├── shared
│ ├── package.json
│ └── src
│ └── constants
│ └── chatbots.ts
└── ui
├── package.json
└── src
└── components
└── editor
└── common
├── Field
│ ├── Field.module.scss
│ └── Field.tsx
├── QuickPickButton
│ └── QuickPickButton.tsx
└── TextButton
└── TextButton.tsx1 parent 055bbba commit d3e1748
21 files changed
Lines changed: 237 additions & 47 deletions
File tree
- apps/editor/src
- constants
- views
- prompt
- backend
- message-handlers
- frontend
- types
- settings
- backend
- message-handlers
- frontend
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
18 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | 39 | | |
23 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
24 | 49 | | |
25 | 50 | | |
26 | 51 | | |
27 | 52 | | |
28 | | - | |
| 53 | + | |
| 54 | + | |
29 | 55 | | |
30 | 56 | | |
31 | 57 | | |
32 | 58 | | |
33 | | - | |
| 59 | + | |
| 60 | + | |
34 | 61 | | |
35 | 62 | | |
36 | 63 | | |
37 | 64 | | |
38 | | - | |
| 65 | + | |
| 66 | + | |
39 | 67 | | |
40 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
| 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 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 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 | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
917 | 918 | | |
918 | 919 | | |
919 | 920 | | |
| 921 | + | |
| 922 | + | |
920 | 923 | | |
921 | 924 | | |
922 | 925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
554 | 557 | | |
555 | 558 | | |
556 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
727 | 732 | | |
728 | 733 | | |
729 | 734 | | |
| 735 | + | |
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
| |||
786 | 792 | | |
787 | 793 | | |
788 | 794 | | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
789 | 800 | | |
790 | 801 | | |
791 | 802 | | |
| |||
1054 | 1065 | | |
1055 | 1066 | | |
1056 | 1067 | | |
| 1068 | + | |
1057 | 1069 | | |
1058 | 1070 | | |
| 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 | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments