@petersobhy/ai-toolkit 1.9.1 → 1.9.3

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/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -60,7 +60,7 @@ async function getSkillContents(name) {
60
60
  return entries; // array of { name, type, download_url, ... }
61
61
  }
62
62
 
63
- async function installSkill(name) {
63
+ async function installSkill(name, manifest = {}) {
64
64
  let entries;
65
65
  try {
66
66
  entries = await getSkillContents(name);
@@ -96,7 +96,8 @@ async function installSkill(name) {
96
96
  }
97
97
  }
98
98
 
99
- console.log(` ✓ ${name}`);
99
+ const version = manifest[name]?.version;
100
+ console.log(` ✓ ${name}${version ? ` v${version}` : ''}`);
100
101
  return true;
101
102
  }
102
103
 
@@ -122,7 +123,7 @@ async function cmdAdd(args) {
122
123
 
123
124
  const manifest = await fetchManifest();
124
125
  console.log(all ? `Installing all ${names.length} skills...\n` : `Installing ${names.length} skill(s)...\n`);
125
- for (const name of names) await installSkill(name);
126
+ for (const name of names) await installSkill(name, manifest);
126
127
  printSetupHints(names, manifest);
127
128
  console.log('\nRestart Claude Code to activate installed skills.');
128
129
  }
@@ -135,7 +136,7 @@ async function cmdUpdate() {
135
136
  }
136
137
  const manifest = await fetchManifest();
137
138
  console.log(`Updating ${installed.length} installed skill(s)...\n`);
138
- for (const name of installed) await installSkill(name);
139
+ for (const name of installed) await installSkill(name, manifest);
139
140
  printSetupHints(installed, manifest);
140
141
  console.log('\nRestart Claude Code to activate updated skills.');
141
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petersobhy/ai-toolkit",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Install and manage AI skills for Claude Code",
5
5
  "bin": {
6
6
  "ai-toolkit": "./index.js"