You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/cli/events.go
+6-22Lines changed: 6 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ package cli
3
3
import (
4
4
"strings"
5
5
"sync"
6
-
"time"
7
6
8
7
mf "github.com/coder/agentapi/lib/cli/msgfmt"
9
8
st "github.com/coder/agentapi/lib/cli/screentracker"
@@ -18,21 +17,6 @@ const (
18
17
EventTypeScreenUpdateEventType="screen_update"
19
18
)
20
19
21
-
typeMessageUpdateBodystruct {
22
-
Idint`json:"id" doc:"Unique identifier for the message. This identifier also represents the order of the message in the conversation history."`
23
-
Role types.ConversationRole`json:"role" doc:"Role of the message author"`
24
-
Messagestring`json:"message" doc:"Message content. The message is formatted as it appears in the agent's terminal session, meaning that, by default, it consists of lines of text with 80 characters per line."`
25
-
Time time.Time`json:"time" doc:"Timestamp of the message"`
26
-
}
27
-
28
-
typeStatusChangeBodystruct {
29
-
Status types.AgentStatus`json:"status" doc:"Agent status"`
30
-
}
31
-
32
-
typeScreenUpdateBodystruct {
33
-
Screenstring`json:"screen"`
34
-
}
35
-
36
20
typeEventstruct {
37
21
TypeEventType
38
22
Payloadany
@@ -104,7 +88,7 @@ func (e *EventEmitter) UpdateMessagesAndEmitChanges(newMessages []types.Conversa
0 commit comments