@agent-nexus/csreg 0.1.10 → 0.1.11

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 +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23,6 +23,9 @@ import {
23
23
 
24
24
  // src/index.ts
25
25
  import { Command as Command11 } from "commander";
26
+ import { readFileSync as readFileSync3 } from "fs";
27
+ import { fileURLToPath } from "url";
28
+ import { dirname as dirname2, join as join4 } from "path";
26
29
 
27
30
  // src/commands/login.ts
28
31
  import { Command } from "commander";
@@ -648,8 +651,10 @@ var searchCommand = new Command10("search").description("Search for skills in th
648
651
  });
649
652
 
650
653
  // src/index.ts
654
+ var __dirname = dirname2(fileURLToPath(import.meta.url));
655
+ var pkg = JSON.parse(readFileSync3(join4(__dirname, "..", "package.json"), "utf-8"));
651
656
  var program = new Command11();
652
- program.name("csreg").description("Claude Skills Registry CLI").version("0.1.0");
657
+ program.name("csreg").description("Claude Skills Registry CLI").version(pkg.version);
653
658
  program.addCommand(loginCommand);
654
659
  program.addCommand(logoutCommand);
655
660
  program.addCommand(whoamiCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-nexus/csreg",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "CLI for Claude Skills Registry",
5
5
  "license": "MIT",
6
6
  "type": "module",