chore: add docs/llm-guide.md to version sync checks - #614
Conversation
The llm-guide.md "Version" header had drifted to 0.6.15 while every other version artifact was at 0.7.16, because version-sync.js and check-version-sync.js never touched it. Bring it in line with package.json and fold it into the sync/check pipeline so it can't drift silently again.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe version-sync tooling now updates and validates ChangesVersion synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR extends the version synchronisation system to cover
Confidence Score: 4/5Safe to merge after fixing the stale row-count sentence in CLAUDE.md; all script and test logic is correct. The checker regex, syncer replacement pattern, and test fixtures all agree and correctly cover mismatch and missing-header scenarios. The only error is that CLAUDE.md's prose still says "first five rows" after a sixth row was added to the table — a developer or AI agent consulting the guide would get an incorrect count of which rows require manual syncing. CLAUDE.md — the "first five rows" sentence needs updating to "first six rows". Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[npm version bump] --> B[package.json\nsource of truth]
B --> C[npm run version-sync]
C --> D[docs/roadmap.md\nCurrent version: **X.Y.Z**]
C --> E[docs/llm-guide.md\nVersion: **X.Y.Z**]
C --> F[configurator/package.json]
C --> G[configurator/package-lock.json]
B --> H[npm run check:version]
H --> I{All refs match?}
I -- yes --> J[CI passes]
I -- no --> K[CI fails\ncheck-version-sync exits 1]
style E fill:#d4edda,stroke:#28a745
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[npm version bump] --> B[package.json\nsource of truth]
B --> C[npm run version-sync]
C --> D[docs/roadmap.md\nCurrent version: **X.Y.Z**]
C --> E[docs/llm-guide.md\nVersion: **X.Y.Z**]
C --> F[configurator/package.json]
C --> G[configurator/package-lock.json]
B --> H[npm run check:version]
H --> I{All refs match?}
I -- yes --> J[CI passes]
I -- no --> K[CI fails\ncheck-version-sync exits 1]
style E fill:#d4edda,stroke:#28a745
|
Greptile review on #614 caught it: adding docs/llm-guide.md made six manually-synced rows, but the prose still said five.
Summary
Extends the version synchronization system to include
docs/llm-guide.md, ensuring the version header in the LLM guide stays in sync withpackage.jsonalongside existing checks fordocs/roadmap.mdand configurator files.Updates both the checker (
check-version-sync.js) and syncer (version-sync.js) scripts, adds corresponding test coverage, and bumps the guide version to 0.7.16 to reflect the current framework version.Type
Checklist
feat:,fix:,docs:, …) — enforced by commitlintnpm run lint:csspasses (stylelint)npm run buildrebuildsdist/(bundles are git-ignored; CI rebuilds and stamps headers)npm testpasses (unit + Playwright e2e)npm run check:version)npm run check:macros,check:registry,audit:check)Notes
docs/llm-guide.mdmatching the patternVersion: **X.Y.Z**CLAUDE.mdto document the new sync requirementhttps://claude.ai/code/session_01RX7TYJhAFYCMf7i9cDxMzH
Summary by CodeRabbit
Documentation
Bug Fixes
Tests