@@ -8,7 +8,7 @@ struct EditCustomCommand: ReducerProtocol {
88 case sendMessage
99 case promptToCode
1010 case customChat
11- case oneTimeDialog
11+ case singleRoundDialog
1212 }
1313
1414 struct State : Equatable {
@@ -20,7 +20,7 @@ struct EditCustomCommand: ReducerProtocol {
2020 var sendMessage = EditSendMessageCommand . State ( )
2121 var promptToCode = EditPromptToCodeCommand . State ( )
2222 var customChat = EditCustomChatCommand . State ( )
23- var oneTimeDialog = EditOneTimeDialogCommand . State ( )
23+ var singleRoundDialog = EditSingleRoundDialogCommand . State ( )
2424
2525 init ( _ command: CustomCommand ? ) {
2626 isNewCommand = command == nil
@@ -48,14 +48,14 @@ struct EditCustomCommand: ReducerProtocol {
4848 systemPrompt: systemPrompt ?? " " ,
4949 prompt: prompt ?? " "
5050 )
51- case let . oneTimeDialog (
51+ case let . singleRoundDialog (
5252 systemPrompt,
5353 overwriteSystemPrompt,
5454 prompt,
5555 receiveReplyInNotification
5656 ) :
57- commandType = . oneTimeDialog
58- oneTimeDialog = . init(
57+ commandType = . singleRoundDialog
58+ singleRoundDialog = . init(
5959 systemPrompt: systemPrompt ?? " " ,
6060 overwriteSystemPrompt: overwriteSystemPrompt ?? false ,
6161 prompt: prompt ?? " " ,
@@ -80,7 +80,7 @@ struct EditCustomCommand: ReducerProtocol {
8080 case sendMessage( EditSendMessageCommand . Action )
8181 case promptToCode( EditPromptToCodeCommand . Action )
8282 case customChat( EditCustomChatCommand . Action )
83- case oneTimeDialog ( EditOneTimeDialogCommand . Action )
83+ case singleRoundDialog ( EditSingleRoundDialogCommand . Action )
8484 }
8585
8686 let settings : CustomCommandView . Settings
@@ -99,8 +99,8 @@ struct EditCustomCommand: ReducerProtocol {
9999 EditCustomChatCommand ( )
100100 }
101101
102- Scope ( state: \. oneTimeDialog , action: / Action. oneTimeDialog ) {
103- EditOneTimeDialogCommand ( )
102+ Scope ( state: \. singleRoundDialog , action: / Action. singleRoundDialog ) {
103+ EditSingleRoundDialogCommand ( )
104104 }
105105
106106 BindingReducer ( )
@@ -139,9 +139,9 @@ struct EditCustomCommand: ReducerProtocol {
139139 systemPrompt: state. systemPrompt,
140140 prompt: state. prompt
141141 )
142- case . oneTimeDialog :
143- let state = state. oneTimeDialog
144- return . oneTimeDialog (
142+ case . singleRoundDialog :
143+ let state = state. singleRoundDialog
144+ return . singleRoundDialog (
145145 systemPrompt: state. systemPrompt,
146146 overwriteSystemPrompt: state. overwriteSystemPrompt,
147147 prompt: state. prompt,
@@ -179,7 +179,7 @@ struct EditCustomCommand: ReducerProtocol {
179179 return . none
180180 case . customChat:
181181 return . none
182- case . oneTimeDialog :
182+ case . singleRoundDialog :
183183 return . none
184184 }
185185 }
@@ -241,7 +241,7 @@ struct EditCustomChatCommand: ReducerProtocol {
241241 }
242242}
243243
244- struct EditOneTimeDialogCommand : ReducerProtocol {
244+ struct EditSingleRoundDialogCommand : ReducerProtocol {
245245 struct State : Equatable {
246246 @BindingState var systemPrompt : String = " "
247247 @BindingState var overwriteSystemPrompt : Bool = false
0 commit comments