Documentation
¶
Overview ¶
Package session manages agent sessions
Index ¶
- type Group
- type GroupMode
- type Manager
- func (m *Manager) ActiveCount() int
- func (m *Manager) AddAgentForTesting(a agent.Agent)
- func (m *Manager) ChildCount(parentID string) int
- func (m *Manager) FilterByStatus(status agent.Status) []agent.Agent
- func (m *Manager) FilterByType(agentType string) []agent.Agent
- func (m *Manager) Get(id string) (agent.Agent, bool)
- func (m *Manager) GetChildren(parentID string) []agent.Agent
- func (m *Manager) GroupBy(mode GroupMode) []Group
- func (m *Manager) LastActivityTime() time.Time
- func (m *Manager) List() []agent.Agent
- func (m *Manager) ListPrimary() []agent.Agent
- func (m *Manager) OnEvent(fn func(agent.Event))
- func (m *Manager) Refresh(ctx context.Context) error
- func (m *Manager) Search(query string) []agent.Agent
- func (m *Manager) SendInput(id string, input string) error
- func (m *Manager) Spawn(ctx context.Context, config agent.SpawnConfig) (agent.Agent, error)
- func (m *Manager) Start(ctx context.Context) error
- func (m *Manager) Stats() *Stats
- func (m *Manager) Stop()
- func (m *Manager) Terminate(id string) error
- type Stats
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 coordinates session discovery, monitoring, and lifecycle
func NewManager ¶
func NewManager(cfg *config.Config, st *store.Store, registry *agent.Registry, alertMgr *alert.Manager) *Manager
NewManager creates a new session manager
func (*Manager) ActiveCount ¶
ActiveCount returns the number of active (running) agents
func (*Manager) AddAgentForTesting ¶
AddAgentForTesting adds an agent directly (for testing only)
func (*Manager) ChildCount ¶
func (*Manager) FilterByStatus ¶
FilterByStatus returns agents with the specified status
func (*Manager) FilterByType ¶
FilterByType returns agents of the specified type
func (*Manager) LastActivityTime ¶
LastActivityTime returns the most recent activity time across all agents
func (*Manager) ListPrimary ¶
Click to show internal directories.
Click to hide internal directories.