@dyml/skill-manager 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26564,14 +26564,24 @@ async function findPluginSkillDirs(dirPath, maxDepth = 6) {
26564
26564
  }
26565
26565
  return skillDirs;
26566
26566
  }
26567
+ function extractPluginName(skillPath, pluginsCacheDir) {
26568
+ const relativePath = path2.relative(pluginsCacheDir, skillPath);
26569
+ const parts = relativePath.split(path2.sep);
26570
+ if (parts.length > 0) {
26571
+ return parts[0];
26572
+ }
26573
+ return void 0;
26574
+ }
26567
26575
  async function scanPluginsCache() {
26568
26576
  const skills = [];
26569
26577
  const pluginsDir = getPluginsCacheDir();
26570
26578
  try {
26571
26579
  const skillDirs = await findPluginSkillDirs(pluginsDir);
26572
26580
  for (const skillDir of skillDirs) {
26581
+ const pluginName = extractPluginName(skillDir, pluginsDir);
26573
26582
  const skill = await scanSkill(skillDir, "system", "plugins");
26574
26583
  if (skill) {
26584
+ skill.pluginName = pluginName;
26575
26585
  skills.push(skill);
26576
26586
  }
26577
26587
  }
@@ -26714,7 +26724,10 @@ function SkillTable({ skills, selectedIndex, width, maxVisibleRows = 15 }) {
26714
26724
  locationDisplay = truncatePath(skill.path, pathWidth);
26715
26725
  locationColor = "blue";
26716
26726
  } else {
26717
- if (skill.source === "plugins") {
26727
+ if (skill.source === "plugins" && skill.pluginName) {
26728
+ locationDisplay = `Plugin/${skill.pluginName}`;
26729
+ locationColor = "magenta";
26730
+ } else if (skill.source === "plugins") {
26718
26731
  locationDisplay = "Plugin";
26719
26732
  locationColor = "magenta";
26720
26733
  } else if (skill.source === "agents") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyml/skill-manager",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "TUI-based skill manager for Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/skill-manager.mjs",