refactor: consolidate config logic into ConfigService

Created centralized ConfigService for configuration management.
Added deprecation comments to ConfigBuilder and AgentBuilder.
Platform-specific defaults centralized in one place.
Removed placeholder ConfigService from agent_lifecycle.go.
This commit is contained in:
Fimeg
2025-11-10 22:23:56 -05:00
parent 52c9c1a45b
commit e1173c9f3b
5 changed files with 182 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ import (
)
// AgentBuilder handles generating embedded agent configurations
// Deprecated: Configuration logic should use services.ConfigService
type AgentBuilder struct {
buildContext string
}
@@ -21,6 +22,7 @@ func NewAgentBuilder() *AgentBuilder {
}
// BuildAgentWithConfig generates agent configuration and prepares signed binary
// Deprecated: Delegate config generation to services.ConfigService
func (ab *AgentBuilder) BuildAgentWithConfig(config *AgentConfiguration) (*BuildResult, error) {
// Create temporary build directory
buildDir, err := os.MkdirTemp("", "agent-build-")