fix: sort skills menu by namespace

This commit is contained in:
Charlike Mike Reagent
2026-04-01 21:04:02 +03:00
parent e5db3033ad
commit e8dd3d6289

View File

@@ -233,7 +233,7 @@ function _temp3(skill_0) {
return <Box key={`${skill_0.name}-${skill_0.source}`}><Text>{getSkillListLabel(skill_0)}</Text><Text dimColor={true}>{pluginName ? ` · ${pluginName}` : ""} · {tokenDisplay} description tokens</Text></Box>; return <Box key={`${skill_0.name}-${skill_0.source}`}><Text>{getSkillListLabel(skill_0)}</Text><Text dimColor={true}>{pluginName ? ` · ${pluginName}` : ""} · {tokenDisplay} description tokens</Text></Box>;
} }
function _temp2(a, b) { function _temp2(a, b) {
return getCommandName(a).localeCompare(getCommandName(b)); return a.name.localeCompare(b.name);
} }
function _temp(cmd) { function _temp(cmd) {
return cmd.type === "prompt" && (cmd.loadedFrom === "skills" || cmd.loadedFrom === "commands_DEPRECATED" || cmd.loadedFrom === "plugin" || cmd.loadedFrom === "mcp"); return cmd.type === "prompt" && (cmd.loadedFrom === "skills" || cmd.loadedFrom === "commands_DEPRECATED" || cmd.loadedFrom === "plugin" || cmd.loadedFrom === "mcp");