Add gt mail show alias (#340)
* Use rig prefix for agent bead IDs * Add gt mail show alias --------- Co-authored-by: Chris Fry <chris@hyperspect.ai>
This commit is contained in:
@@ -153,6 +153,7 @@ var mailReadCmd = &cobra.Command{
|
||||
Long: `Read a specific message and mark it as read.
|
||||
|
||||
The message ID can be found from 'gt mail inbox'.`,
|
||||
Aliases: []string{"show"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: runMailRead,
|
||||
}
|
||||
|
||||
@@ -1142,7 +1142,7 @@ func agentIDToBeadID(agentID, townRoot string) string {
|
||||
}
|
||||
|
||||
rig := parts[0]
|
||||
prefix := config.GetRigPrefix(townRoot, rig)
|
||||
prefix := beads.GetPrefixForRig(townRoot, rig)
|
||||
|
||||
switch {
|
||||
case len(parts) == 2 && parts[1] == "witness":
|
||||
|
||||
Reference in New Issue
Block a user