next-issue 0.10.0 → 0.11.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/cli.mjs CHANGED
@@ -11,6 +11,7 @@ import { message, pruneRuns, Recorder } from "./observe.mjs";
11
11
  import { PORTS, processIssue } from "./pipeline.mjs";
12
12
  import { STATE_DIR, takeStop } from "./state.mjs";
13
13
  import { formatSummary } from "./summary.mjs";
14
+ import { packageVersion } from "./version.mjs";
14
15
  function write(stream, text) {
15
16
  return new Promise((resolve, reject) => {
16
17
  stream.write(text, (error) => (error === null || error === undefined ? resolve() : reject(error)));
@@ -61,7 +62,13 @@ async function init(root, force) {
61
62
  async function handle(args, config, repo, recorder) {
62
63
  const [base, login] = await Promise.all([defaultBranch(repo), currentLogin(repo)]);
63
64
  const context = { repo, config, base, login, reset: args.reset, recorder, ports: PORTS };
64
- recorder.event("run.start", { repo: `${repo.owner}/${repo.name}`, base, login, log: recorder.logFile }, "quiet");
65
+ recorder.event("run.start", {
66
+ version: await packageVersion(),
67
+ repo: `${repo.owner}/${repo.name}`,
68
+ base,
69
+ login,
70
+ log: recorder.logFile,
71
+ }, "quiet");
65
72
  const issues = await openIssues(repo, config.issueLimit);
66
73
  recorder.event("issues", { open: issues.length }, "quiet");
67
74
  const { reports, stoppedAt } = await runIssues(args, {
@@ -0,0 +1,6 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { join } from "node:path";
3
+ export async function packageVersion() {
4
+ const raw = await readFile(join(import.meta.dirname, "..", "package.json"), "utf8");
5
+ return JSON.parse(raw).version;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",