Repository navigation
feat(setup)!: expand agent integrations and verify updates - #577
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Add native configuration formats for OpenCode, Antigravity, GitHub Copilot CLI, VS Code, and Devin. Preserve JSONC comments and unrelated settings while making setup and uninstall ownership-aware and idempotent. Select agent targets before planning, separate discovery from intent, and keep agent-only setup independent of optional provider prerequisites. Cover configuration boundaries and interactive behavior in packaged checks. BREAKING CHANGE: unscoped setup refreshes only existing REA-owned registrations. Use --all-detected to configure every detected client. Setup JSON contains a compact doctor summary; use rea doctor for full diagnostics. Cancellation and successful dry runs now exit successfully.
Resolve an exact release through npm's configured registry, update only the identified installation, and verify its new executable before reporting success. Return a read-only maintenance plan for existing enabled REA integrations. BREAKING CHANGE: replace rea upgrade with rea update; no alias is retained. Successful update JSON uses status "updated", reports the verified installed version, and returns an unapplied maintenance plan instead of opening setup.
morluto
force-pushed
the
feat/onboarding-agent-integrations
branch
from
October 5, 2026 15:05
17fbae5 to
3647e91
Compare
6 tasks done
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
* feat(setup)!: expand agent integrations and simplify onboarding Add native configuration formats for OpenCode, Antigravity, GitHub Copilot CLI, VS Code, and Devin. Preserve JSONC comments and unrelated settings while making setup and uninstall ownership-aware and idempotent. Select agent targets before planning, separate discovery from intent, and keep agent-only setup independent of optional provider prerequisites. Cover configuration boundaries and interactive behavior in packaged checks. BREAKING CHANGE: unscoped setup refreshes only existing REA-owned registrations. Use --all-detected to configure every detected client. Setup JSON contains a compact doctor summary; use rea doctor for full diagnostics. Cancellation and successful dry runs now exit successfully. * feat(cli)!: replace upgrade with verified updates Resolve an exact release through npm's configured registry, update only the identified installation, and verify its new executable before reporting success. Return a read-only maintenance plan for existing enabled REA integrations. BREAKING CHANGE: replace rea upgrade with rea update; no alias is retained. Successful update JSON uses status "updated", reports the verified installed version, and returns an unapplied maintenance plan instead of opening setup.
13 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
REA setup now supports all 11 global agent formats in Context7's setup, and
rea updateinstalls an exact release into the existing installation and verifies its executable. Integration maintenance is returned as an unapplied plan instead of reopening onboarding.This implements the requested onboarding audit, client-format expansion, and updater cleanup; there is no dedicated tracking issue.
Problem and expected behavior
Setup previously hid undetected agents, treated detection as intent, and could require a binary-analysis provider for an agent-only integration. Generic JSON registration could not represent OpenCode or VS Code's native MCP layouts. The updater installed a floating version without verifying the resulting executable, then reopened setup for all detected agents.
Any supported agent can now be selected on a fresh machine. Existing REA registrations establish repeat-run defaults; detection supplies context. Setup resolves the selected plan before confirmation and verifies only that scope. Updates resolve and install the same exact release through npm's configured registry and prefix, verify that installation's executable, and plan maintenance only for existing enabled REA registrations and an already installed REA skill.
Change and scope
rea updateonly. Refuse unowned installations instead of creating an unrelated global installation. Keep JSON output clean and preserve actual npm and executable diagnostics.Contract and boundary impact
[email protected],[email protected], and development types@types/[email protected]. No external runtimes or package managers are installed.Evidence and regression coverage
[email protected] setupfrom isolated and checkout contexts, cancelling before mutation. Reviewed Pi's authoritative update implementation for exact-version and verification behavior.Representative invocations:
The interactive flow asks “Which agents should use REA?”, shows detected and configured state, and displays resolved preflight before “Apply these changes?”. Cancellation returns
status: "cancelled"; dry runs returnstatus: "planned", both with exit code 0. A successful update returnsstatus: "updated",installedVersion, andmaintenance; a planned maintenance result includes its exact command and actions.Validation performed
npm run check:pr— passed again after rebasing onto the latest main; 345 test files, 1,937 tests passed and 1 skipped, plus static and generated-document checks.npm run docs:generate— passed.npm run build:cached,npm run check:fast, and 39 focused update/maintenance tests — passed after the final registry-prefix refinement.node scripts/verify-package.mjs— passed against the packaged artifact, including setup, real TTY behavior, uninstall, MCP startup, and real npm update/verification.node scripts/verify-windows-package.mjs— passed on macOS after the final registry-prefix refinement, including OpenCode, VS Code, Copilot, repeat setup, uninstall, and update. This is not a native Windows result; updater tests are also included in the Windows CI lane.Compatibility, safety, and release
--all-detectedto configure every detected client. Setup JSON exposes a compact doctor summary;rea doctorremains the full diagnostic command. Cancellation and successful dry runs exit 0.rea upgradewithout an alias; userea update. Successful update results usestatus: "updated", include the verified installed version and exact command arguments, and return unapplied maintenance instead of opening setup.Review checklist