@yungho/noclaw-channel 0.1.8 → 0.1.9

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/bin/cli.js +8 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -3,6 +3,13 @@ import { program } from 'commander';
3
3
  import { ChannelServer } from '../dist/server/ChannelServer.js';
4
4
  import { ConfigManager } from '../dist/config/ConfigManager.js';
5
5
  import { Logger } from '../dist/utils/Logger.js';
6
+ import { readFileSync } from 'fs';
7
+ import { fileURLToPath } from 'url';
8
+ import { dirname, resolve } from 'path';
9
+
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ const pkg = JSON.parse(readFileSync(resolve(__dirname, '../package.json'), 'utf-8'));
6
13
 
7
14
  const loggerWrapper = new Logger();
8
15
  const logger = loggerWrapper.getPinoLogger();
@@ -10,7 +17,7 @@ const logger = loggerWrapper.getPinoLogger();
10
17
  program
11
18
  .name('noclaw-channel')
12
19
  .description('NoClaw Channel Server - WebSocket IPC bridge for external chat platforms')
13
- .version('0.1.0');
20
+ .version(pkg.version);
14
21
 
15
22
  program
16
23
  .command('start')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yungho/noclaw-channel",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "NoClaw Channel Server - WebSocket IPC bridge for external chat platforms",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",