File tree Expand file tree Collapse file tree 2 files changed +12
-32
lines changed Expand file tree Collapse file tree 2 files changed +12
-32
lines changed Original file line number Diff line number Diff line change @@ -51,30 +51,3 @@ func removeMessageBox(msg string) string {
51
51
52
52
return strings .Join (lines , "\n " )
53
53
}
54
-
55
- func formatGenericMessage (message string , userInput string ) string {
56
- message = RemoveUserInput (message , userInput )
57
- message = removeMessageBox (message )
58
- message = trimEmptyLines (message )
59
- return message
60
- }
61
-
62
- func formatClaudeMessage (message string , userInput string ) string {
63
- return formatGenericMessage (message , userInput )
64
- }
65
-
66
- func formatGooseMessage (message string , userInput string ) string {
67
- return formatGenericMessage (message , userInput )
68
- }
69
-
70
- func formatAiderMessage (message string , userInput string ) string {
71
- return formatGenericMessage (message , userInput )
72
- }
73
-
74
- func formatCodexMessage (message string , userInput string ) string {
75
- return formatGenericMessage (message , userInput )
76
- }
77
-
78
- func formatCustomMessage (message string , userInput string ) string {
79
- return formatGenericMessage (message , userInput )
80
- }
Original file line number Diff line number Diff line change @@ -200,18 +200,25 @@ const (
200
200
AgentTypeCustom AgentType = "custom"
201
201
)
202
202
203
+ func formatGenericMessage (message string , userInput string ) string {
204
+ message = RemoveUserInput (message , userInput )
205
+ message = removeMessageBox (message )
206
+ message = trimEmptyLines (message )
207
+ return message
208
+ }
209
+
203
210
func FormatAgentMessage (agentType AgentType , message string , userInput string ) string {
204
211
switch agentType {
205
212
case AgentTypeClaude :
206
- return formatClaudeMessage (message , userInput )
213
+ return formatGenericMessage (message , userInput )
207
214
case AgentTypeGoose :
208
- return formatGooseMessage (message , userInput )
215
+ return formatGenericMessage (message , userInput )
209
216
case AgentTypeAider :
210
- return formatAiderMessage (message , userInput )
217
+ return formatGenericMessage (message , userInput )
211
218
case AgentTypeCodex :
212
- return formatCodexMessage (message , userInput )
219
+ return formatGenericMessage (message , userInput )
213
220
case AgentTypeCustom :
214
- return formatCustomMessage (message , userInput )
221
+ return formatGenericMessage (message , userInput )
215
222
default :
216
223
return message
217
224
}
You can’t perform that action at this time.
0 commit comments