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:
		| @@ -11,8 +11,8 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/anthonyrawlins/bzzz/pkg/ucxl" | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	"chorus.services/bzzz/pkg/ucxl" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // DefaultDirectoryAnalyzer provides comprehensive directory structure analysis | ||||
|   | ||||
| @@ -4,8 +4,8 @@ import ( | ||||
| 	"context" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/anthonyrawlins/bzzz/pkg/ucxl" | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	"chorus.services/bzzz/pkg/ucxl" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // IntelligenceEngine provides AI-powered context analysis and generation | ||||
|   | ||||
| @@ -10,8 +10,8 @@ import ( | ||||
| 	"sync" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/anthonyrawlins/bzzz/pkg/ucxl" | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	"chorus.services/bzzz/pkg/ucxl" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // AnalyzeFile analyzes a single file and generates contextual understanding | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| func TestIntelligenceEngine_Integration(t *testing.T) { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"sync" | ||||
| 	"time" | ||||
|  | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // GoalAlignmentEngine provides comprehensive goal alignment assessment | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // DefaultPatternDetector provides comprehensive pattern detection capabilities | ||||
|   | ||||
| @@ -11,7 +11,7 @@ import ( | ||||
| 	"sync" | ||||
| 	"time" | ||||
|  | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // DefaultRAGIntegration provides comprehensive RAG system integration | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
| 	"sync" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/anthonyrawlins/bzzz/pkg/crypto" | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	"chorus.services/bzzz/pkg/crypto" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // RoleAwareProcessor provides role-based context processing and insight generation | ||||
|   | ||||
| @@ -16,7 +16,7 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	slurpContext "github.com/anthonyrawlins/bzzz/pkg/slurp/context" | ||||
| 	slurpContext "chorus.services/bzzz/pkg/slurp/context" | ||||
| ) | ||||
|  | ||||
| // Utility functions and helper types for the intelligence engine | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 anthonyrawlins
					anthonyrawlins