@taj-special/dravix-code 1.1.16 → 1.1.18

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.
package/dist/cli/index.js CHANGED
@@ -136,8 +136,6 @@ async function browserAuth() {
136
136
  ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝`));
137
137
  console.log(chalk.hex('#6366f1').bold(' Code') + DIM(` v${VERSION} · `) + P('AI-powered coding assistant'));
138
138
  console.log(line + '\n');
139
- console.log(' ' + colors.primary('◆') + ' ' + W.bold('Sign in to Dravix Code'));
140
- console.log(' ' + DIM('Use your Dravix account to sign in to Dravix Code.') + '\n');
141
139
  console.log(line);
142
140
  console.log('\n ' + DIM('Step 1 — ') + W('Open this link in your browser:') + '\n');
143
141
  console.log(' ' + colors.primary(link(authUrl)) + '\n');
@@ -203,21 +201,27 @@ async function main() {
203
201
  console.log(colors.muted('\n Signed out.\n'));
204
202
  process.exit(0);
205
203
  }
204
+ let justAuthenticated = false;
206
205
  if (arg === '--login') {
207
206
  if (isLoggedIn()) {
208
- // Already logged in — skip login, go straight to main menu
209
207
  banner();
210
208
  }
211
209
  else {
212
210
  await browserAuth();
211
+ justAuthenticated = true;
213
212
  }
214
213
  }
215
214
  else if (!isLoggedIn()) {
216
215
  await browserAuth();
216
+ justAuthenticated = true;
217
217
  }
218
218
  else {
219
219
  banner();
220
220
  }
221
+ if (justAuthenticated) {
222
+ console.clear();
223
+ console.log('\n ' + colors.success('✓') + ' ' + chalk.hex('#e2e8f0').bold('Sign in complete') + '\n');
224
+ }
221
225
  const { name, email } = getSavedUser();
222
226
  const cwd = (arg && !arg.startsWith('--')) ? path.resolve(arg) : process.cwd();
223
227
  // Fetch plan + usage in parallel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taj-special/dravix-code",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "AI-powered coding assistant CLI — Dravix Code",
5
5
  "type": "module",
6
6
  "bin": {