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

Function skillShadowEntryRecordsFromDomain

internal/cli/skill_workspace.go:232–241  ·  view source on GitHub ↗
(entries []skills.ShadowEntry)

Source from the content-addressed store, hash-verified

230}
231
232func skillShadowEntryRecordsFromDomain(entries []skills.ShadowEntry) []contract.SkillShadowEntryPayload {
233 if len(entries) == 0 {
234 return nil
235 }
236 records := make([]contract.SkillShadowEntryPayload, 0, len(entries))
237 for _, entry := range entries {
238 records = append(records, skillShadowEntryRecordFromDomain(entry))
239 }
240 return records
241}
242
243func skillShadowEntryRecordFromDomain(entry skills.ShadowEntry) contract.SkillShadowEntryPayload {
244 return contract.SkillShadowEntryPayload{

Callers 2

Calls 2

appendFunction · 0.85

Tested by

no test coverage detected