feat(types): add rig identity bead type (gt-zmznh)
- Add TypeRig constant to IssueType enum - Update IsValid() method to include TypeRig - Add UI color (orange) and style for rig type - Update CLI flag descriptions in create and update commands - Add Obsidian export tag for rig type - Add comprehensive test cases for rig and other newer types 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -417,6 +417,7 @@ const (
|
||||
TypeGate IssueType = "gate" // Async coordination gate
|
||||
TypeAgent IssueType = "agent" // Agent identity bead
|
||||
TypeRole IssueType = "role" // Agent role definition
|
||||
TypeRig IssueType = "rig" // Rig identity bead (project container)
|
||||
TypeConvoy IssueType = "convoy" // Cross-project tracking with reactive completion
|
||||
TypeEvent IssueType = "event" // Operational state change record
|
||||
TypeSlot IssueType = "slot" // Exclusive access slot (merge-slot gate)
|
||||
@@ -425,7 +426,7 @@ const (
|
||||
// IsValid checks if the issue type value is valid
|
||||
func (t IssueType) IsValid() bool {
|
||||
switch t {
|
||||
case TypeBug, TypeFeature, TypeTask, TypeEpic, TypeChore, TypeMessage, TypeMergeRequest, TypeMolecule, TypeGate, TypeAgent, TypeRole, TypeConvoy, TypeEvent, TypeSlot:
|
||||
case TypeBug, TypeFeature, TypeTask, TypeEpic, TypeChore, TypeMessage, TypeMergeRequest, TypeMolecule, TypeGate, TypeAgent, TypeRole, TypeRig, TypeConvoy, TypeEvent, TypeSlot:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
@@ -401,6 +401,12 @@ func TestIssueTypeIsValid(t *testing.T) {
|
||||
{TypeTask, true},
|
||||
{TypeEpic, true},
|
||||
{TypeChore, true},
|
||||
{TypeAgent, true},
|
||||
{TypeRole, true},
|
||||
{TypeRig, true},
|
||||
{TypeConvoy, true},
|
||||
{TypeEvent, true},
|
||||
{TypeSlot, true},
|
||||
{IssueType("invalid"), false},
|
||||
{IssueType(""), false},
|
||||
}
|
||||
@@ -430,6 +436,7 @@ func TestIssueTypeRequiredSections(t *testing.T) {
|
||||
{TypeGate, 0, ""},
|
||||
{TypeAgent, 0, ""},
|
||||
{TypeRole, 0, ""},
|
||||
{TypeRig, 0, ""},
|
||||
{TypeConvoy, 0, ""},
|
||||
{TypeEvent, 0, ""},
|
||||
{TypeMergeRequest, 0, ""},
|
||||
|
||||
Reference in New Issue
Block a user