kaizen-agent 1.5.0 → 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.
- package/README.md +2 -1
- package/cli/install.ts +5 -0
- package/cli/release.sh +14 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -423,7 +423,8 @@ kaizen upgrade
|
|
|
423
423
|
That pulls the latest workflow, relinks anything new, and clears the installer cache
|
|
424
424
|
`bunx` keeps — which is what otherwise leaves you on an old version without saying
|
|
425
425
|
so. `bunx kaizen-agent upgrade` does the same thing if you would rather not have the
|
|
426
|
-
command.
|
|
426
|
+
command. `kaizen --version` prints what is installed; `bunx kaizen-agent --version`
|
|
427
|
+
prints what npm has.
|
|
427
428
|
|
|
428
429
|
Then, in any project, just ask for something:
|
|
429
430
|
|
package/cli/install.ts
CHANGED
|
@@ -70,6 +70,11 @@ const onPath = new Set(
|
|
|
70
70
|
const found = (r: string) =>
|
|
71
71
|
AGENTS.filter((a) => existsSync(join(r, a.dir)) || onPath.has(a.dir));
|
|
72
72
|
|
|
73
|
+
if (args.has("--version") || args.has("-v") || args.has("version")) {
|
|
74
|
+
console.log(versionOf(dirname(import.meta.dir)));
|
|
75
|
+
process.exit(0);
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
if (uninstall) { await removeEverything(); process.exit(0); }
|
|
74
79
|
|
|
75
80
|
// Everything kaizen put on this machine, in one place, so uninstalling needs no
|
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
|
|
30
|
-
#
|
|
31
|
-
|
|
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.
|
|
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": {
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"install-links": "bun run cli/install.ts",
|
|
21
21
|
"check": "bun run cli/install.ts --check",
|
|
22
22
|
"postpublish": "sh cli/release.sh",
|
|
23
|
-
"publish:gh": "sh cli/publish-gh.sh"
|
|
23
|
+
"publish:gh": "sh cli/publish-gh.sh",
|
|
24
|
+
"release": "bun publish && bun run publish:gh"
|
|
24
25
|
},
|
|
25
26
|
"repository": {
|
|
26
27
|
"type": "git",
|