🚚 Gas Town Control Center

Auto-refresh: 10s
🎩 The Mayor {{if .Mayor}} {{if .Mayor.IsAttached}} Attached {{else}} Detached {{end}} {{else}} Unknown {{end}}
{{if .Mayor}}{{if .Mayor.IsAttached}}
Activity {{.Mayor.LastActivity}}
Runtime {{.Mayor.Runtime}}
{{end}}{{end}}
{{if .Summary}}
{{.Summary.PolecatCount}} 🦨 Polecats
{{.Summary.HookCount}} 🪝 Hooks
{{.Summary.IssueCount}} 📿 Issues
{{.Summary.ConvoyCount}} 🚚 Convoys
{{.Summary.EscalationCount}} ⚠️ Escalations
{{if .Summary.HasAlerts}}
{{if .Summary.StuckPolecats}} 💀 {{.Summary.StuckPolecats}} stuck {{end}} {{if .Summary.StaleHooks}} ⏰ {{.Summary.StaleHooks}} stale hooks {{end}} {{if .Summary.UnackedEscalations}} 🔔 {{.Summary.UnackedEscalations}} unacked {{end}} {{if .Summary.HighPriorityIssues}} 🔥 {{.Summary.HighPriorityIssues}} P1/P2 {{end}} {{if .Summary.DeadSessions}} ☠️ {{.Summary.DeadSessions}} dead {{end}}
{{else}}
✓ All clear
{{end}}
{{end}}

🚚 Convoys

{{len .Convoys}}
{{if .Convoys}} {{range .Convoys}} {{end}}
Status Convoy Progress Activity
{{if eq .WorkStatus "complete"}} {{else if eq .WorkStatus "active"}} Active {{else if eq .WorkStatus "stale"}} Stale {{else if eq .WorkStatus "stuck"}} Stuck {{else}} Wait {{end}} {{.ID}} {{.Progress}} {{if .Total}}
{{end}}
{{.LastActivity.FormattedAge}}
{{else}}

No active convoys

{{end}}

🐾 Polecats

{{len .Polecats}}
{{if .Polecats}} {{range .Polecats}} {{end}}
Worker Rig Working On Status Activity
{{.Name}} {{.Rig}} {{if .IssueID}} {{.IssueID}} {{.IssueTitle}} {{else}} {{end}} {{if eq .WorkStatus "working"}} Working {{else if eq .WorkStatus "stale"}} Stale {{else if eq .WorkStatus "stuck"}} Stuck {{else}} Idle {{end}} {{.LastActivity.FormattedAge}}
{{else}}

No active workers

{{end}}

📟 Sessions

{{len .Sessions}}
{{if .Sessions}} {{range .Sessions}} {{end}}
Role Rig Worker Activity
{{.Role}} {{.Rig}} {{.Worker}} {{.Activity}}
{{else}}

No active sessions

{{end}}

📜 Activity

{{len .Activity}}
{{if .Activity}}
{{range .Activity}}
{{.Icon}} {{.Summary}} {{.Time}}
{{end}}
{{else}}

No recent activity

{{end}}

✉️ Mail

{{len .Mail}}
{{if .Mail}} {{range .Mail}} {{end}}
From To Subject Age
{{.From}} {{.To}} {{if eq .Priority "urgent"}}{{end}} {{if eq .Priority "high"}}!{{end}} {{.Subject}} {{.Age}}
{{else}}

No recent mail

{{end}}

🔀 Merge Queue

{{len .MergeQueue}}
{{if .MergeQueue}} {{range .MergeQueue}} {{end}}
PR Repo Title CI Merge
#{{.Number}} {{.Repo}} {{.Title}} {{if eq .CIStatus "pass"}}CI Pass {{else if eq .CIStatus "fail"}}CI Fail {{else}}CI Running{{end}} {{if eq .Mergeable "ready"}}Ready {{else if eq .Mergeable "conflict"}}Conflict {{else}}Pending{{end}}
{{else}}

No PRs in queue

{{end}}

🚨 Escalations

{{len .Escalations}}
{{if .Escalations}} {{range .Escalations}} {{end}}
Severity Issue From Age
{{if eq .Severity "critical"}}CRIT {{else if eq .Severity "high"}}HIGH {{else if eq .Severity "medium"}}MED {{else}}LOW{{end}} {{.Title}} {{if .Acked}}ACK{{end}} {{.EscalatedBy}} {{.Age}}
{{else}}

No escalations

{{end}}

🏗️ Rigs

{{len .Rigs}}
{{if .Rigs}} {{range .Rigs}} {{end}}
Name Polecats Crew Agents
{{.Name}} {{.PolecatCount}} {{.CrewCount}} 👁 ⚗️
{{else}}

No rigs configured

{{end}}

🐕 Dogs

{{len .Dogs}}
{{if .Dogs}} {{range .Dogs}} {{end}}
Name State Work Activity
{{.Name}} {{if eq .State "idle"}}Idle {{else}}Working{{end}} {{.Work}} {{.LastActive}}
{{else}}

No dogs in kennel

{{end}}

💓 System Health

{{if .Health}}
Deacon Heartbeat
{{.Health.DeaconHeartbeat}}
Cycle
{{.Health.DeaconCycle}}
Healthy Agents
{{.Health.HealthyAgents}}
Unhealthy
{{.Health.UnhealthyAgents}}
{{if .Health.IsPaused}}
⚠️ Deacon Paused
{{.Health.PauseReason}}
{{end}}
{{else}}

Health data unavailable

{{end}}
{{if .Queues}}

📋 Queues

{{len .Queues}}
{{range .Queues}} {{end}}
Queue Status Avail Proc Done Fail
{{.Name}} {{if eq .Status "active"}}Active {{else if eq .Status "paused"}}Paused {{else}}Closed{{end}} {{.Available}} {{.Processing}} {{.Completed}} {{if .Failed}}{{.Failed}}{{else}}0{{end}}
{{end}}

📿 Open Issues

{{len .Issues}}
{{if .Issues}} {{range .Issues}} {{end}}
Pri ID Title Type Age
{{if eq .Priority 1}}P1 {{else if eq .Priority 2}}P2 {{else if eq .Priority 3}}P3 {{else}}P4{{end}} {{.ID}} {{.Title}} {{.Type}} {{.Age}}
{{else}}

No open issues

{{end}}

🪝 Hooks

{{len .Hooks}}
{{if .Hooks}} {{range .Hooks}} {{end}}
Bead Title Agent Hooked
{{.ID}} {{.Title}} {{.Agent}} {{if .IsStale}} {{.Age}} {{else}} {{.Age}} {{end}}
{{else}}

No hooked work

{{end}}