Documentation
¶
Index ¶
- func BuildContextPrompt(promptTemplate string, ticket *board.Ticket) string
- func CleanupStatusFile(sessionName string) error
- func FindCodexSession(directory string) string
- func FindGeminiSession(directory string) string
- func FindOpencodeSession(directory string) string
- func ShouldInjectContext(ticket *board.Ticket) bool
- func WriteStatusFile(sessionName string, status board.AgentStatus) error
- type ContextData
- type Manager
- type OpencodeServer
- type StatusDetector
- func (d *StatusDetector) DetectStatus(agentType, sessionID string, processRunning bool, terminalContent string) board.AgentStatus
- func (d *StatusDetector) DetectStatusWithPath(agentType, sessionID, worktreePath string, processRunning bool, ...) board.AgentStatus
- func (d *StatusDetector) DetectStatusWithPort(agentType, sessionID, worktreePath string, port int, processRunning bool, ...) board.AgentStatus
- func (d *StatusDetector) InvalidateCache(sessionName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContextPrompt ¶
func CleanupStatusFile ¶
func FindCodexSession ¶ added in v0.0.19
FindCodexSession finds the most recent Codex session for a directory. Returns "last" to signal use of "codex resume --last".
func FindGeminiSession ¶ added in v0.0.19
FindGeminiSession finds the most recent Gemini session for a directory. Returns "latest" to signal --resume without ID (Gemini hashes project paths).
func FindOpencodeSession ¶
func ShouldInjectContext ¶
func WriteStatusFile ¶
func WriteStatusFile(sessionName string, status board.AgentStatus) error
Types ¶
type ContextData ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles AI agent configuration and status polling. Agent lifecycle (spawn/stop) is now managed by terminal.Pane via PTY.
func NewManager ¶
NewManager creates a new agent manager
func (*Manager) GetAgentConfig ¶
func (m *Manager) GetAgentConfig(agentType string) (*config.AgentConfig, bool)
GetAgentConfig returns the configuration for a specific agent type
func (*Manager) PollStatuses ¶
PollStatuses is a no-op placeholder. Agent status is now tracked by the UI via terminal.Pane.Running().
func (*Manager) StatusPollInterval ¶
type OpencodeServer ¶
type OpencodeServer struct {
// contains filtered or unexported fields
}
func NewOpencodeServer ¶
func NewOpencodeServer(cfg *config.Config) *OpencodeServer
func (*OpencodeServer) IsRunning ¶
func (s *OpencodeServer) IsRunning() bool
func (*OpencodeServer) Port ¶
func (s *OpencodeServer) Port() int
func (*OpencodeServer) Start ¶
func (s *OpencodeServer) Start() error
func (*OpencodeServer) Stop ¶
func (s *OpencodeServer) Stop() error
func (*OpencodeServer) URL ¶
func (s *OpencodeServer) URL() string
type StatusDetector ¶
type StatusDetector struct {
// contains filtered or unexported fields
}
func NewStatusDetector ¶
func NewStatusDetector() *StatusDetector
func (*StatusDetector) DetectStatus ¶
func (d *StatusDetector) DetectStatus(agentType, sessionID string, processRunning bool, terminalContent string) board.AgentStatus
func (*StatusDetector) DetectStatusWithPath ¶
func (d *StatusDetector) DetectStatusWithPath(agentType, sessionID, worktreePath string, processRunning bool, terminalContent string) board.AgentStatus
func (*StatusDetector) DetectStatusWithPort ¶
func (d *StatusDetector) DetectStatusWithPort(agentType, sessionID, worktreePath string, port int, processRunning bool, terminalContent string) board.AgentStatus
func (*StatusDetector) InvalidateCache ¶
func (d *StatusDetector) InvalidateCache(sessionName string)
Click to show internal directories.
Click to hide internal directories.