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

Function cloneMemoryConfig

internal/workspace/clone.go:103–107  ·  view source on GitHub ↗
(src *aghconfig.MemoryConfig)

Source from the content-addressed store, hash-verified

101}
102
103func cloneMemoryConfig(src *aghconfig.MemoryConfig) aghconfig.MemoryConfig {
104 cloned := *src
105 cloned.Controller.Policy.AllowOrigins = append([]string(nil), src.Controller.Policy.AllowOrigins...)
106 return cloned
107}
108
109func cloneExtensionsConfig(src aghconfig.ExtensionsConfig) aghconfig.ExtensionsConfig {
110 cloned := src

Callers 1

cloneConfigFunction · 0.85

Calls 1

appendFunction · 0.85

Tested by

no test coverage detected