@lanonasis/cli 3.0.3 → 3.0.4

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,6 +14,9 @@ import { CLIConfig } from './utils/config.js';
14
14
  import { getMCPClient } from './utils/mcp-client.js';
15
15
  // Load environment variables
16
16
  config();
17
+ import { createRequire } from 'module';
18
+ const require = createRequire(import.meta.url);
19
+ const packageJson = require('../package.json');
17
20
  // Enhanced color scheme (VPS-style)
18
21
  const colors = {
19
22
  primary: chalk.blue.bold,
@@ -33,7 +36,7 @@ program
33
36
  .alias('memory')
34
37
  .alias('maas')
35
38
  .description(colors.info(' LanOnasis Enterprise CLI - Memory as a Service, API Management & Infrastructure Orchestration'))
36
- .version('3.0.1', '-v, --version', 'display version number')
39
+ .version(packageJson.version, '-v, --version', 'display version number')
37
40
  .option('-V, --verbose', 'enable verbose logging')
38
41
  .option('--api-url <url>', 'override API URL')
39
42
  .option('--output <format>', 'output format (json, table, yaml)', 'table')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanonasis/cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "LanOnasis Enterprise CLI - Memory as a Service, API Key Management, and Infrastructure Orchestration",
5
5
  "main": "dist/index-simple.js",
6
6
  "bin": {