next-issue 13.1.0 → 14.0.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/README.md CHANGED
@@ -61,7 +61,7 @@ Every agent prompt holds the body of the issue and the comments of users with wr
61
61
  4. `Out of scope`
62
62
  5. `Open questions`, empty when the issue is created
63
63
 
64
- The list lives in `src/issue-format.mts`. The `create-issue` skill of [`@ravshansbox/pi-next-issue`](../pi-next-issue) writes an issue in this format, and a contract test fails when its template and the list disagree. The harness does not reject an issue without the format.
64
+ The list lives in `src/issue-format.mts`. The `create-issue` skill of the [Claude Code plugin](../claude-next-issue) writes an issue in this format, and a contract test fails when its template and the list disagree. The harness does not reject an issue without the format.
65
65
 
66
66
  ## Rules for the agents
67
67
 
@@ -297,7 +297,7 @@ To drop an issue instead, close it. The next run that finds a saved state for an
297
297
  | `watch on\|off` | Switch watching of the going run, see [Watch for new issues](#watch-for-new-issues) |
298
298
  | `hunt on\|off` | Switch hunting of the going run, see [Hunt for bugs](#hunt-for-bugs) |
299
299
  | `init` | Write the config file with the defaults |
300
- | `serve` | Run the worker of this repository that pi extensions talk to, see [Worker](#worker) |
300
+ | `serve` | Run the worker of this repository that the clients talk to, see [Worker](#worker) |
301
301
  | `stop` | Stop the worker of this repository, see [Worker](#worker) |
302
302
  | `logs` | Show the latest run log and follow it, see [Observability](#observability) |
303
303
  | `--force` | Replace an existing config file, with `init` |
@@ -352,7 +352,7 @@ In a run of the `serve` worker, a client can switch hunting and watching on or o
352
352
 
353
353
  ## Worker
354
354
 
355
- `next-issue serve` runs one worker for the repository it is run in. The [`@ravshansbox/pi-next-issue`](../pi-next-issue) extension and `next-issue start` start it and talk to it. `serve` takes no flags apart from `--help` and refuses any other with an error, because runs start from a client, not from `serve`. Each repository has its own worker, so the runs, restarts and upgrades of one repository never affect another. The worker:
355
+ `next-issue serve` runs one worker for the repository it is run in. The [Claude Code plugin](../claude-next-issue) and `next-issue start` start it and talk to it. `serve` takes no flags apart from `--help` and refuses any other with an error, because runs start from a client, not from `serve`. Each repository has its own worker, so the runs, restarts and upgrades of one repository never affect another. The worker:
356
356
 
357
357
  - listens with WebSocket on the socket file `.next-issue/worker.sock` in the repository. Only your user can open the file. It works on macOS and Linux. When the path of the socket file is too long for the system, about 103 bytes on macOS and 107 on Linux, it exits with an error that says so;
358
358
  - also answers plain HTTP on the same socket file, for a client with no WebSocket. `GET /` answers `[{ "type": "hello", ... }, { "type": "runs", ... }]`. `POST /` takes one client message as its JSON body, such as `{ "type": "start", "root": "<path>" }`, and answers a JSON list of the messages the worker sends that client in reply (an `error`, `stopping`, `questions` or `upcoming` message), then the `runs` message after the change. A body that is not a client message gets status 400 and `[{ "type": "error", "root": "<path>", "message": "the request is not a next-issue message" }]`; another path gets 404 and another method 405. An HTTP client does not get the `output`, `pass` and `end` messages, so it polls `GET /` for the progress;
@@ -397,6 +397,6 @@ Releases are automatic and need no pull request. Push a [conventional commit](ht
397
397
 
398
398
  The release is the `release` job of the `ci` workflow, and it runs only after the `check` job of the same commit passes. A commit that fails the typecheck, lint, format check, tests or build releases nothing. As the release is part of the `push` run, the harness waits for it like any other check. Release jobs run one at a time, in the order their `check` jobs finish, which is not always push order. When a later commit releases first, its tag holds the earlier commit and its version counts the commits of both, so the release job of the earlier commit only repairs and does nothing else.
399
399
 
400
- The workflow then gives `next-issue` and `@ravshansbox/pi-next-issue` the same new version and publishes both packages to npm with a [trusted publish](https://docs.npmjs.com/trusted-publishers), so no token is stored. It pushes the tag before the publish and makes the GitHub release after it, so the next release always counts from the new tag and never tries to publish a version that npm already holds, and no release job counts from a tag before one that already holds its commit. npm makes a new version live a few minutes after the publish, and not always in the order it got them, so before it publishes, the job waits until npm serves both packages at the version of the last tag, for up to 10 minutes. Thus a new version never goes live before the one that came before it. Every run first repairs the last tag before its own commit: from a checkout of that tag it publishes each package that npm does not serve at the tag version, and makes the GitHub release if it is missing. A package that npm refuses as a version it already holds, but does not serve yet, counts as published. So when a step fails after the tag push, the next run of a later commit finishes that release before it makes a new one. The release job of an earlier commit that runs after it does not, as it repairs the tag before its own commit. To repair a release without a new commit, run the `ci` workflow by hand; after the checks pass, the release job only repairs and does nothing else. The release job installs with `npm ci --ignore-scripts`, so no install script of a dependency runs with its rights to push and publish. Its actions are pinned to commit SHAs. The publish runs no typecheck and no tests, as the `check` job has run them. So a failing test cannot stop a publish after the tag push. Do not publish by hand: both `package.json` files hold version `0.0.0`, and only the release job sets the real version. Use the `ci` workflow run above instead.
400
+ The workflow then gives `next-issue` the new version and publishes it to npm with a [trusted publish](https://docs.npmjs.com/trusted-publishers), so no token is stored. It pushes the tag before the publish and makes the GitHub release after it, so the next release always counts from the new tag and never tries to publish a version that npm already holds, and no release job counts from a tag before one that already holds its commit. npm makes a new version live a few minutes after the publish, and not always in the order it got them, so before it publishes, the job waits until npm serves `next-issue` at the version of the last tag, for up to 10 minutes. Thus a new version never goes live before the one that came before it. Every run first repairs the last tag before its own commit: from a checkout of that tag it publishes each package that npm does not serve at the tag version, and makes the GitHub release if it is missing. A package that npm refuses as a version it already holds, but does not serve yet, counts as published. So when a step fails after the tag push, the next run of a later commit finishes that release before it makes a new one. The release job of an earlier commit that runs after it does not, as it repairs the tag before its own commit. To repair a release without a new commit, run the `ci` workflow by hand; after the checks pass, the release job only repairs and does nothing else. The release job installs with `npm ci --ignore-scripts`, so no install script of a dependency runs with its rights to push and publish. Its actions are pinned to commit SHAs. The publish runs no typecheck and no tests, as the `check` job has run them. So a failing test cannot stop a publish after the tag push. Do not publish by hand: its `package.json` holds version `0.0.0`, and only the release job sets the real version. Use the `ci` workflow run above instead.
401
401
 
402
402
  The job uses the npm that comes with Node 24 and never installs another one. Trusted publishing needs npm 11.5.1 or later, so the job stops with an error before anything else when the bundled npm is older. The release job stays on a GitHub runner, because npm takes provenance only from a GitHub runner.
package/dist/args.mjs CHANGED
@@ -16,7 +16,7 @@ export const USAGE = `next-issue <command> [options]
16
16
  watch on|off switch watching of the going run; off also turns hunting off
17
17
  hunt on|off switch hunting of the going run; on also turns watching on
18
18
  init write ${CONFIG_FILE} with the defaults and add .next-issue/ and .worktrees/ to info/exclude
19
- serve run the worker of this repository that pi extensions talk to
19
+ serve run the worker of this repository that the clients talk to
20
20
  stop stop the worker of this repository
21
21
  logs show the latest run log and follow it
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "13.1.0",
3
+ "version": "14.0.0",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",