next-issue 6.6.83 → 6.6.85
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 +21 -21
- package/dist/agent-reply.mjs +3 -1
- package/dist/check-poll.mjs +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -493,27 +493,27 @@ because no pull request is opened.
|
|
|
493
493
|
}
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
| Field | Default | Effect
|
|
497
|
-
| ----------------------- | ------------------ |
|
|
498
|
-
| `remote` | `origin` | The git remote for the repository and the branches
|
|
499
|
-
| `issueLimit` | `100` | The maximum number of open issues to read. With `labels.ready` set, only issues with the ready, in-progress or in-review label count
|
|
500
|
-
| `concurrency` | `1` | The most issues that a run handles at the same time
|
|
501
|
-
| `huntCap` | `1` | With `--hunt`, the hunter hunts only while fewer ready issues than this wait besides the running ones
|
|
502
|
-
| `maxCiFixes` | `5` | The budget for check fixes per issue
|
|
503
|
-
| `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue
|
|
504
|
-
| `maxReviewRounds` | `5` | The budget for review rounds per issue
|
|
505
|
-
| `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483`
|
|
506
|
-
| `checkGraceSeconds` | `60` | The time to wait for the first check to show, and for more checks after they all pass
|
|
507
|
-
| `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791`
|
|
508
|
-
| `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791`
|
|
509
|
-
| `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791`
|
|
510
|
-
| `commandTimeoutMinutes` | `10` | The limit for one `git` or `gh` command, at most `35791`
|
|
511
|
-
| `logMaxChars` | `20000` | The maximum length of the failed job logs, shared between the failed jobs
|
|
512
|
-
| `diffMaxChars` | `60000` | The maximum length of the diff that the reviewer reads
|
|
513
|
-
| `keepRunDays` | `7` | The number of days to keep the run files; `0` keeps them all
|
|
514
|
-
| `setupCommand` | from the lock file | A shell command to run in a new worktree, before the implementer
|
|
515
|
-
| `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer`
|
|
516
|
-
| `labels` | see above | The names of the labels that the harness reads and sets
|
|
496
|
+
| Field | Default | Effect |
|
|
497
|
+
| ----------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
498
|
+
| `remote` | `origin` | The git remote for the repository and the branches |
|
|
499
|
+
| `issueLimit` | `100` | The maximum number of open issues to read. With `labels.ready` set, only issues with the ready, in-progress or in-review label count |
|
|
500
|
+
| `concurrency` | `1` | The most issues that a run handles at the same time |
|
|
501
|
+
| `huntCap` | `1` | With `--hunt`, the hunter hunts only while fewer ready issues than this wait besides the running ones |
|
|
502
|
+
| `maxCiFixes` | `5` | The budget for check fixes per issue |
|
|
503
|
+
| `maxCommitFixes` | `10` | The budget for fixes of a commit that a git hook stopped, per issue |
|
|
504
|
+
| `maxReviewRounds` | `5` | The budget for review rounds per issue |
|
|
505
|
+
| `checkIntervalSeconds` | `15` | The time between two check states, at most `2147483` |
|
|
506
|
+
| `checkGraceSeconds` | `60` | The time to wait for the first check to show, and for more checks after they all pass; the grace ends at the `checkTimeoutMinutes` limit, where checks that all pass, or no checks, still count as a pass |
|
|
507
|
+
| `checkTimeoutMinutes` | `60` | The limit for one check wait, at most `35791` |
|
|
508
|
+
| `agentTimeoutMinutes` | `30` | The limit for one agent call, at most `35791` |
|
|
509
|
+
| `setupTimeoutMinutes` | `15` | The limit for the setup command, at most `35791` |
|
|
510
|
+
| `commandTimeoutMinutes` | `10` | The limit for one `git` or `gh` command, at most `35791` |
|
|
511
|
+
| `logMaxChars` | `20000` | The maximum length of the failed job logs, shared between the failed jobs |
|
|
512
|
+
| `diffMaxChars` | `60000` | The maximum length of the diff that the reviewer reads |
|
|
513
|
+
| `keepRunDays` | `7` | The number of days to keep the run files; `0` keeps them all |
|
|
514
|
+
| `setupCommand` | from the lock file | A shell command to run in a new worktree, before the implementer |
|
|
515
|
+
| `models` | `null` per role | The pi model per agent role, as `provider/model`: `implementer`, `reviewer`, `fixer` |
|
|
516
|
+
| `labels` | see above | The names of the labels that the harness reads and sets |
|
|
517
517
|
|
|
518
518
|
The hunter adds `labels.hunt` to each issue it files, so you can tell those
|
|
519
519
|
issues apart from your own and filter them.
|
package/dist/agent-reply.mjs
CHANGED
|
@@ -11,6 +11,7 @@ export function parseResolved(text) {
|
|
|
11
11
|
return note === undefined || PLACEHOLDERS.has(note.toLowerCase()) ? undefined : note;
|
|
12
12
|
}
|
|
13
13
|
const CLOSING_REFERENCE = /(\s*[,;]?\s*(?:and\s+)?)\b(close[sd]?|fix(?:e[sd])?|resolve[sd]?)(\s*:\s*|\s+)(?:[\w.-]+\/[\w.-]+#\d+|#\d+|https?:\/\/\S+\/(?:issues|pull)\/\d+)/gi;
|
|
14
|
+
const BARE_TYPE = /^\w+(?:\([^)]*\))?!?$/;
|
|
14
15
|
export function withoutClosingReferences(subject, fallback) {
|
|
15
16
|
const cleaned = subject
|
|
16
17
|
.replace(CLOSING_REFERENCE, (_match, _lead, keyword, separator, offset) => offset === 0 && separator.includes(':') ? `${keyword}: ` : '')
|
|
@@ -18,7 +19,8 @@ export function withoutClosingReferences(subject, fallback) {
|
|
|
18
19
|
.replace(/\s+/g, ' ')
|
|
19
20
|
.replace(/[\s,;:]+$/, '')
|
|
20
21
|
.trim();
|
|
21
|
-
|
|
22
|
+
const onlyType = subject.search(CLOSING_REFERENCE) !== -1 && BARE_TYPE.test(cleaned);
|
|
23
|
+
return cleaned && !onlyType ? cleaned : fallback;
|
|
22
24
|
}
|
|
23
25
|
export function parseCommitSubject(text, fallback) {
|
|
24
26
|
const subject = lastMatch(text, /^commit:[^\S\r\n]*(.*)$/gim)
|
package/dist/check-poll.mjs
CHANGED
|
@@ -20,12 +20,14 @@ export async function pollChecks(probe, options, clock = REAL_CLOCK) {
|
|
|
20
20
|
const rest = () => Math.max(0, deadline - clock.now());
|
|
21
21
|
let shown;
|
|
22
22
|
let failures = 0;
|
|
23
|
+
let last;
|
|
23
24
|
for (;;) {
|
|
24
25
|
refuseWhenStopped();
|
|
25
26
|
if (rest() === 0) {
|
|
26
|
-
return 'timeout';
|
|
27
|
+
return last === 'pass' || last === 'none' ? last : 'timeout';
|
|
27
28
|
}
|
|
28
29
|
const state = await read(probe, options.head, rest(), () => (shown ??= clock.now()));
|
|
30
|
+
last = state;
|
|
29
31
|
if (state === 'behind' && shown !== undefined) {
|
|
30
32
|
return 'moved';
|
|
31
33
|
}
|