@krodak/clickup-cli 0.6.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -671,13 +671,13 @@ async function runSprintCommand(config, opts) {
671
671
  const me = await client.getMe();
672
672
  const viewData = await client.getListViews(activeList.id);
673
673
  const listView = viewData.required_views?.list;
674
- let sprintTasks;
674
+ let allTasks;
675
675
  if (listView) {
676
- const allViewTasks = await client.getViewTasks(listView.id);
677
- sprintTasks = allViewTasks.filter((t) => t.assignees.some((a) => a.id === me.id));
676
+ allTasks = await client.getViewTasks(listView.id);
678
677
  } else {
679
- sprintTasks = await client.getMyTasksFromList(activeList.id);
678
+ allTasks = await client.getTasksFromList(activeList.id);
680
679
  }
680
+ const sprintTasks = allTasks.filter((t) => t.assignees.some((a) => Number(a.id) === me.id));
681
681
  const filtered = opts.status ? sprintTasks.filter((t) => t.status.status.toLowerCase() === opts.status.toLowerCase()) : sprintTasks;
682
682
  const summaries = filtered.map(summarize);
683
683
  await printTasks(summaries, opts.json ?? false, config);
@@ -1017,7 +1017,7 @@ async function openTask(config, query, opts = {}) {
1017
1017
  }
1018
1018
 
1019
1019
  // src/commands/summary.ts
1020
- var IN_PROGRESS_PATTERNS = ["in progress", "in review", "doing"];
1020
+ var IN_PROGRESS_PATTERNS = ["in progress", "in review", "code review", "doing"];
1021
1021
  function isCompletedRecently(task, cutoff) {
1022
1022
  if (!isDoneStatus(task.status.status)) return false;
1023
1023
  const updated = Number(task.date_updated);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",