Add Deacon role to gt prime
Deacon now gets role-specific context plus shared beads/mail context like all other roles. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@ type Role string
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
RoleMayor Role = "mayor"
|
RoleMayor Role = "mayor"
|
||||||
|
RoleDeacon Role = "deacon"
|
||||||
RoleWitness Role = "witness"
|
RoleWitness Role = "witness"
|
||||||
RoleRefinery Role = "refinery"
|
RoleRefinery Role = "refinery"
|
||||||
RolePolecat Role = "polecat"
|
RolePolecat Role = "polecat"
|
||||||
@@ -118,6 +119,12 @@ func detectRole(cwd, townRoot string) RoleContext {
|
|||||||
return ctx
|
return ctx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for deacon role: deacon/
|
||||||
|
if len(parts) >= 1 && parts[0] == "deacon" {
|
||||||
|
ctx.Role = RoleDeacon
|
||||||
|
return ctx
|
||||||
|
}
|
||||||
|
|
||||||
// At this point, first part should be a rig name
|
// At this point, first part should be a rig name
|
||||||
if len(parts) < 1 {
|
if len(parts) < 1 {
|
||||||
return ctx
|
return ctx
|
||||||
@@ -168,6 +175,8 @@ func outputPrimeContext(ctx RoleContext) error {
|
|||||||
switch ctx.Role {
|
switch ctx.Role {
|
||||||
case RoleMayor:
|
case RoleMayor:
|
||||||
roleName = "mayor"
|
roleName = "mayor"
|
||||||
|
case RoleDeacon:
|
||||||
|
roleName = "deacon"
|
||||||
case RoleWitness:
|
case RoleWitness:
|
||||||
roleName = "witness"
|
roleName = "witness"
|
||||||
case RoleRefinery:
|
case RoleRefinery:
|
||||||
|
|||||||
Reference in New Issue
Block a user