@respan/cli 0.3.1 → 0.3.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.
@@ -4,7 +4,7 @@ import * as http from 'node:http';
4
4
  import * as open from 'node:child_process';
5
5
  import { BaseCommand } from '../../lib/base-command.js';
6
6
  import { setCredential, setActiveProfile } from '../../lib/config.js';
7
- import { printLoginSuccess } from '../../lib/banner.js';
7
+ import { printBanner, printLoginSuccess } from '../../lib/banner.js';
8
8
  import { DEFAULT_BASE_URL, ENTERPRISE_BASE_URL } from '../../lib/auth.js';
9
9
  const CALLBACK_PORT = 18392;
10
10
  const CALLBACK_PATH = '/callback';
@@ -93,6 +93,7 @@ class AuthLogin extends BaseCommand {
93
93
  this.globalFlags = flags;
94
94
  const profile = flags['profile-name'] || 'default';
95
95
  setActiveProfile(profile);
96
+ await printBanner();
96
97
  // Step 1: Determine environment (skip if --enterprise flag or --api-key with flag)
97
98
  const enterprise = flags.enterprise || (!flags['api-key'] && await select({
98
99
  message: 'Select your environment:',
@@ -1,2 +1,2 @@
1
- export declare function printBanner(): void;
1
+ export declare function printBanner(): Promise<void>;
2
2
  export declare function printLoginSuccess(email?: string, profile?: string): Promise<void>;
@@ -90,12 +90,17 @@ function renderBanner(lines) {
90
90
  return result;
91
91
  }
92
92
  const PC = '\x1b[38;2;100;131;240m'; // primary color
93
- export function printBanner() {
93
+ function sleep(ms) {
94
+ return new Promise(resolve => setTimeout(resolve, ms));
95
+ }
96
+ export async function printBanner() {
94
97
  if (!process.stdout.isTTY || process.env.NO_COLOR)
95
98
  return;
99
+ const lines = renderBanner(BANNER_LINES);
96
100
  console.log('');
97
- for (const line of renderBanner(BANNER_LINES)) {
101
+ for (const line of lines) {
98
102
  console.log(line);
103
+ await sleep(80);
99
104
  }
100
105
  console.log('');
101
106
  }
@@ -2929,5 +2929,5 @@
2929
2929
  ]
2930
2930
  }
2931
2931
  },
2932
- "version": "0.3.1"
2932
+ "version": "0.3.2"
2933
2933
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@respan/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Respan CLI - manage your LLM observability from the command line",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",