Documentation
¶
Index ¶
- type Manager
- func (m *Manager) GetAllOutputCache() map[string]*models.SessionOutputCache
- func (m *Manager) GetOutputCache(repoPath string) *models.SessionOutputCache
- func (m *Manager) GetPTY(sessionID string) (*os.File, error)
- func (m *Manager) GetSessionRepoPath(sessionID string) string
- func (m *Manager) ListSessions() []*models.Session
- func (m *Manager) ResumeSession(repoPath string) (*models.Session, error)
- func (m *Manager) SetOutputCache(cache map[string]*models.SessionOutputCache)
- func (m *Manager) StartSession(repoPath, prompt string, args []string) (*models.Session, error)
- func (m *Manager) StartShellTerminal(repoPath, shell string) (string, error)
- func (m *Manager) TerminateSession(sessionID string) error
- func (m *Manager) TerminateShellTerminal(terminalID string) error
- func (m *Manager) UpdateOutputCache(repoPath, output string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages ClaudeCode sessions and shell terminals.
func NewManager ¶
NewManager creates a new session manager.
func (*Manager) GetAllOutputCache ¶
func (m *Manager) GetAllOutputCache() map[string]*models.SessionOutputCache
GetAllOutputCache returns all cached outputs.
func (*Manager) GetOutputCache ¶
func (m *Manager) GetOutputCache(repoPath string) *models.SessionOutputCache
GetOutputCache returns the cached output for a repository.
func (*Manager) GetSessionRepoPath ¶
GetSessionRepoPath returns the repository path for a session.
func (*Manager) ListSessions ¶
ListSessions returns all sessions.
func (*Manager) ResumeSession ¶
ResumeSession resumes a previous ClaudeCode session using claude --resume.
func (*Manager) SetOutputCache ¶
func (m *Manager) SetOutputCache(cache map[string]*models.SessionOutputCache)
SetOutputCache sets the entire output cache.
func (*Manager) StartSession ¶
StartSession starts a new ClaudeCode session in the specified repository.
func (*Manager) StartShellTerminal ¶
StartShellTerminal starts a new shell terminal in the specified directory.
func (*Manager) TerminateSession ¶
TerminateSession terminates an active session.
func (*Manager) TerminateShellTerminal ¶
TerminateShellTerminal terminates a shell terminal.
func (*Manager) UpdateOutputCache ¶
UpdateOutputCache updates the latest output for a repository.