messages

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 CleanupTmuxSessions added in v0.0.9

type CleanupTmuxSessions struct{}

CleanupTmuxSessions requests cleanup of amux tmux sessions.

type CloseTab

type CloseTab struct{}

CloseTab requests closing the current tab

type CreateAgentTab

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

CreateAgentTab requests creation of a new agent tab

type CreateWorkspace added in v0.0.5

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

CreateWorkspace requests creating a new workspace

type DeleteWorkspace added in v0.0.5

type DeleteWorkspace struct {
	Project   *data.Project
	Workspace *data.Workspace
}

DeleteWorkspace requests deleting a workspace

type Error

type Error struct {
	Err     error
	Context string
	Logged  bool
}

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
	Workspace *data.Workspace
}

LaunchAgent requests launching an agent in a new tab

type OpenDiff

type OpenDiff struct {
	// Legacy fields (for backwards compatibility with sidebar)
	File       string
	StatusCode string // Git status code (e.g., "M ", "??", "A ")

	// New fields
	Change    *git.Change  // Change object with full info
	Mode      git.DiffMode // Which diff mode to use
	Workspace *data.Workspace
}

OpenDiff requests opening a diff viewer for a file

type OpenFileInVim added in v0.0.4

type OpenFileInVim struct {
	Path      string
	Workspace *data.Workspace
}

OpenFileInVim requests opening a file in vim in the center pane

type PTYWatchdogTick added in v0.0.5

type PTYWatchdogTick struct{}

PTYWatchdogTick triggers a periodic check for stalled PTY readers.

type PaneType

type PaneType int

PaneType identifies the focused pane

const (
	PaneDashboard PaneType = iota
	PaneCenter
	PaneSidebar
	PaneSidebarTerminal
)

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 RescanWorkspaces added in v0.0.8

type RescanWorkspaces struct{}

RescanWorkspaces requests a git worktree rescan/import.

type RunScript

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

RunScript requests running a script for the active workspace

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 ShowCleanupTmuxDialog added in v0.0.9

type ShowCleanupTmuxDialog struct{}

ShowCleanupTmuxDialog requests confirmation before cleaning tmux sessions.

type ShowCreateWorkspaceDialog added in v0.0.5

type ShowCreateWorkspaceDialog struct {
	Project *data.Project
}

ShowCreateWorkspaceDialog requests showing the create workspace dialog

type ShowDeleteWorkspaceDialog added in v0.0.5

type ShowDeleteWorkspaceDialog struct {
	Project   *data.Project
	Workspace *data.Workspace
}

ShowDeleteWorkspaceDialog requests showing the delete workspace 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 {
	WorkspaceID string
	TabID       string
}

SidebarPTYFlush applies buffered PTY output for sidebar terminal

type SidebarPTYOutput

type SidebarPTYOutput struct {
	WorkspaceID string
	TabID       string
	Data        []byte
}

SidebarPTYOutput contains PTY output for sidebar terminal

type SidebarPTYRestart added in v0.0.5

type SidebarPTYRestart struct {
	WorkspaceID string
	TabID       string
}

SidebarPTYRestart requests restarting a sidebar PTY reader.

type SidebarPTYStopped

type SidebarPTYStopped struct {
	WorkspaceID string
	TabID       string
	Err         error
}

SidebarPTYStopped signals that the sidebar PTY read loop has stopped

type SidebarPTYTick

type SidebarPTYTick struct {
	WorkspaceID string
	TabID       string
}

SidebarPTYTick triggers a sidebar PTY read

type SidebarTerminalCreated

type SidebarTerminalCreated struct {
	WorkspaceID string
}

SidebarTerminalCreated signals that the sidebar terminal was created

type SidebarTerminalTabCreated added in v0.0.4

type SidebarTerminalTabCreated struct {
	WorkspaceID string
	TabID       string
}

SidebarTerminalTabCreated signals that a sidebar terminal tab was created

type StateWatcherEvent added in v0.0.11

type StateWatcherEvent struct {
	Reason string
}

StateWatcherEvent is sent when amux state files change on disk.

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 TabDetached added in v0.0.9

type TabDetached struct {
	Index int
}

TabDetached is sent when a tab is detached (tmux session remains).

type TabReattached added in v0.0.9

type TabReattached struct {
	WorkspaceID string
	TabID       string
}

TabReattached is sent when a detached tab is reattached.

type TabSelectionChanged added in v0.0.9

type TabSelectionChanged struct {
	WorkspaceID string
	ActiveIndex int
}

TabSelectionChanged indicates the active tab changed for a workspace.

type TabSessionStatus added in v0.0.9

type TabSessionStatus struct {
	WorkspaceID string
	SessionName string
	Status      string
}

TabSessionStatus reports a tmux session status change for a tab.

type TabStateChanged added in v0.0.9

type TabStateChanged struct {
	WorkspaceID string
	TabID       string
}

TabStateChanged indicates a tab state change that should be persisted.

type TmuxSyncTick added in v0.0.9

type TmuxSyncTick struct {
	Token int
}

TmuxSyncTick triggers a periodic tmux session sync for the active workspace.

type Toast added in v0.0.9

type Toast struct {
	Message string
	Level   ToastLevel
}

Toast requests a toast notification in the UI.

type ToastLevel added in v0.0.9

type ToastLevel string

ToastLevel identifies the type of toast notification to display.

const (
	ToastInfo    ToastLevel = "info"
	ToastSuccess ToastLevel = "success"
	ToastError   ToastLevel = "error"
	ToastWarning ToastLevel = "warning"
)

type ToggleHelp

type ToggleHelp struct{}

ToggleHelp requests toggling the help overlay

type ToggleKeymapHints

type ToggleKeymapHints struct{}

ToggleKeymapHints toggles display of keymap helper text

type TriggerUpgrade added in v0.0.3

type TriggerUpgrade struct{}

TriggerUpgrade is sent when the user requests an upgrade

type UpdateCheckComplete added in v0.0.3

type UpdateCheckComplete struct {
	CurrentVersion  string
	LatestVersion   string
	UpdateAvailable bool
	ReleaseNotes    string
	Err             error
}

UpdateCheckComplete is sent when the background update check finishes

type UpgradeComplete added in v0.0.3

type UpgradeComplete struct {
	NewVersion string
	Err        error
}

UpgradeComplete is sent when the upgrade finishes

type WorkspaceActivated added in v0.0.5

type WorkspaceActivated struct {
	Project   *data.Project
	Workspace *data.Workspace
}

WorkspaceActivated is sent when a workspace is selected

type WorkspaceCreateFailed added in v0.0.5

type WorkspaceCreateFailed struct {
	Workspace *data.Workspace
	Err       error
}

WorkspaceCreateFailed is sent when a workspace creation fails

type WorkspaceCreated added in v0.0.5

type WorkspaceCreated struct {
	Workspace *data.Workspace
}

WorkspaceCreated is sent when a new workspace is created

type WorkspaceCreatedWithWarning added in v0.0.5

type WorkspaceCreatedWithWarning struct {
	Workspace *data.Workspace
	Warning   string
}

WorkspaceCreatedWithWarning indicates workspace was created but setup had issues

type WorkspaceDeleteFailed added in v0.0.5

type WorkspaceDeleteFailed struct {
	Project   *data.Project
	Workspace *data.Workspace
	Err       error
}

WorkspaceDeleteFailed is sent when a workspace deletion fails

type WorkspaceDeleted added in v0.0.5

type WorkspaceDeleted struct {
	Project   *data.Project
	Workspace *data.Workspace
}

WorkspaceDeleted is sent when a workspace is deleted

type WorkspaceSetupComplete added in v0.0.5

type WorkspaceSetupComplete struct {
	Workspace *data.Workspace
	Err       error
}

WorkspaceSetupComplete is sent when async setup scripts finish

Jump to

Keyboard shortcuts

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