devtopia 1.1.0 → 1.1.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.
@@ -6,6 +6,9 @@
6
6
  * `devtopia-matrix` installed continue to work without changes.
7
7
  */
8
8
  import { Command } from 'commander';
9
+ import { readFileSync } from 'node:fs';
10
+ import { fileURLToPath } from 'node:url';
11
+ import { dirname, join } from 'node:path';
9
12
  import { loadConfig, saveConfig } from './core/config.js';
10
13
  import { registerRegisterCmd } from './commands/matrix/register.js';
11
14
  import { registerHiveListCmd } from './commands/matrix/hive-list.js';
@@ -20,11 +23,13 @@ import { registerHiveExecCmd } from './commands/matrix/hive-exec.js';
20
23
  import { registerHiveLogCmd } from './commands/matrix/hive-log.js';
21
24
  import { registerHiveSyncCmd } from './commands/matrix/hive-sync.js';
22
25
  import { registerHiveSessionCmd } from './commands/matrix/hive-session.js';
26
+ const __dirname = dirname(fileURLToPath(import.meta.url));
27
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
23
28
  const program = new Command();
24
29
  program
25
30
  .name('devtopia-matrix')
26
31
  .description('CLI for Devtopia Matrix (compat wrapper — use `devtopia matrix` instead)')
27
- .version('1.0.0');
32
+ .version(pkg.version);
28
33
  // Keep the old agent-register name for compat
29
34
  program
30
35
  .command('agent-register')
package/dist/index.js CHANGED
@@ -1,14 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
+ import { readFileSync } from 'node:fs';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { dirname, join } from 'node:path';
3
6
  import { loadConfig, saveConfig } from './core/config.js';
4
7
  import { registerMatrixCommands } from './commands/matrix/index.js';
5
8
  import { registerIdentityCommands } from './commands/identity/index.js';
6
9
  import { registerMarketCommands } from './commands/market/index.js';
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
7
12
  const program = new Command();
8
13
  program
9
14
  .name('devtopia')
10
15
  .description('Unified CLI for the Devtopia ecosystem')
11
- .version('1.0.0');
16
+ .version(pkg.version);
12
17
  /* ── Global: config ── */
13
18
  program
14
19
  .command('config-server')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtopia",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Unified CLI for the Devtopia ecosystem — identity, labs, market, and more",
5
5
  "type": "module",
6
6
  "bin": {