next-issue 16.12.0 → 17.0.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/dist/shared/hunt.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import { withNotes } from './job.mjs';
|
|
|
10
10
|
import { oneAtATime } from './lock.mjs';
|
|
11
11
|
import { huntPrompt } from './prompts.mjs';
|
|
12
12
|
import { listedIssues, skipReason } from './skip.mjs';
|
|
13
|
+
import { huntInstructionsPath } from './state.mjs';
|
|
13
14
|
import { huntPath } from './worktree.mjs';
|
|
14
|
-
export const HUNT_FILE = 'next-issue.hunt.md';
|
|
15
15
|
const FILED = /^issue:[^\S\r\n]*(\S+)[^\S\r\n]*$/gm;
|
|
16
16
|
export async function huntWorktree(repo, base, remote) {
|
|
17
17
|
const path = huntPath(repo);
|
|
@@ -54,7 +54,7 @@ export async function hunt(context, count) {
|
|
|
54
54
|
await ports.ensureLabel(repo, label);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
const instructions = await readTextIfPresent(
|
|
57
|
+
const instructions = await readTextIfPresent(huntInstructionsPath(repo.root));
|
|
58
58
|
const result = await ports.runAgent(recorder, {
|
|
59
59
|
name: 'hunter',
|
|
60
60
|
cwd,
|
package/dist/shared/state.mjs
CHANGED
|
@@ -10,6 +10,9 @@ export function stateDir(root) {
|
|
|
10
10
|
export function notesPath(root) {
|
|
11
11
|
return join(stateDir(root), 'notes.md');
|
|
12
12
|
}
|
|
13
|
+
export function huntInstructionsPath(root) {
|
|
14
|
+
return join(stateDir(root), 'hunt.md');
|
|
15
|
+
}
|
|
13
16
|
export function runsDir(root) {
|
|
14
17
|
return join(stateDir(root), 'runs');
|
|
15
18
|
}
|
|
@@ -39,12 +39,7 @@ export function runsMessage(runs, id) {
|
|
|
39
39
|
}
|
|
40
40
|
export function joinRun(run, given) {
|
|
41
41
|
if (run.stoppedByPerson === true) {
|
|
42
|
-
|
|
43
|
-
return 'the run is stopping';
|
|
44
|
-
}
|
|
45
|
-
run.stop = undefined;
|
|
46
|
-
run.stoppedByPerson = false;
|
|
47
|
-
run.progress = { ...run.progress, status: 'running' };
|
|
42
|
+
return 'the run is stopping';
|
|
48
43
|
}
|
|
49
44
|
if (given.watch !== undefined) {
|
|
50
45
|
setWatching(run, given.watch);
|