Centralize role emojis: Witness 👁→🦉, Deacon 🦉→🐺
Added centralized emoji constants in internal/constants/constants.go for easy customization. Updated all files that hardcoded role emojis to use the new constants. Changes: - Witness emoji: 👁 (eye) → 🦉 (owl) - less creepy, matches visual identity - Deacon emoji: 🦉 (owl) → 🐺 (wolf) - matches hierarchy prompt (wolf in engine room) - Added RoleEmoji() helper function for string-based lookups - Maintained backwards compatibility with legacy role names 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
1e53cd78a6
commit
721b4ec1dd
@@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/steveyegge/gastown/internal/constants"
|
||||
"github.com/steveyegge/gastown/internal/lock"
|
||||
"github.com/steveyegge/gastown/internal/style"
|
||||
"github.com/steveyegge/gastown/internal/tmux"
|
||||
@@ -47,13 +48,14 @@ var AgentTypeColors = map[AgentType]string{
|
||||
}
|
||||
|
||||
// AgentTypeIcons maps agent types to display icons.
|
||||
// Uses centralized emojis from constants package.
|
||||
var AgentTypeIcons = map[AgentType]string{
|
||||
AgentMayor: "🎩",
|
||||
AgentDeacon: "🦉",
|
||||
AgentWitness: "👁",
|
||||
AgentRefinery: "🏭",
|
||||
AgentCrew: "👷",
|
||||
AgentPolecat: "😺",
|
||||
AgentMayor: constants.EmojiMayor,
|
||||
AgentDeacon: constants.EmojiDeacon,
|
||||
AgentWitness: constants.EmojiWitness,
|
||||
AgentRefinery: constants.EmojiRefinery,
|
||||
AgentCrew: constants.EmojiCrew,
|
||||
AgentPolecat: constants.EmojiPolecat,
|
||||
}
|
||||
|
||||
var agentsCmd = &cobra.Command{
|
||||
|
||||
@@ -70,7 +70,7 @@ Event symbols:
|
||||
✓ completed - Issue closed or step completed
|
||||
✗ failed - Step or issue failed
|
||||
⊘ deleted - Issue removed
|
||||
👁 patrol_started - Witness began patrol cycle
|
||||
🦉 patrol_started - Witness began patrol cycle
|
||||
⚡ polecat_nudged - Worker was nudged
|
||||
🎯 sling - Work was slung to worker
|
||||
🤝 handoff - Session handed off
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/steveyegge/gastown/internal/beads"
|
||||
"github.com/steveyegge/gastown/internal/constants"
|
||||
"github.com/steveyegge/gastown/internal/events"
|
||||
"github.com/steveyegge/gastown/internal/lock"
|
||||
"github.com/steveyegge/gastown/internal/style"
|
||||
@@ -871,7 +872,7 @@ func outputWitnessPatrolContext(ctx RoleContext) {
|
||||
PatrolMolName: "mol-witness-patrol",
|
||||
BeadsDir: ctx.WorkDir,
|
||||
Assignee: ctx.Rig + "/witness",
|
||||
HeaderEmoji: "👁",
|
||||
HeaderEmoji: constants.EmojiWitness,
|
||||
HeaderTitle: "Witness Patrol Status",
|
||||
CheckInProgress: true,
|
||||
WorkLoopSteps: []string{
|
||||
|
||||
@@ -316,16 +316,17 @@ func outputStatusText(status TownStatus) error {
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
// Role icons
|
||||
// Role icons - uses centralized emojis from constants package
|
||||
roleIcons := map[string]string{
|
||||
"mayor": "🎩",
|
||||
"coordinator": "🎩",
|
||||
"deacon": "🔔",
|
||||
"health-check": "🔔",
|
||||
"witness": "👁",
|
||||
"refinery": "🏭",
|
||||
"crew": "👷",
|
||||
"polecat": "😺",
|
||||
constants.RoleMayor: constants.EmojiMayor,
|
||||
constants.RoleDeacon: constants.EmojiDeacon,
|
||||
constants.RoleWitness: constants.EmojiWitness,
|
||||
constants.RoleRefinery: constants.EmojiRefinery,
|
||||
constants.RoleCrew: constants.EmojiCrew,
|
||||
constants.RolePolecat: constants.EmojiPolecat,
|
||||
// Legacy names for backwards compatibility
|
||||
"coordinator": constants.EmojiMayor,
|
||||
"health-check": constants.EmojiDeacon,
|
||||
}
|
||||
|
||||
// Global Agents (Mayor, Deacon)
|
||||
|
||||
Reference in New Issue
Block a user