@xynogen/pix-todo 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-todo",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Pi tool — durable execution checklist (todo)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/todo.test.ts CHANGED
@@ -955,7 +955,7 @@ describe("todo card layout", () => {
955
955
  expect(result.details).toBeDefined();
956
956
  expect(lines).toHaveLength(1);
957
957
  expect(lines[0]?.trimEnd()).toBe(
958
- "[success]✓ [/] [toolTitle]<b>todo</b>[/] [muted]#2 todo renderer[/] [dim]·[/] [dim]1/2 done[/]",
958
+ "[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]#2 todo renderer[/] [muted]·[/] [muted]1/2 done[/]",
959
959
  );
960
960
  });
961
961
  });
@@ -986,14 +986,14 @@ describe("renderResult snapshot isolation", () => {
986
986
  describe("renderTodoSummaryLine (collapsed one-liner)", () => {
987
987
  test("empty list renders a compact tool row", () => {
988
988
  expect(renderTodoSummaryLine([], tagTheme)).toBe(
989
- "[success]✓ [/] [toolTitle]<b>todo</b>[/] [muted]empty[/]",
989
+ "[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]empty[/]",
990
990
  );
991
991
  });
992
992
 
993
993
  test("uses warning status when work is blocked", () => {
994
994
  const items: TodoItem[] = [{ id: 1, text: "Need approval", status: "blocked" }];
995
995
  expect(renderTodoSummaryLine(items, tagTheme)).toBe(
996
- "[warning]⚠ [/] [toolTitle]<b>todo</b>[/] [muted]checklist[/] [dim]·[/] [dim]0/1 done · 1 blocked[/]",
996
+ "[warning]⚠ [/] [toolTitle]<b>todo</b>[/] [dim]checklist[/] [muted]·[/] [muted]0/1 done · 1 blocked[/]",
997
997
  );
998
998
  });
999
999
 
@@ -1003,7 +1003,7 @@ describe("renderTodoSummaryLine (collapsed one-liner)", () => {
1003
1003
  { id: 2, text: "b", status: "in_progress" },
1004
1004
  ];
1005
1005
  expect(renderTodoSummaryLine(items, tagTheme)).toBe(
1006
- "[success]✓ [/] [toolTitle]<b>todo</b>[/] [muted]#2 b[/] [dim]·[/] [dim]1/2 done[/]",
1006
+ "[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]#2 b[/] [muted]·[/] [muted]1/2 done[/]",
1007
1007
  );
1008
1008
  });
1009
1009
  });
package/src/todo.ts CHANGED
@@ -271,7 +271,7 @@ export default function registerTodo(pi: ExtensionAPI): void {
271
271
  const t = theme as TodoTheme;
272
272
  const action = (args as { action?: string })?.action ?? "";
273
273
  const title = t.fg("toolTitle", t.bold("todo"));
274
- return new Text(action ? `${title} ${t.fg("muted", action)}` : title, 0, 0);
274
+ return new Text(action ? `${title} ${t.fg("dim", action)}` : title, 0, 0);
275
275
  },
276
276
  renderResult(result, options, theme, context) {
277
277
  const details = result.details as TodoResultDetails | undefined;