@hasna/todos 0.9.57 → 0.9.58
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 +4 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -13237,7 +13237,7 @@ function formatTaskLine(t) {
|
|
|
13237
13237
|
return `${chalk.dim(t.id.slice(0, 8))} ${statusFn(t.status.padEnd(11))} ${priorityFn(t.priority.padEnd(8))} ${t.title}${assigned}${lock}${tags}${plan}`;
|
|
13238
13238
|
}
|
|
13239
13239
|
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");
|
|
13240
|
-
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)").option("--estimated <minutes>", "Estimated time in minutes").option("--approval", "Require approval before completion").action((title, opts) => {
|
|
13240
|
+
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)").option("--estimated <minutes>", "Estimated time in minutes").option("--approval", "Require approval before completion").option("--recurrence <rule>", "Recurrence rule, e.g. 'every day', 'every weekday', 'every 2 weeks'").option("--due <date>", "Due date (ISO string or YYYY-MM-DD)").action((title, opts) => {
|
|
13241
13241
|
const globalOpts = program2.opts();
|
|
13242
13242
|
const projectId = autoProject(globalOpts);
|
|
13243
13243
|
opts.tags = opts.tags || opts.tag;
|
|
@@ -13274,7 +13274,9 @@ program2.command("add <title>").description("Create a new task").option("-d, --d
|
|
|
13274
13274
|
project_id: projectId,
|
|
13275
13275
|
working_dir: process.cwd(),
|
|
13276
13276
|
estimated_minutes: opts.estimated ? parseInt(opts.estimated, 10) : undefined,
|
|
13277
|
-
requires_approval: opts.approval || false
|
|
13277
|
+
requires_approval: opts.approval || false,
|
|
13278
|
+
recurrence_rule: opts.recurrence,
|
|
13279
|
+
due_at: opts.due ? opts.due.length === 10 ? opts.due + "T00:00:00.000Z" : opts.due : undefined
|
|
13278
13280
|
});
|
|
13279
13281
|
if (globalOpts.json) {
|
|
13280
13282
|
output(task, true);
|