Repository navigation
Prepare 0.27.8 README refactor - #466
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR restructures Madar docs for v0.27.8: it moves long-form CLI/MCP and context-pack content into new ChangesDocumentation restructure and 0.27.8 release
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
tests/unit/install-docs.test.ts (1)
10-17: ⚡ Quick winLoosen the doc assertions to stable invariants.
These checks now pin full markdown rows and exact phrasing, so harmless copy or table-format edits in
docs/reference/cli-and-mcp.mdwill fail the suite. Prefer asserting the durable facts per agent/profile/command with smaller substrings or targeted regexes.Also applies to: 23-29, 43-50
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/unit/install-docs.test.ts` around lines 10 - 17, The test is asserting entire markdown rows which is brittle; update the assertions in tests/unit/install-docs.test.ts that reference the variable reference so they assert durable facts instead of exact rows — for each agent/profile, replace the long expect(reference).toContain(...) with focused checks such as verifying the agent name and its install command separately or using a targeted regex (e.g. assert reference contains "Aider" and "madar aider install", and similarly "OpenCode" and "madar opencode install"), and replace the exact phrasings like "Aider and OpenCode are intentionally context-pack-first" and the full table row with smaller substring or regex checks for "context-pack-first", 'madar pack "<task>" --task explain', and the uninstall commands ("madar aider uninstall", "madar opencode uninstall"); apply the same tightening to the other assertion blocks in this test file that check docs content.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/concepts/context-packs.md`:
- Line 60: Update the version string `0.27.7` to `0.27.8` in the sentence
referencing `--spi` so the text reflects the new package release; locate the
occurrence of `0.27.7` near the `--spi` mention and replace it with `0.27.8`.
In `@README.md`:
- Around line 23-24: The README currently states "requires both" around the
madar workflow which wrongly implies every command needs an agent install;
update the wording to clarify that "madar generate" produces the local graph
artifact and that only commands that run an agent (e.g., madar <agent> install)
need wiring, while CLI-only commands like madar summary, madar pack, madar
prompt, and madar handoff operate on the generated graph alone without requiring
an agent install. Reference the commands madar generate and madar <agent>
install and explicitly list the CLI-only commands to make the distinction clear.
---
Nitpick comments:
In `@tests/unit/install-docs.test.ts`:
- Around line 10-17: The test is asserting entire markdown rows which is
brittle; update the assertions in tests/unit/install-docs.test.ts that reference
the variable reference so they assert durable facts instead of exact rows — for
each agent/profile, replace the long expect(reference).toContain(...) with
focused checks such as verifying the agent name and its install command
separately or using a targeted regex (e.g. assert reference contains "Aider" and
"madar aider install", and similarly "OpenCode" and "madar opencode install"),
and replace the exact phrasings like "Aider and OpenCode are intentionally
context-pack-first" and the full table row with smaller substring or regex
checks for "context-pack-first", 'madar pack "<task>" --task explain', and the
uninstall commands ("madar aider uninstall", "madar opencode uninstall"); apply
the same tightening to the other assertion blocks in this test file that check
docs content.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 8d567991-bb4c-4e35-bae6-b940634f2750
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (9)
CHANGELOG.mdREADME.mddocs/concepts/context-packs.mddocs/mcp-registry/server.jsondocs/reference/cli-and-mcp.mdpackage.jsontests/unit/install-docs.test.tstests/unit/mcp-registry-metadata.test.tstests/unit/why-madar-doc.test.ts
Summary
Testing
Summary by CodeRabbit
Documentation
Tests
Chores