(row: SkillRow)
| 2991 | } |
| 2992 | |
| 2993 | function rowToSkill(row: SkillRow): Skill { |
| 2994 | return { |
| 2995 | id: row.id, |
| 2996 | name: row.name, |
| 2997 | description: row.description, |
| 2998 | version: row.version, |
| 2999 | status: row.status as Skill["status"], |
| 3000 | tags: row.tags, |
| 3001 | sourceType: row.source_type as Skill["sourceType"], |
| 3002 | dirPath: row.dir_path, |
| 3003 | installed: row.installed, |
| 3004 | owner: row.owner ?? "agent:main", |
| 3005 | visibility: (row.visibility ?? "private") as Skill["visibility"], |
| 3006 | qualityScore: row.quality_score ?? null, |
| 3007 | createdAt: row.created_at, |
| 3008 | updatedAt: row.updated_at, |
| 3009 | }; |
| 3010 | } |
| 3011 | |
| 3012 | interface SkillVersionRow { |
| 3013 | id: string; |
no outgoing calls
no test coverage detected