Repository navigation
Commit f516fae
committed
Implement agent configurations management for CLI mode
- simplify to ['WEB', 'API', 'CLI'] as const`
- similarly to chatbots, allow managing agents (CLI target). Each item can hold properties: name (string) agent (string), flags (string) and 'isPinned' (boolean).
- menu is broken, CLI should have only Agents item
- in panel, in CLI target, place Configurations with agents, just like you do with WEB->Chatbots
- should allow editing agents in 'prompt' pane, just like chatbots which can be configured in settings and in prompt pane
- on cli target, 'no models configured yet', should be set as 'no agents configured yet'
- in `apps/editor/src/utils/agentic-cli-invocation/agents` agent name, docs url should be taken from `apps/editor/src/constants/agents.ts`
- in the quick pick of agentic cli invocation, list agents defined in codeWebChat.agents and remove 'cli flags...'
- remove doc button
- when editing agent, below flags field add text "[Learn more]() about available flags in [agent name]"
- docs link (learn more) opens twice
- add missing translations
- add missing translationssort alphabetically
- remember last used cli configuration (agent), on prompt field allow separate buttons 'send'/'send with...' and highlight last used item in Configurations (Main View) (get inspired by web/api configurations)
- [Pasted text]
```
├── apps
│ └── editor
│ ├── package.json
│ └── src
│ ├── constants
│ │ ├── agents.ts
│ │ └── state-keys.ts
│ ├── features
│ │ └── agentic-search
│ │ └── agentic-search.ts
│ ├── i18n
│ │ └── translations
│ │ ├── common.ts
│ │ ├── utils
│ │ │ └── agentic-cli-invocation.ts
│ │ └── views
│ │ └── shared
│ │ └── actions
│ │ ├── agent
│ │ │ ├── create.ts
│ │ │ ├── delete.ts
│ │ │ ├── index.ts
│ │ │ └── pick-agent.ts
│ │ ├── api
│ │ │ └── index.ts
│ │ ├── index.ts
│ │ └── web
│ │ ├── create.ts
│ │ ├── delete.ts
│ │ ├── index.ts
│ │ ├── pick-chatbot.ts
│ │ ├── pick-model.ts
│ │ └── update.ts
│ ├── services
│ │ └── websocket-manager.ts
│ ├── utils
│ │ ├── agent-configuration-format-converters.ts
│ │ ├── agentic-cli-invocation
│ │ │ ├── agents
│ │ │ │ ├── antigravity.ts
│ │ │ │ ├── claude.ts
│ │ │ │ ├── codex.ts
│ │ │ │ ├── cursor.ts
│ │ │ │ ├── grok.ts
│ │ │ │ ├── index.ts
│ │ │ │ ├── muse.ts
│ │ │ │ └── opencode.ts
│ │ │ ├── index.ts
│ │ │ ├── invoke-agentic-cli.ts
│ │ │ ├── types.ts
│ │ │ └── utils
│ │ │ ├── check-command-exists.ts
│ │ │ ├── format-duration.ts
│ │ │ └── get-progress-dots.ts
│ │ ├── show-configurations-quick-pick.ts
│ │ └── web-configuration-format-converters.ts
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ ├── handle-autofill.ts
│ │ │ │ ├── handle-create-agent-configuration.ts
│ │ │ │ ├── handle-create-web-configuration.ts
│ │ │ │ ├── handle-delete-agent-configuration.ts
│ │ │ │ ├── handle-delete-web-configuration.ts
│ │ │ │ ├── handle-invoke-agentic-cli.ts
│ │ │ │ ├── handle-make-api-call.ts
│ │ │ │ ├── handle-pick-agent.ts
│ │ │ │ ├── handle-pick-chatbot.ts
│ │ │ │ ├── handle-pick-model.ts
│ │ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ │ ├── handle-preview-web-configuration.ts
│ │ │ │ ├── handle-reorder-agent-configurations.ts
│ │ │ │ ├── handle-reorder-web-configurations.ts
│ │ │ │ ├── handle-toggle-pinned-agent-configuration.ts
│ │ │ │ ├── handle-toggle-pinned-web-configuration.ts
│ │ │ │ ├── handle-update-agent-configuration.ts
│ │ │ │ ├── handle-update-last-used-web-configuration.ts
│ │ │ │ ├── handle-update-web-configuration.ts
│ │ │ │ └── index.ts
│ │ │ └── prompt-view-provider.ts
│ │ ├── frontend
│ │ │ ├── Main
│ │ │ │ ├── Main.tsx
│ │ │ │ └── MainView
│ │ │ │ ├── MainView.module.scss
│ │ │ │ ├── MainView.tsx
│ │ │ │ └── hooks
│ │ │ │ └── use-last-choice-tooltip.ts
│ │ │ ├── Prompt.tsx
│ │ │ ├── hooks
│ │ │ │ ├── use-agent-configuration-editing.ts
│ │ │ │ └── use-web-configuration-editing.ts
│ │ │ └── i18n
│ │ │ └── translations
│ │ │ ├── configurations.ts
│ │ │ ├── index.ts
│ │ │ └── prompt-field.ts
│ │ └── types
│ │ └── messages.ts
│ ├── settings
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ ├── handle-create-agent-configuration.ts
│ │ │ │ ├── handle-create-web-configuration.ts
│ │ │ │ ├── handle-delete-agent-configuration.ts
│ │ │ │ ├── handle-delete-web-configuration.ts
│ │ │ │ ├── handle-pick-agent.ts
│ │ │ │ ├── handle-pick-chatbot.ts
│ │ │ │ ├── handle-pick-model.ts
│ │ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ │ ├── handle-reorder-agent-configurations.ts
│ │ │ │ ├── handle-reorder-web-configurations.ts
│ │ │ │ ├── handle-update-agent-configuration.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
│ │ │ ├── hooks
│ │ │ │ ├── use-agent-configuration-editing.ts
│ │ │ │ ├── use-api-configuration-editing.ts
│ │ │ │ ├── use-provider-editing.ts
│ │ │ │ ├── use-settings.ts
│ │ │ │ └── use-web-configuration-editing.ts
│ │ │ ├── i18n
│ │ │ │ └── translations
│ │ │ │ ├── agent.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── web.ts
│ │ │ └── utils
│ │ │ └── post-message.ts
│ │ ├── helpers
│ │ │ └── open-settings.ts
│ │ └── types
│ │ └── messages.ts
│ └── shared
│ ├── actions
│ │ ├── agent
│ │ │ ├── create.ts
│ │ │ ├── delete.ts
│ │ │ ├── pick-agent.ts
│ │ │ ├── reorder.ts
│ │ │ ├── toggle-pinned.ts
│ │ │ └── update.ts
│ │ └── web
│ │ ├── create.ts
│ │ ├── delete.ts
│ │ ├── pick-chatbot.ts
│ │ ├── pick-model.ts
│ │ ├── reorder.ts
│ │ ├── toggle-pinned.ts
│ │ └── update.ts
│ ├── forms
│ │ ├── EditAgentConfigurationForm
│ │ │ ├── EditAgentConfigurationForm.module.scss
│ │ │ ├── EditAgentConfigurationForm.tsx
│ │ │ └── index.ts
│ │ └── EditWebConfigurationForm
│ │ ├── EditWebConfigurationForm.module.scss
│ │ ├── EditWebConfigurationForm.tsx
│ │ └── index.ts
│ ├── hooks
│ │ └── use-translation.tsx
│ ├── i18n
│ │ ├── translations
│ │ │ ├── common.ts
│ │ │ ├── edit-agent-configuration-form.ts
│ │ │ ├── edit-web-configuration-form.ts
│ │ │ └── index.ts
│ │ └── use-translation.tsx
│ └── utils
│ └── generate-unique-name.ts
└── packages
├── shared
│ └── src
│ ├── constants
│ │ └── chatbots.ts
│ └── types
│ ├── agent-configuration.ts
│ ├── target.ts
│ └── web-configuration.ts
└── ui
└── src
└── components
└── editor
├── common
│ └── prompts
│ └── PromptField
│ ├── PromptField.module.scss
│ ├── PromptField.tsx
│ └── hooks
│ ├── use-dropdown.ts
│ └── use-handlers
│ ├── handle-key-down.ts
│ └── handle-submit.ts
└── prompt
└── Configurations
├── Configurations.module.scss
└── Configurations.tsx
```1 parent 2b2fe2a commit f516fae
64 files changed
Lines changed: 2521 additions & 433 deletions
File tree
- apps/editor
- src
- constants
- features/agentic-search
- i18n/translations
- utils
- utils
- agentic-cli-invocation
- agents
- views
- prompt
- backend
- message-handlers
- frontend
- Main
- MainView
- hooks
- hooks
- i18n/translations
- types
- settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- i18n/translations
- types
- packages
- ui/src/components/editor/common/prompts/PromptField
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
| 1010 | + | |
| 1011 | + | |
1047 | 1012 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1013 | + | |
1051 | 1014 | | |
1052 | | - | |
| 1015 | + | |
1053 | 1016 | | |
1054 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1055 | 1028 | | |
1056 | | - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1057 | 1044 | | |
1058 | 1045 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | 1046 | | |
1065 | 1047 | | |
1066 | 1048 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
72 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
73 | 91 | | |
74 | 92 | | |
75 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
614 | 632 | | |
615 | 633 | | |
616 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 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 | + | |
0 commit comments