(t0)
| 45 | return hasCommandsSkills ? `${skillsPath}, ${getDisplayPath(getSkillsPath(source, 'commands'))}` : skillsPath; |
| 46 | } |
| 47 | export function SkillsMenu(t0) { |
| 48 | const $ = _c(35); |
| 49 | const { |
| 50 | onExit, |
| 51 | commands |
| 52 | } = t0; |
| 53 | let t1; |
| 54 | if ($[0] !== commands) { |
| 55 | t1 = commands.filter(_temp); |
| 56 | $[0] = commands; |
| 57 | $[1] = t1; |
| 58 | } else { |
| 59 | t1 = $[1]; |
| 60 | } |
| 61 | const skills = t1; |
| 62 | let groups; |
| 63 | if ($[2] !== skills) { |
| 64 | groups = { |
| 65 | policySettings: [], |
| 66 | userSettings: [], |
| 67 | projectSettings: [], |
| 68 | localSettings: [], |
| 69 | flagSettings: [], |
| 70 | plugin: [], |
| 71 | mcp: [] |
| 72 | }; |
| 73 | for (const skill of skills) { |
| 74 | const source = skill.source as SkillSource; |
| 75 | if (source in groups) { |
| 76 | groups[source].push(skill); |
| 77 | } |
| 78 | } |
| 79 | for (const group of Object.values(groups)) { |
| 80 | group.sort(_temp2); |
| 81 | } |
| 82 | $[2] = skills; |
| 83 | $[3] = groups; |
| 84 | } else { |
| 85 | groups = $[3]; |
| 86 | } |
| 87 | const skillsBySource = groups; |
| 88 | let t2; |
| 89 | if ($[4] !== onExit) { |
| 90 | t2 = () => { |
| 91 | onExit("Skills dialog dismissed", { |
| 92 | display: "system" |
| 93 | }); |
| 94 | }; |
| 95 | $[4] = onExit; |
| 96 | $[5] = t2; |
| 97 | } else { |
| 98 | t2 = $[5]; |
| 99 | } |
| 100 | const handleCancel = t2; |
| 101 | if (skills.length === 0) { |
| 102 | let t3; |
| 103 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 104 | t3 = <Text dimColor={true}>Create skills in .claude/skills/ or ~/.claude/skills/</Text>; |
nothing calls this directly
no test coverage detected