Shape a built-in skill as a `skill` table row so it can ride alongside DB skills.
(workspaceId: string, builtin: BuiltinSkill)
| 18 | |
| 19 | /** Shape a built-in skill as a `skill` table row so it can ride alongside DB skills. */ |
| 20 | function builtinSkillRow(workspaceId: string, builtin: BuiltinSkill): typeof skill.$inferSelect { |
| 21 | return { |
| 22 | id: builtin.id, |
| 23 | workspaceId, |
| 24 | userId: null, |
| 25 | name: builtin.name, |
| 26 | description: builtin.description, |
| 27 | content: builtin.content, |
| 28 | createdAt: BUILTIN_SKILL_TIMESTAMP, |
| 29 | updatedAt: BUILTIN_SKILL_TIMESTAMP, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * List skills for a workspace, ordered by createdAt desc. Built-in template |
no outgoing calls
no test coverage detected