p-backlog 0.10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 0.10.0
4
13
 
5
14
  - In Safari and Firefox, after a bulk action done with the mouse, focus now moves to Undo, and after the epic filter
package/dist/cli.js CHANGED
@@ -2958,9 +2958,9 @@ async function createProject(root, repoRoot, existingProjects) {
2958
2958
  return parsed.value;
2959
2959
  }
2960
2960
  async function isJoinableProjectDir(dir, repoRoot) {
2961
- const path = join11(dir, PROJECT_FILE);
2962
- if (await readTextOrNull(path) !== null) return await projectOfRepo(basename5(dir), path, repoRoot) !== null;
2963
- return (await listDir(dir)).every((entry) => !entry.name.endsWith(".md"));
2961
+ const entries = await listDir(dir);
2962
+ if (entries.some((entry) => entry.name === PROJECT_FILE)) return await projectOfRepo(basename5(dir), join11(dir, PROJECT_FILE), repoRoot) !== null;
2963
+ return entries.every((entry) => !entry.name.endsWith(".md"));
2964
2964
  }
2965
2965
  async function projectOfRepo(id, path, repoRoot) {
2966
2966
  const parsed = await readProjectFile({ id, path });
@@ -6153,7 +6153,7 @@ async function runNew(args, io) {
6153
6153
  if (!project) return EXIT.notFound;
6154
6154
  const projectTasks = loaded.tasks.filter((task2) => task2.projectId === project.id);
6155
6155
  if (!values.force && warnedOfSimilarTask({ title: values.title, source: values.source }, projectTasks, io)) return EXIT.refused;
6156
- const [atSource, body, origin] = await Promise.all([
6156
+ const [atSource, body, origin] = await allAfterSettling([
6157
6157
  values.source === void 0 ? void 0 : anchorOf2(project, values.source, io),
6158
6158
  io.readStdin(),
6159
6159
  values.project === void 0 || cwdBelongsTo(project, loaded.projects, io) ? readOrigin(io.cwd) : void 0
@@ -6202,6 +6202,10 @@ async function anchorOf2(project, source, io) {
6202
6202
  function cwdBelongsTo(project, knownProjects, io) {
6203
6203
  return findProjectForDir([...knownProjects, project], io.cwd, repoPlaces(io))?.id === project.id;
6204
6204
  }
6205
+ async function allAfterSettling(work) {
6206
+ await Promise.allSettled(work);
6207
+ return Promise.all(work);
6208
+ }
6205
6209
 
6206
6210
  // src/cli/commands/priority.ts
6207
6211
  var priorityCommand = taskFieldCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p-backlog",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Keep pull requests clean and audit findings safe: a local, autonomous backlog for Claude Code. The agent files out-of-scope issues as Markdown tasks with context and re-checks them as code changes. Optional web UI with metrics.",
5
5
  "keywords": [
6
6
  "claude-code",