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

Function cloneAgentDefs

internal/workspace/clone.go:310–321  ·  view source on GitHub ↗
(src []aghconfig.AgentDef)

Source from the content-addressed store, hash-verified

308}
309
310func cloneAgentDefs(src []aghconfig.AgentDef) []aghconfig.AgentDef {
311 if len(src) == 0 {
312 return nil
313 }
314
315 cloned := make([]aghconfig.AgentDef, 0, len(src))
316 for _, agent := range src {
317 cloned = append(cloned, aghconfig.CloneAgentDef(agent))
318 }
319
320 return cloned
321}
322
323func cloneSkillPaths(src []SkillPath) []SkillPath {
324 if len(src) == 0 {

Callers 3

cloneResolvedWorkspaceFunction · 0.85
TestCloneAgentDefsFunction · 0.85

Calls 1

appendFunction · 0.85

Tested by 1

TestCloneAgentDefsFunction · 0.68