aitasks 1.2.0 → 1.2.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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1890,7 +1890,7 @@ var require_commander = __commonJS((exports) => {
1890
1890
  var require_package = __commonJS((exports, module) => {
1891
1891
  module.exports = {
1892
1892
  name: "aitasks",
1893
- version: "1.2.0",
1893
+ version: "1.2.1",
1894
1894
  description: "CLI task management tool built for AI agents",
1895
1895
  type: "module",
1896
1896
  bin: {
@@ -41438,8 +41438,9 @@ function buildTree(tasks) {
41438
41438
  push(sub, 1, i === subs.length - 1, "middle", false);
41439
41439
  });
41440
41440
  }
41441
+ const doneSorted = sorted.filter((t) => t.status === "done").sort((a2, b2) => (b2.completed_at ?? b2.created_at) - (a2.completed_at ?? a2.created_at));
41441
41442
  let firstDone = true;
41442
- for (const task of sorted.filter((t) => t.status === "done")) {
41443
+ for (const task of doneSorted) {
41443
41444
  if (shownIds.has(task.id))
41444
41445
  continue;
41445
41446
  push(task, 0, false, "done", firstDone);
@@ -42984,4 +42985,4 @@ program2.parseAsync(process.argv).catch((err) => {
42984
42985
  process.exit(1);
42985
42986
  });
42986
42987
 
42987
- //# debugId=471CEF4A0A35378464756E2164756E21
42988
+ //# debugId=758BC15FE9C3042464756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aitasks",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "CLI task management tool built for AI agents",
5
5
  "type": "module",
6
6
  "bin": {