@soleone/pi-tasks 0.4.1 → 0.4.2

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/README.md CHANGED
@@ -30,25 +30,22 @@ Task management extension for the [pi coding agent](https://github.com/badlogic/
30
30
  - `Tab` to switch focus between inputs
31
31
  - `Enter` to save
32
32
 
33
- ## Backend selection
33
+ ## Task backends
34
34
 
35
35
  By default, the extension auto-detects the first applicable backend. If none are applicable, it falls back to `todo-md`.
36
36
 
37
- Set `PI_TASKS_BACKEND` to explicitly choose a backend implementation.
38
- Currently supported values:
37
+ For most setups, `sq` is recommended as the default backend. It is lightweight, works well in brand new directories, and can create its local data on demand. Install it from the [`sq` installation guide](https://github.com/DerekStride/sq?tab=readme-ov-file#installation).
39
38
 
40
- - `beads`
41
- - `sq`
42
- - `todo-md`
39
+ ### Supported backends:
43
40
 
44
- ### Sift Queue (`sq`) backend
41
+ - [sq](https://github.com/DerekStride/sq) - Uses the `sq` cli to manage tasks in a `.sift` directory via a `issues.jsonl` file. No initialization necessary.
42
+ - [beads](https://github.com/steveyegge/beads) - Uses the `bd` cli to manage tasks into a `.beads` directory containing multiple files.
43
+ - `todo-md` - Creates or reads a `TODO.md` file with different sections to emulate priority.
45
44
 
46
- The `sq` backend integrates with [sift-queue](https://github.com/shopify-playground/sift) and reads/writes tasks through the `sq` CLI.
45
+ ## Optional env vars:
47
46
 
48
- ### TODO.md backend
49
-
50
- The `todo-md` backend reads/writes a markdown task file (default: `TODO.md`; if `todo.md` already exists, it is used).
51
-
52
- Optional env var:
53
-
54
- - `PI_TASKS_TODO_PATH` — override the TODO file path
47
+ - `PI_TASKS_TODO_PATH` - override the TODO file path
48
+ - `PI_TASKS_BACKEND` - to explicitly choose a backend implementation. Currently supported values:
49
+ - `sq`
50
+ - `beads`
51
+ - `todo-md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleone/pi-tasks",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Task management extension for the pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -366,7 +366,10 @@ export async function showTaskList(ctx: ExtensionCommandContext, config: ListPag
366
366
 
367
367
  return {
368
368
  render: (w: number) => {
369
- lastWidth = w
369
+ if (lastWidth !== w) {
370
+ lastWidth = w
371
+ updateDescPreview()
372
+ }
370
373
  return container.render(w).map((l: string) => truncateToWidth(l, w))
371
374
  },
372
375
  invalidate: () => container.invalidate(),