@firstpick/pi-extension-todo-progress 0.1.7 → 0.1.8

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/index.ts +7 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -159,5 +159,12 @@ export default function todoProgress(pi: ExtensionAPI) {
159
159
  pi.registerShortcut("ctrl+alt+j", { description: "Todo scroll down", handler: async (ctx) => { state.offset = Math.min(Math.max(0, state.items.length - MAX_ROWS), state.offset + 1); render(ctx, state); } });
160
160
  pi.registerShortcut("ctrl+alt+k", { description: "Todo scroll up", handler: async (ctx) => { state.offset = Math.max(0, state.offset - 1); render(ctx, state); } });
161
161
 
162
+ pi.registerCommand("todo-progress-status", {
163
+ description: "Show todo-progress widget extension status",
164
+ handler: async (_args, ctx) => {
165
+ ctx.ui.notify(`todo-progress loaded · visible ${state.visible ? "yes" : "no"} · items ${state.items.length}`, "info");
166
+ },
167
+ });
168
+
162
169
  pi.on("session_start", async (_event, ctx) => clear(ctx, state));
163
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firstpick/pi-extension-todo-progress",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Aggressive automatic todo progress widget for multi-goal prompts in Pi.",
5
5
  "license": "MIT",
6
6
  "keywords": [