p-backlog 0.9.0 → 0.10.1

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 (57) hide show
  1. package/CHANGELOG.md +130 -0
  2. package/README.md +3 -1
  3. package/README.ru.md +3 -1
  4. package/dist/cli.js +4840 -4183
  5. package/dist/web/assets/CodeTab-ClCaW8AS.js +1 -0
  6. package/dist/web/assets/CostTab-CtI3iFiW.js +1 -0
  7. package/dist/web/assets/EffectTab-DcvyEB2U.js +1 -0
  8. package/dist/web/assets/Figure-DkmKAO9C.css +1 -0
  9. package/dist/web/assets/Figure-DxKUx52i.js +1 -0
  10. package/dist/web/assets/OverviewTab-DE_6Z9ps.js +1 -0
  11. package/dist/web/assets/Page-buthlp0V.js +59 -0
  12. package/dist/web/assets/Page-r2s5SXpX.css +1 -0
  13. package/dist/web/assets/PanelRows-6zccccnE.css +1 -0
  14. package/dist/web/assets/PanelRows.module-ZonfBTD-.js +1 -0
  15. package/dist/web/assets/QualityTab-CkoKu4X0.js +1 -0
  16. package/dist/web/assets/ShareBar-B5phBvQk.css +1 -0
  17. package/dist/web/assets/ShareBar-BAS4lpze.js +1 -0
  18. package/dist/web/assets/StatsPage-B_pacptZ.css +1 -0
  19. package/dist/web/assets/StatsPage-Bmr75f8J.js +1 -0
  20. package/dist/web/assets/StatsTabState-BacJCCdC.css +1 -0
  21. package/dist/web/assets/StatsTabState-D93FkgT5.js +1 -0
  22. package/dist/web/assets/StatsTable-D-PylWl7.js +1 -0
  23. package/dist/web/assets/StatsTable-DPDsjAV6.css +1 -0
  24. package/dist/web/assets/UnavailableRepos-DyBVFVrQ.js +1 -0
  25. package/dist/web/assets/index-BFmeY_kk.js +2 -0
  26. package/dist/web/assets/start-CJ8zVmAB.js +38 -0
  27. package/dist/web/assets/start-CjkFx30s.css +1 -0
  28. package/dist/web/assets/summaries-D57lRSim.js +1 -0
  29. package/dist/web/assets/use-grain-panel-UcuXHAhT.js +55 -0
  30. package/dist/web/assets/use-grain-panel-nSBWtox9.css +1 -0
  31. package/dist/web/assets/web-paths--TbmQ8rA.js +1 -0
  32. package/dist/web/index.html +1 -1
  33. package/package.json +9 -5
  34. package/skill/backlog/SKILL.md +3 -1
  35. package/skill/backlog-en/SKILL.md +3 -1
  36. package/dist/web/assets/CodeTab-DvFAuZ83.js +0 -1
  37. package/dist/web/assets/CostTab-1Rdp5nwz.js +0 -1
  38. package/dist/web/assets/EffectTab-8aARbrne.js +0 -1
  39. package/dist/web/assets/Figure-CCcsLfB5.js +0 -1
  40. package/dist/web/assets/OverviewTab-DvBBhF85.js +0 -1
  41. package/dist/web/assets/QualityTab-TBeOxc7b.js +0 -1
  42. package/dist/web/assets/ShareBar-C_mQiINj.js +0 -1
  43. package/dist/web/assets/StatsPage-B5K4_4Wb.css +0 -1
  44. package/dist/web/assets/StatsPage-DtpkiP-4.js +0 -1
  45. package/dist/web/assets/StatsPage.module-DrfzjXrP.js +0 -1
  46. package/dist/web/assets/StatsTabState-BmkJh8eP.js +0 -1
  47. package/dist/web/assets/StatsTabState-CUDEyUDu.css +0 -1
  48. package/dist/web/assets/StatsTable-B9Rm04sJ.css +0 -1
  49. package/dist/web/assets/StatsTable-C5qAHApf.js +0 -1
  50. package/dist/web/assets/UnavailableRepos-ctosBCJf.js +0 -1
  51. package/dist/web/assets/cx-DvgIdypj.js +0 -55
  52. package/dist/web/assets/index-NfqY6Vxd.js +0 -2
  53. package/dist/web/assets/start-BG-1CZwx.css +0 -1
  54. package/dist/web/assets/start-jnWYnN9h.js +0 -41
  55. package/dist/web/assets/use-grain-panel-DRZkQL7T.js +0 -55
  56. package/dist/web/assets/use-grain-panel-tQC8-pw2.css +0 -1
  57. package/dist/web/assets/value-dot-BJdkleLN.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,135 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1
4
+
5
+ - Two agents creating the first task in a new repository at the same time now both get the same project. Before, one
6
+ of them could rarely create a second project for the same repository (for example `spa-2` with prefix `SPA2`), and
7
+ the tasks were split between the two.
8
+ - The test suite can no longer reach a running `backlog serve` on the default port 4317: tests and the Node processes
9
+ they start refuse to listen on or connect to it, and the Windows service tests write only to temporary folders, never
10
+ to the real Startup folder.
11
+
12
+ ## 0.10.0
13
+
14
+ - In Safari and Firefox, after a bulk action done with the mouse, focus now moves to Undo, and after the epic filter
15
+ disappears it moves to the next toolbar control, as it already did in Chrome and with the keyboard. Before, the click
16
+ left focus on the page content.
17
+ - Statistics charts now look the same: every chart has horizontal grid lines (the Debt, Usage and Check precision
18
+ charts with two value axes had only the top and bottom border), the hover cursor of the period charts is one framed
19
+ band in theme colors under the hovered period (before, the Debt, Created, Check precision and Usage charts drew
20
+ recharts' fixed light-gray line, and the Effectiveness chart a band without a frame), and the "decided" axis of the
21
+ Check precision chart is shortened like the other count axes (`1.2K` and `1,2 тыс.`, not `1200`).
22
+ - `backlog serve --port ""` now fails with "--port: expected a number from 1 to 65535" and exit code 1, like any
23
+ other invalid port, instead of silently starting on the default port 4317. An empty `PORT` environment variable still
24
+ means "not set".
25
+ - A Stop hook command with options before the event (`backlog hook --agent codex stop`) is now recorded in the run log
26
+ and statistics as a Stop hook run; before, it counted as an ordinary `hook` command.
27
+ - Ages and times to close in days (median, 90th percentile, a stuck task) are now printed in Russian with the thousands
28
+ separator, like every other count (`1 234 дн.`, not `1234 дн.`), and so are the weeks of the debt forecast in both
29
+ languages (`1 500 нед.`, `1,500 wk.`). In English, the forecast ("about 1,500 wk.", "0.8 tasks a week") now keeps
30
+ the number and its unit together with a no-break space, as the other counts do.
31
+ - `backlog check` no longer leaves a task created on a branch "awaiting merge" forever when that branch was merged by
32
+ squash or rebase while the local branch still exists; in 0.9.0 the wait ended only once the task's creation commit
33
+ itself was in the current branch. The branch now counts as merged once the current branch's history has, for every
34
+ file the branch changed, the branch's version of the file, or a copy of the branch's whole change to it in one commit
35
+ (squash), or a copy of each of the branch's commits to it (rebase); edits elsewhere in the same file do not matter,
36
+ and later edits do not undo it. A task whose creation commit is gone from the repository no longer waits either.
37
+ - `backlog check` makes fewer needless re-check requests for a task without an anchor. In 0.9.0 only a merge commit
38
+ that brought nothing beyond the task's creation commit was ignored; now commits that only repeat what the creation
39
+ commit already had are ignored too: the squash commit of the task's branch, copies of each of the branch's commits
40
+ to the file (a rebase, or cherry-picks into the main branch or into another branch merged later), a commit that
41
+ brings the file to its version at the task's creation, and a merge commit that brings only such commits. This works
42
+ for a task created on a detached HEAD as well. Of the copies of an edit only the earliest counts: a later repeat of
43
+ it, edits made after the task was created and later edits of the file still make the task a candidate, even when
44
+ they repeat a branch edit that was undone before the task was created. A commit that brings the file back to its
45
+ version at the task's creation is ignored wherever it is.
46
+ - `backlog check` recognizes such a copy by `git patch-id` together with the exact text of the changed lines, so an
47
+ edit that differs only in whitespace (indentation in Python, for example) is not a copy, and the copy has to sit at
48
+ the same place in the file: the same edit made to another, identical part of the file does not count, while lines
49
+ added or removed elsewhere in the file in the meantime do not matter. A change whose surrounding lines (3 on each
50
+ side) were edited in the meantime, or that was resolved by hand in a conflict, is not recognized, and its task is
51
+ treated as in 0.9.0. An edit of a binary file counts as a copy only with the same contents before and after it, on
52
+ git older than 2.39 too.
53
+ - A repository without commits yet is checked as having an empty history instead of reporting it unreadable, and a
54
+ failure to run git is reported as unreadable history rather than "not a git repository".
55
+ - A task's `source` written with Windows backslashes (`src\lib\a.ts:12`) or with `.`, `..` or a doubled `/` inside the
56
+ path (`src/./a.ts`, `src/x/../a.ts`, `src//a.ts`) now means the file git knows (`src/lib/a.ts`, `src/a.ts`)
57
+ everywhere. 0.9.0 only dropped a leading `./` and trailing slashes, so such a source did not match the paths git
58
+ reports: the task got no "code changed" re-check in `backlog check` when its file changed, its function was not
59
+ found in the code graph, statistics put it in a folder of its own (`src/.`, `src/x/..`) outside hot spots, churn and
60
+ debt density, and `backlog take --path` missed it or, for `src/../lib/a.ts`, took it for `src`. Leading `..` segments
61
+ are kept (`src/../../shared/a.ts` is `../shared/a.ts`), and so are drive (`C:/`) and network (`\\server\share`)
62
+ roots; a source ending in `.` or `..` names a folder in statistics (`src/shared/.` is `src/shared`, `src/shared/..`
63
+ is `src`). `backlog take --path .` run outside the project's repository now takes all open tasks of the project that
64
+ have a source, as `--path ./` already did.
65
+ - When looking for duplicates, `backlog check` and `backlog new` now treat these spellings of one file's path
66
+ (`src/./queue.ts`, `src\queue.ts`, `src/x/../queue.ts`, `.//src/queue.ts` next to `src/queue.ts`) as the same place.
67
+ Such a duplicate in one function was missed or found only through the code graph: its candidate episode closed when
68
+ the graph was missing and opened again once it came back, so statistics counted that duplicate signal twice.
69
+ - A task file created in the first moments after `backlog serve` starts (for example by an agent while the service is
70
+ starting) now reaches an open web interface without waiting for another edit. The file watcher could miss files that
71
+ appeared before it finished its initial scan; now the server reloads the backlog once when the watcher is ready.
72
+ - The web API now rejects a request body larger than 1 MiB with `413` and "Request body is larger than 1 MiB" instead of
73
+ reading it whole; a task description edited in the web UI is far below that. A closing reason made of a very long
74
+ run of spaces or line breaks (about 100,000 characters, from `backlog close --reason` or the batch close in the web
75
+ UI) no longer keeps the process busy for seconds: it is normalized in linear time, with the same result as before.
76
+ - When the backlog directory cannot be written to (no permission, read-only file system, full disk) and `.settings.json`
77
+ does not exist yet, every command and `backlog serve` now say so once on stderr: "Could not save the language to
78
+ .../.settings.json: EACCES ...". Before, the failed write was swallowed without a trace and the language was silently
79
+ detected afresh on each run, so it could flip with the shell's locale. The command or the server still runs.
80
+ `backlog serve` also reports an unparsable `.settings.json` once, not twice as before.
81
+ - Clean-up of old closed tasks after a command no longer stalls it for 5 seconds per busy task file: when several of
82
+ those files are locked by another process (a parallel command, an editor), the whole set now waits for the locks
83
+ once, up to 5 seconds in total, instead of 5 seconds for each locked file. Files that are free are still locked and
84
+ processed.
85
+ - `backlog check` no longer reports a project repository that belongs to another user (git's "dubious ownership") as
86
+ "not a git repository", which sent people to edit `repos` in `project.md`. It now reports `project-repo-unsafe` and
87
+ names the fix, `git config --global --add safe.directory <path>`. git's error is recognized by the untranslated
88
+ `safe.directory` hint in it, not by its wording, which differs between git versions and languages.
89
+ - An installed service file that `backlog service status` or `backlog stats` cannot read is named in a warning, and
90
+ they use `PORT`. An agent directory that `backlog setup` or `backlog config` cannot read (for example, `CODEX_HOME`
91
+ without permission) is named in a warning and that agent is skipped, while the other agents are set up as usual;
92
+ before, it was reported as "not found". The same goes for a Claude Code settings file that cannot be read: before,
93
+ `backlog setup` stopped there without setting up Cursor or Codex, and `backlog config language` saved the language
94
+ but did not relink any skill. Now Claude Code is named in a warning (`backlog setup` skips it and still exits with
95
+ code 4), and the other agents are set up or relinked as usual. `backlog config language` still repoints an existing
96
+ Claude Code skill link to the new language (it cannot tell whether a plugin provides the skill, so it never creates
97
+ a link there); without such a link it says the link was left unchanged and asks to re-run the command once the file
98
+ is readable. A skill link, or a legacy skill link of Cursor or Codex, that `backlog setup --remove-manual` cannot
99
+ remove is named in a warning, the agent's hook is still removed, and the command exits with code 4.
100
+ - The statistics of a project whose directory is named `all` are no longer shown as the statistics of all projects (or
101
+ the other way round) after switching between the two in the web UI.
102
+ - The card of a closed task whose file lacks the closing date or the reason (or has a blank one) now says "Closed,
103
+ date not recorded" / "reason not recorded" instead of leaving a blank after "Closed" or a dangling dash.
104
+ - The chart scale (week / day) picked on the statistics page now applies to other open tabs at once. With browser
105
+ storage blocked, "new" badges also work for tasks created while the tab is open.
106
+ - The confirm button of the delete-project and close-tasks dialogs stays reachable with Tab while it is not yet
107
+ available, like the other unavailable buttons; it is still announced as unavailable.
108
+ - A tag with a comma inside, written by hand in a task file (`tags: ["ui, web"]`), is now read as separate tags (`ui`,
109
+ `web`), the way `backlog new --tags` and the web form already split it, and the next save of the task writes them
110
+ back to the file as separate tags. Before, such a tag showed up as one chip, and clicking it in the web list (or
111
+ following it from the statistics) showed no tasks.
112
+ - On the statistics page of a project whose id has spaces or non-Latin letters, the tab being loaded is now highlighted
113
+ and the page is marked busy, as for other projects.
114
+ - `backlog serve` (the background service included) is no longer recorded as a command run: stopping or restarting the
115
+ service no longer adds a `serve` row with an uptime of hours to the Commands table on the cost tab, or counts it in
116
+ "other commands". `serve` records already in `.runs.jsonl` are ignored by the report too.
117
+ - An invalid `PORT` (not a number from 1 to 65535) is no longer silently replaced with 4317 when no service is
118
+ installed: `backlog stats` warns about it and prints the summary without the web link, and `backlog service status`
119
+ rejects it with exit code 1, as `serve` and `service install` already did.
120
+ - A command that waits 5 seconds for a busy `journal.jsonl` appends its events without the lock; when that happens
121
+ while compaction is rewriting the journal, compaction now carries such lines over into the compacted file, including
122
+ a line that was still being written when compaction read the file. If the journal was replaced by a different file
123
+ in the meantime, compaction leaves it as is.
124
+ - A task source or project repository path that cannot be read (no permission, a name too long, a symlink loop) is
125
+ reported and skipped instead of being treated as missing: `backlog check` and the Stop hook print a warning with the
126
+ path and the error and leave the tasks with that source out of this run (no `source-missing` or `source-changed`
127
+ for them, other tasks are checked as usual); `new --source` and `verify` warn and save the task without a new anchor;
128
+ `close` warns and skips that repository. A repository path in a `project.md`, or the current directory itself, that
129
+ cannot be read is named in a warning when the CLI or the Stop hook looks up the project of the current directory. A
130
+ source that is a directory, does not exist or runs through a file (`src/a.ts/b.ts`) is still treated as having no
131
+ file to read.
132
+
3
133
  ## 0.9.0
4
134
 
5
135
  - `backlog close <ID> --as fixed --reason "Fixed in <sha>: …"` on a task closed with `status <ID> done` now attaches the
package/README.md CHANGED
@@ -321,7 +321,9 @@ npm run typecheck
321
321
  npm run lint
322
322
 
323
323
  npx playwright install chromium # once, before the first e2e run
324
- npm run test:e2e # Playwright: live list update
324
+ npm run test:e2e # Playwright in Chromium: bulk actions, live updates, CSP, charts, task panel width
325
+ npx playwright install webkit # optional: the same suite in WebKit too
326
+ npx playwright test # Chromium, then WebKit
325
327
 
326
328
  npm run test:package # the tarball install path end to end on this OS (slow)
327
329
  npm run screenshots # README screenshots on demo data, into docs/screenshots
package/README.ru.md CHANGED
@@ -316,7 +316,9 @@ npm run typecheck
316
316
  npm run lint
317
317
 
318
318
  npx playwright install chromium # один раз, перед первым запуском e2e
319
- npm run test:e2e # Playwright: живое обновление списка
319
+ npm run test:e2e # Playwright в Chromium: массовые действия, живое обновление, CSP, графики, ширина панели задачи
320
+ npx playwright install webkit # по желанию: тот же набор ещё и в WebKit
321
+ npx playwright test # Chromium, затем WebKit
320
322
 
321
323
  npm run test:package # весь путь установки из tarball на этой ОС (медленный)
322
324
  npm run screenshots # скриншоты для README на демо-данных, в docs/screenshots