refactor(types): remove Gas Town type constants from beads core (bd-w2zz4)
Remove Gas Town-specific type constants (TypeMolecule, TypeGate, TypeConvoy, TypeMergeRequest, TypeSlot, TypeAgent, TypeRole, TypeRig, TypeEvent, TypeMessage) from internal/types/types.go. Beads now only has core work types built-in: - bug, feature, task, epic, chore All Gas Town types are now purely custom types with no special handling in beads. Use string literals like "gate" or "molecule" when needed, and configure types.custom in config.yaml for validation. Changes: - Remove Gas Town type constants from types.go - Remove mr/mol aliases from Normalize() - Update bd types command to only show core types - Replace all constant usages with string literals throughout codebase - Update tests to use string literals This decouples beads from Gas Town, making it a generic issue tracker. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,7 +127,7 @@ func TestFindGateReadyMolecules_ClosedGate(t *testing.T) {
|
||||
gate := &types.Issue{
|
||||
ID: "test-mol-002.gate-await-ci",
|
||||
Title: "Gate: gh:run ci-workflow",
|
||||
IssueType: types.TypeGate,
|
||||
IssueType: "gate",
|
||||
Status: types.StatusClosed, // Gate has closed
|
||||
AwaitType: "gh:run",
|
||||
AwaitID: "ci-workflow",
|
||||
@@ -222,7 +222,7 @@ func TestFindGateReadyMolecules_OpenGate(t *testing.T) {
|
||||
gate := &types.Issue{
|
||||
ID: "test-mol-003.gate-await-ci",
|
||||
Title: "Gate: gh:run ci-workflow",
|
||||
IssueType: types.TypeGate,
|
||||
IssueType: "gate",
|
||||
Status: types.StatusOpen, // Gate is still open
|
||||
AwaitType: "gh:run",
|
||||
AwaitID: "ci-workflow",
|
||||
@@ -302,7 +302,7 @@ func TestFindGateReadyMolecules_HookedMolecule(t *testing.T) {
|
||||
gate := &types.Issue{
|
||||
ID: "test-mol-004.gate-await-ci",
|
||||
Title: "Gate: gh:run ci-workflow",
|
||||
IssueType: types.TypeGate,
|
||||
IssueType: "gate",
|
||||
Status: types.StatusClosed,
|
||||
AwaitType: "gh:run",
|
||||
AwaitID: "ci-workflow",
|
||||
@@ -384,7 +384,7 @@ func TestFindGateReadyMolecules_MultipleGates(t *testing.T) {
|
||||
gate := &types.Issue{
|
||||
ID: fmt.Sprintf("%s.gate", molID),
|
||||
Title: "Gate: gh:run",
|
||||
IssueType: types.TypeGate,
|
||||
IssueType: "gate",
|
||||
Status: types.StatusClosed,
|
||||
AwaitType: "gh:run",
|
||||
CreatedAt: time.Now(),
|
||||
|
||||
Reference in New Issue
Block a user