@hasna/todos 0.9.67 → 0.9.68

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +15 -2
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -14010,10 +14010,23 @@ program2.command("comment <id> <text>").description("Add a comment to a task").a
14010
14010
  console.log(chalk.green("Comment added."));
14011
14011
  }
14012
14012
  });
14013
- program2.command("search <query>").description("Search tasks").action((query) => {
14013
+ program2.command("search <query>").description("Search tasks").option("--status <status>", "Filter by status").option("--priority <p>", "Filter by priority").option("--assigned <agent>", "Filter by assigned agent").option("--since <date>", "Only tasks updated after this date (ISO)").option("--blocked", "Only blocked tasks (incomplete dependencies)").option("--has-deps", "Only tasks with dependencies").action((query, opts) => {
14014
14014
  const globalOpts = program2.opts();
14015
14015
  const projectId = autoProject(globalOpts);
14016
- const tasks = searchTasks(query, projectId);
14016
+ const searchOpts = { query, project_id: projectId };
14017
+ if (opts.status)
14018
+ searchOpts.status = opts.status;
14019
+ if (opts.priority)
14020
+ searchOpts.priority = opts.priority;
14021
+ if (opts.assigned)
14022
+ searchOpts.assigned_to = opts.assigned;
14023
+ if (opts.since)
14024
+ searchOpts.updated_after = opts.since;
14025
+ if (opts.blocked)
14026
+ searchOpts.is_blocked = true;
14027
+ if (opts.hasDeps)
14028
+ searchOpts.has_dependencies = true;
14029
+ const tasks = searchTasks(searchOpts);
14017
14030
  if (globalOpts.json) {
14018
14031
  output(tasks, true);
14019
14032
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/todos",
3
- "version": "0.9.67",
3
+ "version": "0.9.68",
4
4
  "description": "Universal task management for AI coding agents - CLI + MCP server + interactive TUI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",