fix: rename wisp prefix from 'eph' to 'wisp' (bd-ucj8)

New wisps now use 'wisp' segment (e.g., gt-wisp-xxx) instead of 'eph'.
Detection patterns updated to support both for backwards compatibility
with existing gt-eph-* wisps in databases.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
This commit is contained in:
beads/crew/dave
2026-01-01 23:55:32 -08:00
committed by Steve Yegge
parent d371baf2ca
commit 8601ed01b6
4 changed files with 40 additions and 25 deletions

View File

@@ -383,34 +383,47 @@ func TestIsWispOperation(t *testing.T) {
{
name: "mol burn",
cmdNames: []string{"bd", "mol", "burn"},
args: []string{"bd-eph-abc"},
args: []string{"bd-wisp-abc"},
want: true,
},
{
name: "mol squash",
cmdNames: []string{"bd", "mol", "squash"},
args: []string{"bd-eph-abc"},
args: []string{"bd-wisp-abc"},
want: true,
},
// Ephemeral issue IDs in args
// Ephemeral issue IDs in args (wisp-* pattern)
{
name: "close with bd-eph ID",
name: "close with bd-wisp ID",
cmdNames: []string{"bd", "close"},
args: []string{"bd-wisp-abc123"},
want: true,
},
{
name: "show with gt-wisp ID",
cmdNames: []string{"bd", "show"},
args: []string{"gt-wisp-xyz"},
want: true,
},
{
name: "update with wisp- prefix",
cmdNames: []string{"bd", "update"},
args: []string{"wisp-test", "--status=closed"},
want: true,
},
// Legacy eph-* pattern (backwards compatibility)
{
name: "close with legacy bd-eph ID",
cmdNames: []string{"bd", "close"},
args: []string{"bd-eph-abc123"},
want: true,
},
{
name: "show with gt-eph ID",
name: "show with legacy gt-eph ID",
cmdNames: []string{"bd", "show"},
args: []string{"gt-eph-xyz"},
want: true,
},
{
name: "update with eph- prefix",
cmdNames: []string{"bd", "update"},
args: []string{"eph-test", "--status=closed"},
want: true,
},
// Non-wisp operations (should NOT bypass)
{
name: "regular show",
@@ -438,9 +451,9 @@ func TestIsWispOperation(t *testing.T) {
},
// Edge cases
{
name: "flag that looks like eph ID should be ignored",
name: "flag that looks like wisp ID should be ignored",
cmdNames: []string{"bd", "show"},
args: []string{"--format=bd-eph-style", "bd-regular"},
args: []string{"--format=bd-wisp-style", "bd-regular"},
want: false,
},
}