feat: show redirect info in bd prime output (bd-kblo)
When beads is redirected (e.g., in Gas Town crew clones), bd prime now shows a notice about the redirect. This helps agents understand why they share issues with other clones. CLI mode shows: > ⚠️ **Redirected**: Local .beads → /path/to/target/.beads > You share issues with other clones using this redirect. MCP mode shows: **Note**: Beads redirected to /path/to/target/.beads (shared with other clones) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
9
beads.go
9
beads.go
@@ -50,6 +50,15 @@ func FindAllDatabases() []DatabaseInfo {
|
||||
return beads.FindAllDatabases()
|
||||
}
|
||||
|
||||
// RedirectInfo contains information about a beads directory redirect
|
||||
type RedirectInfo = beads.RedirectInfo
|
||||
|
||||
// GetRedirectInfo checks if the current beads directory is redirected.
|
||||
// Returns RedirectInfo with IsRedirected=true if a redirect is active.
|
||||
func GetRedirectInfo() RedirectInfo {
|
||||
return beads.GetRedirectInfo()
|
||||
}
|
||||
|
||||
// Core types from internal/types
|
||||
type (
|
||||
Issue = types.Issue
|
||||
|
||||
Reference in New Issue
Block a user