@krodak/clickup-cli 1.39.0 → 1.39.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clickup-cli",
3
3
  "description": "ClickUp CLI skills for managing tasks, sprints, comments, checklists, custom fields, tags, and time tracking via the cup command",
4
- "version": "1.39.0",
4
+ "version": "1.39.1",
5
5
  "author": {
6
6
  "name": "Krzysztof Rodak"
7
7
  },
package/dist/index.js CHANGED
@@ -4087,7 +4087,7 @@ var commandMetadata = [
4087
4087
  },
4088
4088
  {
4089
4089
  name: "search",
4090
- description: "Search tasks assigned to you by default. Use --all to search across all assignees.",
4090
+ description: "Search tasks by name. Without a query, lists tasks filtered by flags. Defaults to your tasks; use --all for all assignees.",
4091
4091
  flags: [
4092
4092
  "--status",
4093
4093
  "--list",
@@ -4106,8 +4106,8 @@ var commandMetadata = [
4106
4106
  quickReference: [
4107
4107
  {
4108
4108
  section: "read",
4109
- usage: "search <query>",
4110
- description: "Search your tasks by name (--all for all assignees)"
4109
+ usage: "search [query]",
4110
+ description: "Search tasks by name or filter by flags (--all for all assignees)"
4111
4111
  }
4112
4112
  ]
4113
4113
  },
@@ -5374,7 +5374,7 @@ ${renderZshTopLevelCommands(name)}
5374
5374
  ;;
5375
5375
  search)
5376
5376
  _arguments \\
5377
- '1:query:' \\
5377
+ '1::query:' \\
5378
5378
  '--status[Filter by status]:status:(open "in progress" "in review" done closed)' \\
5379
5379
  '--list[Filter by list ID]:list_id:' \\
5380
5380
  '--space[Filter by space ID]:space_id:' \\
@@ -6412,10 +6412,7 @@ Specify the space ID directly.`);
6412
6412
  ${available}`);
6413
6413
  }
6414
6414
  async function searchTasks(config, query, opts = {}) {
6415
- const trimmed = query.trim();
6416
- if (!trimmed) {
6417
- throw new Error("Search query cannot be empty");
6418
- }
6415
+ const trimmed = (query ?? "").trim();
6419
6416
  const client = new ClickUpClient(config);
6420
6417
  const [allTasks, customTypes] = await Promise.all([
6421
6418
  client.getMyTasks(config.teamId, {
@@ -6434,11 +6431,14 @@ async function searchTasks(config, query, opts = {}) {
6434
6431
  client.getCustomTaskTypes(config.teamId)
6435
6432
  ]);
6436
6433
  const typeMap = buildTypeMap(customTypes);
6437
- const words = trimmed.toLowerCase().split(/\s+/);
6438
- let matched = allTasks.filter((task) => {
6439
- const name = task.name.toLowerCase();
6440
- return words.every((word) => name.includes(word));
6441
- });
6434
+ let matched = allTasks;
6435
+ if (trimmed) {
6436
+ const words = trimmed.toLowerCase().split(/\s+/);
6437
+ matched = allTasks.filter((task) => {
6438
+ const name = task.name.toLowerCase();
6439
+ return words.every((word) => name.includes(word));
6440
+ });
6441
+ }
6442
6442
  if (opts.status) {
6443
6443
  const availableStatuses = [...new Set(allTasks.map((t) => t.status.status))];
6444
6444
  const resolved = matchStatus(opts.status, availableStatuses);
@@ -9172,8 +9172,8 @@ function buildProgram(programName = basename(process.argv[1] ?? "cup")) {
9172
9172
  await openTask(config, query, opts);
9173
9173
  })
9174
9174
  );
9175
- program.command("search <query>").description(
9176
- "Search tasks assigned to you by default. Use --all to search across all assignees."
9175
+ program.command("search [query]").description(
9176
+ "Search tasks by name. Without a query, lists tasks filtered by flags. Defaults to your tasks; use --all for all assignees."
9177
9177
  ).option("--status <status>", "Filter by status").option("--list <listId>", "Filter by list ID").option("--space <spaceId|name>", "Filter by space ID or name (partial match)").option("--all", "Search all tasks, not just mine").option("--include-closed", "Include done/closed tasks in search").option("--assignee <userId>", 'Filter by assignee (user ID or "me")').option("--tag <tag>", "Filter by tag name").option("--due-before <date>", "Tasks due before date (YYYY-MM-DD)").option("--due-after <date>", "Tasks due after date (YYYY-MM-DD)").option("--created-after <date>", "Tasks created after date (YYYY-MM-DD)").option("--created-before <date>", "Tasks created before date (YYYY-MM-DD)").option("--field <nameAndValue...>", 'Filter by custom field: --field "Name" value').option("--json", "Force JSON output even in terminal").action(
9178
9178
  wrapAction(
9179
9179
  async (query, opts) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "1.39.0",
3
+ "version": "1.39.1",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -3,11 +3,11 @@ name: clickup
3
3
  description: 'Use when managing ClickUp tasks, sprints, or comments via the `cup` CLI tool. Triggers: task queries, status updates, sprint tracking, creating subtasks, posting comments, threaded replies, standup summaries, searching tasks, checking overdue items, assigning tasks, listing spaces and lists, opening tasks in browser, checking auth or config, setting custom fields, deleting tasks, managing tags, managing checklists, editing comments, task links, time tracking, attachments, file uploads, listing members, listing fields, duplicating tasks, bulk operations, goals, key results, saved filters, favorites.'
4
4
  ---
5
5
 
6
- # ClickUp CLI (`cup`) - skill version 1.39.0
6
+ # ClickUp CLI (`cup`) - skill version 1.39.1
7
7
 
8
8
  Reference for AI agents using the `cup` CLI tool. Covers task management, sprint tracking, comments, time tracking, custom fields, goals, docs, and project workflows.
9
9
 
10
- > **Version check:** Run `cup --version`. If your installed version is older than 1.39.0, update with `npm install -g @krodak/clickup-cli` and refresh this skill with `cup skill`.
10
+ > **Version check:** Run `cup --version`. If your installed version is older than 1.39.1, update with `npm install -g @krodak/clickup-cli` and refresh this skill with `cup skill`.
11
11
 
12
12
  ## Install & Configure
13
13
 
@@ -113,7 +113,7 @@ All commands support `--help` for full flag details. All commands support `--jso
113
113
  | `cup assigned [--status s] [--include-closed]` | All my tasks grouped by status |
114
114
  | `cup sprint [--status s] [--space nameOrId] [--folder id] [--include-closed]` | Tasks in active sprint (auto-detected) |
115
115
  | `cup sprints [--space nameOrId]` | List all sprints (marks active with \*) |
116
- | `cup search <query> [--status s] [--list id] [--space id] [--all] [--include-closed] [--assignee id\|me] [--tag t] [--due-before d] [--due-after d] [--created-after d] [--created-before d] [--field "Name" val]` | Search your tasks by name. `--all` for all assignees |
116
+ | `cup search [query] [--status s] [--list id] [--space id] [--all] [--include-closed] [--assignee id\|me] [--tag t] [--due-before d] [--due-after d] [--created-after d] [--created-before d] [--field "Name" val]` | Search tasks by name, or list tasks filtered by flags when no query is given. `--all` for all assignees |
117
117
  | `cup task <id>` | Single task details (custom fields, checklists, attachments, deps, links) |
118
118
  | `cup subtasks <id> [--status s] [--name q] [--include-closed]` | Subtasks of a task |
119
119
  | `cup comments <id>` | Comments on a task |
@@ -337,6 +337,8 @@ cup tasks --assignee me --created-after 2026-03-01 # my tasks created recently
337
337
  cup search "payment flow" # multi-word search
338
338
  cup search auth --status "prog" # fuzzy status match
339
339
  cup search "auth" --list 123 --space 456 # search within list and space
340
+ cup search --assignee me # no query — all my tasks
341
+ cup search --assignee me --status "in progress" # filter without query
340
342
  cup sprint # current sprint
341
343
  cup assigned # all my tasks by status
342
344
  cup overdue # past due date