p-backlog 0.8.1 → 0.9.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 (44) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +12 -6
  3. package/README.ru.md +12 -5
  4. package/dist/cli.js +1866 -1604
  5. package/dist/web/assets/CodeTab-DvFAuZ83.js +1 -0
  6. package/dist/web/assets/CostTab-1Rdp5nwz.js +1 -0
  7. package/dist/web/assets/EffectTab-8aARbrne.js +1 -0
  8. package/dist/web/assets/{Figure-DAdnR-Fu.js → Figure-CCcsLfB5.js} +1 -1
  9. package/dist/web/assets/OverviewTab-DvBBhF85.js +1 -0
  10. package/dist/web/assets/QualityTab-TBeOxc7b.js +1 -0
  11. package/dist/web/assets/ShareBar-C_mQiINj.js +1 -0
  12. package/dist/web/assets/StatsPage-B5K4_4Wb.css +1 -0
  13. package/dist/web/assets/StatsPage-DtpkiP-4.js +1 -0
  14. package/dist/web/assets/StatsPage.module-DrfzjXrP.js +1 -0
  15. package/dist/web/assets/StatsTabState-BmkJh8eP.js +1 -0
  16. package/dist/web/assets/StatsTable-B9Rm04sJ.css +1 -0
  17. package/dist/web/assets/{StatsTable-Dg0CrPof.js → StatsTable-C5qAHApf.js} +1 -1
  18. package/dist/web/assets/UnavailableRepos-ctosBCJf.js +1 -0
  19. package/dist/web/assets/cx-DvgIdypj.js +55 -0
  20. package/dist/web/assets/index-NfqY6Vxd.js +2 -0
  21. package/dist/web/assets/start-BG-1CZwx.css +1 -0
  22. package/dist/web/assets/start-jnWYnN9h.js +41 -0
  23. package/dist/web/assets/{use-grain-panel-BczBScgN.js → use-grain-panel-DRZkQL7T.js} +2 -2
  24. package/dist/web/assets/{value-dot-Dy8YzPPT.js → value-dot-BJdkleLN.js} +1 -1
  25. package/dist/web/index.html +1 -1
  26. package/package.json +5 -3
  27. package/skill/backlog/SKILL.md +20 -14
  28. package/skill/backlog-en/SKILL.md +22 -15
  29. package/dist/web/assets/CodeTab-Bn0Zl7PI.js +0 -1
  30. package/dist/web/assets/CostTab-BBsTM7es.js +0 -1
  31. package/dist/web/assets/EffectTab-gDz3Omnz.js +0 -1
  32. package/dist/web/assets/OverviewTab-CkZ7dCcx.js +0 -1
  33. package/dist/web/assets/QualityTab-Bkxkcnh2.js +0 -1
  34. package/dist/web/assets/ShareBar-CoTArw6Q.js +0 -1
  35. package/dist/web/assets/StatsPage-B-sQM9n_.js +0 -1
  36. package/dist/web/assets/StatsPage-CHUVlZXv.css +0 -1
  37. package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +0 -1
  38. package/dist/web/assets/StatsTabState-BauB3xdU.js +0 -1
  39. package/dist/web/assets/StatsTable-Z9x-Xaha.css +0 -1
  40. package/dist/web/assets/UnavailableRepos-BTMsOBI-.js +0 -1
  41. package/dist/web/assets/cx-CutaZ2Ho.js +0 -55
  42. package/dist/web/assets/index-CM8tBSED.js +0 -2
  43. package/dist/web/assets/start-CbHSVk3k.css +0 -1
  44. package/dist/web/assets/start-Cm2kfqW8.js +0 -41
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ - `backlog close <ID> --as fixed --reason "Fixed in <sha>: …"` on a task closed with `status <ID> done` now attaches the
6
+ fix commit without reopening it (exit 0 instead of 3; status and closing date stay). Statistics then count that
7
+ closing as fixed, so Effect sees the commit. `status <ID> done` suggests this command, and returning a fixed task to
8
+ work prints its earlier commits so the next `--reason` starts with them (statistics count the first commit).
9
+ - The skill asks the agent to close a task only after tests, checks and review, right after committing, with the hash
10
+ from `git commit`; `status done` is for changes that the user will commit later or that have no commit.
11
+ - Re-checks are quieter. "Code changed" for anchored tasks is raised only when the task's own lines (±2) changed
12
+ after the state the task was last verified in; switching to a branch without that state no longer raises it.
13
+ "File missing" is raised only when the file was deleted or renamed on the current branch, is deleted in the working
14
+ tree, or is unknown to git — a file that lives on another branch no longer counts. A renamed file whose task lines
15
+ are intact moves the task's `source` by itself (`source-moved`). Replayed on a real backlog, re-check candidates
16
+ went from 112 to 76 (precision 17 % → 23 %) without losing any task that a re-check led to close.
17
+ - `backlog new` and `backlog check` treat two open tasks as a possible duplicate only when their `source` is in the
18
+ same file and their titles share several words, or when the titles are nearly the same (version numbers and dates
19
+ are compared whole). Shared words alone — review-nit groups, one area of the code — and the same line or function
20
+ with unrelated titles no longer count. On a real backlog, check offered 6 pairs instead of 159 and `new` refused 5
21
+ times instead of 73, still catching the known duplicates it caught before.
22
+ - The web list "Closed by the agent" and its chip count no longer include tasks a person closed in the web UI (the bulk
23
+ "Close as obsolete" action and epics that closed after it); tasks closed through the CLI stay there. `GET /api/tasks`
24
+ gains a `closedInWeb` field. An unreadable project journal no longer breaks the board — the server warns instead.
25
+ - `backlog new` keeps `manual` as the default for `--found`, and `--help` says so; the skill tells the agent to always
26
+ pass `--found` (without it the task does not count in Effect). The skill's exit-code table for `take` explains that
27
+ code 1 also means a write conflict or a validation error.
28
+ - `backlog prune --all-projects` considers only active projects, like `list` and `stats`.
29
+ - `backlog setup` recognizes the earlier PowerShell form of the Claude Stop hook and replaces it instead of adding a
30
+ second hook; `setup --remove-manual` removes it too. Codex and Cursor Windows hooks are recognized whatever the CLI
31
+ bundle file is named.
32
+ - CLI commands that reopen an epic that had closed by itself (including `backlog new --epic`) say so on stderr, and
33
+ `new --json` shows the epic's current status.
34
+ - `backlog new` in a new repository no longer reuses a prefix declared in another project's `project.md` whose header is
35
+ broken.
36
+ - Hotspots, churn × debt and debt density put tasks with a source like `./src/…` into `src` and files in the repository
37
+ root into `.`; a source pointing at a folder with a trailing slash counts in that folder again.
38
+ - The Code tab counts files such as `X.test.tsx.snap` as tests, as its explanation says; the code cache version is
39
+ bumped, so the git history is read once more after updating.
40
+ - Effect shows "≈" only for numbers that include an estimate of pending tasks — the same rule for tiles, the summary,
41
+ the chart tooltip and the projects table. The accuracy chart shows a point at 0 %. Chart tooltips and the weekly
42
+ trend group digits like the tables. English durations of 1000 days and more group digits too.
43
+ - "Created today / closed today" count from local midnight to now, like the daily rows.
44
+ - A duplicate candidate of a task from an unmerged branch is recorded in the journal exactly as it is shown, so check
45
+ accuracy no longer loses it; the "unknown journal lines" warning also counts candidate events with renamed values.
46
+ - The language switch in the web UI unlocks as soon as the setting is saved instead of after every query refetches.
47
+ - A failed task or project write in the web UI resets the server caches, so the UI never shows a half-written state.
48
+ - `.hook-turns.json` and `.candidates-shown.json` store local times with an offset, like the other files.
49
+ - Releases are published from a tag only after CI is green for that commit and `test:package` passes, with a pinned npm
50
+ version.
51
+
3
52
  ## 0.8.1
4
53
 
5
54
  - Effect counts every task recorded as `incidental` again, including tasks recorded by earlier versions, where
package/README.md CHANGED
@@ -17,9 +17,10 @@ what will break. Findings from audits and code reviews become tasks too, instead
17
17
  - **Context kept, tokens saved.** A task stores the context the agent needs to pick it up later. On a re-check the
18
18
  agent gets the task's summary, the current code around its line and the diff since the last check — usually
19
19
  enough to decide without re-reading the codebase.
20
- - **Stays current by itself.** A Stop hook asks the agent to re-check tasks whose code changed. The agent closes
21
- fixed ones with the commit as evidence; line numbers follow the code as it moves. Closed tasks are cleaned up
22
- after 7 days.
20
+ - **Stays current by itself.** A Stop hook asks the agent to re-check tasks whose own lines changed since the last
21
+ check — not an edit elsewhere in the file, and not a file that is merely absent from the current branch. The agent
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
24
  - **Local and autonomous.** Plain files in `~/backlog`, no account, no cloud. The agent drives it through the skill,
24
25
  so you don't have to touch the CLI — though you can.
25
26
  - **Charts when you want them.** Start the local web app to browse and triage tasks and follow the metrics: debt by
@@ -158,9 +159,9 @@ The retention window isn't configurable.
158
159
  | `backlog category <ID> <category\|none>` | Changes the category or clears it |
159
160
  | `backlog epic <ID> [<ID> …] --to <epic ID\|none>` | Moves tasks into an epic or takes them out of it |
160
161
  | `backlog check [--changed] [--project id \| --all-projects] [--json]` | Fixes dangling links and completed epics, finds tasks that are due for a re-check |
161
- | `backlog close <ID> --as fixed\|obsolete\|duplicate --reason <evidence> [--duplicate-of ID]` | Closes a task with a reason; `fixed` only with a commit hash from the project's repository |
162
+ | `backlog close <ID> --as fixed\|obsolete\|duplicate --reason <evidence> [--duplicate-of ID]` | Closes a task with a reason; `fixed` only with a commit hash from the project's repository; on a task closed with `status <ID> done`, `fixed` attaches the commit without reopening the task |
162
163
  | `backlog verify <ID> [<ID> …] [--source file:line]` | Marks tasks as still relevant and remembers the code snippet |
163
- | `backlog prune [--project id \| --all-projects] [--apply]` | Low-priority tasks older than 30 days; `--apply` cancels them |
164
+ | `backlog prune [--project id \| --all-projects] [--apply]` | Low-priority tasks older than 30 days; `--apply` cancels them; `--all-projects` covers active projects only |
164
165
  | `backlog stats [--project id \| --all-projects] [--json]` | Statistics summary and alerts |
165
166
  | `backlog project list \| status <id> active\|inactive \| delete <id> --confirm <id>` | Project activity and deleting a project with its tasks |
166
167
  | `backlog hook stop [--agent claude\|codex\|cursor]` | The Stop hook of Claude Code, Codex, or Cursor: asks the agent to re-check tasks whose code changed |
@@ -188,6 +189,10 @@ requires typing the project id to confirm.
188
189
  - When the agent finishes a turn in a repository where open tasks reference code that changed, the Stop
189
190
  hook asks it to re-check those tasks. On request ("check the backlog"), it goes through the whole
190
191
  project.
192
+ - Two open tasks are a possible duplicate — the check offers the pair, and `backlog new` refuses a new task
193
+ (code 3) — when their `source` is in the same file and their titles share at least three words (every
194
+ word of a short title), or when the titles are nearly the same, short words included. Shared words
195
+ alone don't count: review-nit groups and tasks from one area of the code share them all the time.
191
196
  - The agent closes a task that's no longer needed with `backlog close` and evidence; in the UI such tasks
192
197
  are visible under the "Closed by agent" link, and can be reopened.
193
198
  - An epic whose tasks are all closed is closed by the server on its own, at startup and once an hour; such
@@ -207,7 +212,8 @@ it when it's there — read-only:
207
212
  Stop hook and `backlog check` then flag the task only when that symbol changed, not when any line of the file
208
213
  moved — fewer needless re-checks. Without the graph the check falls back to the task's source lines, then to the
209
214
  whole file.
210
- - **Duplicates by symbol.** Two tasks pointing into the same function are offered as possible duplicates.
215
+ - **Duplicates by symbol.** A duplicate pair whose tasks point into the same function is marked as found by
216
+ symbol, so the Quality tab shows how often that signal is right.
211
217
  - **Graph state in the web UI.** The sidebar warns when a project has no graph, when it's stale, or when it can't be
212
218
  read (built by a different version or for a different path), with the command that fixes it.
213
219
  - **Check precision.** The Quality tab in statistics shows how often each check method (by symbol, by source lines,
package/README.ru.md CHANGED
@@ -17,8 +17,10 @@
17
17
  - **Контекст сохранён, токены сэкономлены.** Задача хранит контекст, который нужен агенту, чтобы потом взять её
18
18
  в работу. При перепроверке агент получает суть задачи, текущий код вокруг её строки и изменения с прошлой
19
19
  проверки — обычно этого хватает, чтобы решить, не перечитывая кодовую базу.
20
- - **Сам следит за актуальностью.** Stop-хук просит агента перепроверить задачи, чей код изменился. Агент закрывает
21
- исправленные со ссылкой на коммит, номера строк следуют за кодом. Закрытые задачи удаляются через 7 дней.
20
+ - **Сам следит за актуальностью.** Stop-хук просит агента перепроверить задачи, чьи строки изменились с прошлой
21
+ проверки, — не правку в другом месте файла и не файл, которого просто нет в текущей ветке. Агент закрывает
22
+ исправленные со ссылкой на коммит, номера строк и переименованные файлы следуют за кодом. Закрытые задачи
23
+ удаляются через 7 дней.
22
24
  - **Локальный и автономный.** Обычные файлы в `~/backlog`, без аккаунта и облака. Агент работает с ним через
23
25
  скилл, так что трогать CLI не обязательно — но можно.
24
26
  - **Графики — когда нужны.** Поднимите локальное веб-приложение, чтобы просматривать и разбирать задачи и следить
@@ -156,9 +158,9 @@
156
158
  | `backlog category <ID> <категория\|none>` | Меняет категорию или убирает её |
157
159
  | `backlog epic <ID> [<ID> …] --to <ID эпика\|none>` | Переносит задачи в эпик или вынимает из него |
158
160
  | `backlog check [--changed] [--project id \| --all-projects] [--json]` | Чинит висячие ссылки и завершённые эпики, находит задачи, которые пора перепроверить |
159
- | `backlog close <ID> --as fixed\|obsolete\|duplicate --reason <улика> [--duplicate-of ID]` | Закрывает задачу с причиной; `fixed` — только с хешем коммита из репозитория проекта |
161
+ | `backlog close <ID> --as fixed\|obsolete\|duplicate --reason <улика> [--duplicate-of ID]` | Закрывает задачу с причиной; `fixed` — только с хешем коммита из репозитория проекта; задаче, закрытой через `status <ID> done`, `fixed` привязывает коммит, не открывая её снова |
160
162
  | `backlog verify <ID> [<ID> …] [--source файл:строка]` | Отмечает, что задачи ещё актуальны, и запоминает фрагмент кода |
161
- | `backlog prune [--project id \| --all-projects] [--apply]` | Задачи с низким приоритетом старше 30 дней; `--apply` отменяет их |
163
+ | `backlog prune [--project id \| --all-projects] [--apply]` | Задачи с низким приоритетом старше 30 дней; `--apply` отменяет их; `--all-projects` — только активные проекты |
162
164
  | `backlog stats [--project id \| --all-projects] [--json]` | Сводка статистики и тревоги |
163
165
  | `backlog project list \| status <id> active\|inactive \| delete <id> --confirm <id>` | Активность проектов и удаление проекта вместе с задачами |
164
166
  | `backlog hook stop [--agent claude\|codex\|cursor]` | Хук Stop для Claude Code, Codex или Cursor: просит агента перепроверить задачи, чей код изменился |
@@ -184,6 +186,10 @@
184
186
 
185
187
  - Агент заканчивает ответ в репозитории, где открытые задачи ссылаются на изменившийся код, — хук Stop
186
188
  просит его перепроверить эти задачи. По просьбе «проверь беклог» он проходит весь проект.
189
+ - Две открытые задачи — возможный дубль (проверка предлагает пару, `backlog new` отказывает с кодом 3),
190
+ когда `source` у них в одном файле и в заголовках не меньше трёх общих слов (все слова короткого
191
+ заголовка) или когда заголовки почти одинаковы, включая короткие слова. Одних общих слов мало: их всё
192
+ время делят группы «Мелочи ревью» и задачи одной части кода.
187
193
  - Ненужную задачу агент закрывает через `backlog close` с уликой; в интерфейсе такие задачи видны по
188
194
  ссылке «Закрыты агентом», их можно вернуть в беклог.
189
195
  - Эпик, все задачи которого закрыты, сервер при старте и раз в час закрывает сам; такие эпики тоже видны
@@ -201,7 +207,8 @@
201
207
  стоит. Stop-хук и `backlog check` предлагают перепроверить задачу, только когда изменился этот символ, а не
202
208
  любая строка файла, — лишних перепроверок меньше. Без графа проверка опирается на строки `source`, затем на весь
203
209
  файл.
204
- - **Дубли по символу.** Две задачи, указывающие в одну функцию, предлагаются как возможные дубли.
210
+ - **Дубли по символу.** Пара-дубль, задачи которой указывают в одну функцию, помечается как найденная по
211
+ символу — вкладка «Качество» показывает, как часто этот признак прав.
205
212
  - **Состояние графа в вебе.** Боковая панель предупреждает, если у проекта нет графа, он устарел или не читается
206
213
  (собран другой версией или для другого пути), и подсказывает команду, которая это исправит.
207
214
  - **Точность проверки.** Вкладка «Качество» в статистике показывает, как часто был прав каждый способ проверки: по