Documentation
¶
Overview ¶
Package session tracks launch-scoped Claude sessions, routes, agents, and tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHook = errors.New("invalid lifecycle hook")
Functions ¶
func ValidateHookEvent ¶
Types ¶
type HookEvent ¶
type HookEvent struct {
SessionID string `json:"session_id"`
HookEventName string `json:"hook_event_name"`
Source string `json:"source"`
Reason string `json:"reason"`
AgentID string `json:"agent_id"`
AgentType string `json:"agent_type"`
TaskID string `json:"task_id"`
TeammateName string `json:"teammate_name"`
TeamName string `json:"team_name"`
}
HookEvent deliberately excludes transcript paths, messages, task text, tool arguments, and raw errors. JSON decoding discards those fields immediately.
type SessionSnapshot ¶
type Snapshot ¶
type Snapshot struct {
SchemaVersion int `json:"schema_version"`
LaunchID int64 `json:"launch_id"`
LifecycleEnabled bool `json:"lifecycle_enabled"`
LifecycleState string `json:"lifecycle_state"`
CurrentSession SessionSnapshot `json:"current_session"`
Route Route `json:"route"`
ActiveAgents int `json:"active_agents"`
ActiveTasks int `json:"active_tasks"`
LastEvent string `json:"last_event,omitempty"`
LastError string `json:"last_error,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Observability observability.Snapshot `json:"observability"`
}
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
func NewTracker ¶
func (*Tracker) CurrentSessionID ¶
func (*Tracker) HandleHook ¶
Click to show internal directories.
Click to hide internal directories.