messages

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProject

type AddProject struct {
	Path string
}

AddProject requests adding a new project

type CloseTab

type CloseTab struct{}

CloseTab requests closing the current tab

type CreateAgentTab

type CreateAgentTab struct {
	Assistant string
	Worktree  *data.Worktree
}

CreateAgentTab requests creation of a new agent tab

type CreateWorktree

type CreateWorktree struct {
	Project *data.Project
	Name    string
	Base    string
}

CreateWorktree requests creating a new worktree

type DeleteWorktree

type DeleteWorktree struct {
	Project  *data.Project
	Worktree *data.Worktree
}

DeleteWorktree requests deleting a worktree

type Error

type Error struct {
	Err     error
	Context string
}

Error represents an application error

func (Error) Error

func (e Error) Error() string

type FileWatcherEvent

type FileWatcherEvent struct {
	Root string
}

FileWatcherEvent is sent when a watched file changes

type FocusPane

type FocusPane struct {
	Pane PaneType
}

FocusPane requests focus change to a specific pane

type GitStatusRequest

type GitStatusRequest struct {
	Root string
}

GitStatusRequest requests a git status refresh

type GitStatusResult

type GitStatusResult struct {
	Root   string
	Status *git.StatusResult
	Err    error
}

GitStatusResult contains the result of a git status command

type GitStatusTick

type GitStatusTick struct{}

GitStatusTick triggers periodic git status refresh

type LaunchAgent

type LaunchAgent struct {
	Assistant string
	Worktree  *data.Worktree
}

LaunchAgent requests launching an agent in a new tab

type OpenCommitViewer

type OpenCommitViewer struct {
	Worktree *data.Worktree
}

OpenCommitViewer requests opening the commit viewer

type OpenDiff

type OpenDiff struct {
	File       string
	StatusCode string // Git status code (e.g., "M ", "??", "A ")
	Worktree   *data.Worktree
}

OpenDiff requests opening a diff viewer for a file

type PaneType

type PaneType int

PaneType identifies the focused pane

const (
	PaneDashboard PaneType = iota
	PaneCenter
	PaneSidebar
	PaneSidebarTerminal
	PaneMonitor
)

type ProjectAdded

type ProjectAdded struct {
	Project *data.Project
}

ProjectAdded is sent when a new project is registered

type ProjectRemoved

type ProjectRemoved struct {
	Path string
}

ProjectRemoved is sent when a project is unregistered

type ProjectsLoaded

type ProjectsLoaded struct {
	Projects []data.Project
}

ProjectsLoaded is sent when projects have been loaded/reloaded

type RefreshDashboard

type RefreshDashboard struct{}

RefreshDashboard requests a dashboard refresh

type RemoveProject

type RemoveProject struct {
	Project *data.Project
}

RemoveProject requests removing a project from the registry

type RunScript

type RunScript struct {
	ScriptType string // "setup", "run", or "archive"
}

RunScript requests running a script for the active worktree

type ScriptOutput

type ScriptOutput struct {
	Output string
	Done   bool
	Err    error
}

ScriptOutput contains output from a running script

type ShowAddProjectDialog

type ShowAddProjectDialog struct{}

ShowAddProjectDialog requests showing the add project dialog

type ShowCreateWorktreeDialog

type ShowCreateWorktreeDialog struct {
	Project *data.Project
}

ShowCreateWorktreeDialog requests showing the create worktree dialog

type ShowDeleteWorktreeDialog

type ShowDeleteWorktreeDialog struct {
	Project  *data.Project
	Worktree *data.Worktree
}

ShowDeleteWorktreeDialog requests showing the delete worktree confirmation

type ShowQuitDialog

type ShowQuitDialog struct{}

ShowQuitDialog requests showing the quit confirmation dialog

type ShowRemoveProjectDialog

type ShowRemoveProjectDialog struct {
	Project *data.Project
}

ShowRemoveProjectDialog requests showing the remove project confirmation

type ShowSelectAssistantDialog

type ShowSelectAssistantDialog struct{}

ShowSelectAssistantDialog requests showing the assistant selection dialog

type ShowSettingsDialog

type ShowSettingsDialog struct{}

ShowSettingsDialog requests showing the settings dialog

type ShowWelcome

type ShowWelcome struct{}

ShowWelcome requests showing the welcome screen

type SidebarPTYFlush

type SidebarPTYFlush struct {
	WorktreeID string
}

SidebarPTYFlush applies buffered PTY output for sidebar terminal

type SidebarPTYOutput

type SidebarPTYOutput struct {
	WorktreeID string
	Data       []byte
}

SidebarPTYOutput contains PTY output for sidebar terminal

type SidebarPTYStopped

type SidebarPTYStopped struct {
	WorktreeID string
	Err        error
}

SidebarPTYStopped signals that the sidebar PTY read loop has stopped

type SidebarPTYTick

type SidebarPTYTick struct {
	WorktreeID string
}

SidebarPTYTick triggers a sidebar PTY read

type SidebarTerminalCreated

type SidebarTerminalCreated struct {
	WorktreeID string
}

SidebarTerminalCreated signals that the sidebar terminal was created

type SwitchTab

type SwitchTab struct {
	Index int
}

SwitchTab requests switching to a specific tab

type TabClosed

type TabClosed struct {
	Index int
}

TabClosed is sent when a tab is closed

type TabCreated

type TabCreated struct {
	Index int
	Name  string
}

TabCreated is sent when a new tab is created

type ToggleHelp

type ToggleHelp struct{}

ToggleHelp requests toggling the help overlay

type ToggleKeymapHints

type ToggleKeymapHints struct{}

ToggleKeymapHints toggles display of keymap helper text

type ToggleMonitor

type ToggleMonitor struct{}

ToggleMonitor requests toggling monitor mode

type ViewCommitDiff

type ViewCommitDiff struct {
	Worktree *data.Worktree
	Hash     string
}

ViewCommitDiff requests viewing a specific commit's diff

type WorktreeActivated

type WorktreeActivated struct {
	Project  *data.Project
	Worktree *data.Worktree
}

WorktreeActivated is sent when a worktree is selected

type WorktreeCreateFailed

type WorktreeCreateFailed struct {
	Worktree *data.Worktree
	Err      error
}

WorktreeCreateFailed is sent when a worktree creation fails

type WorktreeCreated

type WorktreeCreated struct {
	Worktree *data.Worktree
}

WorktreeCreated is sent when a new worktree is created

type WorktreeCreatedWithWarning

type WorktreeCreatedWithWarning struct {
	Worktree *data.Worktree
	Warning  string
}

WorktreeCreatedWithWarning indicates worktree was created but setup had issues

type WorktreeDeleteFailed

type WorktreeDeleteFailed struct {
	Project  *data.Project
	Worktree *data.Worktree
	Err      error
}

WorktreeDeleteFailed is sent when a worktree deletion fails

type WorktreeDeleted

type WorktreeDeleted struct {
	Project  *data.Project
	Worktree *data.Worktree
}

WorktreeDeleted is sent when a worktree is deleted

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL