Resolve import cycles and migrate to chorus.services module path
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>
This commit is contained in:
10
pkg/types/repository.go
Normal file
10
pkg/types/repository.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package types
|
||||
|
||||
// Repository represents a Git repository configuration from WHOOSH
|
||||
type Repository struct {
|
||||
ProjectID int `json:"project_id"`
|
||||
Owner string `json:"owner"`
|
||||
Repository string `json:"repository"`
|
||||
Branch string `json:"branch"`
|
||||
GitURL string `json:"git_url"`
|
||||
}
|
||||
@@ -2,8 +2,6 @@ package types
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/anthonyrawlins/bzzz/pkg/hive"
|
||||
)
|
||||
|
||||
// EnhancedTask extends a basic Task with project-specific context.
|
||||
@@ -28,8 +26,8 @@ type EnhancedTask struct {
|
||||
Deliverables []string
|
||||
Context map[string]interface{}
|
||||
|
||||
// Hive-integration fields providing repository context.
|
||||
// WHOOSH-integration fields providing repository context.
|
||||
ProjectID int
|
||||
GitURL string
|
||||
Repository hive.Repository
|
||||
Repository Repository
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user