feat(refinery): Auto-detect rig from cwd for refinery commands

All gt refinery subcommands (start, stop, status, queue, attach) now
accept an optional rig argument. If not provided, the rig is inferred
from the current working directory.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-22 13:38:14 -08:00
parent adfa4d5451
commit db87ec7b7b
4 changed files with 71 additions and 49 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ func runRefineryStatusLine(rigName string) error {
}
// Get refinery manager using shared helper
mgr, _, err := getRefineryManager(rigName)
mgr, _, _, err := getRefineryManager(rigName)
if err != nil {
// Fallback to simple status if we can't access refinery
fmt.Printf("%s MQ: ? |", AgentTypeIcons[AgentRefinery])