okami.mom/albedo
git clone https://git.nkp.pet/okami.mom/albedo
cc6ab84
main
1package tui 2 3import ( 4"albedo/cli/internal/daemon" 5) 6 7type ChatBackToSessionsMsg struct {} 8 9type ChatQuitMsg struct {} 10 11// ChatEditorFinishedMsg is sent after the external editor process exits. 12type ChatEditorFinishedMsg struct { 13Err error 14SessionID string 15Text string 16Generation int64 17Edited bool 18} 19 20// FileOpenResultMsg is sent after attempting to open a file in an external editor. 21type FileOpenResultMsg struct { 22SessionID string 23Target FileTarget 24Err error 25} 26 27// ChatOlderLoadedMsg carries a page of history from before what is shown. 28type ChatOlderLoadedMsg struct { 29Err error 30Page * daemon.HistoryPage 31SessionID string 32Generation int64 33} 34 35type ChatNewSessionMsg struct {} 36 37type ChatOpenModelPickerMsg struct {} 38 39type ChatOpenExtensionPickerMsg struct {} 40 41type ChatOpenTreePickerMsg struct {} 42 43type ChatOpenQuotaMsg struct {} 44 45type ChatOpenContextInspectorMsg struct {} 46 47type ChatOpenPageMsg struct { 48Command string 49} 50 51type ChatOpenLoginMsg struct { 52Name string 53} 54 55type ChatExecuteCommandMsg struct { 56Name string 57Args string 58} 59 60type ChatStreamEventMsg struct { 61SessionID string 62Event daemon.StreamEvent 63Generation int64 64} 65 66// ChatLiveDrawMsg redraws a growing reply whose last tokens waited. 67type ChatLiveDrawMsg struct { 68SessionID string 69Generation int64 70} 71 72type ChatProgressTickMsg struct { 73SessionID string 74Generation int64 75} 76 77type ChatClearCopyStatusMsg struct { 78SessionID string 79Generation int64 80Revision uint64 81} 82 83type ChatStatusMsg struct { 84Err error 85Status * daemon.AgentStatus 86Glances []PageGlance 87SessionID string 88Generation int64 89Revision uint64 90} 91 92// ChatHostMsg is the probe of the host a remote workspace is on. 93type ChatHostMsg struct { 94Err error 95SessionID string 96Workspace string 97Status daemon.HostStatus 98Generation int64 99} 100 101// ChatWindowMsg carries the context window for the model a usage event named. 102type ChatWindowMsg struct { 103Err error 104Tokens * int 105SessionID string 106Model string 107Generation int64 108} 109 110// ChatCacheFadeMsg arrives when Usage's cached count reaches its next step. 111type ChatCacheFadeMsg struct { 112Usage * daemon.Usage 113SessionID string 114Generation int64 115} 116 117type ChatStatusPollMsg struct { 118SessionID string 119Generation int64 120Poll uint64 121} 122 123// ChatStreamResultMsg follows all accepted events from the same subscription. 124type ChatStreamResultMsg struct { 125SessionID string 126Generation int64 127Err error 128Recovering bool 129} 130 131type streamDelivery struct { 132Event * daemon.StreamEvent 133Err error 134Recovering bool 135} 136 137type ChatStreamClosedMsg struct { 138SessionID string 139Generation int64 140} 141 142type ChatOperationResolvedMsg struct { 143SessionID string 144Generation int64 145Handle * daemon.OperationHandle 146Receipt daemon.InputReceipt 147Err error 148} 149 150type ChatTurnSentMsg struct { 151Handle * daemon.OperationHandle 152OperationID string 153Err error 154Images []daemon.ImageAttachment 155Pastes []string 156SessionID string 157Prompt string 158Generation int64 159Continue bool 160OK bool 161Queued bool 162AcceptanceOrder int64 163} 164 165type ChatInterruptMsg struct { 166Err error 167SessionID string 168Generation int64 169Interrupted bool 170} 171 172// ChatOpenFolderPickerMsg asks for the folder picker; Retry is the turn a 173// missing workspace refused. 174type ChatOpenFolderPickerMsg struct {Retry * WorkspaceRetry } 175 176type ChatOperationPollMsg struct { 177SessionID string 178Generation int64 179Handle * daemon.OperationHandle 180}