Add gt up --restore for crew and polecat restoration
Features:
- Add CrewConfig to RigSettings (settings/config.json)
- Add --restore flag to gt up
- Crew startup from natural language preferences (e.g., 'max', 'joe and max', 'all')
- Polecat restoration from hook files (work attached)
Example rig settings:
{"crew": {"startup": "max"}}
Usage:
gt up --restore
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,6 +99,21 @@ type RigSettings struct {
|
||||
MergeQueue *MergeQueueConfig `json:"merge_queue,omitempty"` // merge queue settings
|
||||
Theme *ThemeConfig `json:"theme,omitempty"` // tmux theme settings
|
||||
Namepool *NamepoolConfig `json:"namepool,omitempty"` // polecat name pool settings
|
||||
Crew *CrewConfig `json:"crew,omitempty"` // crew startup settings
|
||||
}
|
||||
|
||||
// CrewConfig represents crew workspace settings for a rig.
|
||||
type CrewConfig struct {
|
||||
// Startup is a natural language instruction for which crew to start on boot.
|
||||
// Interpreted by AI during startup. Examples:
|
||||
// "max" - start only max
|
||||
// "joe and max" - start joe and max
|
||||
// "all" - start all crew members
|
||||
// "pick one" - start any one crew member
|
||||
// "none" - don't auto-start any crew
|
||||
// "max, but not emma" - start max, skip emma
|
||||
// If empty, defaults to starting no crew automatically.
|
||||
Startup string `json:"startup,omitempty"`
|
||||
}
|
||||
|
||||
// ThemeConfig represents tmux theme settings for a rig.
|
||||
|
||||
Reference in New Issue
Block a user