@vibetasks/cli 0.6.4 → 0.6.5
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 +3 -20
- package/package.json +1 -1
package/dist/bin/vibetasks.js
CHANGED
|
@@ -1043,7 +1043,6 @@ import chalk6 from "chalk";
|
|
|
1043
1043
|
import ora4 from "ora";
|
|
1044
1044
|
import inquirer from "inquirer";
|
|
1045
1045
|
import { AuthManager as AuthManager5, TaskOperations as TaskOperations4 } from "@vibetasks/core";
|
|
1046
|
-
var WIP_LIMIT = 3;
|
|
1047
1046
|
var vibingCommand = new Command5("vibing").alias("start").alias("v").description("Start working on a task (move to vibing status)").argument("[task-id]", "Task ID or short # (1-99) to start vibing on").option("-p, --pick", "Pick from todo tasks interactively").action(async (taskIdInput, options) => {
|
|
1048
1047
|
const spinner = ora4();
|
|
1049
1048
|
try {
|
|
@@ -1056,25 +1055,9 @@ var vibingCommand = new Command5("vibing").alias("start").alias("v").description
|
|
|
1056
1055
|
}
|
|
1057
1056
|
const allTasks = await taskOps.getTasks("all");
|
|
1058
1057
|
const vibingTasks = allTasks.filter((t) => t.status === "vibing" && !t.completed);
|
|
1059
|
-
if (vibingTasks.length
|
|
1060
|
-
console.log(chalk6.
|
|
1061
|
-
|
|
1062
|
-
console.log(chalk6.gray(" Research shows 3+ concurrent tasks = 40% productivity loss.\n"));
|
|
1063
|
-
console.log(chalk6.white("Currently vibing:"));
|
|
1064
|
-
vibingTasks.forEach((t, i) => {
|
|
1065
|
-
console.log(chalk6.magenta(` ${i + 1}. ${t.title}`));
|
|
1066
|
-
});
|
|
1067
|
-
console.log("");
|
|
1068
|
-
const { proceed } = await inquirer.prompt([{
|
|
1069
|
-
type: "confirm",
|
|
1070
|
-
name: "proceed",
|
|
1071
|
-
message: "Start another task anyway?",
|
|
1072
|
-
default: false
|
|
1073
|
-
}]);
|
|
1074
|
-
if (!proceed) {
|
|
1075
|
-
console.log(chalk6.gray("\nFocus on finishing what you started! Run `vibetasks done <id>` when ready.\n"));
|
|
1076
|
-
process.exit(0);
|
|
1077
|
-
}
|
|
1058
|
+
if (vibingTasks.length > 0) {
|
|
1059
|
+
console.log(chalk6.gray(`
|
|
1060
|
+
Currently vibing on ${vibingTasks.length} task(s)`));
|
|
1078
1061
|
}
|
|
1079
1062
|
if (!taskId || options.pick) {
|
|
1080
1063
|
const todoTasks = allTasks.filter((t) => t.status === "todo" && !t.completed);
|
package/package.json
CHANGED