next-issue 16.1.0 → 16.2.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
@@ -92,6 +92,7 @@ A field that is not in the file keeps its default. See [Configuration](https://g
92
92
  | `hunt on\|off` | Switch hunting of the going run |
93
93
  | `init` | Write the config file with the defaults |
94
94
  | `stop` | Stop the going run after its current issues |
95
+ | `status` | Show the going run, its worker and its running issues |
95
96
  | `logs` | Show the latest run log and follow it |
96
97
  | `update` | Install the `create-issue` and `answer-hand-over` skills for Claude Code |
97
98
  | `--force` | With `init`: replace an existing config file |
@@ -66,3 +66,23 @@ export function stopInWorker(root) {
66
66
  return 'next-issue: the run will stop after its current issues\n';
67
67
  });
68
68
  }
69
+ export function statusInWorker(root) {
70
+ return inWorker(root, async (connection, progress) => {
71
+ const lines = [
72
+ `next-issue: the run is ${progress.status} in worker ${connection.version}`,
73
+ `watching ${onOffText(progress.watching)}, hunting ${onOffText(progress.hunting)}`,
74
+ ];
75
+ if (progress.upgrade !== undefined) {
76
+ lines.push(`stopping for an upgrade to ${progress.upgrade.to}`);
77
+ }
78
+ if (progress.issues.length === 0) {
79
+ lines.push('no issue is running');
80
+ }
81
+ lines.push(...progress.issues.map(issueLine));
82
+ return `${lines.join('\n')}\n`;
83
+ });
84
+ }
85
+ function issueLine({ issue, step, round }) {
86
+ const roundText = round === undefined ? '' : ` (round ${round})`;
87
+ return `#${issue} ${step?.replaceAll('-', ' ') ?? 'starting'}${roundText}`;
88
+ }
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import { followLog, newestRunLog } from './cli/logs.mjs';
9
9
  import { serve } from './worker/serve.mjs';
10
10
  import { startInWorker } from './cli/start.mjs';
11
11
  import { STATE_DIR } from './shared/state.mjs';
12
- import { stopInWorker, switchInWorker } from './cli/switch-run.mjs';
12
+ import { statusInWorker, stopInWorker, switchInWorker } from './cli/switch-run.mjs';
13
13
  import { chooseScope, installSkills } from './cli/update.mjs';
14
14
  import { WORKTREE_DIR } from './shared/worktree.mjs';
15
15
  function write(stream, text) {
@@ -40,6 +40,10 @@ async function main() {
40
40
  await write(process.stdout, await stopInWorker(root));
41
41
  return 0;
42
42
  }
43
+ if (args.command === 'status') {
44
+ await write(process.stdout, await statusInWorker(root));
45
+ return 0;
46
+ }
43
47
  if (args.command === 'watch' || args.command === 'hunt') {
44
48
  await write(process.stdout, await switchInWorker(root, args.command, args.on));
45
49
  return 0;
@@ -7,7 +7,17 @@ const RUN_FLAGS = new Map([
7
7
  ['--watch', 'watch'],
8
8
  ['--hunt', 'hunt'],
9
9
  ]);
10
- const COMMANDS = ['start', 'init', 'serve', 'stop', 'logs', 'watch', 'hunt', 'update'];
10
+ const COMMANDS = [
11
+ 'start',
12
+ 'init',
13
+ 'serve',
14
+ 'stop',
15
+ 'status',
16
+ 'logs',
17
+ 'watch',
18
+ 'hunt',
19
+ 'update',
20
+ ];
11
21
  export const USAGE = `next-issue <command> [options]
12
22
 
13
23
  start start a run: claim issues, fix them and push them to the base branch
@@ -17,6 +27,7 @@ export const USAGE = `next-issue <command> [options]
17
27
  hunt on|off switch hunting of the going run; on also turns watching on
18
28
  init write ${CONFIG_FILE} with the defaults and add .next-issue/ and .worktrees/ to info/exclude
19
29
  stop stop the going run after its current issues
30
+ status show the going run, its worker and its running issues
20
31
  logs show the latest run log and follow it
21
32
  update install the create-issue and answer-hand-over skills for Claude Code
22
33
  --scope user|project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "16.1.0",
3
+ "version": "16.2.0",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",