From 2292a618872f71aea05daee27273b7045b1bc727 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 14 Dec 2025 12:17:47 +0900 Subject: [PATCH] fix(command): fix get-unpublished-changes shell injection bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change model to anthropic/claude-haiku-4 - Fix local-version: use node -p instead of broken sed pattern - Fix commits/diff: use xargs -I{} pipeline instead of subshell 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- .opencode/command/get-unpublished-changes.md | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .opencode/command/get-unpublished-changes.md diff --git a/.opencode/command/get-unpublished-changes.md b/.opencode/command/get-unpublished-changes.md new file mode 100644 index 0000000..5fd797b --- /dev/null +++ b/.opencode/command/get-unpublished-changes.md @@ -0,0 +1,54 @@ +--- +description: Compare HEAD with the latest published npm version and list all unpublished changes +model: anthropic/claude-haiku-4-5 +--- + + +Analyze the unpublished changes since the last npm release and provide a structured summary. + +Your task: +1. Review the context below (auto-injected via shell) +2. Summarize changes grouped by type (feat, fix, refactor, docs, chore) +3. Highlight breaking changes if any +4. Suggest next version bump (major/minor/patch) based on conventional commits + + + + +!`npm view oh-my-opencode version 2>/dev/null || echo "not published"` + + +!`node -p "require('./package.json').version" 2>/dev/null || echo "unknown"` + + +!`git tag --sort=-v:refname | head -1 2>/dev/null || echo "no tags"` + + + + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git log "v{}"..HEAD --oneline 2>/dev/null || echo "no commits since release"` + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git diff "v{}"..HEAD --stat 2>/dev/null || echo "no diff available"` + + +!`npm view oh-my-opencode version 2>/dev/null | xargs -I{} git diff "v{}"..HEAD --stat 2>/dev/null | tail -1 || echo ""` + + + + +## Unpublished Changes (v{published} → HEAD) + +### Commits ({count}) +| Type | Scope | Description | +|------|-------|-------------| +| ... | ... | ... | + +### Files Changed +{diff-stat summary} + +### Suggested Version Bump +- **Recommendation**: {patch|minor|major} +- **Reason**: {brief explanation} +