next-issue 7.0.0 → 7.1.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 +18 -2
- package/dist/prompts.mjs +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -683,6 +683,14 @@ issue to the next. The implementer and the fixer may add a short note to it, and
|
|
|
683
683
|
the prompt asks them to keep only what still holds. The reviewer and the hunter
|
|
684
684
|
only read it.
|
|
685
685
|
|
|
686
|
+
Every agent also reads each `AGENTS.md` that pi finds, such as the one in your
|
|
687
|
+
home folder and the one in the repository. The other rules there, such as code
|
|
688
|
+
conventions and test style, still apply. But the harness owns the issue, the
|
|
689
|
+
worktree, the branch, git, the commit, the push and the checks, and the prompt
|
|
690
|
+
says so: a workflow rule in `AGENTS.md` about these, such as "push to main" or
|
|
691
|
+
"watch ci", does not apply to the agent. The hunter still files its issues with
|
|
692
|
+
`gh issue create`.
|
|
693
|
+
|
|
686
694
|
## Retry an issue that waits for a person
|
|
687
695
|
|
|
688
696
|
When the implementer makes no change, the hand-over comment holds its full
|
|
@@ -945,7 +953,14 @@ Releases are automatic and need no pull request. Push a
|
|
|
945
953
|
[conventional commit](https://www.conventionalcommits.org/) to `main`. The
|
|
946
954
|
workflow reads the commits since the last tag and picks the bump: `feat` gives a
|
|
947
955
|
minor, `fix` gives a patch, and a `!` mark or a `BREAKING CHANGE` body gives a
|
|
948
|
-
major. Any other type releases nothing.
|
|
956
|
+
major. Any other type releases nothing. The notes of the GitHub release list the
|
|
957
|
+
subject and short hash of each breaking, `feat` and `fix` commit since the
|
|
958
|
+
previous tag, grouped by type, and end with the compare link from that tag.
|
|
959
|
+
|
|
960
|
+
The release is the `release` job of the `ci` workflow, and it runs only after
|
|
961
|
+
the `check` job of the same commit passes. A commit that fails the typecheck,
|
|
962
|
+
lint, format check, tests or build releases nothing. As the release is part of
|
|
963
|
+
the `push` run, the harness waits for it like any other check.
|
|
949
964
|
|
|
950
965
|
The workflow then gives `next-issue` and `@ravshansbox/pi-next-issue` the same
|
|
951
966
|
new version and publishes both packages to npm with a
|
|
@@ -962,7 +977,8 @@ version, and makes the GitHub release if it is missing. A package that npm
|
|
|
962
977
|
refuses as a version it already holds, but does not serve yet, counts as
|
|
963
978
|
published. So when a step fails after the tag push, the next run finishes that
|
|
964
979
|
release before it makes a new one. To repair a release without a new commit,
|
|
965
|
-
run the workflow by hand;
|
|
980
|
+
run the `ci` workflow by hand; after the checks pass, the release job only
|
|
981
|
+
repairs and does nothing else.
|
|
966
982
|
The job uses the npm that comes with Node 24 and never installs another one.
|
|
967
983
|
Trusted publishing needs npm 11.5.1 or later, so the job stops with an error
|
|
968
984
|
before anything else when the bundled npm is older.
|
package/dist/prompts.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ISSUE_SECTIONS } from './issue-format.mjs';
|
|
2
2
|
import { paragraphs } from './text.mjs';
|
|
3
|
+
const OTHER_RULES = 'The other rules of `AGENTS.md`, such as code conventions and test style, still apply.';
|
|
4
|
+
const HARNESS_RULES = [
|
|
5
|
+
'The harness owns the issue, the worktree, the branch, git, the commit, the push and the checks. The workflow rules of `AGENTS.md` about these do not apply to you.',
|
|
6
|
+
OTHER_RULES,
|
|
7
|
+
].join('\n');
|
|
3
8
|
const COMMIT_RULES = [
|
|
9
|
+
HARNESS_RULES,
|
|
4
10
|
'Do not run git, gh or any push command. The harness commits for you.',
|
|
5
11
|
'End your final message with one line in the form `commit: <conventional commit subject>`.',
|
|
6
12
|
].join('\n');
|
|
@@ -92,6 +98,7 @@ export function reviewPrompt(issue, comments, diff, earlier, reply) {
|
|
|
92
98
|
'Read files and run commands to prove what you say: the tests, the type check or the linter.',
|
|
93
99
|
'The worktree is ready to use. Do not change a file. Do not write with git or gh, and do not check out another commit or branch.',
|
|
94
100
|
'The harness discards each change that you make, so a change is only lost work.',
|
|
101
|
+
HARNESS_RULES,
|
|
95
102
|
reviewScope(earlier),
|
|
96
103
|
'Mark a finding blocking only for a wrong result, a missing part of the issue, a regression or a broken convention.',
|
|
97
104
|
'End your final message with the result as a json block in a ```json fence, in the form {"summary": "<short summary>", "findings": [{"severity": "blocking" or "minor", "detail": "<what is wrong and where>"}]}.',
|
|
@@ -178,6 +185,8 @@ export function huntPrompt(instructions, ready, source, count, repository) {
|
|
|
178
185
|
'## Rules',
|
|
179
186
|
[
|
|
180
187
|
'Run no test suite and no build. Change no file. Do not commit or push.',
|
|
188
|
+
'The harness owns the worktree, git and the checks. The workflow rules of `AGENTS.md` about these do not apply to you.',
|
|
189
|
+
OTHER_RULES,
|
|
181
190
|
`File up to ${issues}, your most serious findings first. File nothing when you find no real problem.`,
|
|
182
191
|
`Before you file an issue, search the open and closed issues for a duplicate, for example with \`gh issue list --repo ${repository} --state all --search "<words>"\`. Do not file a finding when a duplicate exists.`,
|
|
183
192
|
`File each issue with \`gh issue create --repo ${repository}${label} --title "<conventional commit subject>" --body-file -\`.`,
|