p-backlog 0.6.0 → 0.7.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 (39) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +18 -1
  3. package/README.ru.md +18 -1
  4. package/dist/cli.js +3204 -2877
  5. package/dist/web/assets/CodeTab-BNdgVA4O.js +1 -0
  6. package/dist/web/assets/CostTab-byG0nNfW.js +1 -0
  7. package/dist/web/assets/EffectTab-BDNvNZ6b.js +1 -0
  8. package/dist/web/assets/Figure-B6BdHhdB.js +1 -0
  9. package/dist/web/assets/OverviewTab-B0WLB3Wq.js +1 -0
  10. package/dist/web/assets/QualityTab-hPHcEsU0.js +1 -0
  11. package/dist/web/assets/{StatsPage-rJH3k8Ye.js → StatsPage-B1Efaaf1.js} +1 -1
  12. package/dist/web/assets/StatsPage-CHUVlZXv.css +1 -0
  13. package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +1 -0
  14. package/dist/web/assets/StatsTabState-BDyYD7xm.js +1 -0
  15. package/dist/web/assets/StatsTabState-CUDEyUDu.css +1 -0
  16. package/dist/web/assets/{StatsTable-B0tbx68M.js → StatsTable-mHuc0DZZ.js} +1 -1
  17. package/dist/web/assets/UnavailableRepos-ZDgas38Z.js +1 -0
  18. package/dist/web/assets/{cx-DDl6tKXq.js → cx-BvRwYddw.js} +4 -4
  19. package/dist/web/assets/{index-C8xqRmo-.js → index-CfXJpXd1.js} +2 -2
  20. package/dist/web/assets/start-CeXS4ZL5.js +38 -0
  21. package/dist/web/assets/use-grain-series-DaD0MRjw.js +55 -0
  22. package/dist/web/assets/{value-dot-B7BsbWBD.js → value-dot-DmRpa1rW.js} +1 -1
  23. package/dist/web/index.html +1 -1
  24. package/package.json +1 -1
  25. package/skill/backlog/SKILL.md +4 -3
  26. package/skill/backlog-en/SKILL.md +5 -3
  27. package/dist/web/assets/CodeTab-D3I5lIJJ.js +0 -1
  28. package/dist/web/assets/CostTab-8f2AC5ER.js +0 -1
  29. package/dist/web/assets/EffectTab-1jObLK9a.js +0 -1
  30. package/dist/web/assets/Figure-BHBCd7Dt.js +0 -1
  31. package/dist/web/assets/OverviewTab-DjNyxzJq.js +0 -1
  32. package/dist/web/assets/QualityTab-W2NdYBhI.js +0 -1
  33. package/dist/web/assets/StatsPage-gITQDSrz.css +0 -1
  34. package/dist/web/assets/StatsPage.module-D8dvB8Va.js +0 -1
  35. package/dist/web/assets/StatsTabState-B6PD1sC0.css +0 -1
  36. package/dist/web/assets/StatsTabState-BoimPoKm.js +0 -1
  37. package/dist/web/assets/UnavailableRepos-SpC6Dzwu.js +0 -1
  38. package/dist/web/assets/start-YlC0KTe5.js +0 -38
  39. package/dist/web/assets/use-grain-series-Bx70IZvb.js +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Project journals are compacted once a day, by the service and after CLI commands other than the agent hook. Removed:
6
+ events of tasks whose file no longer exists and whose last event is older than 13 weeks; check events (`candidate`,
7
+ `candidate-gone`, `candidate-filtered`, `verified`) older than 13 weeks; unreadable journal lines written before the
8
+ first event of the last 13 weeks. Kept: the whole history of tasks whose file exists, the event that opened a
9
+ still-open check episode and the earliest event. Statistics reports stay the same after compaction; only the
10
+ journal's own line counters (task count, unreadable and unknown lines) change.
11
+ - Effect splits a commit shared by several fixes, and takes the samples for the pending estimate, only from fixes
12
+ closed within the last 13 weeks, so compaction cannot change them. Numbers on the Effect tab may shift slightly after
13
+ updating.
14
+ - The graph filter records a filtered candidate once per check episode instead of on every check. "Filtered out" in
15
+ 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
16
+ the 12-week window.
17
+ - The usage cache drops usage older than 13 weeks; "By model" now covers the last 30 days. The Cost tab says since
18
+ which date usage data exists when it starts inside the 12-week window.
19
+ - 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
20
+ grows with every agent turn.
21
+ - 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
22
+ `p-backlog.log.old` when the service starts (at sign-in or `backlog service install`).
23
+ - Without the service, closed tasks older than 7 days are deleted after a CLI command other than the agent hook, at
24
+ most once a day, and the command warns about tasks it could not update and files that keep epics open. The service
25
+ marks its own hourly sweep, so while it runs the CLI does not repeat the sweep. The service's cleanup steps (closed
26
+ tasks, journal compaction, run log, service log) no longer stop each other when one fails.
27
+ - Every statistics panel shows its period with dates; the Effect tab says "over 12 weeks (since adoption, if later)".
28
+ The "90 days" code churn caption spans exactly 90 calendar days. The Effect chart's bars are labelled "on topic in
29
+ pull requests": pull request lines without the fixes of backlog tasks; "in pull requests" everywhere else means all
30
+ lines of the commits.
31
+ - Effect counts only tasks the agent explicitly recorded with `--found incidental`. Review and audit findings, tasks
32
+ recorded at the user's request and every task recorded before this version (earlier versions wrote `incidental` by
33
+ default, so those cannot be told apart) are no longer counted as a gain; they stay on the Quality tab under Origin.
34
+ `backlog new` now defaults to `--found manual`, and the skill tells the agent to pass `--found incidental` for
35
+ problems it noticed itself. Effect numbers drop after updating until new tasks are recorded this way.
36
+ - After updating, reinstall the service (`backlog service install`) so the running server serves the new API.
37
+
3
38
  ## 0.6.0
4
39
 
5
40
  - 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\|incidental] [--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 review` marks a review finding, the default is `incidental` (noticed in passing) |
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 |
@@ -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\|incidental] [--source файл:строка] [--epic ID] [--blocked-by ID,…] [--related ID,…] [--project id] [--force] [--json]` | Создаёт задачу, описание читается из stdin; похожая открытая задача — отказ (код 3), `--force` создаёт всё равно; `--found review` — находка ревью, по умолчанию `incidental` (замечено попутно) |
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]` | Берёт задачу в работу, проверяя блокеры |
@@ -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