kaizen-agent 1.5.1 → 1.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.
Files changed (2) hide show
  1. package/cli/release.sh +14 -3
  2. package/package.json +1 -1
package/cli/release.sh CHANGED
@@ -26,9 +26,20 @@ if gh release view "$tag" >/dev/null 2>&1; then
26
26
  exit 0
27
27
  fi
28
28
 
29
- # --generate-notes lists the commits since the last tag. Good enough to never be
30
- # empty; rewrite it with what actually changed when the release matters.
31
- gh release create "$tag" --title "$tag" --generate-notes >/dev/null 2>&1 \
29
+ # --generate-notes only lists pull requests, and this repo merges none, so the
30
+ # notes are built here: the title from the release commit's subject, the body from
31
+ # every commit since the previous tag with its message, oldest first.
32
+ prev="$(git describe --tags --abbrev=0 "$tag^" 2>/dev/null || true)"
33
+ subject="$(git log -1 --format=%s "$tag" | sed -n 's/^Release [0-9.]*: //p')"
34
+ title="$tag${subject:+: $subject}"
35
+ notes="$(mktemp)"
36
+ git log --reverse --format='### %s%n%n%b' ${prev:+"$prev.."}"$tag" \
37
+ | grep -vE '^(Co-Authored-By|Claude-Session):' \
38
+ | grep -vE '^### Release [0-9.]+:' \
39
+ | cat -s > "$notes"
40
+ [ -n "$prev" ] && printf '\n**Full Changelog**: https://github.com/hfadhlullah/kaizen/compare/%s...%s\n' "$prev" "$tag" >> "$notes"
41
+ gh release create "$tag" --title "$title" --notes-file "$notes" >/dev/null 2>&1 \
32
42
  && echo "release: published $tag https://github.com/hfadhlullah/kaizen/releases/tag/$tag" \
33
43
  || echo "release: tag pushed, release not created"
44
+ rm -f "$notes"
34
45
  exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaizen-agent",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Staged workflow for AI agents — code, writing, research, operations: plan, human approval, build, independent review, bounded fix loop.",
5
5
  "type": "module",
6
6
  "bin": {