Add branch lifecycle commands (branch, merge, archive) to the SDLC CLI. Introduce orchestrator handler and service for multi-step SDLC workflows. Expand skeleton template with 15 Claude commands covering the full feature lifecycle. Extend classifier rules, error types, and executor port for branch operations. Split rules.go and classifier_test.go to stay within 500-line limit. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
862 B
Go
20 lines
862 B
Go
package sdlc
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNotInitialized = errors.New("sdlc not initialized: run 'sdlc init'")
|
|
ErrFeatureNotFound = errors.New("feature not found")
|
|
ErrFeatureExists = errors.New("feature already exists")
|
|
ErrInvalidSlug = errors.New("invalid slug: must be lowercase alphanumeric with hyphens")
|
|
ErrInvalidTransition = errors.New("invalid phase transition")
|
|
ErrInvalidPhase = errors.New("invalid phase")
|
|
ErrInvalidArtifact = errors.New("invalid artifact type")
|
|
ErrTaskNotFound = errors.New("task not found")
|
|
ErrArtifactNotFound = errors.New("artifact not found")
|
|
ErrNoFeatures = errors.New("no features found")
|
|
ErrBranchExists = errors.New("branch already exists")
|
|
ErrBranchNotFound = errors.New("branch not found")
|
|
ErrMergeNotReady = errors.New("feature not ready to merge: unmet gates")
|
|
)
|