File size: 739 Bytes
1f21206 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | export type SkillSource = 'user' | 'project' | 'plugin' | 'mcp' | 'bundled'
export type SkillMeta = {
name: string
displayName?: string
description: string
source: SkillSource
userInvocable: boolean
version?: string
contentLength: number
hasDirectory: boolean
pluginName?: string
}
export type FileTreeNode = {
name: string
path: string
type: 'file' | 'directory'
children?: FileTreeNode[]
}
export type SkillFrontmatter = Record<string, unknown>
export type SkillFile = {
path: string
content: string
language: string
frontmatter?: SkillFrontmatter
body?: string
isEntry?: boolean
}
export type SkillDetail = {
meta: SkillMeta
tree: FileTreeNode[]
files: SkillFile[]
skillRoot: string
}
|