feat: simplify mail wisps - single DB with --wisp flag (gt-fgms)
Removed dual-routing architecture that used separate .beads-wisp/ directory. Now uses single .beads/ with --wisp flag passed to bd create. Changes: - router.go: Remove resolveWispDir(), simplify shouldBeWisp() - mailbox.go: Remove wispDir field and dual-source query logic - types.go: Rename Ephemeral to Wisp, remove MessageSource - mail.go: Rename --ephemeral to --wisp flag - spawn.go: Use Wisp field for lifecycle messages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -398,11 +398,11 @@ func runSpawn(cmd *cobra.Command, args []string) error {
|
||||
// Notify Witness with POLECAT_STARTED message (ephemeral - lifecycle ping)
|
||||
witnessAddr := fmt.Sprintf("%s/witness", rigName)
|
||||
witnessNotification := &mail.Message{
|
||||
To: witnessAddr,
|
||||
From: sender,
|
||||
Subject: fmt.Sprintf("POLECAT_STARTED %s", polecatName),
|
||||
Body: fmt.Sprintf("Issue: %s\nSession: %s", assignmentID, sessionName),
|
||||
Ephemeral: true,
|
||||
To: witnessAddr,
|
||||
From: sender,
|
||||
Subject: fmt.Sprintf("POLECAT_STARTED %s", polecatName),
|
||||
Body: fmt.Sprintf("Issue: %s\nSession: %s", assignmentID, sessionName),
|
||||
Wisp: true,
|
||||
}
|
||||
|
||||
if err := townRouter.Send(witnessNotification); err != nil {
|
||||
@@ -414,11 +414,11 @@ func runSpawn(cmd *cobra.Command, args []string) error {
|
||||
// Notify Deacon with POLECAT_STARTED message (ephemeral - lifecycle ping)
|
||||
deaconAddr := "deacon/"
|
||||
deaconNotification := &mail.Message{
|
||||
To: deaconAddr,
|
||||
From: sender,
|
||||
Subject: fmt.Sprintf("POLECAT_STARTED %s/%s", rigName, polecatName),
|
||||
Body: fmt.Sprintf("Issue: %s\nSession: %s", assignmentID, sessionName),
|
||||
Ephemeral: true,
|
||||
To: deaconAddr,
|
||||
From: sender,
|
||||
Subject: fmt.Sprintf("POLECAT_STARTED %s/%s", rigName, polecatName),
|
||||
Body: fmt.Sprintf("Issue: %s\nSession: %s", assignmentID, sessionName),
|
||||
Wisp: true,
|
||||
}
|
||||
|
||||
if err := townRouter.Send(deaconNotification); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user