p-backlog 0.8.0 → 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.
- package/CHANGELOG.md +55 -0
- package/README.md +13 -7
- package/README.ru.md +13 -6
- package/dist/cli.js +1887 -1634
- package/dist/web/assets/CodeTab-DvFAuZ83.js +1 -0
- package/dist/web/assets/CostTab-1Rdp5nwz.js +1 -0
- package/dist/web/assets/EffectTab-8aARbrne.js +1 -0
- package/dist/web/assets/Figure-CCcsLfB5.js +1 -0
- package/dist/web/assets/OverviewTab-DvBBhF85.js +1 -0
- package/dist/web/assets/QualityTab-TBeOxc7b.js +1 -0
- package/dist/web/assets/ShareBar-C_mQiINj.js +1 -0
- package/dist/web/assets/StatsPage-B5K4_4Wb.css +1 -0
- package/dist/web/assets/StatsPage-DtpkiP-4.js +1 -0
- package/dist/web/assets/StatsPage.module-DrfzjXrP.js +1 -0
- package/dist/web/assets/StatsTabState-BmkJh8eP.js +1 -0
- package/dist/web/assets/StatsTable-B9Rm04sJ.css +1 -0
- package/dist/web/assets/{StatsTable-Cgps5a7q.js → StatsTable-C5qAHApf.js} +1 -1
- package/dist/web/assets/UnavailableRepos-ctosBCJf.js +1 -0
- package/dist/web/assets/cx-DvgIdypj.js +55 -0
- package/dist/web/assets/index-NfqY6Vxd.js +2 -0
- package/dist/web/assets/start-BG-1CZwx.css +1 -0
- package/dist/web/assets/start-jnWYnN9h.js +41 -0
- package/dist/web/assets/{use-grain-panel-BGlDN-LS.js → use-grain-panel-DRZkQL7T.js} +3 -3
- package/dist/web/assets/{value-dot-CtJcBhqS.js → value-dot-BJdkleLN.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +5 -3
- package/skill/backlog/SKILL.md +20 -14
- package/skill/backlog-en/SKILL.md +22 -15
- package/dist/web/assets/CodeTab-Bxau23jK.js +0 -1
- package/dist/web/assets/CostTab-DAg9JKi5.js +0 -1
- package/dist/web/assets/EffectTab-DOyEtT1Y.js +0 -1
- package/dist/web/assets/Figure-C7wdv_hC.js +0 -1
- package/dist/web/assets/OverviewTab-O4vRhy4D.js +0 -1
- package/dist/web/assets/QualityTab-BwxhR0Ug.js +0 -1
- package/dist/web/assets/ShareBar-r80rkujo.js +0 -1
- package/dist/web/assets/StatsPage-CHUVlZXv.css +0 -1
- package/dist/web/assets/StatsPage-DxV4wLv5.js +0 -1
- package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +0 -1
- package/dist/web/assets/StatsTabState-UUAoUbji.js +0 -1
- package/dist/web/assets/StatsTable-Z9x-Xaha.css +0 -1
- package/dist/web/assets/UnavailableRepos-Dzu7etxJ.js +0 -1
- package/dist/web/assets/cx-D_DWAtWj.js +0 -55
- package/dist/web/assets/index-B94Cizd8.js +0 -2
- package/dist/web/assets/start-B1ddmC3G.js +0 -41
- package/dist/web/assets/start-C3ACBbJw.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
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
|
+
|
|
52
|
+
## 0.8.1
|
|
53
|
+
|
|
54
|
+
- Effect counts every task recorded as `incidental` again, including tasks recorded by earlier versions, where
|
|
55
|
+
`incidental` was the default. Without such tasks the tab explains why there is nothing to measure, and the share of
|
|
56
|
+
unrelated edits shows "—" instead of 0 %.
|
|
57
|
+
|
|
3
58
|
## 0.8.0
|
|
4
59
|
|
|
5
60
|
- The task list no longer says "No tasks yet" while the project list is loading or after it failed to load: it shows
|
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
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
@@ -148,7 +149,7 @@ The retention window isn't configurable.
|
|
|
148
149
|
|
|
149
150
|
| Command | What it does |
|
|
150
151
|
|---|---|
|
|
151
|
-
| `backlog new --title <t> --category <category> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found incidental\|review\|manual] [--source file:line] [--epic ID] [--blocked-by ID,…] [--related ID,…] [--project id] [--force] [--json]` | Creates a task, the description is read from stdin; a similar open task refuses the command (code 3), `--force` creates it anyway; `--found`: `incidental` — the agent noticed it in passing (only these
|
|
152
|
+
| `backlog new --title <t> --category <category> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found incidental\|review\|manual] [--source file:line] [--epic ID] [--blocked-by ID,…] [--related ID,…] [--project id] [--force] [--json]` | Creates a task, the description is read from stdin; a similar open task refuses the command (code 3), `--force` creates it anyway; `--found`: `incidental` — the agent noticed it in passing (only these count in Effect), `review` — a review finding, `manual` — recorded at the user's request (the default) |
|
|
152
153
|
| `backlog list [--query q] [--status s,…] [--tag t,…] [--project id \| --all-projects] [--json]` | Lists tasks, by default the open tasks of the current project |
|
|
153
154
|
| `backlog show <ID> [--json]` | The full task: links, blockers, warnings |
|
|
154
155
|
| `backlog take <ID> [--force] [--json]` \| `--next [--project id] [--json]` | Takes a task into progress, checking blockers |
|
|
@@ -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.**
|
|
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
|
-
|
|
20
|
+
- **Сам следит за актуальностью.** Stop-хук просит агента перепроверить задачи, чьи строки изменились с прошлой
|
|
21
|
+
проверки, — не правку в другом месте файла и не файл, которого просто нет в текущей ветке. Агент закрывает
|
|
22
|
+
исправленные со ссылкой на коммит, номера строк и переименованные файлы следуют за кодом. Закрытые задачи
|
|
23
|
+
удаляются через 7 дней.
|
|
22
24
|
- **Локальный и автономный.** Обычные файлы в `~/backlog`, без аккаунта и облака. Агент работает с ним через
|
|
23
25
|
скилл, так что трогать CLI не обязательно — но можно.
|
|
24
26
|
- **Графики — когда нужны.** Поднимите локальное веб-приложение, чтобы просматривать и разбирать задачи и следить
|
|
@@ -146,7 +148,7 @@
|
|
|
146
148
|
|
|
147
149
|
| Команда | Что делает |
|
|
148
150
|
|---|---|
|
|
149
|
-
| `backlog new --title <t> --category <категория> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found incidental\|review\|manual] [--source файл:строка] [--epic ID] [--blocked-by ID,…] [--related ID,…] [--project id] [--force] [--json]` | Создаёт задачу, описание читается из stdin; похожая открытая задача — отказ (код 3), `--force` создаёт всё равно; `--found`: `incidental` — агент заметил попутно (в «Эффекте» считаются только
|
|
151
|
+
| `backlog new --title <t> --category <категория> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found incidental\|review\|manual] [--source файл:строка] [--epic ID] [--blocked-by ID,…] [--related ID,…] [--project id] [--force] [--json]` | Создаёт задачу, описание читается из stdin; похожая открытая задача — отказ (код 3), `--force` создаёт всё равно; `--found`: `incidental` — агент заметил попутно (в «Эффекте» считаются только такие), `review` — находка ревью, `manual` — заведена по просьбе пользователя (по умолчанию) |
|
|
150
152
|
| `backlog list [--query q] [--status s,…] [--tag t,…] [--project id \| --all-projects] [--json]` | Список задач, по умолчанию открытые задачи текущего проекта |
|
|
151
153
|
| `backlog show <ID> [--json]` | Задача целиком: связи, блокеры, предупреждения |
|
|
152
154
|
| `backlog take <ID> [--force] [--json]` \| `--next [--project id] [--json]` | Берёт задачу в работу, проверяя блокеры |
|
|
@@ -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
|
- **Точность проверки.** Вкладка «Качество» в статистике показывает, как часто был прав каждый способ проверки: по
|