p-backlog 0.5.1 → 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.
- package/CHANGELOG.md +48 -0
- package/README.md +22 -1
- package/README.ru.md +23 -1
- package/dist/cli.js +3664 -3024
- package/dist/web/assets/CodeTab-BNdgVA4O.js +1 -0
- package/dist/web/assets/CostTab-byG0nNfW.js +1 -0
- package/dist/web/assets/EffectTab-BDNvNZ6b.js +1 -0
- package/dist/web/assets/Figure-B6BdHhdB.js +1 -0
- package/dist/web/assets/OverviewTab-B0WLB3Wq.js +1 -0
- package/dist/web/assets/QualityTab-hPHcEsU0.js +1 -0
- package/dist/web/assets/{StatsPage-rJH3k8Ye.js → StatsPage-B1Efaaf1.js} +1 -1
- package/dist/web/assets/StatsPage-CHUVlZXv.css +1 -0
- package/dist/web/assets/StatsPage.module-DxtnhZOJ.js +1 -0
- package/dist/web/assets/StatsTabState-BDyYD7xm.js +1 -0
- package/dist/web/assets/StatsTabState-CUDEyUDu.css +1 -0
- package/dist/web/assets/{StatsTable-B0tbx68M.js → StatsTable-mHuc0DZZ.js} +1 -1
- package/dist/web/assets/UnavailableRepos-ZDgas38Z.js +1 -0
- package/dist/web/assets/{cx-DDl6tKXq.js → cx-BvRwYddw.js} +4 -4
- package/dist/web/assets/{index-C8xqRmo-.js → index-CfXJpXd1.js} +2 -2
- package/dist/web/assets/start-CeXS4ZL5.js +38 -0
- package/dist/web/assets/use-grain-series-DaD0MRjw.js +55 -0
- package/dist/web/assets/{value-dot-B7BsbWBD.js → value-dot-DmRpa1rW.js} +1 -1
- 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.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/UnavailableRepos-SpC6Dzwu.js +0 -1
- package/dist/web/assets/start-YlC0KTe5.js +0 -38
- package/dist/web/assets/use-grain-series-Bx70IZvb.js +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
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
|
+
|
|
38
|
+
## 0.6.0
|
|
39
|
+
|
|
40
|
+
- Statistics on the server read only what was appended to project journals and the CLI run log, keep parsed task
|
|
41
|
+
histories between requests, and rescan git only for new commits (a new day no longer rescans the 90-day window, and
|
|
42
|
+
if reading the main branch's log fails, the repository is shown as unavailable for that refresh instead of silently
|
|
43
|
+
showing no changes); a change in one project no longer drops the cached reports of the others.
|
|
44
|
+
- The Code tab's commit counts now also include commits of merged branches that git history simplification used to
|
|
45
|
+
skip (a merge tree-same with a parent: a change and its revert, `merge -s ours`, a change already cherry-picked) —
|
|
46
|
+
on ordinary histories nothing changes.
|
|
47
|
+
- The code cache file format changed, so the first run after this update rescans git once.
|
|
48
|
+
- An event appended to a project journal or the CLI run log no longer merges with the last line when that line lacks
|
|
49
|
+
a trailing newline (a hand edit, an interrupted write): both events stay readable.
|
|
50
|
+
|
|
3
51
|
## 0.5.1
|
|
4
52
|
|
|
5
53
|
- Every statistics chart (debt, created, check precision, effect, usage) has its own "week / day" toggle: 12 weeks or
|
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 |
|
|
@@ -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
|
|
@@ -309,3 +326,7 @@ To try a build the way a published package would install, without publishing it:
|
|
|
309
326
|
```bash
|
|
310
327
|
npm pack && npm i -g ./p-backlog-0.2.0.tgz
|
|
311
328
|
```
|
|
329
|
+
|
|
330
|
+
Releases are published to npm by the `Release` GitHub Actions workflow through npm Trusted Publishing: bump the
|
|
331
|
+
version and the CHANGELOG, run `npm run plugins`, commit, push, then push the tag `v<version>` — the workflow checks that
|
|
332
|
+
the tag matches `package.json`, runs the checks and publishes with provenance. No npm token is stored anywhere.
|
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]` | Берёт задачу в работу, проверяя блокеры |
|
|
@@ -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
|
|
@@ -303,3 +320,8 @@ npm run screenshots # скриншоты для README на дем
|
|
|
303
320
|
```bash
|
|
304
321
|
npm pack && npm i -g ./p-backlog-0.2.0.tgz
|
|
305
322
|
```
|
|
323
|
+
|
|
324
|
+
Версии публикует в npm workflow GitHub Actions `Release` через Trusted Publishing: поднимите версию и CHANGELOG,
|
|
325
|
+
выполните `npm run plugins`, закоммитьте, запушьте и запушьте тег `v<версия>` — workflow проверит, что тег совпадает
|
|
326
|
+
с `package.json`, прогонит проверки и опубликует пакет с подтверждением происхождения (provenance). Токен npm нигде не
|
|
327
|
+
хранится.
|