Documentation
¶
Index ¶
- Constants
- Variables
- func CreateTextArea(existing *textarea.Model) textarea.Model
- func NewEditorCmp(app *app.App) tea.Model
- func NewMessagesCmp(app *app.App) tea.Model
- func NewSidebarCmp(session session.Session, history history.Service, ...) tea.Model
- type AgencyBroadcastMsg
- type AgencyBulletinMsg
- type AgencyOverview
- type ApprovalCmp
- func (m *ApprovalCmp) BindingKeys() []key.Binding
- func (m *ApprovalCmp) GetSize() (int, int)
- func (m *ApprovalCmp) HasPendingApprovals() bool
- func (m *ApprovalCmp) Init() tea.Cmd
- func (m *ApprovalCmp) SetSize(width, height int) tea.Cmd
- func (m *ApprovalCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *ApprovalCmp) View() string
- type ApprovalProposalMsg
- type ApprovalVotedMsg
- type DeleteAttachmentKeyMaps
- type EditorFocusMsg
- type EditorKeyMaps
- type MessageKeys
- type SendMsg
- type SessionClearedMsg
- type SessionSelectedMsg
- type SplashModeChangedMsg
Constants ¶
View Source
const InitMemoryDisplayText = "Refresh the repo's shared Agency memory."
Variables ¶
View Source
var DeleteKeyMaps = DeleteAttachmentKeyMaps{ AttachmentDeleteMode: key.NewBinding( key.WithKeys("ctrl+r"), key.WithHelp("ctrl+r+{i}", "delete attachment at index i"), ), Escape: key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "cancel delete mode"), ), DeleteAllAttachments: key.NewBinding( key.WithKeys("r"), key.WithHelp("ctrl+r+r", "delete all attchments"), ), }
Functions ¶
func NewSidebarCmp ¶
Types ¶
type AgencyBroadcastMsg ¶
type AgencyBroadcastMsg struct {
app.BroadcastMsg
}
AgencyBroadcastMsg is a tea message carrying a live agent broadcast.
type AgencyBulletinMsg ¶
type AgencyBulletinMsg struct {
app.BulletinRecord
}
AgencyBulletinMsg is a tea message carrying a performance bulletin entry.
type AgencyOverview ¶
type AgencyOverview struct {
ProductName string
CurrentConstitution string
SoloConstitution string
OfficeMode string
ConsensusMode string
RedisAddress string
LedgerPath string
LastEvent string
Blueprint string
TeamTemplate string
Governance string
Topology string
WorkspaceMode string
RequiredGates []string
GenesisSummary string
ManufacturedRoles int
ThreadSource string
Running bool
DefaultQuorum int
TeamName string
Leader string
UnreadDirect int
UnreadBroadcasts int
PendingHandoffs int
MemberCount int
WorkerCount int
ActiveWorkerCount int
BoardSummary map[string]int
Thread []string
Constitutions []string
HasOfficeState bool
HasTeamSnapshot bool
}
func InspectAgencyOverview ¶
func InspectAgencyOverview(appState *app.App) AgencyOverview
type ApprovalCmp ¶
type ApprovalCmp struct {
// contains filtered or unexported fields
}
func NewApprovalCmp ¶
func NewApprovalCmp(a *app.App, orgID string) *ApprovalCmp
func (*ApprovalCmp) BindingKeys ¶
func (m *ApprovalCmp) BindingKeys() []key.Binding
func (*ApprovalCmp) GetSize ¶
func (m *ApprovalCmp) GetSize() (int, int)
func (*ApprovalCmp) HasPendingApprovals ¶
func (m *ApprovalCmp) HasPendingApprovals() bool
HasPendingApprovals returns true when there are proposals waiting for a vote.
func (*ApprovalCmp) Init ¶
func (m *ApprovalCmp) Init() tea.Cmd
func (*ApprovalCmp) View ¶
func (m *ApprovalCmp) View() string
type ApprovalProposalMsg ¶
type ApprovalProposalMsg struct {
app.ProposalMsg
}
ApprovalProposalMsg is a tea message carrying a pending action proposal.
type ApprovalVotedMsg ¶
ApprovalVotedMsg is emitted when the user casts a vote on a proposal.
type DeleteAttachmentKeyMaps ¶
type EditorFocusMsg ¶
type EditorFocusMsg bool
type MessageKeys ¶
type SendMsg ¶
type SendMsg struct {
Text string
DisplayText string
Attachments []message.Attachment
}
type SessionClearedMsg ¶
type SessionClearedMsg struct{}
type SessionSelectedMsg ¶
type SplashModeChangedMsg ¶
type SplashModeChangedMsg struct {
Active bool
}
Click to show internal directories.
Click to hide internal directories.