Repository navigation
feat(setup): support CodeBuddy as a setup client - #2492
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@greptileai review |
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryAdds CodeBuddy to the shared setup client definitions.
Reviews (14) · Last reviewed commit: "feat(setup): support CodeBuddy as a setu..." · Reviewed by Greptile |
51409fe to
a237654
Compare
3386b4f to
925761e
Compare
|
TL;DR: The new CodeBuddy entry works on Linux, on Node 24 and 26. On main, no such client exists. On the PR head, setup's file writer, status check and uninstall all behave. I did not run I tested head 925761e as pushed. GitHub shows it as mergeable with main 70cd4cb. I also applied the PR diff to main and re-ran the tests. They passed. Results
Before and after. Each file below is under a throwaway home folder.
Writer, on head. I used four start files: one with other servers, one with no servers key, one empty, and one missing. In each case the first write said configured. The second said unchanged, with identical bytes. The status check said aligned. Uninstall removed only the Not run
Thanks, Xiangfang Chen, for the PR and the clear tests. Test setupCommandsThe script 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
5e82902 to
4d3e85a
Compare
81b8f4a to
213e524
Compare
Register rea in the global ~/.codebuddy/mcp.json through a new codebuddy entry in SUPPORTED_CLIENT_DEFINITIONS (json dialect, ~/.codebuddy marker, ~/.codebuddy/skills skill directory). Document the client and cover registration and uninstall with boundary tests. Loading, the bundled skill, and real REA tool calls were verified in the CodeBuddy client.
213e524 to
9505450
Compare
Summary
Adds CodeBuddy as a supported setup client.
rea setup --client codebuddy(and auto-detection when~/.codebuddyexists) now registers REA's local MCP server in the global~/.codebuddy/mcp.jsonand installs the bundled skill under~/.codebuddy/skills. Closes #2490.Problem and expected behavior
CodeBuddy reads a standard
mcpServersJSON file at~/.codebuddy/mcp.json, but it was absent fromSUPPORTED_CLIENT_DEFINITIONS, so CodeBuddy users had to hand-edit that file andrea setup/doctor/uninstallcould not manage the registration. Expected behavior now: setup upsertsmcpServers.rea(stdio command) while preserving unrelated servers and top-level keys; client detection uses the~/.codebuddydirectory as its marker; uninstall removes only thereaentry.Change and scope
codebuddyentry inSUPPORTED_CLIENT_DEFINITIONSmirroring the Cursorjson-dialect entry plus askillPath(.codebuddy/skills). The--clientallowlist, detection, registration, uninstall, and the generated product catalog all derive from this array, so no CLI or registration-logic changes were needed.docs/installation.md; a CodeBuddy section indocs/client-configuration.md.tests/boundary/filesystem/codebuddyClientConfiguration.test.tsmirroring the Trae client tests; detection list inclientLifecycle.test.tsextended.Follow the contribution scope: not applicable — an ordinary setup-client addition within existing boundaries; no new provider and no capability involving target execution, injection, mutation, or protection recovery.
Contract and boundary impact
--client codebuddyvalue;docs/public/product-catalog.jsonsetup_clientsgainscodebuddy(generated and CI-validated; not committed).docs/public/product-catalog.json), package, or installation impact: regenerated locally to validate (node scripts/generate-product-catalog.mjs); the file is gitignored and CI-generated.Expected effects (check known effects; use documentation-only on its own).
Setup itself writes only the user's local CodeBuddy configuration file on explicit request; no analyzed-target interaction is introduced.
Evidence and regression coverage
tests/boundary/filesystem/codebuddyClientConfiguration.test.ts(new; per-platform path resolution,jsonformat, personal skill directory, upsert preserving unrelated servers, registration into an existing config without servers, registration into an empty file, uninstall removing onlyrea);tests/boundary/filesystem/clientLifecycle.test.tsdetection list extended withcodebuddy.supportedClients(home)returned nocodebuddyclient and--client codebuddyfailed CLI validation.node scripts/rea.mjs setup --client codebuddy --skill-client codebuddy --yes:<home>/.codebuddy/mcp.json(the registeredcommandreflects the entrypoint that launched setup — the local checkout in this run,npx -y rea-agents@latest mcpfrom a published install):{ "mcpServers": { "rea": { "command": "<rea entrypoint>", "args": ["mcp"] } } }docs/client-configuration.md, commit 7ae8b11).For evidence-bearing changes: not applicable — this change produces no analysis evidence or artifacts.
Validation performed
npm run typecheck— passednpx vitest run tests/boundary/filesystem/clientLifecycle.test.ts tests/boundary/filesystem/codebuddyClientConfiguration.test.ts tests/boundary/filesystem/productCatalog.test.ts— 71/71 tests passednode scripts/check-doc-facts.mjs— no issuesnode scripts/generate-product-catalog.mjs --check— generated catalog matches source definitionsnpx oxfmt --checkon the five changed files — all formattednpx oxlinton the changed source/test files — no new findings (pre-existingmax-lineswarning inSupportedClients.tsunchanged)npm run build:cached— build succeeded; isolated-HOMEsetup --client codebuddy --skill-client codebuddy --yesrun configured the client and installed the skill as shown aboveCompatibility, safety, and release
codebuddysetup client; documentation updated.Author readiness
Human owner: @cainiao1992
Before merge
type(scope): outcome.