@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.
- package/package.json +1 -1
- package/src/cli.js +11 -1
package/package.json
CHANGED
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
|
-
|
|
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 = {
|