@gobing-ai/superskill 0.2.11 → 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 +36 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41003,7 +41003,7 @@ var init_dist5 = __esm(() => {
41003
41003
  });
41004
41004
 
41005
41005
  // ../../packages/core/src/targets.ts
41006
- var TARGETS, TARGET_TO_RULESYNC, TARGET_TO_RULESYNC_HOOKS, TARGET_SKILLS_RELDIR, TARGET_TO_AGENT_NAME;
41006
+ var TARGETS, TARGET_TO_RULESYNC, TARGET_TO_RULESYNC_HOOKS, TARGET_SKILLS_RELDIR, TARGET_GLOBAL_SKILLS_RELDIR, TARGET_TO_AGENT_NAME;
41007
41007
  var init_targets = __esm(() => {
41008
41008
  TARGETS = [
41009
41009
  "claude",
@@ -41035,6 +41035,12 @@ var init_targets = __esm(() => {
41035
41035
  "antigravity-cli": ".agents/skills",
41036
41036
  "antigravity-ide": ".agents/skills"
41037
41037
  };
41038
+ TARGET_GLOBAL_SKILLS_RELDIR = {
41039
+ codex: ".agents/skills",
41040
+ opencode: ".config/opencode/skills",
41041
+ "antigravity-cli": ".gemini/antigravity-cli/skills",
41042
+ "antigravity-ide": ".gemini/config/skills"
41043
+ };
41038
41044
  TARGET_TO_AGENT_NAME = {
41039
41045
  claude: "claude",
41040
41046
  codex: "codex",
@@ -98308,6 +98314,14 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98308
98314
  resultCounts.commandsCount += result.commandsCount;
98309
98315
  resultCounts.subagentsCount += result.subagentsCount;
98310
98316
  resultCounts.hooksCount += result.hooksCount;
98317
+ if (options2.verbose) {
98318
+ const reldir = options2.global ? TARGET_GLOBAL_SKILLS_RELDIR[target] ?? TARGET_SKILLS_RELDIR[target] : TARGET_SKILLS_RELDIR[target];
98319
+ if (reldir) {
98320
+ const skillsDir = options2.global ? join223(resolveHomeDir(), reldir) : join223(process.cwd(), reldir);
98321
+ const total = options2.dryRun ? result.skillsCount : countSkillsInDir(skillsDir);
98322
+ echo(` ${target}: ${total} skill(s) at ${skillsDir}`);
98323
+ }
98324
+ }
98311
98325
  }
98312
98326
  if (mapResult.hooks) {
98313
98327
  for (const target of rulesyncTargets) {
@@ -98327,7 +98341,7 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98327
98341
  echo(` Skills written: ${resultCounts.skillsCount}, Commands: ${resultCounts.commandsCount}, Subagents: ${resultCounts.subagentsCount}, Hooks: ${resultCounts.hooksCount}`);
98328
98342
  }
98329
98343
  }
98330
- const outputRoot = options2.outputRoot ?? (options2.global ? homedir6() : process.cwd());
98344
+ const outputRoot = options2.outputRoot ?? (options2.global ? resolveHomeDir() : process.cwd());
98331
98345
  const hookEmitResults = [];
98332
98346
  for (const target of targets2) {
98333
98347
  if (target === "claude") {
@@ -98336,7 +98350,7 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98336
98350
  if (!options2.dryRun) {
98337
98351
  const marketplaceName = resolution.marketplaceName ?? "superskill";
98338
98352
  const marketplaceRoot = resolution.marketplaceRoot ?? process.cwd();
98339
- const cacheDir = join223(homedir6(), ".claude", "plugins", "cache", marketplaceName);
98353
+ const cacheDir = join223(resolveHomeDir(), ".claude", "plugins", "cache", marketplaceName);
98340
98354
  if (existsSync15(cacheDir))
98341
98355
  rmSync6(cacheDir, { recursive: true, force: true });
98342
98356
  await runClaudeInstallImpl(marketplaceRoot, marketplaceName, plugin);
@@ -98384,8 +98398,10 @@ async function executeInstall(plugin, targets2, options2, dependencies = {}) {
98384
98398
  }
98385
98399
  }
98386
98400
  }
98387
- for (const result of hookEmitResults) {
98388
- echo(result.message);
98401
+ if (!options2.verbose) {
98402
+ for (const result of hookEmitResults) {
98403
+ echo(result.message);
98404
+ }
98389
98405
  }
98390
98406
  if (options2.dryRun) {
98391
98407
  echo("[DRY-RUN] No files were written.");
@@ -98502,6 +98518,21 @@ function copyDirectory(source, destination, options2 = {}) {
98502
98518
  }
98503
98519
  }
98504
98520
  }
98521
+ function resolveHomeDir() {
98522
+ return process.env.HOME_DIR ?? homedir6();
98523
+ }
98524
+ function countSkillsInDir(skillsDir) {
98525
+ if (!existsSync15(skillsDir))
98526
+ return 0;
98527
+ let count3 = 0;
98528
+ for (const entry of readdirSync4(skillsDir)) {
98529
+ if (!statSync6(join223(skillsDir, entry)).isDirectory())
98530
+ continue;
98531
+ if (existsSync15(join223(skillsDir, entry, "SKILL.md")))
98532
+ count3++;
98533
+ }
98534
+ return count3;
98535
+ }
98505
98536
 
98506
98537
  // src/commands/hook.ts
98507
98538
  async function validateHook(nameOrPath, opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/superskill",
3
- "version": "0.2.11",
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",