next-issue 17.0.8 → 17.1.1

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.
@@ -113,6 +113,9 @@ export function statusText(version, progress) {
113
113
  lines.push(idleLine(progress));
114
114
  }
115
115
  lines.push(...progress.issues.map(issueLine));
116
+ if (progress.hunt === true) {
117
+ lines.push('hunting for bugs');
118
+ }
116
119
  return `${lines.join('\n')}\n`;
117
120
  }
118
121
  function idleLine(progress) {
@@ -93,6 +93,7 @@ export function hunter(context) {
93
93
  return await hunt(context, count);
94
94
  }
95
95
  catch {
96
+ recorder.record('hunt.end', {});
96
97
  return false;
97
98
  }
98
99
  finally {
@@ -86,8 +86,14 @@ async function watchPasses(failed, watch) {
86
86
  await watch.passEnd(pass.reports);
87
87
  step = 0;
88
88
  }
89
- if (pass.error !== undefined || pass.stoppedAt !== undefined) {
90
- return { ...pass, reports };
89
+ if (pass.error !== undefined) {
90
+ if (!watching()) {
91
+ return { ...pass, reports };
92
+ }
93
+ watch.unreadable(pass.error);
94
+ }
95
+ if (pass.stoppedAt !== undefined) {
96
+ return { reports, stoppedAt: pass.stoppedAt };
91
97
  }
92
98
  if (watch.stop() || !watching()) {
93
99
  return { reports };
@@ -24,6 +24,13 @@ export function applyEvent(progress, record) {
24
24
  const { nextLook: _nextLook, ...rest } = progress;
25
25
  return { ...rest, looking: true };
26
26
  }
27
+ if (kind === 'hunt.start') {
28
+ return { ...progress, hunt: true };
29
+ }
30
+ if (kind === 'hunt.end') {
31
+ const { hunt: _hunt, ...rest } = progress;
32
+ return rest;
33
+ }
27
34
  const issue = record['issue'];
28
35
  if (typeof kind !== 'string' || typeof issue !== 'number') {
29
36
  return progress;
@@ -83,6 +83,7 @@ export function watchRun(args, loop, context, controls, print) {
83
83
  return slept;
84
84
  },
85
85
  passEnd: (issues) => print({ ...recorder.summary(passStart), issues }),
86
+ unreadable: (error) => recorder.event('issues.unreadable', { error: message(error) }),
86
87
  hunter: hunt,
87
88
  hunting: controls.hunting ?? onOff(args.hunt),
88
89
  watching: controls.watching,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "17.0.8",
3
+ "version": "17.1.1",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",