pubz 0.5.0 → 0.5.2
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.js +16 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -688,17 +688,31 @@ Write concise, user-friendly release notes in markdown. Group related changes un
|
|
|
688
688
|
stdio: ["ignore", "pipe", "pipe"]
|
|
689
689
|
});
|
|
690
690
|
let output = "";
|
|
691
|
+
let stderr = "";
|
|
691
692
|
proc.stdout?.on("data", (data) => {
|
|
692
693
|
output += data.toString();
|
|
693
694
|
});
|
|
695
|
+
proc.stderr?.on("data", (data) => {
|
|
696
|
+
stderr += data.toString();
|
|
697
|
+
});
|
|
694
698
|
proc.on("close", (code) => {
|
|
695
699
|
if (code === 0 && output.trim()) {
|
|
696
700
|
resolve2(output.trim());
|
|
697
701
|
} else {
|
|
702
|
+
debug(`claude CLI exited with code ${code}`);
|
|
703
|
+
if (stderr.trim()) {
|
|
704
|
+
debug(`claude stderr: ${stderr.trim()}`);
|
|
705
|
+
}
|
|
706
|
+
if (!output.trim() && code === 0) {
|
|
707
|
+
debug("claude CLI returned empty output");
|
|
708
|
+
}
|
|
698
709
|
resolve2(null);
|
|
699
710
|
}
|
|
700
711
|
});
|
|
701
|
-
proc.on("error", () =>
|
|
712
|
+
proc.on("error", (err) => {
|
|
713
|
+
debug(`Failed to spawn claude CLI: ${err.message}`);
|
|
714
|
+
resolve2(null);
|
|
715
|
+
});
|
|
702
716
|
});
|
|
703
717
|
}
|
|
704
718
|
async function createGitHubRelease(version, body, cwd, dryRun) {
|
|
@@ -1292,7 +1306,7 @@ async function main() {
|
|
|
1292
1306
|
console.log(aiNotes);
|
|
1293
1307
|
console.log("");
|
|
1294
1308
|
} else {
|
|
1295
|
-
console.log(yellow("AI generation failed, falling back to commit list."));
|
|
1309
|
+
console.log(yellow("AI generation failed, falling back to commit list.") + dim(" (run with --verbose for details)"));
|
|
1296
1310
|
}
|
|
1297
1311
|
}
|
|
1298
1312
|
}
|