p-backlog 0.12.2 → 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.
- package/CHANGELOG.md +63 -0
- package/README.md +7 -6
- package/README.ru.md +6 -5
- package/dist/cli.js +1394 -1062
- package/dist/web/assets/CodeTab-BokbzP4a.js +1 -0
- package/dist/web/assets/CostTab-D91_w1H0.js +1 -0
- package/dist/web/assets/EffectTab-CRlWfFF0.js +1 -0
- package/dist/web/assets/Figure-CO87y2TD.js +1 -0
- package/dist/web/assets/OverviewTab-LJh-9xzS.css +1 -0
- package/dist/web/assets/OverviewTab-naYN8aXk.js +1 -0
- package/dist/web/assets/Page-BHZdQQhE.js +59 -0
- package/dist/web/assets/QualityTab-BMfBa6YW.js +1 -0
- package/dist/web/assets/ShareBar-DBiU0f9_.js +1 -0
- package/dist/web/assets/StatsPage-Dr1pco7X.js +1 -0
- package/dist/web/assets/StatsTabState-CePos7h7.js +1 -0
- package/dist/web/assets/{StatsTable-BcgwvoAi.js → StatsTable-CqH14eSD.js} +1 -1
- package/dist/web/assets/UnavailableRepos-BBbuCPNM.js +1 -0
- package/dist/web/assets/index-DpWYLB0A.js +2 -0
- package/dist/web/assets/start-Cw9zPEW-.js +42 -0
- package/dist/web/assets/start-DCkTSXpO.css +1 -0
- package/dist/web/assets/use-grain-panel-BKTkjTK3.js +55 -0
- package/dist/web/assets/web-paths-yWGbLD6t.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/skill/backlog/SKILL.md +5 -2
- package/skill/backlog-en/SKILL.md +4 -2
- package/dist/web/assets/CodeTab-CkeyTQS5.js +0 -1
- package/dist/web/assets/CostTab-ysoB6lpe.js +0 -1
- package/dist/web/assets/EffectTab-BiAZufxv.js +0 -1
- package/dist/web/assets/Figure-BaF9nHCH.js +0 -1
- package/dist/web/assets/OverviewTab-DeoTLTwg.css +0 -1
- package/dist/web/assets/OverviewTab-DufXfiH_.js +0 -1
- package/dist/web/assets/Page-DkyFc9L-.js +0 -59
- package/dist/web/assets/QualityTab-DFAD-2mI.js +0 -1
- package/dist/web/assets/ShareBar-DGwv3w_j.js +0 -1
- package/dist/web/assets/StatsPage-BJj_n426.js +0 -1
- package/dist/web/assets/StatsTabState-ilDGkRnG.js +0 -1
- package/dist/web/assets/UnavailableRepos-7jsmWIpD.js +0 -1
- package/dist/web/assets/index-rkd9D77s.js +0 -2
- package/dist/web/assets/rolldown-runtime-hePW80VL.js +0 -1
- package/dist/web/assets/start-CRCFATfp.css +0 -1
- package/dist/web/assets/start-DiikM5Rg.js +0 -42
- package/dist/web/assets/use-grain-panel-BVC7wAuR.js +0 -55
- package/dist/web/assets/web-paths-BXxhzAwv.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
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
|
+
|
|
3
66
|
## 0.12.2
|
|
4
67
|
|
|
5
68
|
- The board fits the window: each column scrolls on its own, so column headings stay in view and the horizontal
|
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
|
|
202
|
-
|
|
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 дней после
|
|
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, с которым была установлена.
|