Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206package tui
import ( "albedo/cli/internal/daemon")
type ChatBackToSessionsMsg struct{}
type ChatQuitMsg struct{}
// ChatEditorFinishedMsg is sent after the external editor process exits.type ChatEditorFinishedMsg struct { Err error SessionID string Text string Generation int64 Edited bool}
// FileOpenResultMsg is sent after attempting to open a file in an external editor.type FileOpenResultMsg struct { SessionID string Target FileTarget Err error}
// ChatOlderLoadedMsg carries a page of history from before what is shown.type ChatOlderLoadedMsg struct { Err error Page *daemon.HistoryPage SessionID string Generation int64}
type ChatNewSessionMsg struct{}
type ChatOpenModelPickerMsg struct{}
type ChatOpenExtensionPickerMsg struct{}
type ChatOpenTreePickerMsg struct{}type ChatOpenForkPickerMsg struct{}
type ChatOpenQuotaMsg struct{}
type ChatOpenUsageMsg struct{}
type ChatOpenContextInspectorMsg struct{}
type ChatOpenPageMsg struct { Command string}
type ChatOpenLoginMsg struct { Name string}
type ChatExecuteCommandMsg struct { Name string Args string}
type ChatShellSubmitMsg struct { Err error Command daemon.ShellCommand SessionID, OriginalInput string Generation int64}
type ChatShellOutputMsg struct { Err error ID, Text string SessionID string Generation int64}
type ChatShellCancelMsg struct { Err error Command daemon.ShellCommand SessionID string Generation int64}
type ChatStreamEventMsg struct { SessionID string Event daemon.StreamEvent Generation int64}
// ChatLiveDrawMsg redraws a growing reply whose last tokens waited.type ChatLiveDrawMsg struct { SessionID string Generation int64}
type ChatProgressTickMsg struct { SessionID string Generation int64}
type ChatClearCopyStatusMsg struct { SessionID string Generation int64 Revision uint64}
type ChatStatusMsg struct { Err error Status *daemon.AgentStatus Glances []PageGlance SessionID string Generation int64 Revision uint64}
// ChatHostMsg is the probe of the host a remote workspace is on.type ChatHostMsg struct { Err error SessionID string Workspace string Status daemon.HostStatus Generation int64}
// ChatWindowMsg carries the context window for the model a usage event named.type ChatWindowMsg struct { Err error Tokens *int SessionID string Model string Generation int64}
// ChatCacheFadeMsg arrives when Usage's cached count reaches its next step.type ChatCacheFadeMsg struct { Usage *daemon.Usage SessionID string Generation int64}
type ChatStatusPollMsg struct { SessionID string Generation int64 Poll uint64}
// ChatStreamResultMsg follows all accepted events from the same subscription.type ChatStreamResultMsg struct { SessionID string Generation int64 Err error Recovering bool}
type streamDelivery struct { Event *daemon.StreamEvent Err error Recovering bool}
type ChatStreamClosedMsg struct { SessionID string Generation int64}
type ChatOperationResolvedMsg struct { SessionID string Generation int64 Handle *daemon.OperationHandle Receipt daemon.InputReceipt Err error}
type ChatTurnSentMsg struct { Handle *daemon.OperationHandle OperationID string Err error Images []daemon.ImageAttachment Pastes []string SessionID string Prompt string Generation int64 Continue bool OK bool Queued bool AcceptanceOrder int64}
type ChatInterruptMsg struct { Err error SessionID string Generation int64 Interrupted bool Cancelled []string // queued inputs the daemon cancelled with the run}
// ChatOpenFolderPickerMsg asks for the folder picker; Retry is the turn a// missing workspace refused.type ChatOpenFolderPickerMsg struct{ Retry *WorkspaceRetry }
type ChatOperationPollMsg struct { SessionID string Generation int64 Handle *daemon.OperationHandle}