next-issue 0.12.4 → 0.12.5

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.
Files changed (2) hide show
  1. package/dist/github.mjs +8 -1
  2. package/package.json +1 -1
package/dist/github.mjs CHANGED
@@ -217,7 +217,14 @@ export async function failedCheckLogs(repo, branch, maxChars) {
217
217
  cwd: repo.root,
218
218
  tailChars: share,
219
219
  });
220
- parts.push(logs.stdout.slice(-share));
220
+ if (logs.code === 0) {
221
+ parts.push(logs.stdout);
222
+ continue;
223
+ }
224
+ const reason = [`The log read failed with code ${logs.code}.`, logs.stderr.trim()]
225
+ .filter((line) => line !== "")
226
+ .join(" ");
227
+ parts.push([logs.stdout.trim(), reason].filter((line) => line !== "").join("\n"));
221
228
  }
222
229
  return parts.join("\n\n");
223
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",