Skip to content

Prepare 0.27.8 README refactor - #466

Merged
mohanagy merged 2 commits into
mainfrom
codex/readme-refactor-0.27.8
Jun 2, 2026
Merged

mohanagy merged 2 commits into
mainfrom
codex/readme-refactor-0.27.8

Conversation

@mohanagy

@mohanagy mohanagy commented Jun 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bump package, lockfile, changelog, and MCP Registry metadata to 0.27.8.
  • Refactor README into a shorter npm-facing landing page and remove the demo section.
  • Move long-form context-pack and CLI/MCP reference details into dedicated docs.
  • Update doc tests to assert the moved content in the new docs.

Testing

  • npm run typecheck
  • npm run test:run
  • npm run release:verify
  • npm run registry:validate
  • npm run build
  • npm audit --omit=dev
  • npm pack --dry-run

Summary by CodeRabbit

  • Documentation

    • Restructured README into a concise npm-facing landing page with an updated quickstart and agent guidance.
    • Added dedicated docs for context-packs and CLI/MCP usage; consolidated documentation links and trust/limits guidance.
    • Clarified telemetry docs with explicit environment-variable examples and updated “What’s New”.
  • Tests

    • Updated documentation-focused tests to validate the new docs corpus and CLI/MCP guidance.
  • Chores

    • Version bumped to 0.27.8 and changelog updated.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ef8c00fb-32ac-42fe-b007-ecbebd487d07

📥 Commits

Reviewing files that changed from the base of the PR and between 9705b4e and 8f1a6c5.

📒 Files selected for processing (3)
  • README.md
  • docs/concepts/context-packs.md
  • tests/unit/install-docs.test.ts
✅ Files skipped from review due to trivial changes (1)
  • docs/concepts/context-packs.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md

📝 Walkthrough

Walkthrough

This PR restructures Madar docs for v0.27.8: it moves long-form CLI/MCP and context-pack content into new docs/ pages, converts README into an npm-facing landing page, bumps package/registry versions, and updates tests to validate the combined public-docs corpus.

Changes

Documentation restructure and 0.27.8 release

Layer / File(s) Summary
Version bump and release metadata
CHANGELOG.md, package.json, docs/mcp-registry/server.json
Version incremented from 0.27.7 to 0.27.8 across package metadata and registry, with a changelog entry documenting the README/docs restructuring.
New reference documentation pages
docs/concepts/context-packs.md, docs/reference/cli-and-mcp.md
Adds context-packs.md (Pack Schema v1, rendering modes, --spi) and cli-and-mcp.md (agent install profiles, MCP tool surface, common CLI commands, discovery rules).
README restructure as npm landing page
README.md
README rewritten as a shorter npm-facing landing page: updated intro/ICP positioning, new Quickstart/agent flows, telemetry example, and links to the new docs.
Test updates for documentation validation
tests/unit/install-docs.test.ts, tests/unit/mcp-registry-metadata.test.ts, tests/unit/why-madar-doc.test.ts
Tests now read docs/reference/cli-and-mcp.md (install/docs checks) and build a combined publicDocs corpus including new pages for broader assertions about positioning, claims, and MCP alignment.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • mohanagy/madar#439: Adjusts onboarding/agent verification flows (madar doctor/madar status) similar to this PR's Quickstart/agent guidance changes.
  • mohanagy/madar#453: Overlaps on README positioning and honesty/claims assertions validated by why-madar-doc.test.ts.
  • mohanagy/madar#463: Related release bookkeeping that bumps package and registry versions and updates changelog/readme links.

Poem

🐇 A rabbit hops through docs with cheer,
Moving long guides to pages clear.
A landing README, tests aligned,
Versions bumped and links combined.
Hooray — the docs are neat and near!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Prepare 0.27.8 README refactor' accurately summarizes the main change: a version bump and README restructuring for the 0.27.8 release.
Description check ✅ Passed The PR description covers all required template sections: a clear summary of changes, comprehensive testing commands, and a focused scope; all required checklist items are addressed or verifiable from the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/readme-refactor-0.27.8

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
tests/unit/install-docs.test.ts (1)

10-17: ⚡ Quick win

Loosen 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.md will 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

📥 Commits

Reviewing files that changed from the base of the PR and between d942bc3 and 9705b4e.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (9)
  • CHANGELOG.md
  • README.md
  • docs/concepts/context-packs.md
  • docs/mcp-registry/server.json
  • docs/reference/cli-and-mcp.md
  • package.json
  • tests/unit/install-docs.test.ts
  • tests/unit/mcp-registry-metadata.test.ts
  • tests/unit/why-madar-doc.test.ts

Comment thread docs/concepts/context-packs.md Resolved
Comment thread README.md Resolved
@mohanagy
mohanagy merged commit 5370422 into main Jun 2, 2026
7 checks passed
@mohanagy
mohanagy deleted the codex/readme-refactor-0.27.8 branch June 2, 2026 04:52
@coderabbitai coderabbitai Bot mentioned this pull request Jul 18, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant