MCPcopy Create free account
hub / github.com/compozy/agh / settingsSectionForConfigMutation

Function settingsSectionForConfigMutation

internal/cli/config.go:1628–1656  ·  view source on GitHub ↗
(path []string)

Source from the content-addressed store, hash-verified

1626}
1627
1628func settingsSectionForConfigMutation(path []string) settingspkg.SectionName {
1629 if len(path) == 0 {
1630 return ""
1631 }
1632 switch path[0] {
1633 case configDaemonKey, "defaults", "http", "limits", configPermissionsKey, sessionSessionKey:
1634 return settingspkg.SectionGeneral
1635 case configMemoryKey:
1636 return settingspkg.SectionMemory
1637 case configSkillsKey:
1638 return settingspkg.SectionSkills
1639 case "automation":
1640 return settingspkg.SectionAutomation
1641 case configNetworkKey:
1642 return settingspkg.SectionNetwork
1643 case "log", "observability":
1644 return settingspkg.SectionObservability
1645 case "extensions", "hooks":
1646 return settingspkg.SectionHooksExtensions
1647 case configProvidersKey:
1648 return settingspkg.SectionName(settingspkg.CollectionProviders)
1649 case "mcp-servers":
1650 return settingspkg.SectionName(settingspkg.CollectionMCPServers)
1651 case configPathSandboxes:
1652 return settingspkg.SectionName(settingspkg.CollectionSandboxes)
1653 default:
1654 return ""
1655 }
1656}
1657
1658func configLifecycleFromSettings(classification settingspkg.MutationClassification) configMutationLifecycle {
1659 nextAction := contract.SettingsApplyNextActionNone

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected