next-issue 7.8.26 → 7.8.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 +3 -1
- package/dist/agent-session.mjs +4 -1
- package/dist/open-job.mjs +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -606,7 +606,9 @@ Three levels of console output:
|
|
|
606
606
|
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.
|
|
607
607
|
- pi, logged in to a model provider. The agents use the model, the thinking
|
|
608
608
|
level, the extensions and the skills from your pi settings, except the
|
|
609
|
-
extension and the skills of `pi-next-issue
|
|
609
|
+
extension and the skills of the `pi-next-issue` package. A repository
|
|
610
|
+
under a folder named `pi-next-issue` keeps its project extensions and
|
|
611
|
+
skills. The implementer and the fixer
|
|
610
612
|
get the default tools of your pi settings, the `grep`, `find` and `ls` tools
|
|
611
613
|
and the tools of your extensions. The reviewer gets all of them except
|
|
612
614
|
`edit` and `write`. The agents run with `GIT_OPTIONAL_LOCKS=0`, so a
|
package/dist/agent-session.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { join, sep } from 'node:path';
|
|
2
2
|
import { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, } from '@earendil-works/pi-coding-agent';
|
|
3
3
|
export function isOwnResource(path) {
|
|
4
|
-
|
|
4
|
+
const parts = path.split(sep);
|
|
5
|
+
return parts.some((part, index) => part === 'pi-next-issue' &&
|
|
6
|
+
((parts[index + 1] === 'index.ts' && index + 2 === parts.length) ||
|
|
7
|
+
parts[index + 1] === 'skills'));
|
|
5
8
|
}
|
|
6
9
|
export async function openSession(recorder, log, request, agentDir) {
|
|
7
10
|
const runtime = request.runtime ?? {};
|
package/dist/open-job.mjs
CHANGED
|
@@ -7,8 +7,11 @@ export async function openJob(context, issue, log, state, start, handedOver, pen
|
|
|
7
7
|
const { repo, config } = context;
|
|
8
8
|
const branch = state.branch;
|
|
9
9
|
await log.step('claim', { label: config.labels.inProgress }, async () => {
|
|
10
|
-
await writeState(repo, state);
|
|
10
|
+
await writeState(repo, handedOver ? { ...state, ...handOverMark(pending) } : state);
|
|
11
11
|
await setStatus(context, issue.number, config.labels.inProgress);
|
|
12
|
+
if (handedOver) {
|
|
13
|
+
await writeState(repo, state);
|
|
14
|
+
}
|
|
12
15
|
});
|
|
13
16
|
const comments = await log.step('comments', {}, () => writerComments(context, log, issue.number));
|
|
14
17
|
const reply = handedOver
|
|
@@ -30,6 +33,9 @@ export async function openJob(context, issue, log, state, start, handedOver, pen
|
|
|
30
33
|
asides: [],
|
|
31
34
|
};
|
|
32
35
|
}
|
|
36
|
+
function handOverMark(pending) {
|
|
37
|
+
return pending === undefined ? { handedOver: true } : { pendingHandOver: pending };
|
|
38
|
+
}
|
|
33
39
|
async function openWorktree(context, issue, log, branch, start) {
|
|
34
40
|
const { repo, config, ports } = context;
|
|
35
41
|
const added = await log.step('worktree', { branch }, () => oneAtATime(repo.root, () => ports.addWorktree(repo, issue.number, branch, context.base, config.remote, start)));
|