This comprehensive refactoring addresses critical architectural issues: IMPORT CYCLE RESOLUTION: • pkg/crypto ↔ pkg/slurp/roles: Created pkg/security/access_levels.go • pkg/ucxl → pkg/dht: Created pkg/storage/interfaces.go • pkg/slurp/leader → pkg/election → pkg/slurp/storage: Moved types to pkg/election/interfaces.go MODULE PATH MIGRATION: • Changed from github.com/anthonyrawlins/bzzz to chorus.services/bzzz • Updated all import statements across 115+ files • Maintains compatibility while removing personal GitHub account dependency TYPE SYSTEM IMPROVEMENTS: • Resolved duplicate type declarations in crypto package • Added missing type definitions (RoleStatus, TimeRestrictions, KeyStatus, KeyRotationResult) • Proper interface segregation to prevent future cycles ARCHITECTURAL BENEFITS: • Build now progresses past structural issues to normal dependency resolution • Cleaner separation of concerns between packages • Eliminates circular dependencies that prevented compilation • Establishes foundation for scalable codebase growth 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
779 B
Go
34 lines
779 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// EnhancedTask extends a basic Task with project-specific context.
|
|
// It's the primary data structure passed between the github, executor,
|
|
// and reasoning components.
|
|
type EnhancedTask struct {
|
|
// Core task details, originally from the GitHub issue.
|
|
ID int64
|
|
Number int
|
|
Title string
|
|
Description string
|
|
State string
|
|
Labels []string
|
|
Assignee string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
|
|
// Bzzz-specific fields parsed from the issue body or labels.
|
|
TaskType string
|
|
Priority int
|
|
Requirements []string
|
|
Deliverables []string
|
|
Context map[string]interface{}
|
|
|
|
// WHOOSH-integration fields providing repository context.
|
|
ProjectID int
|
|
GitURL string
|
|
Repository Repository
|
|
}
|