Versions in this module Expand all Collapse all v0 v0.1.1 Oct 23, 2025 v0.1.0 Oct 1, 2025 Changes in this version + func AllocatePortsLegacy() (fePort, apiPort int, err error) + func AttachEditorToSession(sessionName, path string) error + func AttachTmuxSession(sessionName string) error + func BranchExists(repoPath, branchName string) (bool, error) + func ClearAttentionFlag(sessionName string) error + func ClearRegistry() error + func CopyBootstrapFiles(projectRoot, worktreePath string) error + func CreateWorktree(repoPath, name string, detach bool) error + func GenerateEnvrc(worktreePath string, data EnvrcData) error + func GenerateTmuxpConfig(worktreePath string, data TmuxpData) error + func GetCurrentSessionName() string + func GetEditorCommand() string + func GetProjectRoot() (string, error) + func IsEditorAvailable() bool + func IsProcessRunning(pid int) bool + func IsTmuxRunning() bool + func IsWorktreeCheckedOut(repoPath, branchName string) (bool, string, error) + func LaunchEditor(path string) (int, error) + func LaunchEditorForSession(sessionName, path string) error + func LaunchTmuxSession(worktreePath, sessionName string) error + func PruneWorktrees(repoPath string) error + func PullFromOrigin(repoPath, branch string) error + func RemoveSession(name string, sess *Session) error + func RunCleanupCommand(sess *Session) error + func RunCleanupCommandForShell(sess *Session) error + func SetAttentionFlag(sessionName, reason string) error + func TerminateEditor(sessionName string) error + func ValidatePort(port int) error + func WorktreeExists(repoPath, worktreePath string) (bool, error) + type EnvrcData struct + Name string + Ports map[string]int + Routes map[string]string + type PortAllocation struct + Ports map[string]int + func AllocatePorts(serviceNames []string) (*PortAllocation, error) + type Session struct + AttentionFlag bool + AttentionReason string + AttentionTime time.Time + Branch string + CreatedAt time.Time + EditorPID int + Name string + Path string + Ports map[string]int + ProjectAlias string + ProjectPath string + Routes map[string]string + UpdatedAt time.Time + type SessionStore struct + Sessions map[string]*Session + func LoadRegistry() (*SessionStore, error) + func LoadSessions() (*SessionStore, error) + func (s *SessionStore) AddSession(name, branch, path string, ports map[string]int) error + func (s *SessionStore) AddSessionWithProject(name, branch, path string, ports map[string]int, ...) error + func (s *SessionStore) GetSession(name string) (*Session, bool) + func (s *SessionStore) RemoveSession(name string) error + func (s *SessionStore) Save() error + func (s *SessionStore) UpdateSession(name string, updateFn func(*Session)) error + type TmuxpData struct + Name string + Path string + Ports map[string]int + Routes map[string]string + type WorktreeInfo struct + Branch string + Head string + Path string + func ListWorktrees(repoPath string) ([]WorktreeInfo, error)