@prave/cli 0.2.0 → 0.2.1

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
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from 'node:fs';
3
+ import { dirname, resolve } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
2
5
  import { Command } from 'commander';
3
6
  import { diffCommand } from './commands/diff.js';
4
7
  import { exportCommand } from './commands/export.js';
@@ -11,10 +14,12 @@ import { searchCommand } from './commands/search.js';
11
14
  import { syncCommand } from './commands/sync.js';
12
15
  import { uninstallCommand } from './commands/uninstall.js';
13
16
  import { whoamiCommand } from './commands/whoami.js';
17
+ const __dirname = dirname(fileURLToPath(import.meta.url));
18
+ const pkg = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf8'));
14
19
  const program = new Command()
15
20
  .name('prave')
16
21
  .description('Prave — Developer platform for Claude Skills')
17
- .version('0.1.0');
22
+ .version(pkg.version);
18
23
  program.command('login').description('Authenticate this machine').action(loginCommand);
19
24
  program.command('logout').description('Remove stored credentials').action(logoutCommand);
20
25
  program.command('whoami').description('Show the signed-in user').action(whoamiCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prave/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Prave CLI — import, export, install, sync Claude Skills.",
5
5
  "type": "module",
6
6
  "bin": {