p-backlog 0.13.0 → 0.14.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 (42) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/README.md +1 -1
  3. package/README.ru.md +1 -1
  4. package/dist/cli.js +2451 -1479
  5. package/dist/web/assets/CodeTab-D7apweTn.js +1 -0
  6. package/dist/web/assets/CostTab-Cbq-tBpi.js +1 -0
  7. package/dist/web/assets/EffectTab-CSJBH_A_.js +1 -0
  8. package/dist/web/assets/Figure-BkubK2zp.js +1 -0
  9. package/dist/web/assets/OverviewTab-D1S-xV7F.js +1 -0
  10. package/dist/web/assets/Page-DcJkvJR8.js +81 -0
  11. package/dist/web/assets/QualityTab-Bvo5sLJL.js +1 -0
  12. package/dist/web/assets/ShareBar-CVoET5r9.js +1 -0
  13. package/dist/web/assets/StatsPage-CC1pIw6W.js +1 -0
  14. package/dist/web/assets/StatsTabState-DsgM-E6r.js +1 -0
  15. package/dist/web/assets/StatsTable-Dfk5L9ju.js +1 -0
  16. package/dist/web/assets/UnavailableRepos-DEI_jdL7.js +1 -0
  17. package/dist/web/assets/index-CrooTAtB.js +2 -0
  18. package/dist/web/assets/start-CTwcHqnH.js +257 -0
  19. package/dist/web/assets/start-D3XxrO_Y.css +1 -0
  20. package/dist/web/assets/use-grain-panel-C8dF5mz1.js +69 -0
  21. package/dist/web/assets/web-paths-Cv9UykyI.js +1 -0
  22. package/dist/web/index.html +1 -1
  23. package/package.json +6 -6
  24. package/skill/backlog/SKILL.md +2 -2
  25. package/skill/backlog-en/SKILL.md +1 -1
  26. package/dist/web/assets/CodeTab-BokbzP4a.js +0 -1
  27. package/dist/web/assets/CostTab-D91_w1H0.js +0 -1
  28. package/dist/web/assets/EffectTab-CRlWfFF0.js +0 -1
  29. package/dist/web/assets/Figure-CO87y2TD.js +0 -1
  30. package/dist/web/assets/OverviewTab-naYN8aXk.js +0 -1
  31. package/dist/web/assets/Page-BHZdQQhE.js +0 -59
  32. package/dist/web/assets/QualityTab-BMfBa6YW.js +0 -1
  33. package/dist/web/assets/ShareBar-DBiU0f9_.js +0 -1
  34. package/dist/web/assets/StatsPage-Dr1pco7X.js +0 -1
  35. package/dist/web/assets/StatsTabState-CePos7h7.js +0 -1
  36. package/dist/web/assets/StatsTable-CqH14eSD.js +0 -1
  37. package/dist/web/assets/UnavailableRepos-BBbuCPNM.js +0 -1
  38. package/dist/web/assets/index-DpWYLB0A.js +0 -2
  39. package/dist/web/assets/start-Cw9zPEW-.js +0 -42
  40. package/dist/web/assets/start-DCkTSXpO.css +0 -1
  41. package/dist/web/assets/use-grain-panel-BKTkjTK3.js +0 -55
  42. package/dist/web/assets/web-paths-yWGbLD6t.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,143 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0
4
+
5
+ Projects with several repositories, a single "state at the task's mark" for `backlog check`, and fixes from the full
6
+ review.
7
+
8
+ ### `backlog check` and git
9
+
10
+ - In a project with several `repos`, each task is judged in its own repository. The repository is chosen by the
11
+ commit the task was created or verified on, then by where the file exists, where the anchor matches and where the
12
+ path was ever committed. `source-missing` is reported only when the file is gone from every repository, `close`
13
+ finds the fixing commit in any of them, and `new` / `verify --source` check the file in the repository you run them
14
+ from. When the choice is ambiguous, nothing is written: no first anchor, no moved source, no verify commit.
15
+ - `backlog verify` records the `HEAD` commit in the journal's `verified` event (new optional field `commit`). A
16
+ verified task now has one base for every worktree: a worktree that was behind and then fast-forwarded no longer
17
+ shows an edit the verifier had already seen. Older events without the field fall back to the reflog as before.
18
+ - The state of the code at a task's mark is computed in one place (commit of the mark, then the reflog, then the
19
+ date), and candidates, line tracing, the symbol filter, the diff excerpt, known and late commits all use it.
20
+ - A task whose mark commit was rewritten by `pull --rebase`, `commit --amend` or a squash merge is judged as being on
21
+ the current line when its content reached `HEAD`, so an edit the rebase brought in makes it a candidate again. An
22
+ unmerged branch, a rebased lane checked from `master` and a detached worktree stay "another branch": no candidate
23
+ and no first anchor taken from that branch's text.
24
+ - A git failure in `merge-base --is-ancestor`, `log --first-parent` or `cat-file` leaves the task unchecked instead of
25
+ being read as "not an ancestor" or "no late commits". A branch with no common history with `HEAD` is "another
26
+ branch" in a full clone and unknown in a shallow one; in a shallow clone a task whose mark commit is missing waits
27
+ for its first anchor.
28
+ - A verified task awaits a merge from its verify commit, so a task created on a branch and verified on `master` no
29
+ longer hangs as "awaiting merge".
30
+ - "File gone" is detected on a branch that merged `master` (path history is read with `--full-history`).
31
+ - `check` and the Stop hook run from a git hook in a linked worktree now look at the project's repository: git is
32
+ started without `GIT_DIR`, `GIT_INDEX_FILE` and the other variables a hook inherits.
33
+
34
+ ### Tasks and storage
35
+
36
+ - A project directory behind a symlink is loaded, and `new` no longer creates a duplicate project with the same
37
+ prefix; `project delete` removes only the link. A broken link or a task file that is a link is a parse error.
38
+ - `project delete` and `project status` (and the project API) match the exact directory ID: an ID in a different case
39
+ on macOS and Windows no longer deletes or changes another project.
40
+ - Writes under a lock share one helper: a failure to release the lock or sync the directory after a write is a
41
+ warning, not a "not written" error, including for the runs log.
42
+
43
+ ### Costs and Effect
44
+
45
+ - Prices for current models from Anthropic's price list: Fable/Mythos 5.2, Sonnet 5.5, Haiku 5.5, Opus 4.5, Sonnet
46
+ 4.5, and fast mode of Fable/Mythos 5.2 and Opus 4.8. Haiku 5.5 is billed at two rates: a request longer than 100,000
47
+ tokens including cache is billed entirely at the higher one.
48
+ - Costs keep runs and tokens from directories that no longer exist: a deleted `cwd` is matched to the project through
49
+ its nearest existing parent and that parent's git repository. A relative path in `repos` no longer covers the
50
+ directory the server was started from.
51
+ - Cost history survives a change of the usage cache format, a downgrade of the package and a damaged cache entry:
52
+ buckets of transcripts Claude Code has already deleted are carried over, and the cache is now written durably,
53
+ since it is the only copy of them.
54
+ - Effect names the reason the noise share is empty (no commits, no extracted tasks, open tasks not estimated) instead
55
+ of always saying "no commits after adoption".
56
+
57
+ ### Web app
58
+
59
+ - An unknown address shows "Page not found" inside the app instead of the crash screen. Links in a task description:
60
+ app paths go through the router, `http(s)` opens in a new tab, anchors and `mailto` work as is, anything else is
61
+ plain text.
62
+ - A checklist with blank lines between items shows one checkbox per item.
63
+ - Text typed into the description while it is being saved is no longer lost.
64
+ - Tapping the dimmed backdrop saves a pending edit of the title, tags or epic, like the close button and Esc, instead
65
+ of asking whether to leave without saving.
66
+ - The delete-project dialog counts task files whose frontmatter can't be parsed, which are deleted with the project.
67
+
68
+ ### CLI and service
69
+
70
+ - `backlog … | head` no longer crashes with `write EPIPE`; the run is still logged.
71
+ - `setup` carries on when writing one agent's config fails, names that agent and exits with a failure code.
72
+ - Windows: the server with a PID of 65536 or more is stopped on service reinstall and uninstall.
73
+
74
+ ### Security and release
75
+
76
+ - `zod`, `hono` and `@hono/node-server` are updated to patched versions; CI runs `npm audit --omit=dev` as a separate
77
+ job.
78
+ - The release workflow grants `id-token: write` only to the publish job, which publishes the tarball built and tested
79
+ by a separate verify job with `--ignore-scripts`; release actions are pinned by SHA.
80
+
81
+ ## 0.13.1
82
+
83
+ Follow-up fixes from the full review and a second pass over `backlog check`.
84
+
85
+ ### Tasks and storage
86
+
87
+ - A write that reached the disk is no longer reported as failed. When syncing the directory, removing the temporary
88
+ file or releasing the lock fails after a task, `project.md`, the journal or a settings file was written, the command
89
+ warns and carries on; repeating `new` after such a warning no longer creates a duplicate.
90
+ - Tasks of a project whose `project.md` is broken are called "not loaded" instead of deleted or not found — in the
91
+ CLI, the web app and the API — and references to them are reported as `reference-unparsed`. A broken `project.md`
92
+ that covers a directory more precisely than its parent project stops `new`, `list`, `take`, the Stop hook and Costs
93
+ instead of handing the directory to the parent.
94
+ - A task of an epic whose file can't be parsed can still be edited and is not deleted while the epic is unreadable;
95
+ `check` reports `epic-unparsed`.
96
+ - Cleanup no longer holds the locks of the tasks it deletes while it waits for the journal.
97
+ - Windows: releasing a lock retries while another process holds the file, an abandoned lock is taken over within the
98
+ usual limit, and a lock that can't be removed no longer turns a finished write into an `EBUSY` error.
99
+
100
+ ### `backlog check` and git
101
+
102
+ - An edit that arrives by fast-forward (`git pull`, `merge --ff-only`) with a commit date earlier than the task's
103
+ mark now makes a task without an anchor a candidate. Commits are counted from the checkout the task was written
104
+ against — its creation commit, or `HEAD` from the reflog — when the file differs from it. The symbol filter and the
105
+ diff excerpt use the same base, so such an edit keeps the candidate, shows its diff and doesn't rewrite the anchor.
106
+ - The Stop hook names a task again in the same session after it was verified and its lines changed again, and also
107
+ when its lines change again without a verify. Shifted lines and edits further away don't repeat it, and sessions in
108
+ different checkouts don't wake each other with their verifies.
109
+ - A copy of the task's commit next to someone else's edit is recognised, a line of a task without an anchor is traced
110
+ from the task's creation commit, and a file removed from the index but still on disk counts as "changes unknown".
111
+ - In a directory git doesn't trust, `check`, `verify` and `new --source` give the ready-to-run
112
+ `git config … safe.directory` command for the repository root (`trustCommand` in `check --json`). When git can't
113
+ tell whether the clone is complete, an unmerged branch is reported as unknown instead of "not awaiting merge".
114
+
115
+ ### CLI
116
+
117
+ - `backlog --help=x`, `--h` and `-hx` print help instead of an error.
118
+ - `take --path` from a nested git repository or a linked worktree counts the path from the project's repository.
119
+
120
+ ### Web app
121
+
122
+ - Requests to the API have a time limit — 60 s to read, 120 s to write: a server that accepted a request and went
123
+ silent ends with "didn't answer in time" instead of loading forever. A save's limit is counted from the moment it
124
+ is queued, and a timed-out write says the change may have been written.
125
+ - An ID typed into the links field but not added counts as an unsaved edit: closing the card asks instead of dropping
126
+ it.
127
+ - "Saved" reflects the card's own saves, so a later successful save doesn't hide an earlier failure, and a draft field
128
+ recognises its last save after an x → y → x edit.
129
+ - The settings and projects error screens stay while a retry is running, "Retrying…" shows only after the button is
130
+ pressed, and focus isn't lost after a successful retry.
131
+ - The delete-project dialog no longer picks up the project row's bold text and hover, and typing in the card no
132
+ longer forces a layout on every keystroke.
133
+
134
+ ### Statistics
135
+
136
+ - The "Created" summary by weeks says "since the week of <date>" and doesn't invent an average for a project started
137
+ in the current period.
138
+ - Costs: a directory of an inactive project nested in another project's repository is no longer counted for that
139
+ project.
140
+
3
141
  ## 0.13.0
4
142
 
5
143
  Fixes from a full review of the code base.
package/README.md CHANGED
@@ -138,7 +138,7 @@ If there's no project yet, `backlog new` creates it.
138
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
- | `.usage-cache.json` | Claude Code usage parsed from transcripts | 13 weeks |
141
+ | `.usage-cache.json` | Claude Code usage parsed from transcripts; for transcripts Claude Code has already deleted, the only copy | 13 weeks |
142
142
  | `.code-cache.json` | Cached git history for the Code tab | 90 days |
143
143
  | Service log | `launchd` stdout/stderr on macOS, `p-backlog.log` in `%LOCALAPPDATA%` on Windows | macOS: trimmed to the last 256 KiB once it exceeds 1 MiB. Windows: over 1 MiB it is moved to `p-backlog.log.old` when the service starts. Linux: `journald` limits it |
144
144
  | `.swept-at`, `.journal-compacted-at` | Timestamp of the last sweep/compaction | Until the next one |
package/README.ru.md CHANGED
@@ -137,7 +137,7 @@
137
137
  | Файлы задач | По файлу на задачу, включая закрытые | Закрытые — 7 дней после закрытия (задачи открытого эпика — после закрытия эпика), затем удаляются (служба — раз в час; без службы — раз в сутки, после команды CLI, кроме хука агента) |
138
138
  | `journal.jsonl` | История событий задач и проверок по проекту | История существующих задач — целиком; остальные события — 13 недель (уплотняется раз в сутки, службой и после команд CLI, кроме хука агента) |
139
139
  | `.runs.jsonl` | Журнал запусков CLI | 13 недель |
140
- | `.usage-cache.json` | Расход Claude Code, разобранный из транскриптов | 13 недель |
140
+ | `.usage-cache.json` | Расход Claude Code, разобранный из транскриптов; для транскриптов, которые Claude Code уже удалил, — единственная копия | 13 недель |
141
141
  | `.code-cache.json` | Кэш истории git для вкладки «Код» | 90 дней |
142
142
  | Лог службы | stdout/stderr `launchd` на macOS, `p-backlog.log` в `%LOCALAPPDATA%` на Windows | macOS: обрезается до последних 256 КиБ, когда превышает 1 МиБ. Windows: больше 1 МиБ — при старте службы переносится в `p-backlog.log.old`. Linux: размер ограничивает `journald` |
143
143
  | `.swept-at`, `.journal-compacted-at` | Отметка времени последней уборки/уплотнения | До следующей |