@gobing-ai/superskill 0.2.10 → 0.2.12

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 +33 -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",
@@ -41019,8 +41019,8 @@ var init_targets = __esm(() => {
41019
41019
  codex: "codexcli",
41020
41020
  pi: "codexcli",
41021
41021
  opencode: "opencode",
41022
- "antigravity-cli": "codexcli",
41023
- "antigravity-ide": "codexcli"
41022
+ "antigravity-cli": "antigravity-cli",
41023
+ "antigravity-ide": "antigravity-ide"
41024
41024
  };
41025
41025
  TARGET_TO_RULESYNC_HOOKS = {
41026
41026
  codex: "codexcli",
@@ -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(homedir6(), 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) {
@@ -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,18 @@ function copyDirectory(source, destination, options2 = {}) {
98502
98518
  }
98503
98519
  }
98504
98520
  }
98521
+ function countSkillsInDir(skillsDir) {
98522
+ if (!existsSync15(skillsDir))
98523
+ return 0;
98524
+ let count3 = 0;
98525
+ for (const entry of readdirSync4(skillsDir)) {
98526
+ if (!statSync6(join223(skillsDir, entry)).isDirectory())
98527
+ continue;
98528
+ if (existsSync15(join223(skillsDir, entry, "SKILL.md")))
98529
+ count3++;
98530
+ }
98531
+ return count3;
98532
+ }
98505
98533
 
98506
98534
  // src/commands/hook.ts
98507
98535
  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.10",
3
+ "version": "0.2.12",
4
4
  "description": "A manager for multi-agent skill, slash command, subagent, hook, MCP and etc.",
5
5
  "keywords": [
6
6
  "cli",