next-issue 12.4.4 → 12.5.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
@@ -162,7 +162,7 @@ The console shows the run and issue milestones, verdicts, hand-overs, errors, ea
162
162
  - git 2.40 or later (every commit runs `git hook run`, every conflict with the base runs `git check-attr --source`). A run or `serve` run on an older git stops before it claims an issue, with an error that names both versions.
163
163
  - `gh`, authenticated with write access to the repository
164
164
  - a `remote` on GitHub: `github.com`, or a GitHub Enterprise host. Every `gh` call names the host of the remote url (`--repo <host>/<owner>/<name>`, `gh api --hostname <host>`) when it is not `github.com`, so `gh` must be logged in to that host. For an ssh url the harness reads the real host of an ssh alias with `ssh -G`. The host `ssh.github.com` (GitHub's ssh over port 443) means `github.com`. Other hosts, such as GitLab, are not supported.
165
- - pi, logged in to a model provider. The agents use the model, the thinking level, the extensions and the skills from your pi settings, except the extension and the skills of the `pi-next-issue` package. A repository under a folder named `pi-next-issue` keeps its project extensions and skills. The implementer and the fixer get the default tools of your pi settings, the `grep`, `find` and `ls` tools and the tools of your extensions. The reviewer gets all of them except `edit` and `write`. The agents run with `GIT_OPTIONAL_LOCKS=0`, so a `git status` from an agent or an extension does not hold the index lock while the harness commits. While an agent runs, `process.argv[1]` is the pi CLI, so an extension that starts a child pi with `process.execPath` and `process.argv[1]` (such as a `subagent` tool) runs pi, not next-issue.
165
+ - pi, logged in to a model provider. The agents use the model (unless `models` sets one), the thinking level, the extensions and the skills from your pi settings, except the extension and the skills of the `pi-next-issue` package. A repository under a folder named `pi-next-issue` keeps its project extensions and skills. The implementer and the fixer get the default tools of your pi settings, the `grep`, `find` and `ls` tools and the tools of your extensions. The reviewer gets all of them except `edit` and `write`. The agents run with `GIT_OPTIONAL_LOCKS=0`, so a `git status` from an agent or an extension does not hold the index lock while the harness commits. While an agent runs, `process.argv[1]` is the pi CLI, so an extension that starts a child pi with `process.execPath` and `process.argv[1]` (such as a `subagent` tool) runs pi, not next-issue.
166
166
 
167
167
  ## Configuration
168
168
 
@@ -209,7 +209,9 @@ With no file, every field keeps its default. A field that is not in the file kee
209
209
  "maxCommitFixes": 10,
210
210
  "maxReviewRounds": 5,
211
211
  "models": {
212
+ "default": null,
212
213
  "fixer": null,
214
+ "hunter": null,
213
215
  "implementer": null,
214
216
  "reviewer": null
215
217
  },
@@ -238,7 +240,7 @@ With no file, every field keeps its default. A field that is not in the file kee
238
240
  | `maxCiFixes` | `5` | The budget for check fixes per issue |
239
241
  | `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
240
242
  | `maxReviewRounds` | `5` | The budget for review rounds per issue |
241
- | `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer` |
243
+ | `models` | `null` per role | The pi model per agent role, as `provider/model`: `default`, `implementer`, `reviewer`, `fixer`, `hunter` |
242
244
  | `remote` | `origin` | The git remote for the repository and the branches |
243
245
  | `setupCommand` | from the lock file | A shell command to run in a new worktree, before the implementer, and after each merge of the base before the `checks` |
244
246
  | `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
@@ -253,7 +255,7 @@ The harness compares the labels on an issue with the configured names without ca
253
255
 
254
256
  The log gives the reason for a skipped issue as `stop-label`, `not-ready`, `in-flight` or `blocked`, the last one with the open blockers.
255
257
 
256
- A role set to `null`, or with no entry in `models`, uses the default model of your pi settings.
258
+ A role set to `null`, or with no entry in `models`, uses `models.default`. When `models.default` is `null` or missing too, it uses the default model of your pi settings.
257
259
 
258
260
  Without a `setupCommand`, the harness looks for a lock file in the new worktree, and in the worktree after each merge of the base before the `checks`, and runs the install command that goes with it:
259
261
 
package/dist/config.mjs CHANGED
@@ -65,7 +65,7 @@ const WHOLE_FIELDS = [
65
65
  ['keepRunDays', 0],
66
66
  ['checksTimeoutMinutes', 1, MAX_MINUTES],
67
67
  ];
68
- const MODEL_ROLES = ['implementer', 'reviewer', 'fixer'];
68
+ const MODEL_ROLES = ['default', 'implementer', 'reviewer', 'fixer', 'hunter'];
69
69
  const LABEL_NAMES = [
70
70
  'ready',
71
71
  'inProgress',
package/dist/hunt.mjs CHANGED
@@ -60,6 +60,7 @@ export async function hunt(context, count) {
60
60
  cwd,
61
61
  prompt: await withNotes(repo.root, huntPrompt(instructions, config.labels.ready, config.labels.hunt, count, repoArg(repo)), false),
62
62
  profile: REVIEWING,
63
+ model: config.models.hunter ?? config.models.default,
63
64
  timeoutMs: minutesToMs(config.agentTimeoutMinutes),
64
65
  });
65
66
  const urls = await issuesOf(context, [...result.text.matchAll(FILED)].map((match) => match[1]));
package/dist/job.mjs CHANGED
@@ -26,7 +26,7 @@ export async function runRole(job, role, prompt, profile) {
26
26
  cwd: job.worktree,
27
27
  prompt: await withNotes(repo.root, prompt, writable),
28
28
  profile,
29
- model: config.models[role],
29
+ model: config.models[role] ?? config.models.default,
30
30
  timeoutMs: minutesToMs(config.agentTimeoutMinutes),
31
31
  };
32
32
  const took = (await job.slot?.take()) === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "12.4.4",
3
+ "version": "12.5.0",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",