Skip to content

feat(setup)!: expand agent integrations and verify updates - #577

Merged
morluto merged 2 commits into
mainfrom
feat/onboarding-agent-integrations
Oct 5, 2026
Merged

morluto merged 2 commits into
mainfrom
feat/onboarding-agent-integrations

Conversation

@morluto

@morluto morluto commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

REA setup now supports all 11 global agent formats in Context7's setup, and rea update installs 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

  • Add OpenCode, Antigravity, GitHub Copilot CLI, and VS Code, and enable Devin. Implement native registration dialects and platform-aware paths, including environment overrides and existing OpenCode JSONC files.
  • Preserve JSONC comments, unrelated settings, backups, symlink behavior, and idempotency. Share registration ownership checks between discovery and uninstall.
  • Present agent selection first, include the guided skill with agent integrations, and offer Hopper separately. Keep approval tied to resolved paths, launchers, environment, and backup effects.
  • Distinguish cancellation, dry runs, and requests needing confirmation. Require all terminal-owned streams to be TTYs before starting interactive prompts.
  • Replace the old updater command with rea update only. Refuse unowned installations instead of creating an unrelated global installation. Keep JSON output clean and preserve actual npm and executable diagnostics.
  • Return the verified version, exact install command, and unapplied maintenance plan. Run the returned scoped setup command to review and approve integration changes; update itself does not write agent configuration.
  • Expand packaged setup, uninstall, and update checks and regenerate owning documentation and catalog metadata.

Contract and boundary impact

  • Semantic owner and earliest changed stage: application setup discovery, client configuration parsing, planning, verification, and installation ownership. Terminal components remain in the CLI adapter.
  • CLI and MCP/tool-catalog contract: setup selection, JSON diagnostics, exit statuses, and update command/results change. Analysis MCP tools are unchanged.
  • Provider, bridge, target-format, or platform compatibility: provider operations are unchanged. Client paths account for Windows, macOS, and Linux; updater subprocesses use cross-spawn for Windows npm launchers.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Process execution, authorization, cleanup, or containment impact: agent-only setup no longer requires provider prerequisites. Setup still requires approval for planned writes and optional Hopper installation. Update installs REA and verifies the new entry point; its subsequent setup probe is read-only.
  • Generated metadata, package, or installation impact: regenerate the product catalog and derived skill/conformance digests. Add pinned [email protected], [email protected], and development types @types/[email protected]. No external runtimes or package managers are installed.

Evidence and regression coverage

  • Unit and boundary tests exercise registration dialects, malformed selected configs before mutation, ownership, fresh and repeat setup, provider-independent readiness, cancellation, and redirected output.
  • Update tests cover exact versions, invalid metadata, unknown installations, canonical/custom prefixes, wrong installed versions, complete subprocess output, actual error details, disabled and foreign integrations, and malformed/out-of-scope maintenance plans.
  • Packaged checks exercise JSONC preservation, backups, symlink lifecycle, recovery, uninstall, real TTY cancellation and restoration, redirected output, and actual npm release lookup/install against a local registry fixture.
  • The packaged update fixture gives the installed package an older version identity while retaining the new updater code, then installs the unmodified target tarball. It verifies the new executable and proves that integration maintenance leaves configuration untouched.
  • Compared onboarding against Context7's authoritative client registry and observed [email protected] setup from isolated and checkout contexts, cancelling before mutation. Reviewed Pi's authoritative update implementation for exact-version and verification behavior.
  • Remaining proof gaps: native Windows execution runs in CI; the Windows package verifier was exercised locally on macOS. Actual agent applications were not launched. The published-release canary has been adapted for this updater but cannot exercise the new implementation until it is published.

Representative invocations:

rea setup --client opencode --client vscode --client copilot_cli --dry-run
rea setup --client opencode --yes
rea setup --all-detected --yes
rea update --json

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 return status: "planned", both with exit code 0. A successful update returns status: "updated", installedVersion, and maintenance; 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.
  • Script syntax, formatting, lint, document-fact, and staged diff checks — passed.

Compatibility, safety, and release

  • Breaking changes: unscoped setup refreshes only existing REA-owned registrations. Use --all-detected to configure every detected client. Setup JSON exposes a compact doctor summary; rea doctor remains the full diagnostic command. Cancellation and successful dry runs exit 0.
  • Breaking changes: remove rea upgrade without an alias; use rea update. Successful update results use status: "updated", include the verified installed version and exact command arguments, and return unapplied maintenance instead of opening setup.
  • Real Hopper/Ghidra and browser verification was not performed; provider runtime behavior is unchanged. Packaged verification ran on macOS arm64; native Windows coverage remains CI.
  • Configuration changes are additive, backed up, and verified. Uninstall removes only owned REA registrations and preserves other settings. Selected malformed configs block before earlier writes. Failed installed-version verification reports that npm completed and the installation may have changed.

Review checklist

  • The PR has one focused outcome and a Conventional Commit title.
  • The reason for no tracking issue is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs and generated metadata are updated.
  • Representative CLI behavior is included.
  • The final diff was checked for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@morluto morluto changed the title feat(setup)!: expand agent integrations and simplify onboarding feat(setup)!: expand agent integrations and verify updates Oct 5, 2026
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
morluto force-pushed the feat/onboarding-agent-integrations branch from 17fbae5 to 3647e91 Compare October 5, 2026 15:05
@morluto
morluto merged commit 6256b68 into main Oct 5, 2026
1 check passed
@morluto
morluto deleted the feat/onboarding-agent-integrations branch October 5, 2026 15:06
@morluto morluto mentioned this pull request Oct 5, 2026
2 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.
@morluto morluto added enhancement New feature or request area: setup Setup, packaging, upgrade, install, Doctor, and client registration labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant