p-backlog 0.12.1 → 0.13.0

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 (50) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +7 -6
  3. package/README.ru.md +6 -5
  4. package/dist/cli.js +1394 -1062
  5. package/dist/web/assets/CodeTab-BokbzP4a.js +1 -0
  6. package/dist/web/assets/CostTab-D91_w1H0.js +1 -0
  7. package/dist/web/assets/EffectTab-CRlWfFF0.js +1 -0
  8. package/dist/web/assets/Figure-CO87y2TD.js +1 -0
  9. package/dist/web/assets/OverviewTab-LJh-9xzS.css +1 -0
  10. package/dist/web/assets/OverviewTab-naYN8aXk.js +1 -0
  11. package/dist/web/assets/Page-BHZdQQhE.js +59 -0
  12. package/dist/web/assets/PanelRows--wt894cQ.css +1 -0
  13. package/dist/web/assets/PanelRows.module-rg1MXy2z.js +1 -0
  14. package/dist/web/assets/QualityTab-BMfBa6YW.js +1 -0
  15. package/dist/web/assets/ShareBar-DBiU0f9_.js +1 -0
  16. package/dist/web/assets/StatsPage-D_urZSgL.css +1 -0
  17. package/dist/web/assets/StatsPage-Dr1pco7X.js +1 -0
  18. package/dist/web/assets/StatsTabState-CePos7h7.js +1 -0
  19. package/dist/web/assets/{StatsTable-Bkv5EU2n.js → StatsTable-CqH14eSD.js} +1 -1
  20. package/dist/web/assets/UnavailableRepos-BBbuCPNM.js +1 -0
  21. package/dist/web/assets/index-DpWYLB0A.js +2 -0
  22. package/dist/web/assets/start-Cw9zPEW-.js +42 -0
  23. package/dist/web/assets/start-DCkTSXpO.css +1 -0
  24. package/dist/web/assets/use-grain-panel-BKTkjTK3.js +55 -0
  25. package/dist/web/assets/web-paths-yWGbLD6t.js +1 -0
  26. package/dist/web/index.html +1 -1
  27. package/package.json +2 -2
  28. package/skill/backlog/SKILL.md +5 -2
  29. package/skill/backlog-en/SKILL.md +4 -2
  30. package/dist/web/assets/CodeTab-DnS8ehhs.js +0 -1
  31. package/dist/web/assets/CostTab-X-3Okq8y.js +0 -1
  32. package/dist/web/assets/EffectTab-DITN7zNC.js +0 -1
  33. package/dist/web/assets/Figure-8RcQUP-G.js +0 -1
  34. package/dist/web/assets/OverviewTab-BLcQ0tEl.js +0 -1
  35. package/dist/web/assets/OverviewTab-DeoTLTwg.css +0 -1
  36. package/dist/web/assets/Page-CtAVbr-z.js +0 -59
  37. package/dist/web/assets/PanelRows-6zccccnE.css +0 -1
  38. package/dist/web/assets/PanelRows.module-ZonfBTD-.js +0 -1
  39. package/dist/web/assets/QualityTab-tIfLA5rR.js +0 -1
  40. package/dist/web/assets/ShareBar-z49KNtHZ.js +0 -1
  41. package/dist/web/assets/StatsPage-B_pacptZ.css +0 -1
  42. package/dist/web/assets/StatsPage-RN5PvALN.js +0 -1
  43. package/dist/web/assets/StatsTabState-DuK85b6t.js +0 -1
  44. package/dist/web/assets/UnavailableRepos-D-bhtLZ4.js +0 -1
  45. package/dist/web/assets/index-0AsbsTM1.js +0 -2
  46. package/dist/web/assets/rolldown-runtime-hePW80VL.js +0 -1
  47. package/dist/web/assets/start--LUt1aUh.js +0 -42
  48. package/dist/web/assets/start-rlqS5Z1d.css +0 -1
  49. package/dist/web/assets/use-grain-panel-DTtCKyng.js +0 -55
  50. package/dist/web/assets/web-paths-D-xBEJAy.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,82 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0
4
+
5
+ Fixes from a full review of the code base.
6
+
7
+ ### Tasks and storage
8
+
9
+ - An epic with open tasks can no longer be closed by hand, from the CLI or the web app; closing tasks in bulk closes the
10
+ epic together with its tasks. Closed tasks of an open epic are kept until the epic closes, so its progress doesn't
11
+ drop; `close`, `show`, `--json` and the web app say "deleted after the epic closes" instead of a wrong date.
12
+ - A task file or `project.md` that isn't UTF-8 is no longer damaged by a write: it is reported as "not UTF-8" and the
13
+ write is refused.
14
+ - A broken `project.md` is named with its reason instead of "project not found" or "No projects", and `new` no longer
15
+ creates a duplicate project next to it.
16
+ - The journal waits for its lock instead of appending without it, and a busy journal no longer holds the task file's
17
+ lock. Writes are synced to disk, including the directory after a rename and appended journal lines; a task number is
18
+ never handed out twice, even after a task file is deleted or the journal is compacted. `~\` in `BACKLOG_DIR` points
19
+ to the home directory.
20
+
21
+ ### `backlog check` and git
22
+
23
+ - A git failure, an unreadable branch or a shallow clone no longer turns into a false answer. `check` reports
24
+ `merge-state-unknown` and `project-branches-unreadable` instead of "awaiting merge", "nothing changed" or "file
25
+ missing", and `verify --source` and `new --source` warn that the path wasn't checked.
26
+ - `verify --source` refuses a path that `check` would report as missing, and `new` warns about it; a folder or a file
27
+ from another branch is accepted.
28
+ - Diffs no longer depend on the user's `diff.context` and paths are passed to git literally, so `src/[id].ts` is not
29
+ mixed up with `src/i.ts`. A new untracked file counts as "changes unknown", not "no changes".
30
+ - `source-moved` names the renamed code file. Without git history, an anchored task whose file came back is checked
31
+ and its episode closed.
32
+ - The Stop hook remembers only the tasks named in its reason; the rest are named on the next turn.
33
+
34
+ ### CLI
35
+
36
+ - `-h`/`--help` shows help only when it is an option of the command: `new --title -h` is refused with a hint instead
37
+ of printing help with exit code 0. A value starting with `-` suggests `--option=value`, and a repeated option is
38
+ refused.
39
+ - `status`, `priority`, `category` and `project status` with the current value say "already …" and write nothing.
40
+ `service status` exits with code 4 when the service isn't installed or doesn't answer.
41
+ - Running `service install` again keeps the installed service's port; an explicit `PORT` changes it.
42
+
43
+ ### Web app
44
+
45
+ - The web app no longer freezes offline: requests always go to the local server, only server errors are retried, and
46
+ "not found" shows at once.
47
+ - The task card doesn't close while a field is still saving. A failed save keeps the card open with the error; if the
48
+ server doesn't answer for 5 seconds, closing asks whether to leave and warns that the change is lost if the write
49
+ fails. A draft field that failed to save twice in a row sends the edit on retry instead of reporting a false
50
+ conflict.
51
+ - Board: the move note no longer covers the bottom cards, also on narrow screens; a move error goes away with its
52
+ note; Undo restores the confirmed status and doesn't clear another move's note; the opened card scrolls into view.
53
+ - Card alerts are grouped in one sticky block, and "Saved" stays visible next to them.
54
+ - Bulk-action errors are no longer read twice by screen readers, chart steps taken with the arrow keys are announced,
55
+ and the confirmation dialog's description is read out.
56
+
57
+ ### Statistics
58
+
59
+ - A task that was reopened and closed again counts as closed once, everywhere.
60
+ - The average number of new tasks counts from the project's first task, so quiet weeks are included; the summary says
61
+ "since <date>" when the backlog is younger than the window.
62
+ - Costs: days without tokens no longer turn an unknown price into $0, the "at API prices" card and its tooltip agree
63
+ when a price is unknown, and models without a price are marked.
64
+ - The memory panel keeps its error across background polls, and "Retrying…" shows only after the button is pressed.
65
+
66
+ ## 0.12.2
67
+
68
+ - The board fits the window: each column scrolls on its own, so column headings stay in view and the horizontal
69
+ scrollbar is at the bottom of the screen. The note after a move is a neutral panel over the bottom of the board, like
70
+ the list's bulk-action panel: it no longer pushes the columns down, and focusing Undo doesn't scroll the page.
71
+ - Dropping a card on "done" while closed tasks are hidden by the filter now shows the note with Undo too; before, the
72
+ card vanished silently, and closing the last open task replaced the board with "No open tasks".
73
+ - The board shows the keyboard hint (Space picks up a card) on screen, epic and blocked labels on a card show their
74
+ tooltips again, and a move note now always goes away after 15 seconds once focus is elsewhere.
75
+ - Error messages in the web app tell what to do next: a server error adds "Retry; if it keeps failing, restart the
76
+ backlog server", and "the server is not responding" now suggests `backlog serve` or `backlog service install` instead
77
+ of `npm start` in the repository and a macOS-only `launchctl` command.
78
+ - Hover highlights apply only on devices that can hover, so they no longer stick after a tap on a phone or tablet.
79
+
3
80
  ## 0.12.1
4
81
 
5
82
  - The "List / Board" switch moved from the filter chips to the page heading and became a segmented control with icons,
package/README.md CHANGED
@@ -20,7 +20,7 @@ what will break. Findings from audits and code reviews become tasks too, instead
20
20
  - **Stays current by itself.** A Stop hook asks the agent to re-check tasks whose own lines changed since the last
21
21
  check — not an edit elsewhere in the file, and not a file that is merely absent from the current branch. The agent
22
22
  closes fixed ones with the commit as evidence; line numbers follow the code as it moves, and so do renamed files.
23
- Closed tasks are cleaned up after 7 days.
23
+ Closed tasks are cleaned up after 7 days; tasks of an open epic, once the epic closes.
24
24
  - **Local and autonomous.** Plain files in `~/backlog`, no account, no cloud. The agent drives it through the skill,
25
25
  so you don't have to touch the CLI — though you can.
26
26
  - **Charts when you want them.** Start the local web app to browse and triage tasks and follow the metrics: debt by
@@ -135,7 +135,7 @@ If there's no project yet, `backlog new` creates it.
135
135
 
136
136
  | File | Stores | Kept for |
137
137
  | --- | --- | --- |
138
- | Task files | One file per task, closed ones included | 7 days after closing, then deleted (service: hourly; without the service: once a day, after a CLI command other than the agent hook) |
138
+ | Task files | One file per task, closed ones included | 7 days after closing (tasks of an open epic: after the epic closes), then deleted (service: hourly; without the service: once a day, after a CLI command other than the agent hook) |
139
139
  | `journal.jsonl` | Per-project history of task and check events | Full history for tasks whose file still exists; other events for 13 weeks (compacted once a day, by the service and after CLI commands other than the agent hook) |
140
140
  | `.runs.jsonl` | CLI run log | 13 weeks |
141
141
  | `.usage-cache.json` | Claude Code usage parsed from transcripts | 13 weeks |
@@ -198,8 +198,8 @@ requires typing the project id to confirm.
198
198
  - An epic whose tasks are all closed is closed by the server on its own, at startup and once an hour; such
199
199
  epics are also visible under "Closed by agent".
200
200
  - Any closed task is deleted after 7 days along with its file — the server does this at startup and once
201
- an hour. The server keeps a completed epic's task around until the epic itself closes (for example, while
202
- the backlog still has unprocessed files) — the countdown then shows "deletion delayed" instead.
201
+ an hour. The server keeps a task of an open epic around until the epic itself closes, so the epic's progress
202
+ and finished work don't vanish — the countdown then shows "deletion delayed" instead.
203
203
  Deleted task numbers are never reused.
204
204
 
205
205
  ## Works well with code-review-graph
@@ -250,7 +250,7 @@ supported):
250
250
 
251
251
  ```bash
252
252
  backlog service install # macOS: launchd, Linux: systemd --user, Windows: script in the Startup folder
253
- backlog service status # is it installed, is the server responding
253
+ backlog service status # is it installed, is the server responding; exit code 4 if not
254
254
  backlog service uninstall
255
255
  ```
256
256
 
@@ -281,7 +281,8 @@ backlog service install
281
281
  ```
282
282
 
283
283
  The running service keeps executing the old `cli.js` until reinstalled — the web assets on disk are
284
- already new, but `backlog service install` is what points the service at the new code.
284
+ already new, but `backlog service install` is what points the service at the new code. Reinstalling
285
+ keeps the port the service was installed on; set `PORT` only to change it.
285
286
 
286
287
  After upgrading Node itself (for example via Homebrew), run `backlog service install` again too: the
287
288
  service stores the path to the Node binary it was installed with.
package/README.ru.md CHANGED
@@ -20,7 +20,7 @@
20
20
  - **Сам следит за актуальностью.** Stop-хук просит агента перепроверить задачи, чьи строки изменились с прошлой
21
21
  проверки, — не правку в другом месте файла и не файл, которого просто нет в текущей ветке. Агент закрывает
22
22
  исправленные со ссылкой на коммит, номера строк и переименованные файлы следуют за кодом. Закрытые задачи
23
- удаляются через 7 дней.
23
+ удаляются через 7 дней, задачи открытого эпика — после его закрытия.
24
24
  - **Локальный и автономный.** Обычные файлы в `~/backlog`, без аккаунта и облака. Агент работает с ним через
25
25
  скилл, так что трогать CLI не обязательно — но можно.
26
26
  - **Графики — когда нужны.** Поднимите локальное веб-приложение, чтобы просматривать и разбирать задачи и следить
@@ -134,7 +134,7 @@
134
134
 
135
135
  | Файл | Что хранит | Сколько хранится |
136
136
  | --- | --- | --- |
137
- | Файлы задач | По файлу на задачу, включая закрытые | Закрытые — 7 дней после закрытия, затем удаляются (служба — раз в час; без службы — раз в сутки, после команды CLI, кроме хука агента) |
137
+ | Файлы задач | По файлу на задачу, включая закрытые | Закрытые — 7 дней после закрытия (задачи открытого эпика — после закрытия эпика), затем удаляются (служба — раз в час; без службы — раз в сутки, после команды CLI, кроме хука агента) |
138
138
  | `journal.jsonl` | История событий задач и проверок по проекту | История существующих задач — целиком; остальные события — 13 недель (уплотняется раз в сутки, службой и после команд CLI, кроме хука агента) |
139
139
  | `.runs.jsonl` | Журнал запусков CLI | 13 недель |
140
140
  | `.usage-cache.json` | Расход Claude Code, разобранный из транскриптов | 13 недель |
@@ -194,7 +194,7 @@
194
194
  ссылке «Закрыты агентом», их можно вернуть в беклог.
195
195
  - Эпик, все задачи которого закрыты, сервер при старте и раз в час закрывает сам; такие эпики тоже видны
196
196
  по ссылке «Закрыты агентом».
197
- - Любая закрытая задача удаляется через 7 дней вместе с файлом: это делает сервер при старте и раз в час. Задачу завершённого эпика сервер держит, пока эпик не закроется (например, пока в беклоге есть неразобранные файлы), — тогда вместо отсчёта видно «удаление задержано».
197
+ - Любая закрытая задача удаляется через 7 дней вместе с файлом: это делает сервер при старте и раз в час. Задачу открытого эпика сервер держит, пока эпик не закроется, чтобы прогресс эпика и его сделанное не пропадали, — тогда вместо отсчёта видно «удаление задержано».
198
198
  Номера удалённых задач повторно не выдаются.
199
199
 
200
200
  ## В паре с code-review-graph
@@ -245,7 +245,7 @@ backlog serve --port 5000
245
245
 
246
246
  ```bash
247
247
  backlog service install # macOS: launchd, Linux: systemd --user, Windows: скрипт в папке «Автозагрузка»
248
- backlog service status # установлена ли служба, отвечает ли сервер
248
+ backlog service status # установлена ли служба, отвечает ли сервер; код 4, если нет
249
249
  backlog service uninstall
250
250
  ```
251
251
 
@@ -276,7 +276,8 @@ backlog service install
276
276
  ```
277
277
 
278
278
  Запущенная служба продолжает работать со старым `cli.js`, пока её не переустановят, — веб-ресурсы на
279
- диске уже новые, но именно `backlog service install` переключает службу на новый код.
279
+ диске уже новые, но именно `backlog service install` переключает службу на новый код. Переустановка
280
+ сохраняет порт, на котором служба была установлена; `PORT` задавайте, только чтобы его сменить.
280
281
 
281
282
  После обновления самого Node (например, через Homebrew) тоже запустите `backlog service install` —
282
283
  служба хранит путь к бинарнику Node, с которым была установлена.