Add comprehensive Claude Code monitoring and realtime streaming to the K8s dashboard. Includes API endpoints for health, stats, summary, inventory, and live event streaming. Frontend provides overview, usage, inventory, debug, and live feed views.
20 lines
410 B
Go
20 lines
410 B
Go
package claude
|
|
|
|
import "time"
|
|
|
|
type EventType string
|
|
|
|
const (
|
|
EventTypeHistoryAppend EventType = "history.append"
|
|
EventTypeFileChanged EventType = "file.changed"
|
|
EventTypeServerNotice EventType = "server.notice"
|
|
EventTypeServerError EventType = "server.error"
|
|
)
|
|
|
|
type Event struct {
|
|
ID int64 `json:"id"`
|
|
TS time.Time `json:"ts"`
|
|
Type EventType `json:"type"`
|
|
Data any `json:"data"`
|
|
}
|