aitasks 1.4.3 → 1.4.5

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 +42 -33
  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.4.3",
1893
+ version: "1.4.5",
1894
1894
  description: "CLI task management tool built for AI agents",
1895
1895
  type: "module",
1896
1896
  bin: {
@@ -42407,7 +42407,10 @@ var TreeBoardComponent = ({ getTasks }) => {
42407
42407
  }
42408
42408
  return bar;
42409
42409
  })();
42410
- const taskCountLabel = searchQuery ? `${filteredTasks.length} of ${tasks.length}` : `${tasks.length}`;
42410
+ const doneCount = tasks.filter((t) => t.status === "done").length;
42411
+ const pct = tasks.length ? Math.round(doneCount / tasks.length * 100) : 0;
42412
+ const taskCountLabel = searchQuery ? `${filteredTasks.length}/${tasks.length}` : `${doneCount}/${tasks.length} ${pct}%`;
42413
+ const hintGap = leftInner < 56 ? " " : " ";
42411
42414
  const searchMode = mode === "search";
42412
42415
  return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
42413
42416
  flexDirection: "column",
@@ -42424,49 +42427,49 @@ var TreeBoardComponent = ({ getTasks }) => {
42424
42427
  marginRight: 1,
42425
42428
  children: [
42426
42429
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
42427
- paddingLeft: 1,
42430
+ paddingX: 1,
42431
+ justifyContent: "space-between",
42428
42432
  children: [
42429
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42430
- bold: true,
42431
- color: "white",
42432
- children: "Tasks "
42433
- }, undefined, false, undefined, this),
42434
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42435
- color: "#AAAAAA",
42433
+ /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
42436
42434
  children: [
42437
- "(",
42438
- taskCountLabel,
42439
- ")"
42435
+ /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42436
+ bold: true,
42437
+ color: "white",
42438
+ children: "Tasks "
42439
+ }, undefined, false, undefined, this),
42440
+ /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42441
+ color: "#AAAAAA",
42442
+ children: [
42443
+ "(",
42444
+ taskCountLabel,
42445
+ ")"
42446
+ ]
42447
+ }, undefined, true, undefined, this)
42440
42448
  ]
42441
42449
  }, undefined, true, undefined, this),
42442
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42443
- dimColor: true,
42444
- children: " "
42445
- }, undefined, false, undefined, this),
42446
- searchMode ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
42450
+ searchMode ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
42447
42451
  children: [
42448
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42449
- dimColor: true,
42450
- children: "type to filter \xB7 "
42451
- }, undefined, false, undefined, this),
42452
42452
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42453
42453
  color: "cyan",
42454
- children: "Enter"
42454
+ children: "\u21B5"
42455
42455
  }, undefined, false, undefined, this),
42456
42456
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42457
42457
  dimColor: true,
42458
- children: " done \xB7 "
42459
- }, undefined, false, undefined, this),
42458
+ children: [
42459
+ "done",
42460
+ hintGap
42461
+ ]
42462
+ }, undefined, true, undefined, this),
42460
42463
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42461
42464
  color: "cyan",
42462
- children: "Esc"
42465
+ children: "esc"
42463
42466
  }, undefined, false, undefined, this),
42464
42467
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42465
42468
  dimColor: true,
42466
42469
  children: " clear"
42467
42470
  }, undefined, false, undefined, this)
42468
42471
  ]
42469
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
42472
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
42470
42473
  children: [
42471
42474
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42472
42475
  color: "cyan",
@@ -42474,23 +42477,29 @@ var TreeBoardComponent = ({ getTasks }) => {
42474
42477
  }, undefined, false, undefined, this),
42475
42478
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42476
42479
  dimColor: true,
42477
- children: " search \xB7 "
42478
- }, undefined, false, undefined, this),
42480
+ children: [
42481
+ "earch",
42482
+ hintGap
42483
+ ]
42484
+ }, undefined, true, undefined, this),
42479
42485
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42480
42486
  color: "cyan",
42481
42487
  children: "m"
42482
42488
  }, undefined, false, undefined, this),
42483
42489
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42484
42490
  dimColor: true,
42485
- children: " status \xB7 "
42486
- }, undefined, false, undefined, this),
42491
+ children: [
42492
+ "ove",
42493
+ hintGap
42494
+ ]
42495
+ }, undefined, true, undefined, this),
42487
42496
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42488
42497
  color: "cyan",
42489
42498
  children: "q"
42490
42499
  }, undefined, false, undefined, this),
42491
42500
  /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
42492
42501
  dimColor: true,
42493
- children: " quit"
42502
+ children: "uit"
42494
42503
  }, undefined, false, undefined, this)
42495
42504
  ]
42496
42505
  }, undefined, true, undefined, this)
@@ -43524,4 +43533,4 @@ program2.parseAsync(process.argv).catch((err) => {
43524
43533
  process.exit(1);
43525
43534
  });
43526
43535
 
43527
- //# debugId=624747270A6DB83264756E2164756E21
43536
+ //# debugId=DD10AE067D1A79CC64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aitasks",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "CLI task management tool built for AI agents",
5
5
  "type": "module",
6
6
  "bin": {