p-backlog 0.6.0 → 0.8.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 +62 -0
- package/README.md +20 -3
- package/README.ru.md +20 -3
- package/dist/cli.js +4411 -3903
- package/dist/web/assets/CodeTab-Bxau23jK.js +1 -0
- package/dist/web/assets/CostTab-DAg9JKi5.js +1 -0
- package/dist/web/assets/EffectTab-DOyEtT1Y.js +1 -0
- package/dist/web/assets/Figure-C7wdv_hC.js +1 -0
- package/dist/web/assets/OverviewTab-O4vRhy4D.js +1 -0
- package/dist/web/assets/QualityTab-BwxhR0Ug.js +1 -0
- package/dist/web/assets/ShareBar-r80rkujo.js +1 -0
- package/dist/web/assets/StatsPage-CHUVlZXv.css +1 -0
- package/dist/web/assets/StatsPage-DxV4wLv5.js +1 -0
- package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +1 -0
- package/dist/web/assets/StatsTabState-CUDEyUDu.css +1 -0
- package/dist/web/assets/StatsTabState-UUAoUbji.js +1 -0
- package/dist/web/assets/StatsTable-Cgps5a7q.js +1 -0
- package/dist/web/assets/UnavailableRepos-Dzu7etxJ.js +1 -0
- package/dist/web/assets/cx-D_DWAtWj.js +55 -0
- package/dist/web/assets/index-B94Cizd8.js +2 -0
- package/dist/web/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/dist/web/assets/start-B1ddmC3G.js +41 -0
- package/dist/web/assets/start-C3ACBbJw.css +1 -0
- package/dist/web/assets/use-grain-panel-BGlDN-LS.js +55 -0
- package/dist/web/assets/value-dot-CtJcBhqS.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/skill/backlog/SKILL.md +4 -3
- package/skill/backlog-en/SKILL.md +5 -3
- package/dist/web/assets/CodeTab-D3I5lIJJ.js +0 -1
- package/dist/web/assets/CostTab-8f2AC5ER.js +0 -1
- package/dist/web/assets/EffectTab-1jObLK9a.js +0 -1
- package/dist/web/assets/Figure-BHBCd7Dt.js +0 -1
- package/dist/web/assets/OverviewTab-DjNyxzJq.js +0 -1
- package/dist/web/assets/QualityTab-W2NdYBhI.js +0 -1
- package/dist/web/assets/StatsPage-gITQDSrz.css +0 -1
- package/dist/web/assets/StatsPage-rJH3k8Ye.js +0 -1
- package/dist/web/assets/StatsPage.module-D8dvB8Va.js +0 -1
- package/dist/web/assets/StatsTabState-B6PD1sC0.css +0 -1
- package/dist/web/assets/StatsTabState-BoimPoKm.js +0 -1
- package/dist/web/assets/StatsTable-B0tbx68M.js +0 -1
- package/dist/web/assets/UnavailableRepos-SpC6Dzwu.js +0 -1
- package/dist/web/assets/cx-DDl6tKXq.js +0 -58
- package/dist/web/assets/index-C8xqRmo-.js +0 -2
- package/dist/web/assets/start-Cy19NMke.css +0 -1
- package/dist/web/assets/start-YlC0KTe5.js +0 -38
- package/dist/web/assets/use-grain-series-Bx70IZvb.js +0 -55
- package/dist/web/assets/value-dot-B7BsbWBD.js +0 -1
- /package/dist/web/assets/{use-grain-series-tQC8-pw2.css → use-grain-panel-tQC8-pw2.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
- The task list no longer says "No tasks yet" while the project list is loading or after it failed to load: it shows
|
|
6
|
+
loading, or the error with Retry — in the list and in the sidebar.
|
|
7
|
+
- A task file locked by another process no longer aborts the whole closed-task sweep or `backlog check`: the task is
|
|
8
|
+
skipped as busy and the rest continue. CLI commands that change a task report the lock and exit with code 4.
|
|
9
|
+
- A bulk action continues when one task fails to write: that task is reported as failed (new skip reason `failed` in
|
|
10
|
+
`POST /api/tasks/batch`), the others are changed and can be undone.
|
|
11
|
+
- `backlog check` reports failed anchor updates as `fix-failed` problems (exit code 5) and warns when a project journal
|
|
12
|
+
cannot be read instead of silently ignoring branch origins.
|
|
13
|
+
- `backlog take --next` exits with code 2 ("nothing to take") instead of 3 when the only tasks left are already in
|
|
14
|
+
progress.
|
|
15
|
+
- Effect also counts fixes closed 12–13 weeks ago, as the 13-week retention window always intended; numbers may shift
|
|
16
|
+
slightly.
|
|
17
|
+
- The service's report cache drops expired reports, so its memory no longer grows with every day of uptime; the code
|
|
18
|
+
cache keeps a hash of what it wrote instead of a full copy.
|
|
19
|
+
- The code-graph state on the Quality tab refreshes as fast as in the project list; a failed task edit no longer drops
|
|
20
|
+
cached statistics; an epic reopened by the service no longer triggers a second full reload in open tabs.
|
|
21
|
+
- Two agent hooks finishing at the same time no longer lose each other's "signal shown" marks.
|
|
22
|
+
- New task numbers ignore directories and files without `.md` named like a task ID.
|
|
23
|
+
- A repository in a directory whose name starts with `..` (for example `~/..cfg/repo`) is recognized as inside the home
|
|
24
|
+
directory.
|
|
25
|
+
- An unreadable `project.md` is reported as an error instead of "project not found".
|
|
26
|
+
- `backlog stats` on Linux no longer runs `systemctl` just to print the web address.
|
|
27
|
+
- Tables on the Quality tab group digits like the rest of the statistics; the memory chart caption says "over 1 hour".
|
|
28
|
+
- The web build fails if a Node-only module ends up in the browser bundle.
|
|
29
|
+
|
|
30
|
+
## 0.7.0
|
|
31
|
+
|
|
32
|
+
- Project journals are compacted once a day, by the service and after CLI commands other than the agent hook. Removed:
|
|
33
|
+
events of tasks whose file no longer exists and whose last event is older than 13 weeks; check events (`candidate`,
|
|
34
|
+
`candidate-gone`, `candidate-filtered`, `verified`) older than 13 weeks; unreadable journal lines written before the
|
|
35
|
+
first event of the last 13 weeks. Kept: the whole history of tasks whose file exists, the event that opened a
|
|
36
|
+
still-open check episode and the earliest event. Statistics reports stay the same after compaction; only the
|
|
37
|
+
journal's own line counters (task count, unreadable and unknown lines) change.
|
|
38
|
+
- Effect splits a commit shared by several fixes, and takes the samples for the pending estimate, only from fixes
|
|
39
|
+
closed within the last 13 weeks, so compaction cannot change them. Numbers on the Effect tab may shift slightly after
|
|
40
|
+
updating.
|
|
41
|
+
- The graph filter records a filtered candidate once per check episode instead of on every check. "Filtered out" in
|
|
42
|
+
the Code graph panel of the Quality tab now counts episodes; repeats recorded before the update stay in the count until they age out of
|
|
43
|
+
the 12-week window.
|
|
44
|
+
- The usage cache drops usage older than 13 weeks; "By model" now covers the last 30 days. The Cost tab says since
|
|
45
|
+
which date usage data exists when it starts inside the 12-week window.
|
|
46
|
+
- The CLI run log is kept for 13 weeks (was 12), and the agent hook trims it too, so without the service it no longer
|
|
47
|
+
grows with every agent turn.
|
|
48
|
+
- On macOS the service log is trimmed to its last 256 KB once it exceeds 1 MB. On Windows a log over 1 MB is moved to
|
|
49
|
+
`p-backlog.log.old` when the service starts (at sign-in or `backlog service install`).
|
|
50
|
+
- Without the service, closed tasks older than 7 days are deleted after a CLI command other than the agent hook, at
|
|
51
|
+
most once a day, and the command warns about tasks it could not update and files that keep epics open. The service
|
|
52
|
+
marks its own hourly sweep, so while it runs the CLI does not repeat the sweep. The service's cleanup steps (closed
|
|
53
|
+
tasks, journal compaction, run log, service log) no longer stop each other when one fails.
|
|
54
|
+
- Every statistics panel shows its period with dates; the Effect tab says "over 12 weeks (since adoption, if later)".
|
|
55
|
+
The "90 days" code churn caption spans exactly 90 calendar days. The Effect chart's bars are labelled "on topic in
|
|
56
|
+
pull requests": pull request lines without the fixes of backlog tasks; "in pull requests" everywhere else means all
|
|
57
|
+
lines of the commits.
|
|
58
|
+
- Effect counts only tasks the agent explicitly recorded with `--found incidental`. Review and audit findings, tasks
|
|
59
|
+
recorded at the user's request and every task recorded before this version (earlier versions wrote `incidental` by
|
|
60
|
+
default, so those cannot be told apart) are no longer counted as a gain; they stay on the Quality tab under Origin.
|
|
61
|
+
`backlog new` now defaults to `--found manual`, and the skill tells the agent to pass `--found incidental` for
|
|
62
|
+
problems it noticed itself. Effect numbers drop after updating until new tasks are recorded this way.
|
|
63
|
+
- After updating, reinstall the service (`backlog service install`) so the running server serves the new API.
|
|
64
|
+
|
|
3
65
|
## 0.6.0
|
|
4
66
|
|
|
5
67
|
- Statistics on the server read only what was appended to project journals and the CLI run log, keep parsed task
|
package/README.md
CHANGED
|
@@ -130,11 +130,25 @@ directory per project:
|
|
|
130
130
|
The project for the current directory is resolved by the git root and the `repos` field in `project.md`.
|
|
131
131
|
If there's no project yet, `backlog new` creates it.
|
|
132
132
|
|
|
133
|
+
## Data retention
|
|
134
|
+
|
|
135
|
+
| File | Stores | Kept for |
|
|
136
|
+
| --- | --- | --- |
|
|
137
|
+
| 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
|
+
| `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) |
|
|
139
|
+
| `.runs.jsonl` | CLI run log | 13 weeks |
|
|
140
|
+
| `.usage-cache.json` | Claude Code usage parsed from transcripts | 13 weeks |
|
|
141
|
+
| `.code-cache.json` | Cached git history for the Code tab | 90 days |
|
|
142
|
+
| Service log | `launchd` stdout/stderr on macOS, `p-backlog.log` in `%LOCALAPPDATA%` on Windows | macOS: trimmed to the last 256 KB once it exceeds 1 MB. Windows: over 1 MB it is moved to `p-backlog.log.old` when the service starts. Linux: `journald` limits it |
|
|
143
|
+
| `.swept-at`, `.journal-compacted-at` | Timestamp of the last sweep/compaction | Until the next one |
|
|
144
|
+
|
|
145
|
+
The retention window isn't configurable.
|
|
146
|
+
|
|
133
147
|
## CLI commands
|
|
134
148
|
|
|
135
149
|
| Command | What it does |
|
|
136
150
|
|---|---|
|
|
137
|
-
| `backlog new --title <t> --category <category> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found review\|
|
|
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, passed explicitly, count in Effect), `review` — a review finding, `manual` — recorded at the user's request (the default) |
|
|
138
152
|
| `backlog list [--query q] [--status s,…] [--tag t,…] [--project id \| --all-projects] [--json]` | Lists tasks, by default the open tasks of the current project |
|
|
139
153
|
| `backlog show <ID> [--json]` | The full task: links, blockers, warnings |
|
|
140
154
|
| `backlog take <ID> [--force] [--json]` \| `--next [--project id] [--json]` | Takes a task into progress, checking blockers |
|
|
@@ -157,8 +171,8 @@ If there's no project yet, `backlog new` creates it.
|
|
|
157
171
|
| `backlog service install \| uninstall \| status` | Autostarts the web server at login: launchd on macOS, systemd --user on Linux, a Startup-folder script on Windows; `status` shows whether it is installed and responding |
|
|
158
172
|
|
|
159
173
|
Exit codes: `0` success, `1` argument or rule error, `2` not found, `3` refused (the task is closed,
|
|
160
|
-
blocked, or every matching task is blocked), `4` the command failed
|
|
161
|
-
work through.
|
|
174
|
+
blocked, or every matching task is blocked), `4` the command failed (including a task file locked by another process),
|
|
175
|
+
`5` `check` found candidates or task problems to work through.
|
|
162
176
|
|
|
163
177
|
With `--json`, `new`, `show`, and `take` print the same task object (with progress, blockers, and links),
|
|
164
178
|
while `list` and `take --path` print an array of such objects.
|
|
@@ -279,6 +293,9 @@ systemd `Restart=on-failure` do — after a crash, run `backlog service install`
|
|
|
279
293
|
|
|
280
294
|
## Development
|
|
281
295
|
|
|
296
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for how to propose changes, [SECURITY.md](SECURITY.md) for reporting
|
|
297
|
+
vulnerabilities, and the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
298
|
+
|
|
282
299
|
```bash
|
|
283
300
|
npm install
|
|
284
301
|
npm run build
|
package/README.ru.md
CHANGED
|
@@ -128,11 +128,25 @@
|
|
|
128
128
|
Проект для текущей директории определяется по git-корню и полю `repos` в `project.md`. Если проекта нет,
|
|
129
129
|
`backlog new` создаёт его сам.
|
|
130
130
|
|
|
131
|
+
## Хранение данных
|
|
132
|
+
|
|
133
|
+
| Файл | Что хранит | Сколько хранится |
|
|
134
|
+
| --- | --- | --- |
|
|
135
|
+
| Файлы задач | По файлу на задачу, включая закрытые | Закрытые — 7 дней после закрытия, затем удаляются (служба — раз в час; без службы — раз в сутки, после команды CLI, кроме хука агента) |
|
|
136
|
+
| `journal.jsonl` | История событий задач и проверок по проекту | История существующих задач — целиком; остальные события — 13 недель (уплотняется раз в сутки, службой и после команд CLI, кроме хука агента) |
|
|
137
|
+
| `.runs.jsonl` | Журнал запусков CLI | 13 недель |
|
|
138
|
+
| `.usage-cache.json` | Расход Claude Code, разобранный из транскриптов | 13 недель |
|
|
139
|
+
| `.code-cache.json` | Кэш истории git для вкладки «Код» | 90 дней |
|
|
140
|
+
| Лог службы | stdout/stderr `launchd` на macOS, `p-backlog.log` в `%LOCALAPPDATA%` на Windows | macOS: обрезается до последних 256 КБ, когда превышает 1 МБ. Windows: больше 1 МБ — при старте службы переносится в `p-backlog.log.old`. Linux: размер ограничивает `journald` |
|
|
141
|
+
| `.swept-at`, `.journal-compacted-at` | Отметка времени последней уборки/уплотнения | До следующей |
|
|
142
|
+
|
|
143
|
+
Окно хранения не настраивается.
|
|
144
|
+
|
|
131
145
|
## Команды CLI
|
|
132
146
|
|
|
133
147
|
| Команда | Что делает |
|
|
134
148
|
|---|---|
|
|
135
|
-
| `backlog new --title <t> --category <категория> [--type task\|epic] [--priority low\|medium\|high\|critical] [--tags a,b] [--found review\|
|
|
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` — агент заметил попутно (в «Эффекте» считаются только такие, указанные явно), `review` — находка ревью, `manual` — заведена по просьбе пользователя (по умолчанию) |
|
|
136
150
|
| `backlog list [--query q] [--status s,…] [--tag t,…] [--project id \| --all-projects] [--json]` | Список задач, по умолчанию открытые задачи текущего проекта |
|
|
137
151
|
| `backlog show <ID> [--json]` | Задача целиком: связи, блокеры, предупреждения |
|
|
138
152
|
| `backlog take <ID> [--force] [--json]` \| `--next [--project id] [--json]` | Берёт задачу в работу, проверяя блокеры |
|
|
@@ -155,8 +169,8 @@
|
|
|
155
169
|
| `backlog service install \| uninstall \| status` | Автозапуск веб-сервера при входе: launchd на macOS, systemd --user на Linux, скрипт в папке «Автозагрузка» на Windows; `status` — установлена ли служба и отвечает ли сервер |
|
|
156
170
|
|
|
157
171
|
Коды выхода: `0` — успех, `1` — ошибка аргументов или правил, `2` — не найдено, `3` — отказ (задача
|
|
158
|
-
закрыта, заблокирована или все подходящие заблокированы), `4` — команда не
|
|
159
|
-
есть кандидаты или проблемы задач, которые надо разобрать.
|
|
172
|
+
закрыта, заблокирована или все подходящие заблокированы), `4` — команда не выполнилась (в том числе файл задачи
|
|
173
|
+
занят другим процессом), `5` — у `check` есть кандидаты или проблемы задач, которые надо разобрать.
|
|
160
174
|
|
|
161
175
|
С `--json` команды `new`, `show` и `take` печатают один и тот же объект задачи (с прогрессом, блокерами и
|
|
162
176
|
связями), а `list` и `take --path` — массив таких объектов.
|
|
@@ -273,6 +287,9 @@ npm uninstall -g p-backlog
|
|
|
273
287
|
|
|
274
288
|
## Разработка
|
|
275
289
|
|
|
290
|
+
Как предложить изменения — в [CONTRIBUTING.md](CONTRIBUTING.md) (на английском), как сообщить об уязвимости — в
|
|
291
|
+
[SECURITY.md](SECURITY.md); правила общения — [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
292
|
+
|
|
276
293
|
```bash
|
|
277
294
|
npm install
|
|
278
295
|
npm run build
|