@@ -10,6 +10,7 @@ import { Section } from '@ui/components/editor/settings/Section'
1010import { Input } from '@ui/components/editor/common/Input'
1111import { Textarea } from '@ui/components/editor/common/Textarea'
1212import { Toggler } from '@ui/components/editor/common/Toggler'
13+ import { Button } from '@ui/components/editor/common/Button'
1314import {
1415 ConfigurationForClient ,
1516 ProviderForClient ,
@@ -342,6 +343,11 @@ export const Home: React.FC<Props> = (props) => {
342343 title = "Model Providers"
343344 subtitle = "Manage your API keys for use with API tools."
344345 on_stuck_change = { model_providers_on_stuck_change }
346+ actions = {
347+ < Button on_click = { ( ) => props . on_add_provider ( ) } >
348+ New Provider...
349+ </ Button >
350+ }
345351 >
346352 < Group >
347353 < ModelProvidersSection
@@ -363,6 +369,11 @@ export const Home: React.FC<Props> = (props) => {
363369 title = "Edit Context"
364370 subtitle = "Pair-programming using natural language instructions."
365371 on_stuck_change = { edit_context_on_stuck_change }
372+ actions = {
373+ < Button on_click = { ( ) => props . on_add_config ( 'EDIT_CONTEXT' ) } >
374+ New Configuration...
375+ </ Button >
376+ }
366377 >
367378 < Group >
368379 < ApiToolConfigurationSection
@@ -402,6 +413,11 @@ export const Home: React.FC<Props> = (props) => {
402413 title = "Intelligent Update"
403414 subtitle = "Integrate changes from malformed markdown code blocks."
404415 on_stuck_change = { intelligent_update_on_stuck_change }
416+ actions = {
417+ < Button on_click = { ( ) => props . on_add_config ( 'INTELLIGENT_UPDATE' ) } >
418+ New Configuration...
419+ </ Button >
420+ }
405421 >
406422 < Group >
407423 < ApiToolConfigurationSection
@@ -447,6 +463,11 @@ export const Home: React.FC<Props> = (props) => {
447463 title = "Prune Context"
448464 subtitle = "Remove irrelevant files from the current context selection."
449465 on_stuck_change = { prune_context_on_stuck_change }
466+ actions = {
467+ < Button on_click = { ( ) => props . on_add_config ( 'PRUNE_CONTEXT' ) } >
468+ New Configuration...
469+ </ Button >
470+ }
450471 >
451472 < Group >
452473 < ApiToolConfigurationSection
@@ -471,6 +492,11 @@ export const Home: React.FC<Props> = (props) => {
471492 title = "Code at Cursor"
472493 subtitle = "Get accurate inline suggestions from state-of-the-art models."
473494 on_stuck_change = { code_completions_on_stuck_change }
495+ actions = {
496+ < Button on_click = { ( ) => props . on_add_config ( 'CODE_COMPLETIONS' ) } >
497+ New Configuration...
498+ </ Button >
499+ }
474500 >
475501 < Group >
476502 < ApiToolConfigurationSection
@@ -499,8 +525,13 @@ export const Home: React.FC<Props> = (props) => {
499525 ref = { ( el ) => ( section_refs . current [ 'commit-messages' ] = el ) }
500526 group = "API Tool"
501527 title = "Commit Messages"
502- subtitle = "Meaningful summaries of changes adhering to your style."
528+ subtitle = "Meaningful summaries of changes adhering to your preffered style."
503529 on_stuck_change = { commit_messages_on_stuck_change }
530+ actions = {
531+ < Button on_click = { ( ) => props . on_add_config ( 'COMMIT_MESSAGES' ) } >
532+ New Configuration...
533+ </ Button >
534+ }
504535 >
505536 < Group >
506537 < ApiToolConfigurationSection
0 commit comments