next-issue 6.6.27 → 6.6.28
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 +1 -1
- package/dist/hunt.mjs +5 -1
- package/package.json +1 -1
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
|
|
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/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
|
-
|
|
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',
|