@gobing-ai/superskill 0.2.12 → 0.2.13

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -98317,7 +98317,7 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98317
98317
  if (options2.verbose) {
98318
98318
  const reldir = options2.global ? TARGET_GLOBAL_SKILLS_RELDIR[target] ?? TARGET_SKILLS_RELDIR[target] : TARGET_SKILLS_RELDIR[target];
98319
98319
  if (reldir) {
98320
- const skillsDir = options2.global ? join223(homedir6(), reldir) : join223(process.cwd(), reldir);
98320
+ const skillsDir = options2.global ? join223(resolveHomeDir(), reldir) : join223(process.cwd(), reldir);
98321
98321
  const total = options2.dryRun ? result.skillsCount : countSkillsInDir(skillsDir);
98322
98322
  echo(` ${target}: ${total} skill(s) at ${skillsDir}`);
98323
98323
  }
@@ -98341,7 +98341,7 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98341
98341
  echo(` Skills written: ${resultCounts.skillsCount}, Commands: ${resultCounts.commandsCount}, Subagents: ${resultCounts.subagentsCount}, Hooks: ${resultCounts.hooksCount}`);
98342
98342
  }
98343
98343
  }
98344
- const outputRoot = options2.outputRoot ?? (options2.global ? homedir6() : process.cwd());
98344
+ const outputRoot = options2.outputRoot ?? (options2.global ? resolveHomeDir() : process.cwd());
98345
98345
  const hookEmitResults = [];
98346
98346
  for (const target of targets2) {
98347
98347
  if (target === "claude") {
@@ -98350,7 +98350,7 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98350
98350
  if (!options2.dryRun) {
98351
98351
  const marketplaceName = resolution.marketplaceName ?? "superskill";
98352
98352
  const marketplaceRoot = resolution.marketplaceRoot ?? process.cwd();
98353
- const cacheDir = join223(homedir6(), ".claude", "plugins", "cache", marketplaceName);
98353
+ const cacheDir = join223(resolveHomeDir(), ".claude", "plugins", "cache", marketplaceName);
98354
98354
  if (existsSync15(cacheDir))
98355
98355
  rmSync6(cacheDir, { recursive: true, force: true });
98356
98356
  await runClaudeInstallImpl(marketplaceRoot, marketplaceName, plugin);
@@ -98518,6 +98518,9 @@ function copyDirectory(source, destination, options2 = {}) {
98518
98518
  }
98519
98519
  }
98520
98520
  }
98521
+ function resolveHomeDir() {
98522
+ return process.env.HOME_DIR ?? homedir6();
98523
+ }
98521
98524
  function countSkillsInDir(skillsDir) {
98522
98525
  if (!existsSync15(skillsDir))
98523
98526
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/superskill",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "A manager for multi-agent skill, slash command, subagent, hook, MCP and etc.",
5
5
  "keywords": [
6
6
  "cli",