convene-cli 1.0.0 → 1.0.2

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 +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35,6 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  /** Convene CLI entrypoint. */
38
+ const fs_1 = require("fs");
39
+ const path_1 = require("path");
38
40
  const commander_1 = require("commander");
39
41
  const brand_1 = require("./brand");
40
42
  const fetch_1 = require("./commands/fetch");
@@ -48,7 +50,11 @@ const setup_1 = require("./commands/setup");
48
50
  const migrate_1 = require("./commands/migrate");
49
51
  const rotate_1 = require("./commands/rotate");
50
52
  const program = new commander_1.Command();
51
- program.name(brand_1.BRAND.bin).description('Convene AI development coordination bus').version('1.0.0');
53
+ // Read the version from package.json so `convene --version` always tracks the
54
+ // published version (npm includes package.json in the tarball). dist/index.js
55
+ // sits one level below package.json; in dev (tsx) src/index.ts does too.
56
+ const { version } = JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../package.json'), 'utf8'));
57
+ program.name(brand_1.BRAND.bin).description('Convene — AI development coordination bus').version(version);
52
58
  program
53
59
  .command('login')
54
60
  .description('authenticate and save config (0600)')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "convene-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Convene CLI — AI development coordination bus client + UserPromptSubmit hook. Install: npm i -g convene-cli; then `convene setup`.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://dev.convene.live",