(kind string)
| 100 | } |
| 101 | |
| 102 | func parseKind(kind string) (entities.Kind, error) { |
| 103 | switch entities.Kind(kind) { |
| 104 | case entities.KindPrompt, entities.KindSkill, entities.KindAgent, entities.KindPlugin: |
| 105 | return entities.Kind(kind), nil |
| 106 | default: |
| 107 | return "", NewError("ENTITY_KIND_INVALID", "unsupported entity kind", map[string]string{"kind": kind}) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func entityDTO(entity entities.Entity) EntityDTO { |
| 112 | return EntityDTO{ |
no test coverage detected