@vibetasks/cli 0.4.6 → 0.4.7

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.
@@ -48,8 +48,17 @@ ${url}
48
48
  `));
49
49
  }
50
50
  }
51
+ function getAuthBaseUrl() {
52
+ if (process.env.VIBETASKS_AUTH_URL) {
53
+ return process.env.VIBETASKS_AUTH_URL;
54
+ }
55
+ if (process.env.TASKFLOW_WEB_PORT) {
56
+ return `http://localhost:${process.env.TASKFLOW_WEB_PORT}`;
57
+ }
58
+ return "https://vibetasks.dev";
59
+ }
51
60
  async function loginWithBrowser() {
52
- console.log(chalk.blue.bold("\n\u{1F510} TaskFlow Browser Login\n"));
61
+ console.log(chalk.blue.bold("\n\u{1F510} VibeTasks Browser Login\n"));
53
62
  const spinner = ora("Starting local server...").start();
54
63
  const port = await getAvailablePort();
55
64
  return new Promise((resolve, reject) => {
@@ -247,12 +256,12 @@ async function loginWithBrowser() {
247
256
  <h1>Authentication Successful!</h1>
248
257
  <p class="email">${email}</p>
249
258
  <p class="message">
250
- Your TaskFlow CLI is now connected to your account.<br>
259
+ Your VibeTasks CLI is now connected to your account.<br>
251
260
  You can close this window and return to your terminal.
252
261
  </p>
253
262
  <div class="success-badge">Ready to use</div>
254
263
  <div class="button-group">
255
- <a href="http://localhost:2843/dashboard" class="button button-primary">Go to Dashboard</a>
264
+ <a href="https://vibetasks.dev/dashboard" class="button button-primary">Go to Dashboard</a>
256
265
  <button onclick="window.close()" class="button button-secondary">Close Window</button>
257
266
  </div>
258
267
  </div>
@@ -263,7 +272,7 @@ async function loginWithBrowser() {
263
272
  console.log(chalk.gray(`
264
273
  Logged in as: ${email}`));
265
274
  console.log(chalk.gray(`Tokens stored in: ${storageLocation}`));
266
- console.log(chalk.blue.bold("\n\u2728 You can now use TaskFlow CLI commands\n"));
275
+ console.log(chalk.blue.bold("\n\u2728 You can now use VibeTasks CLI commands\n"));
267
276
  if (timeoutId) clearTimeout(timeoutId);
268
277
  resolve();
269
278
  server.close(() => {
@@ -308,11 +317,13 @@ Error: ${error.message}`));
308
317
  });
309
318
  server.listen(port, async () => {
310
319
  spinner.text = "Opening browser...";
311
- const taskflowPort = process.env.TASKFLOW_WEB_PORT || "2843";
312
- const authUrl = `http://localhost:${taskflowPort}/cli-auth?port=${port}`;
320
+ const baseUrl = getAuthBaseUrl();
321
+ const authUrl = `${baseUrl}/cli-auth?port=${port}`;
313
322
  spinner.text = "Waiting for authentication in browser...";
314
323
  console.log(chalk.gray(`
315
- If browser doesn't open, visit: ${authUrl}
324
+ Opening: ${authUrl}`));
325
+ console.log(chalk.gray(`
326
+ If browser doesn't open, visit the URL above.
316
327
  `));
317
328
  await openBrowser(authUrl);
318
329
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibetasks/cli",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "VibeTasks CLI - Lightning-fast task management from your terminal. Works with Claude Code, Cursor, and all AI coding tools.",
5
5
  "author": "Vyas",
6
6
  "license": "MIT",