@lanonasis/cli 2.0.0 → 2.0.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.
@@ -2,6 +2,8 @@
2
2
  import { Command } from 'commander';
3
3
  import chalk from 'chalk';
4
4
  import { config } from 'dotenv';
5
+ // Load environment variables silently
6
+ config({ quiet: true });
5
7
  import { initCommand } from './commands/init.js';
6
8
  import { loginCommand } from './commands/auth.js';
7
9
  import { memoryCommands } from './commands/memory.js';
@@ -43,7 +45,7 @@ program
43
45
  .alias(isOnasisInvocation ? 'lanonasis' : 'memory')
44
46
  .alias(isOnasisInvocation ? 'memory' : 'maas')
45
47
  .description(colors.info(`🧠 ${isOnasisInvocation ? 'Onasis-Core Golden Contract CLI' : 'LanOnasis Enterprise CLI'} - Memory as a Service, API Management & Infrastructure Orchestration`))
46
- .version('2.0.0', '-v, --version', 'display version number')
48
+ .version('2.0.1', '-v, --version', 'display version number')
47
49
  .option('-V, --verbose', 'enable verbose logging')
48
50
  .option('--api-url <url>', 'override API URL')
49
51
  .option('--output <format>', 'output format (json, table, yaml)', 'table')
@@ -99,7 +101,7 @@ const showWelcome = () => {
99
101
  const cmdName = isOnasisInvocation ? 'onasis' : 'lanonasis';
100
102
  const title = isOnasisInvocation ? 'Onasis-Core Golden Contract CLI' : 'LanOnasis Enterprise CLI';
101
103
  console.log();
102
- console.log(colors.primary(`🚀 ${title} v2.0.0`));
104
+ console.log(colors.primary(`🚀 ${title} v2.0.1`));
103
105
  console.log(colors.info('━'.repeat(50)));
104
106
  console.log(colors.highlight('Enterprise-grade Memory as a Service, API Management & Infrastructure Orchestration'));
105
107
  if (isOnasisInvocation) {
@@ -219,7 +221,13 @@ authCmd
219
221
  .option('-p, --password <password>', 'password')
220
222
  .option('--vendor-key <key>', 'vendor key (pk_xxx.sk_xxx format)')
221
223
  .option('--oauth', 'use OAuth browser flow')
222
- .action(loginCommand);
224
+ .action(async (options) => {
225
+ // Handle oauth flag
226
+ if (options.oauth) {
227
+ options.useWebAuth = true;
228
+ }
229
+ await loginCommand(options);
230
+ });
223
231
  authCmd
224
232
  .command('logout')
225
233
  .description('Logout from your account')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanonasis/cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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": {