next-issue 6.6.27 → 6.6.29

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
@@ -559,7 +559,7 @@ With `--hunt`, which turns on `--watch`, the harness runs a hunter agent at the
559
559
 
560
560
  - works in its own worktree at `.worktrees/hunt`, on a detached `HEAD` at the remote base branch, which the harness fetches and checks out before each hunt. A branch that the hunter checks out keeps its commits, and an issue that resumes never uses the hunt worktree as its own;
561
561
  - follows `next-issue.hunt.md` in the repository root, or a short built-in prompt when the file is missing;
562
- - files up to `huntCap` less that count, worked out just before the hunt, its most serious findings first, each with the `labels.ready` label, the `labels.hunt` label and the sections of the [issue format](#issue-format), after a search for duplicates. The `labels.hunt` label, `source:hunt` by default, marks the issue as one the hunter filed, and the harness creates it before the hunt when it is missing. It files nothing when it finds no real problem or a duplicate exists;
562
+ - files up to `huntCap` less that count, worked out just before the hunt, its most serious findings first, each with the `labels.ready` label, the `labels.hunt` label and the sections of the [issue format](#issue-format), after a search for duplicates. The `labels.hunt` label, `source:hunt` by default, marks the issue as one the hunter filed. The harness creates the `labels.ready` and `labels.hunt` labels before the hunt when they are missing. It files nothing when it finds no real problem or a duplicate exists;
563
563
  - runs no test suite and changes no file. It gets the tools of the reviewer.
564
564
 
565
565
  With `huntCap` at 1 and no ready issue, a hunt files at most one issue. The hunter ends its reply with one `issue:` line for each issue it filed, or one `issue: none` line, and the run log holds one `hunt.issue` event with the `url` for each, or one with `none`. A hunt that fails writes a `hunt.error` event and the watch goes on. The hunter then waits before the next hunt, with a `hunt.wait` event and the same back-off, so a failure, or a hunt that files nothing, that repeats waits 1, 2, 3, 5, 10, then 10 minutes, and the back-off goes back to 1 minute after a hunt that files at least one issue. The next pass claims the new issues like any other. At the first `Ctrl-C` the hunter stops after its current hunt, and the watch ends once the hunt and the running issues end. A first `Ctrl-C` during the watch wait tells you so while a hunt runs, and the third press stops the hunter at once. The hunter stops too when the watch ends for another reason.
package/dist/fix.mjs CHANGED
@@ -40,7 +40,7 @@ export async function fixRound(job, reason, detail, earlier, kind) {
40
40
  }
41
41
  export async function runFixer(job, reason, detail, earlier, kind) {
42
42
  const { issue, log } = job;
43
- const result = await log.step('fix', { reason, cause: kind, ...fixBudget(job, kind) }, () => runRole(job, 'fixer', fixPrompt(issue, reason, detail, earlier, kind, job.reply), CODING));
43
+ const result = await log.step('fix', { reason, cause: kind, ...fixBudget(job, kind) }, () => runRole(job, 'fixer', fixPrompt(issue, job.comments, reason, detail, earlier, kind, job.reply), CODING));
44
44
  return result.text;
45
45
  }
46
46
  function fixBudget(job, kind) {
package/dist/hunt.mjs CHANGED
@@ -29,7 +29,11 @@ export async function hunt(context, count) {
29
29
  const { repo, config, base, recorder, ports } = context;
30
30
  return recorder.step('hunt', {}, async () => {
31
31
  const cwd = await oneAtATime(repo.root, () => ports.huntWorktree(repo, base, config.remote));
32
- await ports.ensureLabel(repo, config.labels.hunt);
32
+ for (const label of [config.labels.ready, config.labels.hunt]) {
33
+ if (label.length > 0) {
34
+ await ports.ensureLabel(repo, label);
35
+ }
36
+ }
33
37
  const instructions = await readTextIfPresent(join(repo.root, HUNT_FILE));
34
38
  const result = await ports.runAgent(recorder, {
35
39
  name: 'hunter',
package/dist/prompts.mjs CHANGED
@@ -135,9 +135,10 @@ function earlierBlock(earlier) {
135
135
  ].join('\n')
136
136
  : '';
137
137
  }
138
- export function fixPrompt(issue, reason, detail, earlier, kind, reply = []) {
138
+ export function fixPrompt(issue, comments, reason, detail, earlier, kind, reply = []) {
139
139
  return paragraphs([
140
- `You are the fixer. Correct the work for issue #${issue.number}: ${issue.title}.`,
140
+ 'You are the fixer. Correct the work for the issue below.',
141
+ issueBlock(issue, comments),
141
142
  `## Reason\n${reason}`,
142
143
  `## Detail\n${detail}`,
143
144
  earlierBlock(earlier),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "6.6.27",
3
+ "version": "6.6.29",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",