Documentation
¶
Overview ¶
Package web provides an embedded HTTP server for the OpsDeck web dashboard. It reuses the same discovery and intel logic as the TUI, served via SSE for real-time updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the web dashboard HTTP server.
type SessionView ¶
type SessionView struct {
ID string `json:"id"`
PID int `json:"pid"`
State string `json:"state"`
Project string `json:"project"`
StartedAt time.Time `json:"started_at"`
WorkingOn string `json:"working_on"`
// Activity data (populated on detail request).
EditCount int `json:"edit_count"`
BashCount int `json:"bash_count"`
ErrorCount int `json:"error_count"`
FilesChanged int `json:"files_changed"`
Messages int `json:"messages"`
Activities []string `json:"activities,omitempty"`
LastRequest string `json:"last_request,omitempty"`
// Cost data.
TotalTokens int64 `json:"total_tokens"`
EstCostUSD float64 `json:"est_cost_usd"`
}
SessionView is the JSON-friendly representation of a session for the web UI.
Click to show internal directories.
Click to hide internal directories.