@haolin-ai/skillman 1.0.2 → 1.0.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/package.json +1 -1
  2. package/src/cli.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haolin-ai/skillman",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A CLI tool to install AI agent skills across multiple platforms",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -14,7 +14,17 @@ import { loadHistory, addWorkspace, saveLastUsed } from './history.js';
14
14
  import { downloadSkill, parseUrl, cleanupDownloads } from './downloader.js';
15
15
 
16
16
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
17
- const VERSION = '1.0.0';
17
+
18
+ // Read version from package.json
19
+ let VERSION = '1.0.0';
20
+ try {
21
+ const pkgPath = path.join(__dirname, '..', 'package.json');
22
+ const pkgContent = await fs.readFile(pkgPath, 'utf8');
23
+ const pkg = JSON.parse(pkgContent);
24
+ VERSION = pkg.version || '1.0.0';
25
+ } catch {
26
+ // Fallback to default version
27
+ }
18
28
 
19
29
  // ANSI colors
20
30
  const c = {