@hasna/todos 0.9.2 → 0.9.3
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 +9 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -9565,9 +9565,11 @@ function formatTaskLine(t) {
|
|
|
9565
9565
|
return `${chalk.dim(t.id.slice(0, 8))} ${statusFn(t.status.padEnd(11))} ${priorityFn(t.priority.padEnd(8))} ${t.title}${assigned}${lock}${tags}${plan}`;
|
|
9566
9566
|
}
|
|
9567
9567
|
program2.name("todos").description("Universal task management for AI coding agents").version(getPackageVersion()).option("--project <path>", "Project path").option("--json", "Output as JSON").option("--agent <name>", "Agent name").option("--session <id>", "Session ID");
|
|
9568
|
-
program2.command("add <title>").description("Create a new task").option("-d, --description <text>", "Task description").option("-p, --priority <level>", "Priority: low, medium, high, critical").option("--parent <id>", "Parent task ID").option("--tags <tags>", "Comma-separated tags").option("--plan <id>", "Assign to a plan").option("--assign <agent>", "Assign to agent").option("--status <status>", "Initial status").option("--list <id>", "Task list ID").action((title, opts) => {
|
|
9568
|
+
program2.command("add <title>").description("Create a new task").option("-d, --description <text>", "Task description").option("-p, --priority <level>", "Priority: low, medium, high, critical").option("--parent <id>", "Parent task ID").option("-t, --tags <tags>", "Comma-separated tags").option("--tag <tags>", "Comma-separated tags (alias for --tags)").option("--plan <id>", "Assign to a plan").option("--assign <agent>", "Assign to agent").option("--status <status>", "Initial status").option("--list <id>", "Task list ID").option("--task-list <id>", "Task list ID (alias for --list)").action((title, opts) => {
|
|
9569
9569
|
const globalOpts = program2.opts();
|
|
9570
9570
|
const projectId = autoProject(globalOpts);
|
|
9571
|
+
opts.tags = opts.tags || opts.tag;
|
|
9572
|
+
opts.list = opts.list || opts.taskList;
|
|
9571
9573
|
const taskListId = opts.list ? (() => {
|
|
9572
9574
|
const db = getDatabase();
|
|
9573
9575
|
const id = resolvePartialId(db, "task_lists", opts.list);
|
|
@@ -9607,8 +9609,10 @@ program2.command("add <title>").description("Create a new task").option("-d, --d
|
|
|
9607
9609
|
console.log(formatTaskLine(task));
|
|
9608
9610
|
}
|
|
9609
9611
|
});
|
|
9610
|
-
program2.command("list").description("List tasks").option("-s, --status <status>", "Filter by status").option("-p, --priority <priority>", "Filter by priority").option("--assigned <agent>", "Filter by assigned agent").option("--tags <tags>", "Filter by tags (comma-separated)").option("-a, --all", "Show all tasks (including completed/cancelled)").option("--list <id>", "Filter by task list ID").action((opts) => {
|
|
9612
|
+
program2.command("list").description("List tasks").option("-s, --status <status>", "Filter by status").option("-p, --priority <priority>", "Filter by priority").option("--assigned <agent>", "Filter by assigned agent").option("--tags <tags>", "Filter by tags (comma-separated)").option("--tag <tags>", "Filter by tags (alias for --tags)").option("-a, --all", "Show all tasks (including completed/cancelled)").option("--list <id>", "Filter by task list ID").option("--task-list <id>", "Filter by task list ID (alias for --list)").action((opts) => {
|
|
9611
9613
|
const globalOpts = program2.opts();
|
|
9614
|
+
opts.tags = opts.tags || opts.tag;
|
|
9615
|
+
opts.list = opts.list || opts.taskList;
|
|
9612
9616
|
const projectId = autoProject(globalOpts);
|
|
9613
9617
|
const filter = {};
|
|
9614
9618
|
if (projectId)
|
|
@@ -9720,8 +9724,10 @@ program2.command("show <id>").description("Show full task details").action((id)
|
|
|
9720
9724
|
}
|
|
9721
9725
|
}
|
|
9722
9726
|
});
|
|
9723
|
-
program2.command("update <id>").description("Update a task").option("--title <text>", "New title").option("-d, --description <text>", "New description").option("-s, --status <status>", "New status").option("-p, --priority <priority>", "New priority").option("--assign <agent>", "Assign to agent").option("--tags <tags>", "New tags (comma-separated)").option("--list <id>", "Move to a task list").action((id, opts) => {
|
|
9727
|
+
program2.command("update <id>").description("Update a task").option("--title <text>", "New title").option("-d, --description <text>", "New description").option("-s, --status <status>", "New status").option("-p, --priority <priority>", "New priority").option("--assign <agent>", "Assign to agent").option("--tags <tags>", "New tags (comma-separated)").option("--tag <tags>", "New tags (alias for --tags)").option("--list <id>", "Move to a task list").option("--task-list <id>", "Move to a task list (alias for --list)").action((id, opts) => {
|
|
9724
9728
|
const globalOpts = program2.opts();
|
|
9729
|
+
opts.tags = opts.tags || opts.tag;
|
|
9730
|
+
opts.list = opts.list || opts.taskList;
|
|
9725
9731
|
const resolvedId = resolveTaskId(id);
|
|
9726
9732
|
const current = getTask(resolvedId);
|
|
9727
9733
|
if (!current) {
|