@diegopetrucci/pi-todo 0.1.3 → 0.1.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.
@@ -1 +1 @@
1
- 0.79.10
1
+ 0.80.6
package/index.ts CHANGED
@@ -288,7 +288,7 @@ export default function (pi: ExtensionAPI) {
288
288
  pi.registerCommand("todos", {
289
289
  description: "Show all todos on the current branch",
290
290
  handler: async (_args, ctx) => {
291
- if (!ctx.hasUI) {
291
+ if (ctx.mode !== "tui") {
292
292
  ctx.ui.notify("/todos requires interactive mode", "error");
293
293
  return;
294
294
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegopetrucci/pi-todo",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "A pi extension that adds a branch-aware todo tool and /todos viewer.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -33,5 +33,9 @@
33
33
  "@earendil-works/pi-coding-agent": "*",
34
34
  "@earendil-works/pi-tui": "*",
35
35
  "typebox": "*"
36
+ },
37
+ "type": "module",
38
+ "engines": {
39
+ "node": ">=22.19.0"
36
40
  }
37
41
  }