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

@@ -77,7 +77,7 @@ func handleFreshCloneError(err error, beadsDir string) bool {
// - mol wisp subcommands (create, list, gc, or direct proto invocation)
// - mol burn (only operates on wisps)
// - mol squash (condenses wisps to digests)
// - Commands with ephemeral issue IDs in args (bd-*-eph-*, eph-*)
// - Commands with ephemeral issue IDs in args (bd-*-wisp-*, wisp-*, or legacy eph-*)
func isWispOperation(cmd *cobra.Command, args []string) bool {
cmdName := cmd.Name()
@@ -97,14 +97,16 @@ func isWispOperation(cmd *cobra.Command, args []string) bool {
}
// Check for ephemeral issue IDs in arguments
// Ephemeral IDs have "eph" segment: bd-eph-xxx, gt-eph-xxx, eph-xxx
// Ephemeral IDs have "wisp" segment: bd-wisp-xxx, gt-wisp-xxx, wisp-xxx
// Also detect legacy "eph" prefix for backwards compatibility
for _, arg := range args {
// Skip flags
if strings.HasPrefix(arg, "-") {
continue
}
// Check for ephemeral prefix patterns
if strings.Contains(arg, "-eph-") || strings.HasPrefix(arg, "eph-") {
// Check for ephemeral prefix patterns (wisp-* or legacy eph-*)
if strings.Contains(arg, "-wisp-") || strings.HasPrefix(arg, "wisp-") ||
strings.Contains(arg, "-eph-") || strings.HasPrefix(arg, "eph-") {
return true
}
}