@vibetasks/cli 0.4.5 → 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.
- package/dist/bin/vibetasks.js +19 -8
- package/package.json +3 -2
package/dist/bin/vibetasks.js
CHANGED
|
@@ -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}
|
|
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
|
|
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="
|
|
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
|
|
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
|
|
312
|
-
const authUrl =
|
|
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
|
-
|
|
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
|
});
|
|
@@ -2723,7 +2734,7 @@ function getTagColor2(category) {
|
|
|
2723
2734
|
|
|
2724
2735
|
// bin/vibetasks.ts
|
|
2725
2736
|
var require2 = createRequire(import.meta.url);
|
|
2726
|
-
var pkg = require2("
|
|
2737
|
+
var pkg = require2("../../package.json");
|
|
2727
2738
|
var program = new Command16();
|
|
2728
2739
|
program.name("vibetasks").description("VibeTasks CLI - Fast task management for vibers").version(pkg.version);
|
|
2729
2740
|
program.addCommand(setupCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibetasks/cli",
|
|
3
|
-
"version": "0.4.
|
|
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",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
|
-
"hooks"
|
|
14
|
+
"hooks",
|
|
15
|
+
"package.json"
|
|
15
16
|
],
|
|
16
17
|
"keywords": [
|
|
17
18
|
"vibetasks",
|