MCPcopy Create free account
hub / github.com/MemTensor/MemOS / rowToSkill

Function rowToSkill

packages/memos-core/src/storage/sqlite.ts:2993–3010  ·  view source on GitHub ↗
(row: SkillRow)

Source from the content-addressed store, hash-verified

2991}
2992
2993function 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
3012interface SkillVersionRow {
3013 id: string;

Callers 3

getSkillMethod · 0.70
getSkillByNameMethod · 0.70
getSkillsByTaskMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected