Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(router *swagger.RouteGroup, handler *Handler)
RegisterRoutes registers all config apply routes with swagger documentation
Types ¶
type ApplyConfigResponse ¶
type ApplyConfigResponse struct {
Success bool `json:"success"`
SettingsResult config.ApplyResult `json:"settingsResult"`
OnboardingResult config.ApplyResult `json:"onboardingResult"`
CreatedFiles []string `json:"createdFiles"`
UpdatedFiles []string `json:"updatedFiles"`
BackupPaths []string `json:"backupPaths"`
}
ApplyConfigResponse is the response for ApplyClaudeConfig
type ApplyOpenCodeConfigResponse ¶
type ApplyOpenCodeConfigResponse struct {
config.ApplyResult
}
ApplyOpenCodeConfigResponse is the response for ApplyOpenCodeConfigFromState
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles config apply HTTP requests
func NewHandler ¶
NewHandler creates a new configapply handler
func (*Handler) ApplyClaudeConfig ¶
ApplyClaudeConfig generates and applies Claude Code configuration from system state
func (*Handler) ApplyOpenCodeConfigFromState ¶
ApplyOpenCodeConfig generates and applies OpenCode configuration from system state
func (*Handler) GetOpenCodeConfigPreview ¶
GetOpenCodeConfigPreview generates OpenCode configuration preview from system state This endpoint returns the config JSON for display purposes without applying it
type OpenCodeConfigPreviewResponse ¶
type OpenCodeConfigPreviewResponse struct {
Success bool `json:"success"`
ConfigJSON string `json:"configJson"`
ScriptWin string `json:"scriptWindows"`
ScriptUnix string `json:"scriptUnix"`
Message string `json:"message,omitempty"`
}
OpenCodeConfigPreviewResponse is the response for GetOpenCodeConfigPreview