fix(agents): revert accidental major bump to 0.13.0 and block future major bumps#57
Conversation
…major bumps Unpublished @funkai/agents@1.0.0 from npm (accidental major bump, should have been minor). Reverts version to 0.13.0 and CHANGELOG to "Minor Changes". Adds CI guard that fails PRs containing major bumps for any @funkai/* package, and documents pre-1.0 changeset rules in .changeset/AGENTS.md. Co-Authored-By: Claude <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 61e40d8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRolls back Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches⚔️ Resolve merge conflicts
Comment |
Move pre-1.0 changeset guidance into the root AGENTS.md (Git Workflow section) instead of a separate .changeset/AGENTS.md file. Remove the now-unnecessary skip in the CI check. Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/ci.yml:
- Around line 62-69: The for-loop that iterates over ".changeset/*.md" can leave
the literal pattern when no files exist, causing grep to error; enable bash
nullglob before the loop (shopt -s nullglob) and restore previous setting
afterwards or rewrite the loop to explicitly check directory contents so the
pattern expands to an empty list when there are no changeset files; adjust the
block around the for f in .changeset/*.md loop and keep the existing checks (the
grep -qP '^"@funkai/.+?":\s*major' "$f" and the found=1 assignment) unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: a64c8e4b-f196-4ee5-a6c7-65ea41aed2a9
📒 Files selected for processing (4)
.changeset/AGENTS.md.github/workflows/ci.ymlpackages/agents/CHANGELOG.mdpackages/agents/package.json
Revert manual version/CHANGELOG changes and let changeset automation handle the bump to 0.13.0 properly. Co-Authored-By: Claude <noreply@anthropic.com>
Prevents confusing "No such file" error when no changeset files exist. Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.github/workflows/ci.yml (1)
62-64:⚠️ Potential issue | 🟡 MinorHandle empty changeset globs safely in the guard loop.
Line 62 can iterate the literal pattern when no files match, so Line 64 runs
grepagainst a non-existent file. Make the glob expand to an empty list.Proposed fix
- name: Block major version bumps (pre-1.0) run: | + shopt -s nullglob found=0 for f in .changeset/*.md; do - [ "$f" = ".changeset/README.md" ] && continue + [ "$f" = ".changeset/README.md" ] && continue if grep -qP '^"@funkai/.+?":\s*major' "$f"; then echo "::error file=$f::Major bump detected — all `@funkai/`* packages are pre-1.0. Use 'minor' for breaking changes." found=1 fi done exit $found#!/bin/bash set -euo pipefail echo "Inspecting guard step in .github/workflows/ci.yml" nl -ba .github/workflows/ci.yml | sed -n '56,72p' echo echo "Checking for nullglob and loop pattern:" rg -n 'nullglob|for f in \.changeset/\*\.md|grep -qP' .github/workflows/ci.yml🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/ci.yml around lines 62 - 64, The loop "for f in .changeset/*.md; do" can iterate the literal pattern when no files match; enable safe globbing by adding a Bash nullglob before the loop (shopt -s nullglob) and optionally restore it after (shopt -u nullglob), so the guard '[ "$f" = ".changeset/README.md" ] && continue' and the subsequent grep -qP '^"@funkai/.+?":\s*major' "$f" only run for real files; alternatively, if you prefer not to change shell options, add an existence check inside the loop (e.g., [ -e "$f" ] || continue) to skip non-existent matches.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In @.github/workflows/ci.yml:
- Around line 62-64: The loop "for f in .changeset/*.md; do" can iterate the
literal pattern when no files match; enable safe globbing by adding a Bash
nullglob before the loop (shopt -s nullglob) and optionally restore it after
(shopt -u nullglob), so the guard '[ "$f" = ".changeset/README.md" ] &&
continue' and the subsequent grep -qP '^"@funkai/.+?":\s*major' "$f" only run
for real files; alternatively, if you prefer not to change shell options, add an
existence check inside the loop (e.g., [ -e "$f" ] || continue) to skip
non-existent matches.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: a9873061-8af0-4e3f-8765-8a2186117dd2
📒 Files selected for processing (5)
.changeset/step-finish-ai-sdk-passthrough.md.github/workflows/ci.ymlAGENTS.mdpackages/agents/CHANGELOG.mdpackages/agents/package.json
💤 Files with no reviewable changes (1)
- packages/agents/CHANGELOG.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
@funkai/agents@1.0.0from npm (accidental major bump — should have been minor)package.jsonversion to0.13.0and CHANGELOG heading to "Minor Changes".changeset/AGENTS.mddocumenting pre-1.0 bump rules (minor for breaking, patch for non-breaking, never major)changesetjob that fails PRs containingmajorbumps for any@funkai/*packageTest plan
@funkai/agents@1.0.0is no longer on npmchangesetjob catches major bumps on PRs@funkai/agents@0.13.0