revert(setup): restore npx rea-agents setup (#15245)

Revert "fix(setup): do not persist versioned launcher paths (#15123)"

This reverts commit 92c61a7c61.
This commit is contained in:
morluto
2026-11-30 10:05:27 -05:00
committed by GitHub
parent 1a63844638
commit 9a4e2df67f
63 changed files with 52413 additions and 60543 deletions
+10 -19
View File
@@ -25,7 +25,7 @@
[Quick start](#quick-start) · [Showcases](#showcases) · [How REA works](#how-rea-works) · [What you can analyze](#what-you-can-analyze) · [Build RL environments](#build-rl-environments) · [FAQ](#faq) · [Documentation](#documentation)
<a href="docs/getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -84,18 +84,11 @@ instructions by operating system, agent, and analysis provider.
### Connect your agent (MCP)
With [Node.js and npm](docs/reference/supported-targets.md) installed, run these
commands from a trusted directory outside the project you plan to analyze.
Client setup needs Node.js and REA paths that remain available after updates,
plus a writable npm prefix. For system Node.js, `nvm`, `fnm`, or another version
manager, follow the
[installation guide](docs/getting-started/installation.md#package-runners-and-global-installation)
before these commands.
With [Node.js and npm](docs/reference/supported-targets.md) installed, run this from a trusted
directory outside the project you plan to analyze.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Choose your agent, review and approve the setup plan, then restart your agent.
@@ -124,7 +117,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
The result includes modules, imports, Electron boundaries and their evidence.
Replace the path with your target, such as `"D:/apps/example"` on Windows.
[To install the `rea` command for regular use](docs/getting-started/installation.md#user-owned-npm-installation):
To install the `rea` command for regular use:
```bash
npm install --global rea-agents
@@ -145,11 +138,10 @@ instructions.
rea update
```
To install the latest release globally and refresh your agent setup:
If you use `npx`, refresh your agent setup with:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Review the setup changes and restart your agent. See
@@ -264,7 +256,7 @@ Hopper manually if needed. See
<details>
<summary><strong>What does installing the skill from skills.sh do?</strong></summary>
The skill supplies investigation instructions for your agent. Install globally with `npm install --global rea-agents` and run `rea setup`
The skill supplies investigation instructions for your agent. Use `npx rea-agents setup`
to register REA's MCP server and install the matching instructions, then restart
your agent. See [skill-only installation](docs/getting-started/installation.md#skill-only-installation).
@@ -298,11 +290,10 @@ For a CLI installed with `npm install --global` or `bun add --global`:
rea update
```
To refresh with the latest global release:
For agent setup through `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
If you're using an agent, complete the [setup refresh](#update-rea) and restart
+12 -24
View File
@@ -17,26 +17,17 @@ the client can launch it.
For JavaScript installations, setup registers the selected runtime
executable and REA script by absolute path. On POSIX, it prefers executable
`node` or `bun` and REA aliases on setup's `PATH` only when they resolve to the
same selected files. A same-file alias is kept only when its own spelling stays
outside a versioned or cache directory, including when that alias is a symlink
to a file inside one. Setup does not save a runtime or script path under an
fnm session directory, `XDG_RUNTIME_DIR`, fnm's `node-versions/<version>/installation`
directory, nvm (`nvm/versions/node`, `.nvm/versions/node`, or an nvm-windows
`nvm\v<version>` directory), Volta's `tools/image/node` directory (including
`%LOCALAPPDATA%\Volta`), a Homebrew `Cellar/node` keg, a numbered
`mise/installs` directory, an Aube `node_modules/.mise/<package>` directory,
`asdf/installs`, `nodenv/versions`, versioned `nvs/<remote>/<version>`,
`/nix/store`, a numbered `/snap/<package>/<revision>` directory, `_npx`, pnpm
`dlx` (including `%LOCALAPPDATA%\pnpm-cache\dlx`), or the bun install cache.
Setup keeps mise's `installs/<tool>/latest` alias for its outer executable or
bin shim (while still rejecting direct `node_modules/.mise` script paths inside
it), `nvs/default`, Nix profile aliases outside `/nix/store`, and `/snap/bin`
or `/snap/<package>/current`. When every candidate is inside a rejected
directory, setup writes no registration command. Install Node and REA outside
those directories, or put stable aliases for both on `PATH`, then rerun setup.
Setup refreshes a registration of another installed `rea-agents` package; when
that installation is gone, restore it before repairing the registration,
because an unidentified registration remains untouched. See
same selected files. Setup skips paths that pass through fnm multishell
directories or `XDG_RUNTIME_DIR`, including through another symlink.
This preserves durable manager aliases across
version updates. When no eligible alias exists, setup uses the selected
installation paths. This also applies when setup
runs through a package runner: retain the selected cache entry and runtime while
the registration uses them. Clearing either makes startup fail without resolving
another package from the client's project. Setup refreshes a registration of
another installed `rea-agents` package; when that installation is gone, restore
it before repairing the registration, because an unidentified registration
remains untouched. See
[installation and recovery](installation.md#package-runners-and-global-installation).
For a supported Aube v2 package shim, setup saves a wrapper around the shim so
@@ -57,10 +48,7 @@ settings, backs up changed configuration and leaves an aligned registration
unchanged. Restart the client after applying the update.
If doctor reports a saved session path that still resolves, run setup to
refresh that registration before the session directory is removed. A
version-manager or package-cache path is not repaired by changing directories.
Install Node and REA from a durable location, or add stable aliases on `PATH`,
then run setup again.
refresh that registration before the session directory is removed.
If a runtime manager removes the registered executable and no surviving alias
was available, doctor reports its identity as unknown and setup retains the
+44 -82
View File
@@ -42,33 +42,24 @@ attachment and configuration restoration across clients.
## Start setup
Install Node.js from a durable location (or put a stable `node` alias on
`PATH`), use a [writable npm prefix](#user-owned-npm-installation), install
`rea-agents` globally, and run setup:
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Choose the agents to configure, review the proposed paths and changes, and
approve the plan. Global package installation and REA's setup approval are
approve the plan. npm's package-download approval and REA's setup approval are
separate. Setup asks before changing agent configuration or installing Hopper.
Restart the agents named in the completion message. Quit Claude Desktop fully
before approving, because a running app can overwrite the registration; on
Windows, see [where Claude Desktop reads its configuration](client-configuration.md#claude-desktop).
During package installation, npm may print a deprecation warning for `prebuild-install`
During package resolution, npm may print a deprecation warning for `prebuild-install`
from transitive native dependencies (such as Frida). This warning originates from
the upstream dependency tree and does not affect REA or indicate installation failure.
the upstream dependency tree and does not affect REA or indicate setup failure.
For one-off CLI commands (`doctor`, `analyze`, `uninstall`) without a global
install, you can use `npx -y rea-agents@latest …`, or pass a global update/pin via
[package-runner and global-installation options](#package-runners-and-global-installation).
Running `setup` directly from an `npx`/`bunx`/`pnpm dlx` package cache or an
unaliased version-manager directory refuses to save transient MCP client
registrations unless durable same-file aliases on `PATH` point to the runtime
and REA entrypoint.
For the latest published release, use `npx rea-agents@latest setup`.
[Package-runner and global-installation options](#package-runners-and-global-installation)
cover explicit versions, Bun, runtime requirements, and the curl wrapper.
## Review setup changes
@@ -294,8 +285,7 @@ For REA setup, an empty `CLAUDE_CONFIG_DIR` is treated as unset: registration
goes to `~/.claude.json` and the skill goes to `~/.claude/skills`.
```bash
npm install --global rea-agents
CLAUDE_CONFIG_DIR=~/.claude-rea rea setup --client claude_code
CLAUDE_CONFIG_DIR=~/.claude-rea npx rea-agents setup --client claude_code
CLAUDE_CONFIG_DIR=~/.claude-rea claude
```
@@ -311,8 +301,8 @@ environment and can otherwise inspect or recreate default-profile state:
```bash
CLAUDE_CONFIG_DIR=~/.claude-rea claude mcp list
CLAUDE_CONFIG_DIR=~/.claude-rea rea doctor --client claude_code --skill --json
CLAUDE_CONFIG_DIR=~/.claude-rea rea setup --client claude_code --dry-run
CLAUDE_CONFIG_DIR=~/.claude-rea npx rea-agents doctor --client claude_code --skill --json
CLAUDE_CONFIG_DIR=~/.claude-rea npx -y rea-agents@latest setup --client claude_code --dry-run
```
After reviewing an update plan, rerun that same prefixed setup command without
@@ -335,10 +325,10 @@ restore the previous selection afterward:
$previousClaudeConfigDir = $env:CLAUDE_CONFIG_DIR
try {
$env:CLAUDE_CONFIG_DIR = Join-Path $HOME ".claude-rea"
rea setup --client claude_code
npx rea-agents setup --client claude_code
claude mcp list
rea doctor --client claude_code --skill --json
rea setup --client claude_code --dry-run
npx rea-agents doctor --client claude_code --skill --json
npx -y rea-agents@latest setup --client claude_code --dry-run
# After reviewing the plan, repeat setup without --dry-run and approve it.
claude
# Profile removal, when intended, also belongs inside this selected scope:
@@ -2297,76 +2287,49 @@ Run current setup to migrate recognized older `npx`/`bunx` registrations, with
backups, then restart the client. Unrelated or unidentified registrations remain
untouched. Setup does not prewarm a separate package-runner command.
If setup itself runs from a package-runner cache (`_npx`, `pnpm dlx`, or the
Bunx execution cache) or an unaliased version-manager directory without a durable
same-file alias on `PATH`, setup refuses to save those transient paths and writes
no client registration command. Install Node.js and `rea-agents` globally from
durable paths (or provide stable same-file aliases on `PATH`), then run `rea setup`
to write the registration and migrate any legacy `npx`/`bunx` registration.
Doctor reports a saved registration of another durable installation as owned but
stale, and setup refreshes it with a backup when its script still resolves to the
CLI script named in an installed `node_modules/rea-agents/package.json`. A removed
cache or versioned entry leaves ownership unknown: restore that installation or
manually remove the confirmed REA registration before running setup again.
## User-owned npm installation
On Unix, global npm packages go under `{prefix}/lib/node_modules`, and their
commands go under `{prefix}/bin`. The macOS Node.js installer and Linux system
packages can select a prefix that your account cannot write.
Check the current prefix with `npm config get prefix`. Keep an existing writable
prefix. If you use system Node.js and need a user-owned prefix, back up
`~/.npmrc` if it exists, then run:
```sh
npm config set prefix "$HOME/.local" --location=user
export PATH="$HOME/.local/bin:$PATH"
```
This changes the destination of future global npm installations. It does not
move existing packages. Version-manager users should keep their existing
configuration and follow the durable-alias guidance below instead.
Save the PATH export once in the startup file your shell reads. Default macOS
Terminal sessions use zsh and read `~/.zprofile`. Bash login shells read the first
existing file among `~/.bash_profile`, `~/.bash_login`, and `~/.profile`.
Interactive non-login Bash shells read `~/.bashrc`. Open a new terminal and
check `npm config get prefix` before installing REA globally.
If setup itself runs from a package-runner cache, the registration depends on
that cache entry and the selected runtime remaining installed. Removing either
makes startup fail; it does not download or resolve another package. Changing
package requests, cache roots, or runtimes selects a different installation. Doctor
reports a registration of another installation as owned but stale, and setup
refreshes it with a backup, when its script still resolves to the CLI script that
an installed `node_modules/rea-agents/package.json` names. A removed cache entry
leaves ownership unknown: restore the same installation first or manually remove
the confirmed REA registration before running setup again. A global installation
provides a more durable path.
## Package runners and global installation
Global installs need a [writable npm prefix](#user-owned-npm-installation).
Package runners can read project configuration. Acquire REA from a trusted
working directory outside the target project and any REA source checkout, and
pass absolute target paths to analysis commands. To run REA from its checkout,
use the [source checkout instructions](#run-rea-from-a-checkout).
REA cannot validate package acquisition that happens before its entrypoint starts.
Use `npx` or `bunx` for one-off CLI runs such as diagnostics or standalone analysis:
To request the latest release explicitly, use:
```bash
npx -y rea-agents@latest doctor --json
npx rea-agents@latest setup
```
For an intentional rollback check or one-off command on an earlier release, make
the package request explicit:
REA runs the version npm selects. To update older agent registrations, run the
latest-version command and review its setup plan. For unattended package
downloads, add `--yes` before the package name; this does not approve REA's
setup changes.
For an intentional rollback, make the package request explicit:
```bash
npm exec --yes --package=rea-agents@2.4.0 -- rea doctor --json
npm exec --yes --package=rea-agents@2.4.0 -- rea setup
```
For persistent MCP client registrations, install Node.js and REA from durable
locations with a writable npm prefix (`npm install --global rea-agents` then
`rea setup`, or an Aube shim / stable same-file `PATH` aliases outside cache and
versioned directories). Running
setup from a package-runner cache (`_npx`, `pnpm dlx`, or a Bunx execution cache) or
from an unaliased `nvm`, `fnm`, Volta, `Homebrew Cellar`, `asdf`, `nodenv`,
versioned `nvs`, `/nix/store`, numbered `mise/installs`, or numbered `/snap`
location writes no client registration command. Setup with a durable global
install also migrates recognized legacy `npx`/`bunx` registrations through the
normal reviewed transaction. Windows registrations likewise require durable
absolute runtime and script paths rather than cache or package-runner shims.
Setup binds persistent MCP registrations to the installation that performed setup.
Running current setup later migrates recognized legacy package-runner registrations
through the normal reviewed setup transaction.
With Bun, `bunx rea-agents setup` (or `bunx rea-agents@latest setup`) is the
equivalent acquisition entry point. Managed registrations use the selected Bun
executable and REA entry script directly. Windows registrations likewise use
absolute runtime and script paths, without a package-runner command shim.
REA supports Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), and 26.12.1+. Node.js 23, 25, earlier 26.x releases, and prereleases are unsupported. It uses the npm already paired with that runtime and never upgrades Node.js, npm, or Homebrew.
@@ -2388,8 +2351,7 @@ on the shell `PATH`. Use the setup command above for the guided setup
journey, `npx -y rea-agents@latest` for unattended one-off commands, or install globally
with `npm install --global rea-agents` for a shell-visible `rea` command.
For many concurrent agent sessions, use a writable npm prefix and run setup
directly from a global installation
For many concurrent agent sessions, run setup directly from a global installation
to avoid keeping a separate npm launcher process for each MCP connection:
```bash
@@ -2401,9 +2363,9 @@ Review the plan, approve the selected client changes, then restart those clients
This registers the installed entrypoint directly; installing the global package
alone does not replace existing `npx` registrations. Each client still has its own
REA process and analysis state. Direct registrations follow the installed CLI;
use `rea update` to update it. Package-runner launches (`npx` / `bunx`) are
suitable for one-off CLI commands (`doctor`, `analyze`, `uninstall`); rerun
`rea setup` from a durable installation when changing Node.js or REA paths.
use `rea update` to update it. Running setup through `npx` again selects the
installation that executes setup, potentially in npm's temporary package cache;
retain that cache entry for as long as the registration uses it.
### npm workspace errors before REA starts
+4 -9
View File
@@ -27,18 +27,13 @@ features:
## Start with one command
Use a durable Node.js installation and a
[writable npm prefix](getting-started/installation.md#user-owned-npm-installation).
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Choose your agent, review the planned changes, and approve setup. Version-manager
installations need stable aliases for Node.js and REA. Native binary analysis
can use an existing Hopper, Ghidra, or IDA installation; static JavaScript analysis needs
no native analysis engine.
Choose your agent, review the planned changes, and approve setup. Native binary
analysis can use an existing Hopper, Ghidra, or IDA installation; static
JavaScript analysis needs no native analysis engine.
For a first result from an extracted JavaScript application or ASAR:
+8 -13
View File
@@ -25,7 +25,7 @@
[البدء السريع](#البدء-السريع) · [دراسات الحالة](#دراسات-الحالة) · [كيف يعمل REA](#كيف-يعمل-rea) · [ما الذي يمكنك تحليله](#ما-الذي-يمكنك-تحليله) · [إنشاء بيئات التعلم المعزز](#build-rl-environments) · [الأسئلة الشائعة](#الأسئلة-الشائعة) · [التوثيق](#التوثيق)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@
بعد تثبيت [Node.js وnpm](../reference/supported-targets.md)، شغّل الأمر التالي من مجلد موثوق خارج المشروع الذي تريد تحليله.
يتطلب إعداد العميل مسارات إلى Node.js وREA تظل متاحة بعد التحديثات، بالإضافة إلى بادئة npm قابلة للكتابة. عند استخدام Node.js المثبت على مستوى النظام أو `nvm` أو `fnm` أو مدير إصدارات آخر، اتبع [دليل التثبيت](../getting-started/installation.md#package-runners-and-global-installation) قبل تنفيذ هذه الأوامر.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
اختر الوكلاء، وراجع التغييرات المقترحة، ثم وافق عليها. يضيف الإعداد خادم MCP الخاص بـ REA وتعليمات سير العمل المطابقة، مع الاحتفاظ بنسخ احتياطية من الإعدادات الموجودة. أعد تشغيل وكيلك بعد ذلك.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
تتضمن النتيجة الوحدات وعمليات الاستيراد وحدود Electron والأدلة المتعلقة بها. استبدل المسار بمسار هدفك، مثل `"D:/apps/example"` على Windows.
[لتثبيت أمر `rea` للاستخدام المعتاد:](../getting-started/installation.md#user-owned-npm-installation)
لتثبيت أمر `rea` للاستخدام المعتاد:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
لتثبيت أحدث إصدار بشكل عام وتحديث إعداد الوكيل:
إذا كنت تستخدم `npx`، فحدّث إعداد وكيلك بالأمر التالي:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[التحديث وإلغاء التثبيت](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ rea setup
<details>
<summary><strong>ماذا يفعل تثبيت المهارة من skills.sh؟</strong></summary>
توفّر المهارة تعليمات الاستقصاء لوكيلك. استخدم `npm install --global rea-agents` / `rea setup` لتسجيل خادم MCP الخاص بـ REA وتثبيت التعليمات المطابقة، ثم أعد تشغيل وكيلك. راجع [تثبيت المهارة وحدها](../getting-started/installation.md#skill-only-installation).
توفّر المهارة تعليمات الاستقصاء لوكيلك. استخدم `npx rea-agents setup` لتسجيل خادم MCP الخاص بـ REA وتثبيت التعليمات المطابقة، ثم أعد تشغيل وكيلك. راجع [تثبيت المهارة وحدها](../getting-started/installation.md#skill-only-installation).
</details>
@@ -256,11 +252,10 @@ rea setup
rea update
```
للتحديث إلى أحدث إصدار عام:
لإعداد الوكيل عبر `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
إذا كنت تستخدم وكيلًا، فأكمل [تحديث الإعداد](#تحديث-rea) وأعد تشغيله. أعد محاولة المهمة نفسها. إذا استمرت المشكلة، [افتح issue](https://github.com/morluto/rea/issues) يتضمن إصدار REA، ونوع الهدف، وخطوات إعادة الإنتاج، ومخرجات الخطأ.
+8 -13
View File
@@ -25,7 +25,7 @@
[Бърз старт](#бърз-старт) · [Примери](#примери) · [Как работи REA](#как-работи-rea) · [Какво можете да анализирате](#какво-можете-да-анализирате) · [Създаване на RL среди](#build-rl-environments) · [Често задавани въпроси](#често-задавани-въпроси) · [Документация](#документация)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -85,11 +85,8 @@ REA свързва агента ви с инструменти за изслед
След като инсталирате [Node.js и npm](../reference/supported-targets.md), изпълнете командата в доверена директория извън проекта за анализ.
Настройката на клиента изисква пътища до Node.js и REA, които остават достъпни след актуализации, както и npm префикс с права за запис. За системен Node.js, `nvm`, `fnm` или друг мениджър на версии следвайте [ръководството за инсталиране](../getting-started/installation.md#package-runners-and-global-installation), преди да изпълните тези команди.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Изберете агентите си, прегледайте предложените промени и ги одобрете. Настройката
@@ -124,7 +121,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Резултатът включва модули, импорти, границите на Electron и доказателствата за
тях. Заменете пътя с вашата цел, например `"D:/apps/example"` в Windows.
[За да инсталирате командата `rea` за редовна употреба:](../getting-started/installation.md#user-owned-npm-installation)
За да инсталирате командата `rea` за редовна употреба:
```bash
npm install --global rea-agents
@@ -145,11 +142,10 @@ rea --help
rea update
```
За да инсталирате най-новото издание глобално и да обновите настройката на агента:
Ако използвате `npx`, обновете настройката на агента си с:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Обновяване и деинсталиране](../getting-started/installation.md#diagnose-update-and-remove)
@@ -268,7 +264,7 @@ REA стартира Hopper, когато дадена операция се н
<summary><strong>Какво прави инсталирането на умението (skill) от skills.sh?</strong></summary>
Умението дава на агента ви инструкции как да провежда изследвания. Използвайте
`npm install --global rea-agents` / `rea setup`, за да регистрирате MCP сървъра на REA и да инсталирате
`npx rea-agents setup`, за да регистрирате MCP сървъра на REA и да инсталирате
съответните инструкции, след което рестартирайте агента. Вижте
[инсталиране само на умението](../getting-started/installation.md#skill-only-installation).
@@ -304,11 +300,10 @@ REA анализира целите локално. Агентът ви полу
rea update
```
За обновяване до най-новото глобално издание:
За настройка на агента чрез `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Ако използвате агент, извършете
+8 -13
View File
@@ -25,7 +25,7 @@
[Schnellstart](#schnellstart) · [Fallstudien](#fallstudien) · [So funktioniert REA](#so-funktioniert-rea) · [Was du analysieren kannst](#was-du-analysieren-kannst) · [RL-Umgebungen erstellen](#build-rl-environments) · [Häufige Fragen](#häufige-fragen) · [Dokumentation](#dokumentation)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Die Einrichtung registriert REA bei deinem Agenten und installiert passende Work
Führe diesen Befehl mit installiertem [Node.js und npm](../reference/supported-targets.md) in einem vertrauenswürdigen Verzeichnis außerhalb des zu analysierenden Projekts aus.
Die Client-Einrichtung benötigt Pfade zu Node.js und REA, die nach Updates verfügbar bleiben, sowie ein beschreibbares npm-Präfix. Bei systemweit installiertem Node.js, `nvm`, `fnm` oder einem anderen Versionsmanager folge vor diesen Befehlen der [Installationsanleitung](../getting-started/installation.md#package-runners-and-global-installation).
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Wähle deine Agenten aus, prüfe die geplanten Änderungen und bestätige sie. Die Einrichtung fügt den MCP-Server von REA und passende Workflow-Anweisungen hinzu und sichert vorhandene Konfigurationen. Starte deinen Agenten anschließend neu.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Das Ergebnis enthält Module, Imports, Electron-Grenzen und die zugehörigen Belege. Ersetze den Pfad durch dein Ziel, beispielsweise `"D:/apps/example"` unter Windows.
[Für die regelmäßige Nutzung kannst du den Befehl `rea` installieren:](../getting-started/installation.md#user-owned-npm-installation)
Für die regelmäßige Nutzung kannst du den Befehl `rea` installieren:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Für eine über `npm install --global` / `bun add --global` installierte CLI:
rea update
```
So installierst du die neueste Version global und aktualisierst die Agenteneinrichtung:
Wenn du `npx` verwendest, aktualisiere die Agenteneinrichtung mit:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Aktualisieren und deinstallieren](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA startet Hopper, wenn eine Operation es benötigt. Unter macOS kann beim erst
<details>
<summary><strong>Was bewirkt die Installation des Skills über skills.sh?</strong></summary>
Der Skill stellt Untersuchungsanweisungen für deinen Agenten bereit. Verwende `npm install --global rea-agents` / `rea setup`, um den MCP-Server von REA zu registrieren und passende Anweisungen zu installieren. Starte deinen Agenten anschließend neu. Siehe [Installation nur des Skills](../getting-started/installation.md#skill-only-installation).
Der Skill stellt Untersuchungsanweisungen für deinen Agenten bereit. Verwende `npx rea-agents setup`, um den MCP-Server von REA zu registrieren und passende Anweisungen zu installieren. Starte deinen Agenten anschließend neu. Siehe [Installation nur des Skills](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ Für eine über npm installierte CLI:
rea update
```
Zum Aktualisieren auf die neueste globale Version:
Für die Agenteneinrichtung über `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Wenn du einen Agenten verwendest, schließe die [Aktualisierung der Einrichtung](#rea-aktualisieren) ab und starte ihn neu. Wiederhole dieselbe Aufgabe. Besteht das Problem weiterhin, [öffne ein Issue](https://github.com/morluto/rea/issues) mit deiner REA-Version, dem Zieltyp, den Reproduktionsschritten und der Fehlerausgabe.
+8 -13
View File
@@ -24,7 +24,7 @@
[Γρήγορη εκκίνηση](#γρήγορη-εκκίνηση) · [Μελέτες περίπτωσης](#μελέτες-περίπτωσης) · [Πώς λειτουργεί το REA](#πώς-λειτουργεί-το-rea) · [Τι μπορείς να αναλύσεις](#τι-μπορείς-να-αναλύσεις) · [Δημιουργία περιβαλλόντων RL](#build-rl-environments) · [Συχνές ερωτήσεις](#συχνές-ερωτήσεις) · [Τεκμηρίωση](#τεκμηρίωση)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -85,11 +85,8 @@
Αφού εγκαταστήσεις [Node.js και npm](../reference/supported-targets.md), εκτέλεσε την εντολή από έναν έμπιστο κατάλογο έξω από το έργο που θα αναλύσεις.
Η ρύθμιση του πελάτη απαιτεί διαδρομές για το Node.js και το REA που παραμένουν διαθέσιμες μετά τις ενημερώσεις, καθώς και ένα εγγράψιμο πρόθεμα npm. Για εγκατάσταση Node.js σε επίπεδο συστήματος, `nvm`, `fnm` ή άλλο διαχειριστή εκδόσεων, ακολουθήστε τον [οδηγό εγκατάστασης](../getting-started/installation.md#package-runners-and-global-installation) πριν εκτελέσετε αυτές τις εντολές.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Επίλεξε τους agents σου, έλεγξε τις προτεινόμενες αλλαγές και ενέκρινέ τες. Η διαδικασία προσθέτει τον MCP server του REA και τις αντίστοιχες οδηγίες εργασίας, κρατώντας αντίγραφα ασφαλείας των υφιστάμενων ρυθμίσεων. Στη συνέχεια, επανεκκίνησε τον agent σου.
@@ -114,7 +111,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Το αποτέλεσμα περιλαμβάνει modules, εισαγωγές, τα όρια μεταξύ των μερών της εφαρμογής Electron και τα αντίστοιχα τεκμήρια. Αντικατάστησε τη διαδρομή με τη δική σου, για παράδειγμα `"D:/apps/example"` στα Windows.
[Για να εγκαταστήσεις την εντολή `rea` για τακτική χρήση:](../getting-started/installation.md#user-owned-npm-installation)
Για να εγκαταστήσεις την εντολή `rea` για τακτική χρήση:
```bash
npm install --global rea-agents
@@ -133,11 +130,10 @@ rea --help
rea update
```
Για καθολική εγκατάσταση της τελευταίας έκδοσης και ανανέωση της ρύθμισης του agent:
Αν χρησιμοποιείς `npx`, ενημέρωσε τη ρύθμιση του agent με:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Ενημέρωση και απεγκατάσταση](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ rea setup
<details>
<summary><strong>Τι προσφέρει η εγκατάσταση του skill από το skills.sh;</strong></summary>
Το skill παρέχει οδηγίες διερεύνησης για τον agent σου. Χρησιμοποίησε `npm install --global rea-agents` / `rea setup` για να καταχωρίσεις τον MCP server του REA και να εγκαταστήσεις τις αντίστοιχες οδηγίες. Στη συνέχεια, επανεκκίνησε τον agent σου. Δες την [εγκατάσταση μόνο του skill](../getting-started/installation.md#skill-only-installation).
Το skill παρέχει οδηγίες διερεύνησης για τον agent σου. Χρησιμοποίησε `npx rea-agents setup` για να καταχωρίσεις τον MCP server του REA και να εγκαταστήσεις τις αντίστοιχες οδηγίες. Στη συνέχεια, επανεκκίνησε τον agent σου. Δες την [εγκατάσταση μόνο του skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -256,11 +252,10 @@ rea setup
rea update
```
Για ανανέωση στην τελευταία καθολική έκδοση:
Για ρύθμιση agent μέσω `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Αν χρησιμοποιείς agent, ολοκλήρωσε την [ανανέωση της ρύθμισης](#ενημέρωση-του-rea) και επανεκκίνησέ τον. Δοκίμασε ξανά την ίδια εργασία. Αν το πρόβλημα παραμένει, [άνοιξε ένα issue](https://github.com/morluto/rea/issues) με την έκδοση του REA, τον τύπο του στόχου, τα βήματα αναπαραγωγής και την έξοδο του σφάλματος.
+8 -13
View File
@@ -25,7 +25,7 @@
[Inicio rápido](#inicio-rápido) · [Casos prácticos](#casos-prácticos) · [Cómo funciona REA](#cómo-funciona-rea) · [Qué puedes analizar](#qué-puedes-analizar) · [Crear entornos de RL](#build-rl-environments) · [Preguntas frecuentes](#preguntas-frecuentes) · [Documentación](#documentación)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ La configuración registra REA con tu agente e instala las instrucciones de trab
Con [Node.js y npm](../reference/supported-targets.md) instalados, ejecuta este comando desde un directorio de confianza fuera del proyecto que vas a analizar.
La configuración del cliente necesita rutas de Node.js y REA que sigan disponibles después de las actualizaciones, además de un prefijo de npm con permisos de escritura. Si usas Node.js instalado en el sistema, `nvm`, `fnm` u otro gestor de versiones, sigue la [guía de instalación](../getting-started/installation.md#package-runners-and-global-installation) antes de ejecutar estos comandos.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Elige tus agentes, revisa los cambios propuestos y apruébalos. La configuración añade el servidor MCP de REA y las instrucciones de trabajo correspondientes, con copias de seguridad de la configuración existente. Reinicia tu agente al terminar.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
El resultado incluye módulos, importaciones, límites de Electron y sus pruebas. Sustituye la ruta por la de tu objetivo, por ejemplo `"D:/apps/example"` en Windows.
[Para instalar el comando `rea` y usarlo habitualmente:](../getting-started/installation.md#user-owned-npm-installation)
Para instalar el comando `rea` y usarlo habitualmente:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Para una CLI instalada mediante `npm install --global` / `bun add --global`:
rea update
```
Para instalar la última versión de forma global y actualizar la configuración de tu agente:
Si usas `npx`, actualiza la configuración de tu agente con:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Actualización y desinstalación](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA inicia Hopper cuando una operación lo necesita. En macOS, puede aparecer un
<details>
<summary><strong>¿Qué hace la instalación de la skill desde skills.sh?</strong></summary>
La skill proporciona instrucciones de investigación a tu agente. Usa `npm install --global rea-agents` / `rea setup` para registrar el servidor MCP de REA e instalar las instrucciones correspondientes; después reinicia tu agente. Consulta [instalación solo de la skill](../getting-started/installation.md#skill-only-installation).
La skill proporciona instrucciones de investigación a tu agente. Usa `npx rea-agents setup` para registrar el servidor MCP de REA e instalar las instrucciones correspondientes; después reinicia tu agente. Consulta [instalación solo de la skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ Para una CLI instalada mediante npm:
rea update
```
Para actualizar con la última versión global:
Para configurar el agente mediante `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Si usas un agente, completa la [actualización de la configuración](#actualiza-rea) y reinícialo. Repite la misma tarea. Si el problema continúa, [abre una issue](https://github.com/morluto/rea/issues) con tu versión de REA, el tipo de objetivo, los pasos para reproducirlo y la salida del error.
+8 -13
View File
@@ -25,7 +25,7 @@
[شروع سریع](#شروع-سریع) · [نمونه‌های عملی](#نمونه‌های-عملی) · [REA چگونه کار می‌کند؟](#rea-چگونه-کار-می‌کند) · [چه چیزهایی را میتوان تحلیل کرد؟](#چه-چیزهایی-را-می‌توان-تحلیل-کرد) · [ساخت محیط‌های RL](#build-rl-environments) · [پرسش‌های متداول](#پرسش‌های-متداول) · [مستندات](#مستندات)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -65,11 +65,8 @@ REA ایجنت شما را به ابزارهایی برای بررسی باین
پس از نصب [Node.js و npm](../reference/supported-targets.md)، دستور زیر را از پوشه‌ای قابل اعتماد خارج از پروژه‌ای که می‌خواهید تحلیل کنید اجرا کنید.
راه‌اندازی کارخواه به مسیرهایی برای Node.js و REA نیاز دارد که پس از به‌روزرسانی‌ها در دسترس بمانند، به‌علاوه یک پیشوند npm با امکان نوشتن. اگر از Node.js نصب‌شده در سطح سیستم، `nvm`، `fnm` یا مدیر نسخه دیگری استفاده می‌کنید، پیش از اجرای این فرمان‌ها [راهنمای نصب](../getting-started/installation.md#package-runners-and-global-installation) را دنبال کنید.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
ایجنت‌های موردنظر را انتخاب کنید، تغییرات پیشنهادی را بررسی و تأیید کنید. فرایند راه‌اندازی، سرور MCP مربوط به REA و دستورالعمل‌های گردش‌کار متناظر را اضافه می‌کند و از پیکربندی موجود نسخهٔ پشتیبان می‌گیرد. پس از آن ایجنت خود را مجدداً راه‌اندازی کنید.
@@ -94,7 +91,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
نتیجه شامل ماژول‌ها، importها، مرزهای Electron و شواهد مربوط به آن‌هاست. مسیر را با مسیر برنامهٔ هدف جایگزین کنید؛ مثلاً در ویندوز `"D:/apps/example"`.
[برای نصب دستور `rea` جهت استفادهٔ مداوم:](../getting-started/installation.md#user-owned-npm-installation)
برای نصب دستور `rea` جهت استفادهٔ مداوم:
```bash
npm install --global rea-agents
@@ -113,11 +110,10 @@ rea --help
rea update
```
برای نصب سراسری آخرین نسخه و به‌روزرسانی راه‌اندازی ایجنت:
اگر از `npx` استفاده می‌کنید، راه‌اندازی ایجنت را با دستور زیر به‌روز کنید:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[به‌روزرسانی و حذف نصب](../getting-started/installation.md#diagnose-update-and-remove)
@@ -203,7 +199,7 @@ REA زمانی که عملیاتی به Hopper نیاز داشته باشد آن
<details><summary><strong>نصب skill از skills.sh چه کاری انجام می‌دهد؟</strong></summary>
این skill دستورالعمل‌های بررسی را برای ایجنت فراهم می‌کند. برای ثبت سرور MCP مربوط به REA و نصب دستورالعمل‌های متناظر، `npm install --global rea-agents` / `rea setup` را اجرا کنید و سپس ایجنت را مجدداً راه‌اندازی کنید. [نصب مستقل skill](../getting-started/installation.md#skill-only-installation) را ببینید.
این skill دستورالعمل‌های بررسی را برای ایجنت فراهم می‌کند. برای ثبت سرور MCP مربوط به REA و نصب دستورالعمل‌های متناظر، `npx rea-agents setup` را اجرا کنید و سپس ایجنت را مجدداً راه‌اندازی کنید. [نصب مستقل skill](../getting-started/installation.md#skill-only-installation) را ببینید.
</details>
@@ -229,11 +225,10 @@ REA اهداف را به‌صورت محلی تحلیل می‌کند. ایجن
rea update
```
برای به‌روزرسانی به آخرین نسخهٔ سراسری:
برای راه‌اندازی ایجنت با `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
اگر از ایجنت استفاده می‌کنید، [به‌روزرسانی راه‌اندازی](#به‌روزرسانی-rea) را تکمیل و ایجنت را مجدداً اجرا کنید. همان کار را دوباره امتحان کنید. اگر مشکل ادامه داشت، یک [issue ثبت کنید](https://github.com/morluto/rea/issues) و نسخهٔ REA، نوع هدف، مراحل بازتولید و خروجی خطا را ذکر کنید.
+8 -13
View File
@@ -25,7 +25,7 @@
[Démarrage rapide](#démarrage-rapide) · [Études de cas](#études-de-cas) · [Comment fonctionne REA](#comment-fonctionne-rea) · [Ce que vous pouvez analyser](#ce-que-vous-pouvez-analyser) · [Créer des environnements RL](#build-rl-environments) · [Questions fréquentes](#questions-fréquentes) · [Documentation](#documentation)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Setup enregistre REA auprès de votre agent et installe les instructions de work
Une fois [Node.js et npm](../reference/supported-targets.md) installés, lancez cette commande depuis un répertoire de confiance en dehors du projet à analyser.
La configuration du client nécessite des chemins vers Node.js et REA qui restent disponibles après les mises à jour, ainsi qu’un préfixe npm accessible en écriture. Si vous utilisez Node.js installé au niveau du système, `nvm`, `fnm` ou un autre gestionnaire de versions, suivez le [guide d’installation](../getting-started/installation.md#package-runners-and-global-installation) avant d’exécuter ces commandes.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Choisissez vos agents, vérifiez les modifications proposées et approuvez-les. Setup ajoute le serveur MCP de REA et les instructions de workflow correspondantes, et sauvegarde la configuration existante. Redémarrez ensuite votre agent.
@@ -113,7 +110,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Le résultat comprend les modules, les imports, les frontières Electron et les preuves associées. Remplacez le chemin par votre cible, par exemple `"D:/apps/example"` sous Windows.
[Pour installer la commande `rea` pour un usage régulier :](../getting-started/installation.md#user-owned-npm-installation)
Pour installer la commande `rea` pour un usage régulier :
```bash
npm install --global rea-agents
@@ -132,11 +129,10 @@ Pour une CLI installée avec `npm install --global` ou `bun add --global` :
rea update
```
Pour installer la dernière version globalement et actualiser la configuration de l'agent :
Si vous utilisez `npx`, mettez à jour la configuration de votre agent avec :
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Mise à jour et désinstallation](../getting-started/installation.md#diagnose-update-and-remove)
@@ -226,7 +222,7 @@ REA lance Hopper lorsqu'une opération en a besoin. Sous macOS, une boîte de di
<details>
<summary><strong>Que fait l'installation du skill depuis skills.sh ?</strong></summary>
Le skill fournit des instructions d'investigation à votre agent. Utilisez `npm install --global rea-agents` / `rea setup` pour enregistrer le serveur MCP de REA et installer les instructions correspondantes, puis redémarrez votre agent. Consultez [l'installation du skill seul](../getting-started/installation.md#skill-only-installation).
Le skill fournit des instructions d'investigation à votre agent. Utilisez `npx rea-agents setup` pour enregistrer le serveur MCP de REA et installer les instructions correspondantes, puis redémarrez votre agent. Consultez [l'installation du skill seul](../getting-started/installation.md#skill-only-installation).
</details>
@@ -255,11 +251,10 @@ Pour une CLI installée avec `npm install --global` ou `bun add --global` :
rea update
```
Pour actualiser avec la dernière version globale :
Pour une configuration d'agent via `npx` :
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Si vous utilisez un agent, terminez l'[actualisation de la configuration](#mettre-à-jour-rea) et redémarrez-le. Relancez la même tâche. Si le problème persiste, [ouvrez une issue](https://github.com/morluto/rea/issues) en indiquant votre version de REA, le type de cible, les étapes pour reproduire le problème et la sortie d'erreur.
+8 -13
View File
@@ -25,7 +25,7 @@
[Mulai Cepat](#mulai-cepat) · [Contoh Penggunaan](#contoh-penggunaan) · [Cara Kerja REA](#cara-kerja-rea) · [Hal yang Dapat Anda Analisis](#hal-yang-dapat-anda-analisis) · [Membangun lingkungan RL](#build-rl-environments) · [FAQ](#faq) · [Dokumentasi](#dokumentasi)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Proses penyiapan mendaftarkan REA ke agen Anda dan memasang instruksi alur kerja
Setelah memasang [Node.js dan npm](../reference/supported-targets.md), jalankan perintah ini dari direktori tepercaya di luar proyek yang ingin Anda analisis.
Penyiapan klien memerlukan jalur Node.js dan REA yang tetap tersedia setelah pembaruan, serta prefiks npm yang dapat ditulisi. Jika menggunakan Node.js yang terpasang pada sistem, `nvm`, `fnm`, atau pengelola versi lain, ikuti [panduan instalasi](../getting-started/installation.md#package-runners-and-global-installation) sebelum menjalankan perintah ini.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Pilih agen yang ingin digunakan, tinjau perubahan yang diusulkan, lalu setujui perubahan tersebut. Proses penyiapan menambahkan server MCP REA dan instruksi alur kerja yang sesuai, serta membuat cadangan konfigurasi yang sudah ada. Setelah itu, mulai ulang agen Anda.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Hasilnya mencakup modul, impor, batas antarkomponen Electron, dan bukti yang mendasarinya. Ganti jalur tersebut dengan lokasi target Anda, misalnya `"D:/apps/example"` di Windows.
[Untuk memasang perintah `rea` agar dapat digunakan secara rutin:](../getting-started/installation.md#user-owned-npm-installation)
Untuk memasang perintah `rea` agar dapat digunakan secara rutin:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Untuk CLI yang dipasang melalui `npm install --global` atau `bun add --global`:
rea update
```
Untuk memasang rilis terbaru secara global dan menyegarkan penyiapan agen:
Jika Anda menggunakan `npx`, perbarui penyiapan agen dengan:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Pembaruan dan penghapusan instalasi](../getting-started/installation.md#diagnose-update-and-remove)
@@ -231,7 +227,7 @@ Lihat [startup dan pemecahan masalah Hopper](../getting-started/installation.md#
<details>
<summary><strong>Apa fungsi memasang skill dari skills.sh?</strong></summary>
Skill tersebut menyediakan instruksi investigasi untuk agen Anda. Gunakan `npm install --global rea-agents` / `rea setup` untuk mendaftarkan server MCP REA dan memasang instruksi yang sesuai, lalu mulai ulang agen Anda.
Skill tersebut menyediakan instruksi investigasi untuk agen Anda. Gunakan `npx rea-agents setup` untuk mendaftarkan server MCP REA dan memasang instruksi yang sesuai, lalu mulai ulang agen Anda.
Lihat [instalasi khusus skill](../getting-started/installation.md#skill-only-installation).
@@ -262,11 +258,10 @@ Untuk CLI yang dipasang melalui `npm install --global` atau `bun add --global`:
rea update
```
Untuk menyegarkan ke rilis global terbaru:
Untuk penyiapan agen melalui `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Jika Anda menggunakan agen, selesaikan [pembaruan penyiapan](#perbarui-rea) dan mulai ulang agen tersebut.
+8 -13
View File
@@ -25,7 +25,7 @@
[Avvio rapido](#avvio-rapido) · [Showcase](#showcase) · [Come funziona REA](#come-funziona-rea) · [Cosa puoi analizzare](#cosa-puoi-analizzare) · [Creare ambienti RL](#build-rl-environments) · [FAQ](#faq) · [Documentazione](#documentazione)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ La configurazione registra REA con il tuo agente e installa le istruzioni di wor
Dopo aver installato [Node.js e npm](../reference/supported-targets.md), esegui questo comando da una directory attendibile esterna al progetto da analizzare.
La configurazione del client richiede percorsi di Node.js e REA che restino disponibili dopo gli aggiornamenti, oltre a un prefisso npm scrivibile. Se usi Node.js installato a livello di sistema, `nvm`, `fnm` o un altro gestore di versioni, segui la [guida all’installazione](../getting-started/installation.md#package-runners-and-global-installation) prima di eseguire questi comandi.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Scegli i tuoi agenti, rivedi le modifiche proposte e approvale. La configurazione aggiunge il server MCP di REA e le istruzioni di workflow corrispondenti, con backup della configurazione esistente. Riavvia quindi il tuo agente.
@@ -113,7 +110,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Il risultato include moduli, import, confini Electron e le relative prove. Sostituisci il percorso con il tuo bersaglio, ad esempio `"D:/apps/example"` su Windows.
[Per installare il comando `rea` per un uso regolare:](../getting-started/installation.md#user-owned-npm-installation)
Per installare il comando `rea` per un uso regolare:
```bash
npm install --global rea-agents
@@ -132,11 +129,10 @@ Per una CLI installata con `npm install --global` o `bun add --global`:
rea update
```
Per installare l'ultima versione a livello globale e aggiornare la configurazione dell'agente:
Se usi `npx`, aggiorna la configurazione del tuo agente con:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Aggiornamento e disinstallazione](../getting-started/installation.md#diagnose-update-and-remove)
@@ -226,7 +222,7 @@ REA avvia Hopper quando un'operazione ne ha bisogno. Su macOS, una finestra di d
<details>
<summary><strong>Cosa fa l'installazione dello skill da skills.sh?</strong></summary>
Lo skill fornisce istruzioni di indagine per il tuo agente. Usa `npm install --global rea-agents` / `rea setup` per registrare il server MCP di REA e installare le istruzioni corrispondenti, quindi riavvia il tuo agente. Vedi [installazione solo skill](../getting-started/installation.md#skill-only-installation).
Lo skill fornisce istruzioni di indagine per il tuo agente. Usa `npx rea-agents setup` per registrare il server MCP di REA e installare le istruzioni corrispondenti, quindi riavvia il tuo agente. Vedi [installazione solo skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -255,11 +251,10 @@ Per una CLI installata con `npm install --global` o `bun add --global`:
rea update
```
Per aggiornare all'ultima versione globale:
Per la configurazione dell'agente tramite `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Se stai usando un agente, completa l'[aggiornamento della configurazione](#aggiorna-rea) e riavvialo. Riprova lo stesso task. Se il problema persiste, [apri un issue](https://github.com/morluto/rea/issues) con la tua versione di REA, il tipo di bersaglio, i passaggi per riprodurlo e l'output di errore.
+8 -13
View File
@@ -25,7 +25,7 @@
[クイックスタート](#クイックスタート) · [事例](#事例) · [REA の仕組み](#rea-の仕組み) · [分析できる対象](#分析できる対象) · [RL 環境を構築する](#build-rl-environments) · [よくある質問](#よくある質問) · [ドキュメント](#ドキュメント)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA はエージェントを分析ツールにつなぎ、ネイティブバイ
[Node.js と npm](../reference/supported-targets.md) をインストールしてから、解析対象のプロジェクト外にある信頼できるディレクトリで次のコマンドを実行します。
クライアントのセットアップには、更新後も利用できる Node.js と REA のパス、および書き込み可能な npm プレフィックスが必要です。システムにインストールされた Node.js、`nvm`、`fnm`、または別のバージョン管理ツールを使用する場合は、これらのコマンドを実行する前に[インストールガイド](../getting-started/installation.md#package-runners-and-global-installation)に従ってください。
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
使うエージェントを選び、予定されている変更を確認して承認してください。セットアップは REA の MCP サーバーと対応するワークフローの手順を追加し、既存の設定をバックアップします。完了後にエージェントを再起動してください。
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
結果にはモジュール、インポート、Electron の境界と、それらの根拠が含まれます。パスは対象に合わせて変更してください。Windows では、たとえば `"D:/apps/example"` を指定します。
[日常的に使う場合は、`rea` コマンドをインストールできます。](../getting-started/installation.md#user-owned-npm-installation)
日常的に使う場合は、`rea` コマンドをインストールできます。
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
最新版をグローバルにインストールし、エージェントの設定を更新するには:
`npx` を使っている場合は、次のコマンドでエージェントの設定を更新します。
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[更新とアンインストール](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ REA は必要な操作の際に Hopper を起動します。macOS では、初
<details>
<summary><strong>skills.sh からスキルをインストールすると何ができますか?</strong></summary>
スキルはエージェントに調査の手順を提供します。`npm install --global rea-agents` / `rea setup` で REA の MCP サーバーを登録し、対応する手順をインストールしてから、エージェントを再起動してください。[スキルのみのインストール](../getting-started/installation.md#skill-only-installation)を参照してください。
スキルはエージェントに調査の手順を提供します。`npx rea-agents setup` で REA の MCP サーバーを登録し、対応する手順をインストールしてから、エージェントを再起動してください。[スキルのみのインストール](../getting-started/installation.md#skill-only-installation)を参照してください。
</details>
@@ -256,11 +252,10 @@ npm でインストールした CLI の場合:
rea update
```
最新のグローバル版に更新するには:
`npx` でエージェントを設定している場合:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
エージェントを使っている場合は、[設定の更新](#rea-を更新する)を完了し、再起動してください。同じタスクをもう一度試し、問題が続く場合は [issue を作成](https://github.com/morluto/rea/issues)して、REA のバージョン、対象の種類、再現手順、エラー出力を記載してください。
+8 -13
View File
@@ -25,7 +25,7 @@
[빠른 시작](#빠른-시작) · [사례](#사례) · [REA의 작동 방식](#rea의-작동-방식) · [분석할 수 있는 대상](#분석할-수-있는-대상) · [RL 환경 만들기](#build-rl-environments) · [자주 묻는 질문](#자주-묻는-질문) · [문서](#문서)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA는 에이전트를 분석 도구에 연결해 네이티브 바이너리, Jav
[Node.js와 npm](../reference/supported-targets.md)을 설치한 다음 분석 대상 프로젝트 외부의 신뢰할 수 있는 디렉터리에서 다음 명령을 실행하세요.
클라이언트 설정에는 업데이트 후에도 사용할 수 있는 Node.js 및 REA 경로와 쓰기 가능한 npm 접두 경로가 필요합니다. 시스템에 설치된 Node.js, `nvm`, `fnm` 또는 다른 버전 관리자를 사용하는 경우 이 명령을 실행하기 전에 [설치 가이드](../getting-started/installation.md#package-runners-and-global-installation)를 따르세요.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
에이전트를 선택하고, 예정된 변경 사항을 검토한 뒤 승인하세요. 설정 과정은 기존 설정을 백업하고 REA의 MCP 서버와 버전에 맞는 워크플로 지침을 추가합니다. 완료 후 에이전트를 다시 시작하세요.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
결과에는 모듈, 임포트, Electron 경계와 관련 근거가 포함됩니다. 경로를 분석할 대상으로 바꾸세요. Windows에서는 `"D:/apps/example"` 같은 경로를 사용할 수 있습니다.
[자주 사용할 경우 `rea` 명령을 설치하세요.](../getting-started/installation.md#user-owned-npm-installation)
자주 사용할 경우 `rea` 명령을 설치하세요.
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
최신 릴리스를 전역으로 설치하고 에이전트 설정을 새로 고치려면:
`npx`를 사용한다면 다음 명령으로 에이전트 설정을 갱신하세요.
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[업데이트 및 제거](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ REA는 작업에 필요할 때 Hopper를 실행합니다. macOS에서는 처음
<details>
<summary><strong>skills.sh에서 설치하는 스킬은 어떤 역할을 하나요?</strong></summary>
스킬은 에이전트에게 조사 지침을 제공합니다. `npm install --global rea-agents` / `rea setup`으로 REA의 MCP 서버를 등록하고 버전에 맞는 지침을 설치한 뒤 에이전트를 다시 시작하세요. [스킬만 설치하기](../getting-started/installation.md#skill-only-installation)를 참고하세요.
스킬은 에이전트에게 조사 지침을 제공합니다. `npx rea-agents setup`으로 REA의 MCP 서버를 등록하고 버전에 맞는 지침을 설치한 뒤 에이전트를 다시 시작하세요. [스킬만 설치하기](../getting-started/installation.md#skill-only-installation)를 참고하세요.
</details>
@@ -256,11 +252,10 @@ REA는 대상을 로컬에서 분석합니다. 에이전트는 도구 결과를
rea update
```
최신 전역 릴리스로 새로 고치려면:
`npx`로 에이전트를 설정했다면 다음 명령을 사용합니다.
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
에이전트를 사용 중이라면 [설정 갱신](#rea-업데이트)을 완료하고 다시 시작하세요. 같은 작업을 다시 시도하세요. 문제가 계속되면 REA 버전, 대상 유형, 재현 단계, 오류 출력을 포함해 [issue를 등록](https://github.com/morluto/rea/issues)하세요.
+8 -13
View File
@@ -25,7 +25,7 @@
[ദ്രുതാരംഭം](#ദ്രുതാരംഭം) · [ഉദാഹരണങ്ങൾ](#ഉദാഹരണങ്ങൾ) · [REA എങ്ങനെ പ്രവർത്തിക്കുന്നു](#rea-എങ്ങനെ-പ്രവർത്തിക്കുന്നു) · [എന്തൊക്കെ വിശകലനം ചെയ്യാം](#എന്തൊക്കെ-വിശകലനം-ചെയ്യാം) · [RL പരിതസ്ഥിതികൾ നിർമ്മിക്കുക](#build-rl-environments) · [പതിവുചോദ്യങ്ങൾ](#പതിവുചോദ്യങ്ങൾ) · [ഡോക്യുമെന്റേഷൻ](#ഡോക്യുമെന്റേഷൻ)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -85,11 +85,8 @@ Setup നിങ്ങളുടെ agent-ിൽ REA രജിസ്റ്റർ
[Node.js, npm](../reference/supported-targets.md) എന്നിവ ഇൻസ്റ്റാൾ ചെയ്ത ശേഷം പരിശോധിക്കേണ്ട പ്രോജക്റ്റിന് പുറത്തുള്ള വിശ്വസനീയമായ ഡയറക്ടറിയിൽ നിന്ന് ഈ കമാൻഡ് പ്രവർത്തിപ്പിക്കുക.
ക്ലയന്റ് സജ്ജീകരണത്തിന് അപ്‌ഡേറ്റുകൾക്കുശേഷവും ലഭ്യമായി തുടരുന്ന Node.js, REA പാതകളും എഴുതാൻ കഴിയുന്ന npm പ്രിഫിക്സും ആവശ്യമാണ്. സിസ്റ്റത്തിൽ ഇൻസ്റ്റാൾ ചെയ്ത Node.js, `nvm`, `fnm`, അല്ലെങ്കിൽ മറ്റൊരു പതിപ്പ് മാനേജർ ഉപയോഗിക്കുകയാണെങ്കിൽ, ഈ കമാൻഡുകൾ പ്രവർത്തിപ്പിക്കുന്നതിന് മുമ്പ് [ഇൻസ്റ്റലേഷൻ മാർഗ്ഗനിർദ്ദേശം](../getting-started/installation.md#package-runners-and-global-installation) പിന്തുടരുക.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
നിങ്ങൾ ഉപയോഗിക്കുന്ന agents തിരഞ്ഞെടുക്കുക, നിർദ്ദേശിച്ച മാറ്റങ്ങൾ പരിശോധിക്കുക, തുടർന്ന് അവയ്ക്ക് അനുമതി നൽകുക. നിലവിലുള്ള configuration-ന്റെ backup-ുകൾ സൂക്ഷിച്ചുകൊണ്ട് setup, REA-യുടെ MCP server-ഉം അനുയോജ്യമായ workflow നിർദ്ദേശങ്ങളും ചേർക്കും. അതിനുശേഷം നിങ്ങളുടെ agent വീണ്ടും ആരംഭിക്കുക.
@@ -114,7 +111,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
ഫലത്തിൽ modules, imports, Electron boundaries, അവയ്ക്കുള്ള തെളിവുകൾ എന്നിവ ഉൾപ്പെടും. `/absolute/path/to/app` എന്നതിന് പകരം നിങ്ങളുടെ target-ന്റെ path നൽകുക; Windows-ൽ ഉദാഹരണത്തിന് `"D:/apps/example"` ഉപയോഗിക്കാം.
[സാധാരണ ഉപയോഗത്തിനായി `rea` command ഇൻസ്റ്റാൾ ചെയ്യാൻ:](../getting-started/installation.md#user-owned-npm-installation)
സാധാരണ ഉപയോഗത്തിനായി `rea` command ഇൻസ്റ്റാൾ ചെയ്യാൻ:
```bash
npm install --global rea-agents
@@ -133,11 +130,10 @@ Native analysis നടത്തുന്നതിന് മുമ്പ് ഒ
rea update
```
ഏറ്റവും പുതിയ പതിപ്പ് ഗ്ലോബലായി ഇൻസ്റ്റാൾ ചെയ്ത് agent setup പുതുക്കാൻ:
`npx` ഉപയോഗിക്കുന്നുവെങ്കിൽ, agent setup പുതുക്കാൻ:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[അപ്‌ഡേറ്റും അൺഇൻസ്റ്റാളും](../getting-started/installation.md#diagnose-update-and-remove)
@@ -229,7 +225,7 @@ Local MCP servers പിന്തുണയ്ക്കുന്ന ഏത് age
<details>
<summary><strong>skills.sh-ൽ നിന്ന് skill ഇൻസ്റ്റാൾ ചെയ്യുന്നത് എന്താണ് ചെയ്യുന്നത്?</strong></summary>
ഈ skill നിങ്ങളുടെ agent-ന് അന്വേഷണ നിർദ്ദേശങ്ങൾ നൽകുന്നു. REA-യുടെ MCP server രജിസ്റ്റർ ചെയ്യാനും അനുയോജ്യമായ നിർദ്ദേശങ്ങൾ ഇൻസ്റ്റാൾ ചെയ്യാനും `npm install --global rea-agents` / `rea setup` ഉപയോഗിക്കുക; തുടർന്ന് നിങ്ങളുടെ agent വീണ്ടും ആരംഭിക്കുക. [Skill-only installation](../getting-started/installation.md#skill-only-installation) കാണുക.
ഈ skill നിങ്ങളുടെ agent-ന് അന്വേഷണ നിർദ്ദേശങ്ങൾ നൽകുന്നു. REA-യുടെ MCP server രജിസ്റ്റർ ചെയ്യാനും അനുയോജ്യമായ നിർദ്ദേശങ്ങൾ ഇൻസ്റ്റാൾ ചെയ്യാനും `npx rea-agents setup` ഉപയോഗിക്കുക; തുടർന്ന് നിങ്ങളുടെ agent വീണ്ടും ആരംഭിക്കുക. [Skill-only installation](../getting-started/installation.md#skill-only-installation) കാണുക.
</details>
@@ -258,11 +254,10 @@ REA targets local ആയി വിശകലനം ചെയ്യുന്നു
rea update
```
ഏറ്റവും പുതിയ ഗ്ലോബൽ പതിപ്പിലേക്ക് പുതുക്കാൻ:
`npx` വഴി agent setup നടത്തുന്നതിനായി:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
നിങ്ങൾ agent ഉപയോഗിക്കുന്നുണ്ടെങ്കിൽ, [setup പുതുക്കൽ](#rea-അപ്‌ഡേറ്റ്-ചെയ്യുക) പൂർത്തിയാക്കി അത് വീണ്ടും ആരംഭിക്കുക. അതേ task വീണ്ടും ശ്രമിക്കുക. പ്രശ്നം തുടരുകയാണെങ്കിൽ, നിങ്ങളുടെ REA version, target type, പ്രശ്നം ആവർത്തിക്കാൻ ആവശ്യമായ ഘട്ടങ്ങൾ, error output എന്നിവ ഉൾപ്പെടുത്തി [issue തുറക്കുക](https://github.com/morluto/rea/issues).
+8 -13
View File
@@ -25,7 +25,7 @@
[Szybki start](#szybki-start) · [Przykłady zastosowań](#przykłady-zastosowań) · [Jak działa REA](#jak-działa-rea) · [Co możesz analizować](#co-możesz-analizować) · [Tworzenie środowisk RL](#build-rl-environments) · [FAQ](#faq) · [Dokumentacja](#dokumentacja)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Konfigurator rejestruje REA w Twoim agencie i instaluje pasujące instrukcje pra
Po zainstalowaniu [Node.js i npm](../reference/supported-targets.md) uruchom polecenie w zaufanym katalogu poza analizowanym projektem.
Konfiguracja klienta wymaga ścieżek do Node.js i REA, które pozostaną dostępne po aktualizacjach, oraz prefiksu npm z prawem zapisu. Jeśli korzystasz z Node.js zainstalowanego systemowo, `nvm`, `fnm` lub innego menedżera wersji, przed wykonaniem tych poleceń postępuj zgodnie z [instrukcją instalacji](../getting-started/installation.md#package-runners-and-global-installation).
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Wybierz swoich agentów, sprawdź proponowane zmiany i zatwierdź je. Konfigurator dodaje serwer MCP REA i pasujące instrukcje pracy, tworząc kopie zapasowe istniejącej konfiguracji. Następnie uruchom agenta ponownie.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Wynik obejmuje moduły, importy, granice komponentów Electron oraz dowody. Zastąp ścieżkę ścieżką do swojego celu, na przykład `"D:/apps/example"` w systemie Windows.
[Aby zainstalować polecenie `rea` do regularnego użytku:](../getting-started/installation.md#user-owned-npm-installation)
Aby zainstalować polecenie `rea` do regularnego użytku:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Dla CLI zainstalowanego przez `npm install --global` / `bun add --global`:
rea update
```
Aby zainstalować najnowsze wydanie globalnie i odświeżyć konfigurację agenta:
Jeśli używasz `npx`, zaktualizuj konfigurację agenta poleceniem:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Aktualizacja i odinstalowanie](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA uruchamia Hoppera, gdy wymaga tego operacja. W systemie macOS przy pierwszym
<details>
<summary><strong>Co daje zainstalowanie umiejętności z skills.sh?</strong></summary>
Umiejętność dostarcza agentowi instrukcje prowadzenia analizy. Użyj `npm install --global rea-agents` / `rea setup`, aby zarejestrować serwer MCP REA i zainstalować pasujące instrukcje, a następnie uruchom agenta ponownie. Zobacz [instalację samej umiejętności](../getting-started/installation.md#skill-only-installation).
Umiejętność dostarcza agentowi instrukcje prowadzenia analizy. Użyj `npx rea-agents setup`, aby zarejestrować serwer MCP REA i zainstalować pasujące instrukcje, a następnie uruchom agenta ponownie. Zobacz [instalację samej umiejętności](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ Dla CLI zainstalowanego przez npm:
rea update
```
Aby odświeżyć do najnowszego wydania globalnego:
Dla konfiguracji agenta przez `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Jeśli używasz agenta, wykonaj [odświeżenie konfiguracji](#zaktualizuj-rea) i uruchom go ponownie. Ponów tę samą operację. Jeśli problem pozostaje, [otwórz zgłoszenie](https://github.com/morluto/rea/issues), podając wersję REA, typ celu analizy, kroki odtworzenia problemu i komunikaty błędu.
+8 -13
View File
@@ -25,7 +25,7 @@
[Início rápido](#início-rápido) · [Casos de uso](#casos-de-uso) · [Como o REA funciona](#como-o-rea-funciona) · [O que você pode analisar](#o-que-você-pode-analisar) · [Criar ambientes de RL](#build-rl-environments) · [Perguntas frequentes](#perguntas-frequentes) · [Documentação](#documentação)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ A configuração registra o REA no seu agente e instala as instruções de traba
Com [Node.js e npm](../reference/supported-targets.md) instalados, execute este comando em um diretório confiável fora do projeto que você vai analisar.
A configuração do cliente precisa de caminhos do Node.js e do REA que continuem disponíveis após as atualizações, além de um prefixo do npm com permissão de escrita. Se você usa Node.js instalado no sistema, `nvm`, `fnm` ou outro gerenciador de versões, siga o [guia de instalação](../getting-started/installation.md#package-runners-and-global-installation) antes de executar estes comandos.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Escolha seus agentes, revise as alterações propostas e aprove-as. A configuração adiciona o servidor MCP do REA e as instruções de fluxo de trabalho correspondentes, com backups das configurações existentes. Reinicie seu agente depois.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
O resultado inclui módulos, importações, limites do Electron e suas evidências. Substitua o caminho pelo do seu alvo, como `"D:/apps/example"` no Windows.
[Para instalar o comando `rea` e usá-lo regularmente:](../getting-started/installation.md#user-owned-npm-installation)
Para instalar o comando `rea` e usá-lo regularmente:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Para uma CLI instalada pelo `npm install --global` / `bun add --global`:
rea update
```
Para instalar a versão mais recente globalmente e atualizar a configuração do agente:
Se você usa `npx`, atualize a configuração do agente com:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Atualização e desinstalação](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ O REA inicia o Hopper quando uma operação precisa dele. No macOS, um diálogo
<details>
<summary><strong>O que faz a instalação da skill pelo skills.sh?</strong></summary>
A skill fornece instruções de investigação ao seu agente. Use `npm install --global rea-agents` / `rea setup` para registrar o servidor MCP do REA e instalar as instruções correspondentes, depois reinicie seu agente. Consulte [instalação apenas da skill](../getting-started/installation.md#skill-only-installation).
A skill fornece instruções de investigação ao seu agente. Use `npx rea-agents setup` para registrar o servidor MCP do REA e instalar as instruções correspondentes, depois reinicie seu agente. Consulte [instalação apenas da skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ Para uma CLI instalada pelo npm:
rea update
```
Para atualizar com a versão global mais recente:
Para configurar o agente por `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Se você usa um agente, conclua a [atualização da configuração](#atualize-o-rea) e reinicie-o. Tente executar a mesma tarefa novamente. Se o problema persistir, [abra uma issue](https://github.com/morluto/rea/issues) com sua versão do REA, o tipo de alvo, os passos para reproduzir e a saída do erro.
+8 -13
View File
@@ -25,7 +25,7 @@
[Pornire rapidă](#pornire-rapidă) · [Studii de caz](#studii-de-caz) · [Cum funcționează REA](#cum-funcționează-rea) · [Ce poți analiza](#ce-poți-analiza) · [Construiește medii RL](#build-rl-environments) · [Întrebări frecvente](#întrebări-frecvente) · [Documentație](#documentație)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -85,11 +85,8 @@ Programul de configurare înregistrează REA în agentul tău și instalează in
După ce instalezi [Node.js și npm](../reference/supported-targets.md), rulează comanda dintr-un director de încredere aflat în afara proiectului de analizat.
Configurarea clientului necesită căi către Node.js și REA care rămân disponibile după actualizări, precum și un prefix npm cu drept de scriere. Pentru Node.js instalat la nivel de sistem, `nvm`, `fnm` sau alt manager de versiuni, urmați [ghidul de instalare](../getting-started/installation.md#package-runners-and-global-installation) înainte de a executa aceste comenzi.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Alege agenții, verifică modificările propuse și aprobă-le. Configurarea adaugă
@@ -119,7 +116,7 @@ Rezultatul include modulele, importurile, delimitările dintre componentele Elec
și dovezile aferente. Înlocuiește calea cu cea a aplicației vizate, de exemplu
`"D:/apps/example"` pe Windows.
[Pentru a instala comanda `rea` și a o folosi în mod curent:](../getting-started/installation.md#user-owned-npm-installation)
Pentru a instala comanda `rea` și a o folosi în mod curent:
```bash
npm install --global rea-agents
@@ -140,11 +137,10 @@ Pentru o interfață CLI instalată cu `npm install --global` sau `bun add --glo
rea update
```
Pentru a instala global cea mai recentă versiune și a reîmprospăta configurarea agentului:
Dacă folosești `npx`, actualizează configurarea agentului cu:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Actualizare și dezinstalare](../getting-started/installation.md#diagnose-update-and-remove)
@@ -257,7 +253,7 @@ Consultă [pornirea Hopper și depanarea](../getting-started/installation.md#lau
<details>
<summary><strong>Ce face instalarea skill-ului de pe skills.sh?</strong></summary>
Skill-ul oferă agentului instrucțiuni de investigare. Folosește `npm install --global rea-agents` / `rea setup`
Skill-ul oferă agentului instrucțiuni de investigare. Folosește `npx rea-agents setup`
pentru a înregistra serverul MCP REA și a instala instrucțiunile corespunzătoare,
apoi repornește agentul. Consultă [instalarea doar a skill-ului](../getting-started/installation.md#skill-only-installation).
@@ -292,11 +288,10 @@ Pentru o interfață CLI instalată cu `npm install --global` sau `bun add --glo
rea update
```
Pentru a actualiza la cea mai recentă versiune globală:
Pentru configurarea agentului prin `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Dacă folosești un agent, finalizează [actualizarea configurării](#actualizează-rea)
+8 -13
View File
@@ -25,7 +25,7 @@
[Быстрый старт](#быстрый-старт) · [Примеры](#примеры) · [Как работает REA](#как-работает-rea) · [Что можно анализировать](#что-можно-анализировать) · [Создание RL-окружений](#build-rl-environments) · [Частые вопросы](#частые-вопросы) · [Документация](#документация)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA подключает вашего агента к инструментам
Установите [Node.js и npm](../reference/supported-targets.md) и выполните команду в доверенном каталоге за пределами исследуемого проекта.
Для настройки клиента нужны пути к Node.js и REA, которые остаются доступными после обновлений, а также префикс npm с правом записи. Если вы используете Node.js, установленный на уровне системы, `nvm`, `fnm` или другой менеджер версий, перед выполнением этих команд следуйте [руководству по установке](../getting-started/installation.md#package-runners-and-global-installation).
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Выберите агентов, проверьте предлагаемые изменения и подтвердите их. Настройка добавляет MCP-сервер REA и соответствующие рабочие инструкции, сохраняя резервные копии существующих настроек. После этого перезапустите агента.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Результат включает модули, импорты, границы Electron и подтверждающие данные. Замените путь своим, например `"D:/apps/example"` в Windows.
[Для регулярного использования установите команду `rea`:](../getting-started/installation.md#user-owned-npm-installation)
Для регулярного использования установите команду `rea`:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
Чтобы установить последний выпуск глобально и обновить настройку агента:
Если используете `npx`, обновите настройку агента командой:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Обновление и удаление](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA запускает Hopper, когда он нужен для операци
<details>
<summary><strong>Что даёт установка skill с skills.sh?</strong></summary>
Skill предоставляет агенту инструкции по исследованию. Используйте `npm install --global rea-agents` / `rea setup`, чтобы зарегистрировать MCP-сервер REA и установить соответствующие инструкции, затем перезапустите агента. См. [установку только skill](../getting-started/installation.md#skill-only-installation).
Skill предоставляет агенту инструкции по исследованию. Используйте `npx rea-agents setup`, чтобы зарегистрировать MCP-сервер REA и установить соответствующие инструкции, затем перезапустите агента. См. [установку только skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ REA анализирует цели локально. Ваш агент полу
rea update
```
Чтобы обновить до последнего глобального выпуска:
Для настройки агента через `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Если используете агента, завершите [обновление настройки](#обновите-rea) и перезапустите его. Повторите ту же задачу. Если проблема сохраняется, [откройте issue](https://github.com/morluto/rea/issues), указав версию REA, тип цели, шаги воспроизведения и вывод ошибки.
+8 -13
View File
@@ -25,7 +25,7 @@
[เริ่มต้นอย่างรวดเร็ว](#เริ่มต้นอย่างรวดเร็ว) · [ตัวอย่างการใช้งาน](#ตัวอย่างการใช้งาน) · [REA ทำงานอย่างไร](#rea-ทำงานอย่างไร) · [สิ่งที่วิเคราะห์ได้](#สิ่งที่วิเคราะห์ได้) · [สร้างสภาพแวดล้อม RL](#build-rl-environments) · [คำถามที่พบบ่อย](#คำถามที่พบบ่อย) · [เอกสาร](#เอกสาร)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA เชื่อมเอเจนต์ของคุณกับเคร
เมื่อติดตั้ง [Node.js และ npm](../reference/supported-targets.md) แล้ว ให้รันคำสั่งนี้จากไดเรกทอรีที่เชื่อถือได้ภายนอกโครงการที่ต้องการวิเคราะห์
การตั้งค่าไคลเอนต์ต้องใช้พาธของ Node.js และ REA ที่ยังคงใช้งานได้หลังการอัปเดต รวมถึงพรีฟิกซ์ npm ที่เขียนได้ หากใช้ Node.js ที่ติดตั้งในระดับระบบ, `nvm`, `fnm` หรือตัวจัดการเวอร์ชันอื่น ให้ทำตาม[คู่มือการติดตั้ง](../getting-started/installation.md#package-runners-and-global-installation)ก่อนเรียกใช้คำสั่งเหล่านี้
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
เลือกเอเจนต์ ตรวจสอบการเปลี่ยนแปลงที่เสนอ แล้วอนุมัติ ขั้นตอนตั้งค่าจะเพิ่มเซิร์ฟเวอร์ MCP ของ REA และคำแนะนำการทำงานที่ตรงกัน พร้อมสำรองการตั้งค่าที่มีอยู่ จากนั้นเริ่มเอเจนต์ใหม่
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
ผลลัพธ์ประกอบด้วยโมดูล การนำเข้า ขอบเขตของ Electron และหลักฐาน แทนที่พาธด้วยเป้าหมายของคุณ เช่น `"D:/apps/example"` บน Windows
[หากต้องการติดตั้งคำสั่ง `rea` สำหรับใช้งานเป็นประจำ:](../getting-started/installation.md#user-owned-npm-installation)
หากต้องการติดตั้งคำสั่ง `rea` สำหรับใช้งานเป็นประจำ:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
หากต้องการติดตั้งรุ่นล่าสุดแบบโกลบอลและรีเฟรชการตั้งค่าเอเจนต์:
หากใช้ `npx` ให้อัปเดตการตั้งค่าเอเจนต์ด้วย:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[อัปเดตและถอนการติดตั้ง](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA เริ่ม Hopper เมื่อการดำเนินการ
<details>
<summary><strong>การติดตั้งสกิลจาก skills.sh ทำอะไร?</strong></summary>
สกิลให้คำแนะนำการตรวจสอบแก่เอเจนต์ ใช้ `npm install --global rea-agents` / `rea setup` เพื่อลงทะเบียนเซิร์ฟเวอร์ MCP ของ REA และติดตั้งคำแนะนำที่ตรงกัน แล้วเริ่มเอเจนต์ใหม่ ดู[การติดตั้งเฉพาะสกิล](../getting-started/installation.md#skill-only-installation)
สกิลให้คำแนะนำการตรวจสอบแก่เอเจนต์ ใช้ `npx rea-agents setup` เพื่อลงทะเบียนเซิร์ฟเวอร์ MCP ของ REA และติดตั้งคำแนะนำที่ตรงกัน แล้วเริ่มเอเจนต์ใหม่ ดู[การติดตั้งเฉพาะสกิล](../getting-started/installation.md#skill-only-installation)
</details>
@@ -254,11 +250,10 @@ REA วิเคราะห์เป้าหมายบนเครื่อ
rea update
```
หากต้องการรีเฟรชเป็นรุ่นโกลบอลล่าสุด:
สำหรับการตั้งค่าเอเจนต์ผ่าน `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
หากใช้เอเจนต์ ให้ทำ[การปรับปรุงการตั้งค่า](#อัปเดต-rea) ให้เสร็จแล้วเริ่มเอเจนต์ใหม่ ลองงานเดิมอีกครั้ง หากยังพบปัญหา ให้[เปิด issue](https://github.com/morluto/rea/issues) พร้อมระบุรุ่น REA ประเภทเป้าหมาย ขั้นตอนทำให้เกิดปัญหา และข้อความข้อผิดพลาด
+8 -13
View File
@@ -25,7 +25,7 @@
[Hızlı başlangıç](#hızlı-başlangıç) · [Örnek çalışmalar](#örnek-çalışmalar) · [REA nasıl çalışır](#rea-nasıl-çalışır) · [Neleri analiz edebilirsiniz](#neleri-analiz-edebilirsiniz) · [RL ortamları oluşturun](#build-rl-environments) · [Sık sorulan sorular](#sık-sorulan-sorular) · [Belgeler](#belgeler)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Kurulum, REA'yı ajanınıza kaydeder ve uyumlu iş akışı talimatlarını yü
[Node.js ve npm](../reference/supported-targets.md) kuruluysa bu komutu inceleyeceğiniz projenin dışında, güvendiğiniz bir dizinde çalıştırın.
İstemci kurulumu, güncellemelerden sonra kullanılabilir kalan Node.js ve REA yollarının yanı sıra yazılabilir bir npm öneki gerektirir. Sisteme kurulu Node.js, `nvm`, `fnm` veya başka bir sürüm yöneticisi kullanıyorsanız bu komutlardan önce [kurulum kılavuzunu](../getting-started/installation.md#package-runners-and-global-installation) izleyin.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Ajanlarınızı seçin, önerilen değişiklikleri inceleyin ve onaylayın. Kurulum, mevcut yapılandırmaları yedekleyerek REA'nın MCP sunucusunu ve uyumlu iş akışı talimatlarını ekler. Ardından ajanınızı yeniden başlatın.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Sonuç; modülleri, içe aktarmaları, Electron sınırlarını ve bunlara ilişkin kanıtları içerir. Yolu hedefinizle değiştirin; Windows'ta örneğin `"D:/apps/example"` kullanabilirsiniz.
[Düzenli kullanım için `rea` komutunu yüklemek üzere:](../getting-started/installation.md#user-owned-npm-installation)
Düzenli kullanım için `rea` komutunu yüklemek üzere:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Yerel makine kodu analizi için önce bir sağlayıcı yapılandırın. Yerel an
rea update
```
En son sürümü genel olarak kurup ajan kurulumunu yenilemek için:
`npx` kullanıyorsanız ajan kurulumunu şu komutla güncelleyin:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Güncelleme ve kaldırma](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA, bir işlem gerektirdiğinde Hopper'ı başlatır. macOS'ta ilk çalıştır
<details>
<summary><strong>skills.sh üzerinden skill yüklemek ne yapar?</strong></summary>
Skill, ajanınıza araştırma talimatları sağlar. REA'nın MCP sunucusunu kaydetmek ve uyumlu talimatları yüklemek için `npm install --global rea-agents` / `rea setup` kullanın, ardından ajanınızı yeniden başlatın. [Yalnızca skill yükleme](../getting-started/installation.md#skill-only-installation) belgesine bakın.
Skill, ajanınıza araştırma talimatları sağlar. REA'nın MCP sunucusunu kaydetmek ve uyumlu talimatları yüklemek için `npx rea-agents setup` kullanın, ardından ajanınızı yeniden başlatın. [Yalnızca skill yükleme](../getting-started/installation.md#skill-only-installation) belgesine bakın.
</details>
@@ -254,11 +250,10 @@ npm ile yüklenen CLI için:
rea update
```
En son genel sürüme yenilemek için:
`npx` üzerinden ajan kurulumu için:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Ajan kullanıyorsanız [kurulum yenilemesini](#reayı-güncelleyin) tamamlayın ve ajanı yeniden başlatın. Aynı görevi tekrar deneyin. Sorun sürerse REA sürümünüzü, hedef türünü, yeniden üretme adımlarını ve hata çıktısını içeren bir [issue açın](https://github.com/morluto/rea/issues).
+8 -13
View File
@@ -25,7 +25,7 @@
[Швидкий старт](#швидкий-старт) · [Приклади](#приклади) · [Як працює REA](#як-працює-rea) · [Що можна аналізувати](#що-можна-аналізувати) · [Створення RL-середовищ](#build-rl-environments) · [Поширені запитання](#поширені-запитання) · [Документація](#документація)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA підключає вашого агента до інструментів
Установіть [Node.js і npm](../reference/supported-targets.md) і виконайте команду в довіреному каталозі поза досліджуваним проєктом.
Для налаштування клієнта потрібні шляхи до Node.js і REA, які залишаються доступними після оновлень, а також префікс npm із правом запису. Якщо ви використовуєте Node.js, установлений на рівні системи, `nvm`, `fnm` або інший менеджер версій, перед виконанням цих команд дотримуйтесь [посібника зі встановлення](../getting-started/installation.md#package-runners-and-global-installation).
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Виберіть агентів, перевірте запропоновані зміни та схваліть їх. Налаштування додає MCP-сервер REA та відповідні інструкції робочих процесів, створюючи резервні копії наявної конфігурації. Після цього перезапустіть агента.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Результат містить модулі, імпорти, межі Electron і підтвердження для них. Замініть шлях своїм, наприклад `"D:/apps/example"` у Windows.
[Для регулярного використання встановіть команду `rea`:](../getting-started/installation.md#user-owned-npm-installation)
Для регулярного використання встановіть команду `rea`:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
Щоб встановити останній випуск глобально й оновити налаштування агента:
Якщо використовуєте `npx`, оновіть налаштування агента командою:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Оновлення й видалення](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA запускає Hopper, коли він потрібен для опера
<details>
<summary><strong>Що дає встановлення skill із skills.sh?</strong></summary>
Skill надає агенту інструкції дослідження. Використовуйте `npm install --global rea-agents` / `rea setup`, щоб зареєструвати MCP-сервер REA та встановити відповідні інструкції, а потім перезапустіть агента. Дивіться [встановлення лише skill](../getting-started/installation.md#skill-only-installation).
Skill надає агенту інструкції дослідження. Використовуйте `npx rea-agents setup`, щоб зареєструвати MCP-сервер REA та встановити відповідні інструкції, а потім перезапустіть агента. Дивіться [встановлення лише skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ REA аналізує цілі локально. Ваш агент отримує
rea update
```
Щоб оновити до останнього глобального випуску:
Для налаштування агента через `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Якщо використовуєте агента, завершіть [оновлення налаштувань](#оновіть-rea) і перезапустіть його. Повторіть те саме завдання. Якщо проблема залишається, [відкрийте issue](https://github.com/morluto/rea/issues) із версією REA, типом цілі, кроками відтворення та виводом помилки.
+8 -13
View File
@@ -25,7 +25,7 @@
[Jaldi shuru karein](#jaldi-shuru-karein) · [Amli misaalein](#amli-misaalein) · [REA kaise kaam karta hai](#rea-kaise-kaam-karta-hai) · [Kya kuch analyze kar sakte hain](#kya-kuch-analyze-kar-sakte-hain) · [RL environments banayein](#build-rl-environments) · [FAQ](#faq) · [Documentation](#documentation)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -85,11 +85,8 @@ Setup REA ko aapke agent ke saath register karta hai aur uske mutabiq workflow i
[Node.js aur npm](../reference/supported-targets.md) install karne ke baad yeh command target project se bahar kisi bharosemand directory mein chalayein.
Client setup ke liye Node.js aur REA ke aise paths chahiye jo updates ke baad bhi dastiyab rahen, saath hi likhne ke qabil npm prefix bhi. System par install kiye gaye Node.js, `nvm`, `fnm`, ya kisi aur version manager ke liye, in commands se pehle [installation guide](../getting-started/installation.md#package-runners-and-global-installation) par amal karein.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Apne agents select karein, proposed changes dekhein aur approve karein. Setup
@@ -118,7 +115,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Natije mein modules, imports, Electron boundaries aur unke saboot milte hain.
Path ko apne target se badlein, jaise Windows par `"D:/apps/example"`.
[Rozmarra use ke liye `rea` command install karne ke liye:](../getting-started/installation.md#user-owned-npm-installation)
Rozmarra use ke liye `rea` command install karne ke liye:
```bash
npm install --global rea-agents
@@ -139,11 +136,10 @@ Agar CLI `npm install --global` ya `bun add --global` se install ki hai:
rea update
```
Latest release ko globally install karke agent setup refresh karne ke liye:
Agar aap `npx` use karte hain to agent setup is tarah update karein:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Update aur uninstall](../getting-started/installation.md#diagnose-update-and-remove)
@@ -262,7 +258,7 @@ dekhein.
Skill aapke agent ko jaanch karne ki instructions deti hai. REA ka MCP server
register karne aur matching instructions install karne ke liye
`npm install --global rea-agents` / `rea setup` use karein, phir agent restart karein.
`npx rea-agents setup` use karein, phir agent restart karein.
[Sirf skill ki installation](../getting-started/installation.md#skill-only-installation) dekhein.
</details>
@@ -296,11 +292,10 @@ Agar CLI `npm install --global` ya `bun add --global` se install ki hai:
rea update
```
Latest global release par refresh karne ke liye:
`npx` se agent setup ke liye:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Agar agent use kar rahe hain to [setup refresh](#rea-update-karein) complete
+8 -13
View File
@@ -25,7 +25,7 @@
[Bắt đầu nhanh](#bắt-đầu-nhanh) · [Các nghiên cứu điển hình](#các-nghiên-cứu-điển-hình) · [Cách REA hoạt động](#cách-rea-hoạt-động) · [Những gì bạn có thể phân tích](#những-gì-bạn-có-thể-phân-tích) · [Xây dựng môi trường RL](#build-rl-environments) · [Câu hỏi thường gặp](#câu-hỏi-thường-gặp) · [Tài liệu](#tài-liệu)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ Thiết lập đăng ký REA với tác nhân và cài hướng dẫn công vi
Sau khi cài [Node.js và npm](../reference/supported-targets.md), chạy lệnh sau từ một thư mục đáng tin cậy bên ngoài dự án cần phân tích.
Việc thiết lập ứng dụng khách cần các đường dẫn Node.js và REA vẫn khả dụng sau khi cập nhật, cùng với tiền tố npm có quyền ghi. Nếu dùng Node.js được cài ở cấp hệ thống, `nvm`, `fnm` hoặc trình quản lý phiên bản khác, hãy làm theo [hướng dẫn cài đặt](../getting-started/installation.md#package-runners-and-global-installation) trước khi chạy các lệnh này.
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
Chọn các tác nhân, xem lại những thay đổi được đề xuất và chấp thuận. Quá trình thiết lập thêm máy chủ MCP của REA cùng hướng dẫn quy trình tương ứng, đồng thời sao lưu cấu hình hiện có. Sau đó khởi động lại tác nhân.
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
Kết quả bao gồm mô-đun, các khai báo import, ranh giới Electron và bằng chứng tương ứng. Thay đường dẫn bằng mục tiêu của bạn, chẳng hạn `"D:/apps/example"` trên Windows.
[Để cài lệnh `rea` cho việc sử dụng thường xuyên:](../getting-started/installation.md#user-owned-npm-installation)
Để cài lệnh `rea` cho việc sử dụng thường xuyên:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ Với CLI được cài bằng `npm install --global` / `bun add --global`:
rea update
```
Để cài bản phát hành mới nhất ở phạm vi toàn cục và làm mới thiết lập tác nhân:
Nếu dùng `npx`, cập nhật thiết lập tác nhân bằng:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[Cập nhật và gỡ cài đặt](../getting-started/installation.md#diagnose-update-and-remove)
@@ -225,7 +221,7 @@ REA khởi chạy Hopper khi một thao tác cần đến nó. Trên macOS, hộ
<details>
<summary><strong>Cài skill từ skills.sh có tác dụng gì?</strong></summary>
Skill cung cấp hướng dẫn điều tra cho tác nhân. Dùng `npm install --global rea-agents` / `rea setup` để đăng ký máy chủ MCP của REA và cài hướng dẫn tương ứng, sau đó khởi động lại tác nhân. Xem [chỉ cài skill](../getting-started/installation.md#skill-only-installation).
Skill cung cấp hướng dẫn điều tra cho tác nhân. Dùng `npx rea-agents setup` để đăng ký máy chủ MCP của REA và cài hướng dẫn tương ứng, sau đó khởi động lại tác nhân. Xem [chỉ cài skill](../getting-started/installation.md#skill-only-installation).
</details>
@@ -254,11 +250,10 @@ Với CLI được cài bằng npm:
rea update
```
Để làm mới lên bản phát hành toàn cục mới nhất:
Với thiết lập tác nhân qua `npx`:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
Nếu dùng tác nhân, hãy hoàn tất [làm mới thiết lập](#cập-nhật-rea) và khởi động lại nó. Thử lại cùng tác vụ. Nếu vấn đề vẫn còn, [mở issue](https://github.com/morluto/rea/issues) với phiên bản REA, loại mục tiêu, các bước tái hiện và đầu ra lỗi.
+8 -13
View File
@@ -25,7 +25,7 @@
[快速開始](#快速開始) · [案例](#案例) · [REA 的工作原理](#rea-的工作原理) · [可以分析什麼](#可以分析什麼) · [建立 RL 環境](#build-rl-environments) · [常見問題](#常見問題) · [文件](#文件)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA 將 AI 代理連接到分析工具,用於檢查原生二進位檔案、Jav
安裝 [Node.js 和 npm](../reference/supported-targets.md) 後,在目標專案以外可信任的目錄中執行下列指令。
用戶端設定需要更新後仍可使用的 Node.js 和 REA 路徑,以及可寫入的 npm 前綴。如果使用系統安裝的 Node.js、`nvm`、`fnm` 或其他版本管理工具,請在執行這些命令前依照[安裝指南](../getting-started/installation.md#package-runners-and-global-installation)操作。
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
選擇 AI 代理,檢查計劃中的變更並核准。設定流程會添加 REA 的 MCP 服務和對應的工作流程指引,並備份已有組態。完成後重新啟動 AI 代理。
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
結果包含模組、匯入、Electron 邊界及相關證據。將路徑替換為你的目標路徑,例如 Windows 上的 `"D:/apps/example"`。
[如果需要經常使用,可以安裝 `rea` 命令:](../getting-started/installation.md#user-owned-npm-installation)
如果需要經常使用,可以安裝 `rea` 命令:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
要全域安裝最新版本並重新整理 AI 代理設定:
如果使用 `npx`,通過以下命令更新 AI 代理設定:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[更新與解除安裝](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ REA 會在操作需要時啟動 Hopper。在 macOS 上,首次執行時可能
<details>
<summary><strong>從 skills.sh 安裝 skill 有什麼作用?</strong></summary>
skill 為 AI 代理提供調查指引。使用 `npm install --global rea-agents` / `rea setup` 註冊 REA 的 MCP 服務並安裝對應的指引,然後重新啟動 AI 代理。見[僅安裝 skill](../getting-started/installation.md#skill-only-installation)。
skill 為 AI 代理提供調查指引。使用 `npx rea-agents setup` 註冊 REA 的 MCP 服務並安裝對應的指引,然後重新啟動 AI 代理。見[僅安裝 skill](../getting-started/installation.md#skill-only-installation)。
</details>
@@ -256,11 +252,10 @@ REA 在本機分析目標。AI 代理會接收工具結果,其模型提供商
rea update
```
要更新到最新的全域版本:
通過 `npx` 設定 AI 代理時使用:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
如果正在使用 AI 代理,請完成[設定更新](#更新-rea)並重新啟動 AI 代理。重試同一任務。如果問題仍然存在,請[提交 issue](https://github.com/morluto/rea/issues),附上 REA 版本、目標類型、復現步驟和錯誤輸出。
+8 -13
View File
@@ -25,7 +25,7 @@
[快速开始](#快速开始) · [案例](#案例) · [REA 的工作原理](#rea-的工作原理) · [可以分析什么](#可以分析什么) · [构建 RL 环境](#build-rl-environments) · [常见问题](#常见问题) · [文档](#文档)
<a href="../getting-started/installation.md#user-owned-npm-installation"><code>npm install --global rea-agents</code></a> · <code>rea setup</code>
<code>npx rea-agents setup</code>
</div>
@@ -83,11 +83,8 @@ REA 将智能体连接到分析工具,用于检查原生二进制文件、Java
安装 [Node.js 和 npm](../reference/supported-targets.md) 后,在目标项目之外的可信目录中运行以下命令。
客户端设置需要更新后仍可用的 Node.js 和 REA 路径,以及可写的 npm 前缀。如果使用系统安装的 Node.js、`nvm`、`fnm` 或其他版本管理器,请在运行这些命令前按照[安装指南](../getting-started/installation.md#package-runners-and-global-installation)操作。
```bash
npm install --global rea-agents
rea setup
npx rea-agents setup
```
选择智能体,检查计划中的变更并批准。设置流程会添加 REA 的 MCP 服务和匹配的工作流指引,并备份已有配置。完成后重启智能体。
@@ -112,7 +109,7 @@ npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --
结果包含模块、导入、Electron 边界及相关证据。将路径替换为你的目标路径,例如 Windows 上的 `"D:/apps/example"`。
[如果需要经常使用,可以安装 `rea` 命令:](../getting-started/installation.md#user-owned-npm-installation)
如果需要经常使用,可以安装 `rea` 命令:
```bash
npm install --global rea-agents
@@ -131,11 +128,10 @@ rea --help
rea update
```
要全局安装最新版本并刷新智能体设置:
如果使用 `npx`,通过以下命令更新智能体设置:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
[更新与卸载](../getting-started/installation.md#diagnose-update-and-remove)
@@ -227,7 +223,7 @@ REA 会在操作需要时启动 Hopper。在 macOS 上,首次运行时可能
<details>
<summary><strong>从 skills.sh 安装 skill 有什么作用?</strong></summary>
skill 为智能体提供调查指引。使用 `npm install --global rea-agents` / `rea setup` 注册 REA 的 MCP 服务并安装匹配的指引,然后重启智能体。见[仅安装 skill](../getting-started/installation.md#skill-only-installation)。
skill 为智能体提供调查指引。使用 `npx rea-agents setup` 注册 REA 的 MCP 服务并安装匹配的指引,然后重启智能体。见[仅安装 skill](../getting-started/installation.md#skill-only-installation)。
</details>
@@ -256,11 +252,10 @@ REA 在本机分析目标。智能体会接收工具结果,其模型提供商
rea update
```
要刷新到最新的全局版本:
通过 `npx` 设置智能体时使用:
```bash
npm install --global rea-agents@latest
rea setup
npx rea-agents@latest setup
```
如果正在使用智能体,请完成[设置更新](#更新-rea)并重启智能体。重试同一任务。如果问题仍然存在,请[提交 issue](https://github.com/morluto/rea/issues),附上 REA 版本、目标类型、复现步骤和错误输出。
+4 -4
View File
@@ -57,11 +57,11 @@ fail_node_version() {
local observed="$1"
node_host_labels
printf 'REA installation failed: Node.js %s is unsupported.\n\n' "$observed" >&2
printf 'REA requires Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+. Install a durable Node.js on PATH:\n' >&2
printf 'REA requires Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+. Install one via:\n' >&2
printf ' nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm)\n' >&2
printf ' fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm)\n' >&2
printf ' Direct download for %s/%s:\n' "$node_os_label" "$node_arch_label" >&2
printf ' https://nodejs.org/dist/latest-v24.x/ (grab the %s-%s tarball into a durable prefix like ~/.local or /usr/local)\n' "$node_os_label" "$node_arch_label" >&2
printf ' macOS installer / Homebrew: https://nodejs.org/en/download or `brew install node`\n' >&2
printf ' Note: version managers (nvm, fnm) need a durable `node` alias on PATH outside versioned/multishell directories for client MCP setup.\n' >&2
printf ' https://nodejs.org/dist/latest-v24.x/ (grab the %s-%s tarball)\n' "$node_os_label" "$node_arch_label" >&2
printf 'Then rerun this installer.\n' >&2
exit 1
}
+21 -451
View File
@@ -6,7 +6,7 @@ import {
readlinkSync,
realpathSync,
} from "node:fs";
import { isAbsolute, posix, resolve, win32 } from "node:path";
import { isAbsolute, posix, resolve } from "node:path";
import {
CURRENT_ENTRYPOINT_PATH,
normalizeEntrypointPath,
@@ -90,7 +90,6 @@ export const managedClientLauncher = (
entrypoint: string | undefined,
environment: Readonly<NodeJS.ProcessEnv>,
platform: NodeJS.Platform,
runtimePath: string = process.execPath,
): AubeShimLauncher | undefined => {
if (
platform === "win32" ||
@@ -99,23 +98,21 @@ export const managedClientLauncher = (
)
return undefined;
const roots = transientLauncherRoots(environment);
// The running Node may itself be versioned. A durable alias is decided below,
// so rejecting that runtime here would skip a still-valid mise shim.
if (usesTransientLauncherPath(entrypoint, roots)) return undefined;
if (
usesTransientLauncherPath(entrypoint, roots) ||
usesTransientLauncherPath(process.execPath, roots)
)
return undefined;
const launcher = aubeShimLauncher(
entrypoint,
PRODUCT_IDENTITY.cliBinary,
runtimePath,
process.execPath,
);
if (
launcher === undefined ||
usesTransientLauncherPath(launcher.shim, roots) ||
versionedLauncherPath(launcher.shim, platform, environment)
)
if (launcher === undefined || usesTransientLauncherPath(launcher.shim, roots))
return undefined;
// A fallback that walks through the sibling fails when the sibling disappears.
const fallbackRuntime = registrationRuntimePath(
runtimePath,
process.execPath,
"node",
environment,
platform,
@@ -134,7 +131,7 @@ export const defaultClientRegistrationBlocker = (
environment: Readonly<NodeJS.ProcessEnv>,
): string | undefined => {
if (command.length === 0)
return "REA could not determine persistent paths for the current runtime and REA entrypoint. Install Node and REA from a durable location, or add stable aliases on PATH, then retry. Leaving a version-manager session directory does not move a package cache or a versioned install.";
return "REA could not determine persistent paths for the current runtime and REA entrypoint. Run the installed REA CLI from outside the session directory, then retry.";
if (platform === "win32")
return packagePrivateLauncherBlocker(
command,
@@ -333,20 +330,14 @@ const sameFileExecutableAlias = (
path,
(hop) => hop === excludedPath || transientLauncherPath(hop, roots),
);
const versioned = (path: string) =>
versionedLauncherPath(path, "linux", environment);
let fallback: string | undefined = selected;
if (excluded(selected) || versioned(selected)) {
let fallback = selected;
if (excluded(selected)) {
try {
fallback = realpathSync.native(selected);
if (
excluded(fallback) ||
versioned(fallback) ||
identify(fallback, selected) !== "owned"
)
fallback = undefined;
if (excluded(fallback) || identify(fallback, selected) !== "owned")
return undefined;
} catch {
fallback = undefined;
return undefined;
}
}
for (const { path: candidate } of posixPathCandidates(
@@ -355,7 +346,7 @@ const sameFileExecutableAlias = (
{ relativeEntries: "skip" },
)) {
if (identify(candidate, selected) !== "owned") continue;
if (excluded(candidate) || versioned(candidate)) continue;
if (excluded(candidate)) continue;
try {
accessSync(candidate, constants.X_OK);
return candidate;
@@ -456,424 +447,12 @@ const transientLauncherPath = (
);
};
/**
* A spelling under a version manager or package cache. The check is lexical:
* a same-file alias whose own path stays outside the root remains durable
* even when its target is inside one.
*/
const versionedCacheSegment = (
segment: string,
next: string,
third: string,
same: (segment: string, expected: string) => boolean,
): boolean =>
same(segment, "_npx") ||
((same(segment, "pnpm") || same(segment, "pnpm-cache")) &&
same(next, "dlx")) ||
(same(segment, ".bun") && same(next, "install") && same(third, "cache")) ||
(same(segment, "node_modules") && same(next, ".mise") && third !== "");
/** Bunx keeps executable packages in these cache trees, including scoped names. */
const bunxExecutionCacheSegment = (
segments: readonly string[],
index: number,
platform: NodeJS.Platform,
same: SegmentEquals,
): boolean => {
const segment = segments[index] ?? "";
const marker = platform === "win32" ? segment.toLowerCase() : segment;
const legacy = /^bunx-\d+-(.+)$/u.exec(marker);
let packageName = legacy?.[1];
let next = index + 1;
if (packageName === undefined) {
if (!/^\.bunx-\d+$/u.test(marker)) return false;
packageName = segments[next] ?? "";
next += 1;
}
if (packageName.startsWith("@")) {
if (packageName.length === 1 || packageName.includes("@", 1)) return false;
packageName = segments[next] ?? "";
next += 1;
}
const selector = packageName.indexOf("@");
return (
selector > 0 &&
selector < packageName.length - 1 &&
same(segments[next] ?? "", "node_modules") &&
(segments[next + 1] ?? "") !== ""
);
};
const versionedPosixPackageSegment = (
segments: readonly string[],
index: number,
platform: NodeJS.Platform,
): boolean => {
if (platform === "win32" || index !== 0) return false;
const segment = segments[0] ?? "";
const next = segments[1] ?? "";
const third = segments[2] ?? "";
return (
(segment === "nix" && next === "store" && third !== "") ||
(segment === "snap" &&
next !== "" &&
next !== "bin" &&
/^\d+$/u.test(third))
);
};
type SegmentEquals = (segment: string, expected: string) => boolean;
const segmentEquals =
(platform: NodeJS.Platform): SegmentEquals =>
(segment, expected) =>
platform === "win32"
? segment.toLowerCase() === expected.toLowerCase()
: segment === expected;
const normalizedPathSegments = (
path: string,
platform: NodeJS.Platform,
): readonly string[] => {
const api = platform === "win32" ? win32 : posix;
return api.normalize(path).split(api.sep).filter(Boolean);
};
const nvmManagerSubpath = (
first: string,
second: string,
same: SegmentEquals,
): boolean =>
(same(first, "versions") && same(second, "node")) ||
nvmVersionDirectory(first);
const voltaImageNodeSubpath = (
first: string,
second: string,
third: string,
same: SegmentEquals,
): boolean =>
same(first, "tools") && same(second, "image") && same(third, "node");
const homebrewNodeDirectory = (
segment: string,
same: SegmentEquals,
platform: NodeJS.Platform,
): boolean =>
same(segment, "node") ||
(platform === "win32"
? segment.toLowerCase().startsWith("node@")
: segment.startsWith("node@"));
// `latest` is mise's stable alias. A numbered install beside it is not.
const miseInstallSubpath = (
versionSegment: string,
same: SegmentEquals,
): boolean => versionSegment !== "" && !same(versionSegment, "latest");
const nvsInstallSubpath = (
first: string,
second: string,
same: SegmentEquals,
): boolean => !same(first, "default") && nvsVersionDirectory(second);
const CONFIGURED_VERSION_MANAGER_MATCHERS: ReadonlyArray<
readonly [
string,
(
subpath: readonly string[],
same: SegmentEquals,
platform: NodeJS.Platform,
) => boolean,
]
> = [
[
"VOLTA_HOME",
(subpath, same) =>
voltaImageNodeSubpath(
subpath[0] ?? "",
subpath[1] ?? "",
subpath[2] ?? "",
same,
),
],
[
"NVM_DIR",
(subpath, same) =>
nvmManagerSubpath(subpath[0] ?? "", subpath[1] ?? "", same),
],
[
"NVM_HOME",
(subpath, same) =>
nvmManagerSubpath(subpath[0] ?? "", subpath[1] ?? "", same),
],
[
"FNM_DIR",
(subpath, same) =>
same(subpath[0] ?? "", "node-versions") && (subpath[1] ?? "") !== "",
],
[
"MISE_DATA_DIR",
(subpath, same) =>
same(subpath[0] ?? "", "installs") &&
miseInstallSubpath(subpath[2] ?? "", same),
],
[
"MISE_INSTALLS_DIR",
(subpath, same) => miseInstallSubpath(subpath[1] ?? "", same),
],
[
"ASDF_DATA_DIR",
(subpath, same) =>
same(subpath[0] ?? "", "installs") && (subpath[1] ?? "") !== "",
],
[
"NODENV_ROOT",
(subpath, same) =>
same(subpath[0] ?? "", "versions") && (subpath[1] ?? "") !== "",
],
[
"NVS_HOME",
(subpath, same) =>
nvsInstallSubpath(subpath[0] ?? "", subpath[1] ?? "", same),
],
[
"HOMEBREW_CELLAR",
(subpath, same, platform) =>
homebrewNodeDirectory(subpath[0] ?? "", same, platform),
],
];
const subpathUnderConfiguredRoot = (
target: string,
root: string | undefined,
platform: NodeJS.Platform,
same: SegmentEquals,
): readonly string[] | undefined => {
if (root === undefined || root.trim() === "") return undefined;
const api = platform === "win32" ? win32 : posix;
if (!api.isAbsolute(target) || !api.isAbsolute(root)) return undefined;
const targetSegments = normalizedPathSegments(target, platform);
const subpath = (spelling: string): readonly string[] | undefined => {
const rootSegments = normalizedPathSegments(spelling, platform);
if (
rootSegments.length === 0 ||
targetSegments.length <= rootSegments.length
)
return undefined;
return rootSegments.every((segment, index) =>
same(targetSegments[index] ?? "", segment),
)
? targetSegments.slice(rootSegments.length)
: undefined;
};
const lexical = subpath(root);
if (lexical !== undefined) return lexical;
try {
// Match canonical process paths without resolving stable candidate aliases.
return subpath(realpathSync.native(root));
} catch {
// A missing configured root still supports the lexical comparison above.
return undefined;
}
};
const windowsSessionLauncherPath = (
path: string,
environment: Readonly<NodeJS.ProcessEnv>,
): boolean => {
const same = segmentEquals("win32");
const segments = normalizedPathSegments(path, "win32");
if (
segments.some(
(segment, index) =>
same(segment, "fnm_multishells") && (segments[index + 1] ?? "") !== "",
)
)
return true;
return (
subpathUnderConfiguredRoot(
path,
environmentValue(environment, "FNM_MULTISHELL_PATH", "win32"),
"win32",
same,
) !== undefined
);
};
const windowsDurableLauncherPath = (
path: string,
environment: Readonly<NodeJS.ProcessEnv>,
): string | undefined =>
versionedLauncherPath(path, "win32", environment) ||
windowsSessionLauncherPath(path, environment)
? undefined
: path;
/** Cache directories named by the runner, including a pnpm `cache-dir` with no `pnpm` segment. */
const CONFIGURED_PACKAGE_CACHE_ROOTS = [
"npm_config_cache",
"npm_config_cache_dir",
"BUN_INSTALL_CACHE_DIR",
] as const;
const configuredPackageCachePath = (
path: string,
platform: NodeJS.Platform,
environment: Readonly<NodeJS.ProcessEnv>,
same: SegmentEquals,
): boolean =>
CONFIGURED_PACKAGE_CACHE_ROOTS.some(
(name) =>
subpathUnderConfiguredRoot(
path,
environmentValue(environment, name, platform),
platform,
same,
) !== undefined,
);
const versionedConfiguredManagerSegment = (
path: string,
platform: NodeJS.Platform,
environment: Readonly<NodeJS.ProcessEnv>,
same: SegmentEquals,
): boolean =>
CONFIGURED_VERSION_MANAGER_MATCHERS.some(([envVar, matchesSubpath]) => {
const subpath = subpathUnderConfiguredRoot(
path,
environmentValue(environment, envVar, platform),
platform,
same,
);
return subpath !== undefined && matchesSubpath(subpath, same, platform);
});
const versionedNvmOrVoltaSegment = (
segments: readonly string[],
index: number,
same: SegmentEquals,
platform: NodeJS.Platform,
): boolean => {
const segment = segments[index] ?? "";
const next = segments[index + 1] ?? "";
const third = segments[index + 2] ?? "";
const isNvm = same(segment, "nvm") || same(segment, ".nvm");
const isVolta =
same(segment, ".volta") || (platform === "win32" && same(segment, "volta"));
return (
(isNvm && nvmManagerSubpath(next, third, same)) ||
(isVolta &&
voltaImageNodeSubpath(next, third, segments[index + 3] ?? "", same))
);
};
const versionedRuntimeManagerSegment = (
segments: readonly string[],
index: number,
same: SegmentEquals,
platform: NodeJS.Platform,
): boolean => {
const segment = segments[index] ?? "";
const next = segments[index + 1] ?? "";
const third = segments[index + 2] ?? "";
return (
(same(segment, "node-versions") && same(third, "installation")) ||
(same(segment, "Cellar") && homebrewNodeDirectory(next, same, platform)) ||
versionedNvmOrVoltaSegment(segments, index, same, platform)
);
};
const versionedPolyglotManagerSegment = (
segments: readonly string[],
index: number,
same: SegmentEquals,
): boolean => {
const segment = segments[index] ?? "";
const next = segments[index + 1] ?? "";
const third = segments[index + 2] ?? "";
if (same(segment, "mise") && same(next, "installs"))
return miseInstallSubpath(segments[index + 3] ?? "", same);
return (
((same(segment, ".asdf") || same(segment, "asdf")) &&
same(next, "installs")) ||
((same(segment, ".nodenv") || same(segment, "nodenv")) &&
same(next, "versions")) ||
((same(segment, ".nvs") || same(segment, "nvs")) &&
nvsInstallSubpath(next, third, same))
);
};
const versionedLauncherPath = (
path: string,
platform: NodeJS.Platform,
environment: Readonly<NodeJS.ProcessEnv> = {},
): boolean => {
const segments = normalizedPathSegments(path, platform);
const same = segmentEquals(platform);
return (
segments.some(
(segment, index) =>
versionedCacheSegment(
segment,
segments[index + 1] ?? "",
segments[index + 2] ?? "",
same,
) ||
bunxExecutionCacheSegment(segments, index, platform, same) ||
versionedPosixPackageSegment(segments, index, platform) ||
versionedRuntimeManagerSegment(segments, index, same, platform) ||
versionedPolyglotManagerSegment(segments, index, same),
) ||
versionedConfiguredManagerSegment(path, platform, environment, same) ||
configuredPackageCachePath(path, platform, environment, same)
);
};
/** NVS keeps each installed runtime under `<root>/<remote>/<semver>`. */
const nvsVersionDirectory = (segment: string): boolean =>
/^v?\d+\.\d+\.\d+/u.test(segment);
/** nvm-windows keeps each Node in `nvm/v<version>`, with no `versions/node`. */
const nvmVersionDirectory = (segment: string): boolean => {
const version = segment.toLowerCase();
const digit = version.codePointAt(1);
return (
version.startsWith("v") && digit !== undefined && digit >= 48 && digit <= 57
);
};
/** Saved version-manager and package-cache paths need a different recovery than a session directory. */
export const transientLauncherRemediation = (
paths: readonly string[],
platform: NodeJS.Platform,
followUp: string,
environment: Readonly<NodeJS.ProcessEnv> = {},
): string => {
const versioned = paths.filter((path) =>
versionedLauncherPath(path, platform, environment),
);
const session = paths.filter(
(path) => !versionedLauncherPath(path, platform, environment),
);
const sentences = [
...(session.length === 0
? []
: [`The saved launcher uses a session path (${session.join(", ")}).`]),
...(versioned.length === 0
? []
: [
`The saved launcher uses a version-manager or package-cache path (${versioned.join(", ")}). Install Node and REA from a durable location, or add a stable alias on PATH.`,
]),
];
return `${sentences.join(" ")} ${followUp}`;
};
export const transientClientLauncherPaths = (
command: readonly string[],
environment: Readonly<NodeJS.ProcessEnv>,
platform: NodeJS.Platform,
): readonly string[] => {
if (platform === "win32") return [];
const shim = registeredAubeShim(command);
const paths =
shim !== undefined
@@ -882,17 +461,8 @@ export const transientClientLauncherPaths = (
? command.slice(0, 2)
: [];
if (paths.length === 0) return [];
const versioned = (path: string) =>
versionedLauncherPath(path, platform, environment);
if (platform === "win32")
return paths.filter(
(path) =>
versioned(path) || windowsSessionLauncherPath(path, environment),
);
const roots = transientLauncherRoots(environment);
return paths.filter(
(path) => usesTransientLauncherPath(path, roots) || versioned(path),
);
return paths.filter((path) => usesTransientLauncherPath(path, roots));
};
/** Prefer an executable PATH alias that proves the same selected REA file. */
@@ -902,9 +472,9 @@ const registrationEntrypointPath = (
platform: NodeJS.Platform,
): string | undefined =>
// A Windows command shim is a different program; file identity cannot prove
// its script target. A versioned or session-path spelling is not durable.
// its script target. Keep that platform's existing Node/script registration.
platform === "win32"
? windowsDurableLauncherPath(entrypoint, environment)
? entrypoint
: sameFileExecutableAlias(
entrypoint,
PRODUCT_IDENTITY.cliBinary,
@@ -921,7 +491,7 @@ export const registrationRuntimePath = (
excludedPath?: string,
): string | undefined =>
platform === "win32"
? windowsDurableLauncherPath(executable, environment)
? executable
: sameFileExecutableAlias(
executable,
runtime,
+2 -21
View File
@@ -42,7 +42,6 @@ import {
inspectClientRegistrationCommand,
managedClientLauncher,
transientClientLauncherPaths,
transientLauncherRemediation,
type ClientRegistrationCommandFacts,
type ClientRegistrationCommandIdentity,
} from "./ClientRegistrationIdentity.js";
@@ -667,8 +666,6 @@ export const readClientRegistrationInspections = async (
transientPaths,
commandFacts.identity,
effectiveClient,
options.platform,
options.environment ?? process.env,
)
: undefined) ??
(parsed.dialect !== "dsh" && commandFacts.identity !== "owned"
@@ -700,16 +697,7 @@ export const readClientRegistrationInspections = async (
? sharedDisabledActivationRemediation()
: undefined) ??
(transientPaths.length > 0 && commandFacts.identity === "owned"
? transientLauncherRemediation(
transientPaths,
options.platform,
remediation(
effectiveClient,
launcherPath,
launcherRegistrationScope,
),
options.environment ?? process.env,
)
? `The saved launcher uses a session path (${transientPaths.join(", ")}). ${remediation(effectiveClient, launcherPath, launcherRegistrationScope)}`
: undefined) ??
(commandFacts.installation === "other"
? `The saved launcher starts another installed ${PRODUCT_IDENTITY.packageName} package or runtime, not the installation running this check. ${remediation(effectiveClient, launcherPath, launcherRegistrationScope)}`
@@ -927,8 +915,6 @@ const missingTransientLauncherRemediation = async (
paths: readonly string[],
identity: ClientRegistrationCommandIdentity,
client: SetupClient,
platform: NodeJS.Platform,
environment: Readonly<NodeJS.ProcessEnv>,
): Promise<string | undefined> => {
if (identity !== "unknown") return undefined;
for (const path of paths) {
@@ -936,12 +922,7 @@ const missingTransientLauncherRemediation = async (
await stat(path);
} catch (cause) {
if (isEnoentError(cause)) {
const detail = transientLauncherRemediation(
[path],
platform,
`The saved launcher path ${path} is missing.`,
environment,
);
const detail = `The saved session launcher path ${path} is missing.`;
return client.format === "dsh"
? `${detail} Run rea setup --client dsh to review and refresh the installed REA registration, then restart the client.`
: `${detail} Launcher ownership is unknown. Back up the client configuration and replace that path with the verified installed interpreter or REA script, then rerun rea doctor and restart the client.`;
@@ -196,7 +196,14 @@ for (const runtime of ["current", "other"] as const)
const home = await createTestTempDirectory("rea-setup-other-install-");
const config = join(home, ".claude.json");
const script = await installPackage(
join(home, "other-install", "node_modules", "rea-agents"),
join(
home,
"npm-cache",
"_npx",
"af752b90",
"node_modules",
"rea-agents",
),
reaManifest,
);
let command = process.execPath;
@@ -6,7 +6,7 @@ import {
symlink,
writeFile,
} from "node:fs/promises";
import { dirname, delimiter, join, resolve } from "node:path";
import { delimiter, join, resolve } from "node:path";
import { Client } from "@modelcontextprotocol/client";
import {
StdioClientTransport,
@@ -19,7 +19,6 @@ import { PRODUCT_IDENTITY } from "../../../src/identity.js";
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
import { cliTest } from "../../support/cli/cliFixture.js";
import { createMcpSchemaValidation } from "../../fixtures/mcpSchemaValidation.js";
import type { TestProcesses } from "../../support/process/processFixture.js";
const registrationSchema = z.object({
mcpServers: z.object({
@@ -27,34 +26,6 @@ const registrationSchema = z.object({
}),
});
const installGlobalPackageOffline = async (
processes: TestProcesses,
root: string,
cwd: string,
environment: NodeJS.ProcessEnv,
): Promise<string> => {
const installEnvironment = {
...environment,
PATH: [dirname(process.execPath), process.env.PATH ?? ""].join(delimiter),
};
const npm = npmInvocation(
[
"install",
"--offline",
"--global",
"--ignore-scripts",
`file:${resolve(".")}`,
],
installEnvironment,
);
const install = await processes.run(npm.command, npm.arguments, {
cwd,
env: installEnvironment,
});
expect(install.exitCode, install.stderr).toBe(0);
return join(root, "prefix", "bin", "rea");
};
cliTest.skipIf(process.platform === "win32")(
"real offline npm setup binds an installation across project starts and cache restoration",
async ({ processes }) => {
@@ -79,16 +50,15 @@ cliTest.skipIf(process.platform === "win32")(
npm_config_globalconfig: join(root, "global.npmrc"),
npm_config_update_notifier: "false",
};
const installedBin = await installGlobalPackageOffline(
processes,
root,
trusted,
environment,
);
const setup = await processes.run(
process.execPath,
const npm = npmInvocation(
[
installedBin,
"exec",
"--offline",
"--ignore-scripts",
"--yes",
`--package=file:${resolve(".")}`,
"--",
"rea",
"setup",
"--client",
"omp",
@@ -96,8 +66,12 @@ cliTest.skipIf(process.platform === "win32")(
"--yes",
"--json",
],
{ cwd: trusted, env: environment },
environment,
);
const setup = await processes.run(npm.command, npm.arguments, {
cwd: trusted,
env: environment,
});
expect(setup.exitCode, setup.stderr).toBe(0);
const configPath = join(home, ".omp", "agent", "mcp.json");
const original = await readFile(configPath, "utf8");
@@ -106,8 +80,8 @@ cliTest.skipIf(process.platform === "win32")(
const alias = registration.args[0];
expect(alias).toBeDefined();
if (alias === undefined) throw new Error("Missing registered entrypoint");
// Only remove an alias in this test's owned prefix, never the source installation.
expect(alias.startsWith(join(root, "prefix") + "/")).toBe(true);
// Only remove an alias in this test's owned cache, never the source installation.
expect(alias.startsWith(join(root, "cache") + "/")).toBe(true);
expect(registration.args.slice(1)).toEqual(["mcp"]);
const marker = join(root, "project-candidate-called");
const candidate = join(
@@ -8,7 +8,6 @@ import {
classifyClientRegistrationCommand,
currentClientRegistrationCommand,
inspectClientRegistrationCommand,
managedClientLauncher,
} from "../../../src/application/ClientRegistrationIdentity.js";
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
@@ -39,7 +38,7 @@ const storeTarget = (version: string): string =>
/**
* Lay out a mise install the way mise does: each version in its own directory
* under `mise/installs/rea`, and `latest` a symlink to the newest. Returns the
* under `installs/rea`, and `latest` a symlink to the newest. Returns the
* entrypoint and shim as REA sees them when launched through `latest`.
*/
const installWithMise = async (
@@ -157,7 +156,7 @@ it.skipIf(process.platform === "win32")(
"registers the aube bin shim, which stays aligned across a mise upgrade",
async () => {
const home = await createTestTempDirectory("rea-aube-registration-");
const installs = join(home, ".local", "share", "mise", "installs", "rea");
const installs = join(home, "installs", "rea");
const before = await installWithMise(installs, "6.7.0");
const command = registerCommand(before.entrypoint);
@@ -180,43 +179,12 @@ it.skipIf(process.platform === "win32")(
},
);
it.skipIf(process.platform === "win32")(
"keeps the mise shim when Node is versioned and a durable alias is on PATH",
async () => {
const home = await createTestTempDirectory("rea-aube-versioned-node-");
const installs = join(home, ".local", "share", "mise", "installs", "rea");
const { entrypoint, shim } = await installWithMise(installs, "6.7.0");
const versioned = join(home, "Cellar", "node", "22.1.0", "bin", "node");
await mkdir(dirname(versioned), { recursive: true });
await copyFile(process.execPath, versioned);
const sibling = join(dirname(shim), "node");
await rm(sibling);
await symlink(versioned, sibling);
const aliasDirectory = join(home, "opt", "bin");
const alias = join(aliasDirectory, "node");
await mkdir(aliasDirectory, { recursive: true });
await symlink(versioned, alias);
expect(
managedClientLauncher(
entrypoint,
{ PATH: aliasDirectory },
"linux",
versioned,
),
).toEqual({ shim, fallbackRuntime: alias });
expect(
managedClientLauncher(entrypoint, { PATH: "" }, "linux", versioned),
).toBeUndefined();
},
);
it.skipIf(process.platform === "win32")(
"reports a registered aube store script as stale so setup moves it to the shim",
async () => {
const home = await createTestTempDirectory("rea-aube-legacy-");
const { entrypoint } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
@@ -234,7 +202,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-project-");
const { entrypoint } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const project = join(home, "project");
@@ -285,7 +253,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-link-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const link = join(home, "bin", "rea");
@@ -303,7 +271,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-foreign-shim-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
"../.mise/other@1.0.0/node_modules/other/bin.js",
);
@@ -315,7 +283,11 @@ it.skipIf(process.platform === "win32")(
await mkdir(dirname(foreign), { recursive: true });
await writeFile(foreign, "console.log('different package');\n");
expect(registerCommand(entrypoint)).toEqual([]);
expect(registerCommand(entrypoint)).toEqual([
process.execPath,
entrypoint,
"mcp",
]);
expect(classifyClientRegistrationCommand([shim, "mcp"], entrypoint)).toBe(
"foreign",
);
@@ -327,7 +299,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-unknown-shim-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
await writeFile(
@@ -338,7 +310,11 @@ it.skipIf(process.platform === "win32")(
),
);
expect(registerCommand(entrypoint)).toEqual([]);
expect(registerCommand(entrypoint)).toEqual([
process.execPath,
entrypoint,
"mcp",
]);
},
);
@@ -353,7 +329,7 @@ it
async (cause) => {
const home = await createTestTempDirectory("rea-aube-unverified-shim-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
if (cause === "marker-only")
@@ -368,7 +344,11 @@ it
if (cause === "different-bound-node")
await bindAubeShimNode(shim, "6.7.0", interpreter);
}
expect(registerCommand(entrypoint)).toEqual([]);
expect(registerCommand(entrypoint)).toEqual([
process.execPath,
entrypoint,
"mcp",
]);
// A parsed shim that starts another runtime runs REA's script, but never
// this installation; an unparsed marker proves nothing.
expect(
@@ -390,7 +370,7 @@ it.skipIf(process.platform === "win32").each([
async (target, saved, direct, state) => {
const home = await createTestTempDirectory("rea-aube-other-runtime-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const current =
@@ -422,7 +402,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-host-bound-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const legacy = oldAubeRegistration(shim, process.execPath);
@@ -442,7 +422,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-parent-alias-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const aliasParent = join(home, "alias");
@@ -462,7 +442,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-fifo-");
const { entrypoint } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const fifo = join(home, "rea-fifo");
@@ -479,7 +459,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-external-node-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
await rm(join(dirname(shim), "node"));
@@ -509,7 +489,7 @@ it
async (sibling) => {
const home = await createTestTempDirectory("rea-aube-sibling-node-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const bin = dirname(shim);
@@ -546,7 +526,7 @@ it.skipIf(process.platform === "win32").each([
async (beforeBinding, afterBinding) => {
const home = await createTestTempDirectory("rea-aube-node-upgrade-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const oldVersion = join(home, "node-versions", "old");
@@ -649,7 +629,7 @@ it.skipIf(process.platform === "win32")(
async () => {
const home = await createTestTempDirectory("rea-aube-native-node-path-");
const { entrypoint, shim } = await installWithMise(
join(home, ".local", "share", "mise", "installs", "rea"),
join(home, "installs", "rea"),
"6.7.0",
);
const lexicalBin = dirname(shim);
@@ -24,11 +24,11 @@ const execFileAsync = promisify(execFile);
const UNSUPPORTED_NODE_RECOVERY_LINUX_X64 =
"REA installation failed: Node.js 20.0.0 is unsupported.\n" +
"\n" +
"REA requires Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+. Install a durable Node.js on PATH:\n" +
"REA requires Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+. Install one via:\n" +
" nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm)\n" +
" fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm)\n" +
" Direct download for linux/x64:\n" +
" https://nodejs.org/dist/latest-v24.x/ (grab the linux-x64 tarball into a durable prefix like ~/.local or /usr/local)\n" +
" macOS installer / Homebrew: https://nodejs.org/en/download or `brew install node`\n" +
" Note: version managers (nvm, fnm) need a durable `node` alias on PATH outside versioned/multishell directories for client MCP setup.\n" +
" https://nodejs.org/dist/latest-v24.x/ (grab the linux-x64 tarball)\n" +
"Then rerun this installer.\n";
describe("installer Node.js admission", () => {
@@ -15,37 +15,11 @@ import {
currentClientRegistrationCommand,
classifyClientRegistrationCommand,
registrationRuntimePath,
transientClientLauncherPaths,
transientLauncherRemediation,
} from "../../../src/application/ClientRegistrationIdentity.js";
import { readClientRegistrationInspections } from "../../../src/application/ClientRegistrationStatus.js";
import { javaScriptRuntime } from "../../../src/domain/runtimeVersion.js";
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
/** A same-file alias outside a version manager, so nvm-hosted runners stay durable. */
const durableNodeOnPath = async (
root: string,
path: string,
): Promise<{ PATH: string; runtime: string }> => {
const runtime = javaScriptRuntime(process.versions).id;
const direct = registrationRuntimePath(
process.execPath,
runtime,
{ PATH: "" },
"linux",
);
if (direct !== undefined) return { PATH: path, runtime: process.execPath };
const bin = join(root, "durable-node");
await mkdir(bin, { recursive: true });
const alias = join(bin, runtime);
await symlink(process.execPath, alias).catch(
(error: NodeJS.ErrnoException) => {
if (error.code !== "EEXIST") throw error;
},
);
return { PATH: `${bin}:${path}`, runtime: alias };
};
it.skipIf(process.platform === "win32")(
"registers a same-file PATH launcher whose manager-owned alias survives a version switch",
async () => {
@@ -69,13 +43,12 @@ it.skipIf(process.platform === "win32")(
await symlink(old, latest, "dir");
const unstable = join(latest, scriptWithin("old"));
const alias = join(latest, "bin", "rea");
const durable = await durableNodeOnPath(root, join(latest, "bin"));
const command = currentClientRegistrationCommand({
platform: "linux",
entrypointPath: unstable,
environment: { PATH: durable.PATH },
environment: { PATH: join(latest, "bin") },
});
expect(command).toEqual([durable.runtime, alias, "mcp"]);
expect(command).toEqual([process.execPath, alias, "mcp"]);
expect(classifyClientRegistrationCommand(command, unstable)).toBe("owned");
await rm(latest);
await symlink(next, latest, "dir");
@@ -144,14 +117,13 @@ it.skipIf(process.platform === "win32")(
const entrypoint = join(directory, "rea");
await writeFile(script, "// installed REA script\n");
await symlink(script, entrypoint);
const durable = await durableNodeOnPath(root, directory);
const command = () =>
currentClientRegistrationCommand({
platform: "linux",
entrypointPath: entrypoint,
environment: { FNM_MULTISHELL_PATH: directory, PATH: durable.PATH },
environment: { FNM_MULTISHELL_PATH: directory, PATH: directory },
});
expect(command()).toEqual([durable.runtime, script, "mcp"]);
expect(command()).toEqual([process.execPath, script, "mcp"]);
await rm(entrypoint);
await writeFile(
@@ -185,9 +157,7 @@ it.skipIf(process.platform === "win32")(
{ PATH: `${foreign}:${missing}:relative` },
"linux",
),
).toBe(
registrationRuntimePath(process.execPath, runtime, { PATH: "" }, "linux"),
);
).toBe(process.execPath);
expect(
registrationRuntimePath(
process.execPath,
@@ -210,17 +180,7 @@ it.skipIf(process.platform === "win32")(
{ PATH: valid },
"win32",
),
).toBe(
registrationRuntimePath(process.execPath, runtime, { PATH: "" }, "win32"),
);
expect(
registrationRuntimePath(
"C:\\nodejs\\node.exe",
"node",
{ PATH: valid },
"win32",
),
).toBe("C:\\nodejs\\node.exe");
).toBe(process.execPath);
},
);
@@ -248,9 +208,7 @@ it.skipIf(process.platform === "win32")(
},
process.platform,
),
).toBe(
registrationRuntimePath(process.execPath, runtime, { PATH: "" }, "linux"),
);
).toBe(process.execPath);
},
);
@@ -303,130 +261,6 @@ it.skipIf(process.platform === "win32")(
},
);
it.skipIf(process.platform === "win32")(
"keeps a same-file runtime alias outside a versioned Homebrew Cellar path",
async () => {
const root = await createTestTempDirectory("rea-cellar-runtime-");
const selected = join(root, "Cellar", "node", "22.1.0", "bin", "node");
const alias = join(root, "opt", "node", "bin", "node");
await mkdir(dirname(selected), { recursive: true });
await mkdir(dirname(alias), { recursive: true });
await writeFile(selected, "runtime", { mode: 0o700 });
await symlink(selected, alias);
expect(
registrationRuntimePath(selected, "node", { PATH: "" }, "linux"),
).toBeUndefined();
expect(
registrationRuntimePath(
selected,
"node",
{ PATH: dirname(alias) },
"linux",
),
).toBe(alias);
},
);
it("treats version-manager and package-cache launcher spellings as transient", () => {
const command = (runtime: string) =>
transientClientLauncherPaths([runtime, "rea.mjs", "mcp"], {}, "win32");
expect(
command(
"C:\\Users\\a\\AppData\\Roaming\\nvm\\versions\\node\\v22\\node.exe",
),
).toEqual([
"C:\\Users\\a\\AppData\\Roaming\\nvm\\versions\\node\\v22\\node.exe",
]);
expect(
command("C:\\Users\\a\\.volta\\tools\\image\\node\\22.1.0\\node.exe"),
).toEqual(["C:\\Users\\a\\.volta\\tools\\image\\node\\22.1.0\\node.exe"]);
expect(
command("C:\\Users\\a\\AppData\\Roaming\\nvm\\v22.1.0\\node.exe"),
).toEqual(["C:\\Users\\a\\AppData\\Roaming\\nvm\\v22.1.0\\node.exe"]);
expect(
registrationRuntimePath(
"/home/alice/.nvm/versions/node/v22.1.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"C:\\Users\\a\\AppData\\Roaming\\nvm\\v22.1.0\\node.exe",
"node",
{},
"win32",
),
).toBeUndefined();
expect(
registrationRuntimePath("C:\\node\\node.exe", "node", {}, "win32"),
).toBe("C:\\node\\node.exe");
expect(
registrationRuntimePath(
"C:\\Users\\a\\AppData\\Local\\pnpm-cache\\dlx\\hash\\node.exe",
"node",
{},
"win32",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"C:\\Users\\a\\AppData\\Local\\Volta\\tools\\image\\node\\22.1.0\\node.exe",
"node",
{},
"win32",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.local/share/mise/installs/node/22.1.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.local/share/mise/installs/node/latest/bin/node",
"node",
{},
"linux",
),
).toBe("/home/alice/.local/share/mise/installs/node/latest/bin/node");
expect(
registrationRuntimePath(
"/opt/homebrew/Cellar/node/22.1.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.local/share/fnm/node-versions/v22.1.0/installation/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"C:\\Users\\a\\AppData\\Roaming\\fnm\\node-versions\\v22.1.0\\installation\\node.exe",
"node",
{},
"win32",
),
).toBeUndefined();
expect(
transientClientLauncherPaths(
["/tmp/cache/_npx/abc/node", "/tmp/pnpm/dlx/hash/node", "mcp"],
{},
"linux",
),
).toEqual(["/tmp/cache/_npx/abc/node", "/tmp/pnpm/dlx/hash/node"]);
});
it.skipIf(process.platform === "win32")(
"keeps selected entrypoint when PATH aliases are foreign, unresolved, unexecutable or relative",
async () => {
@@ -444,504 +278,26 @@ it.skipIf(process.platform === "win32")(
const selected = join(root, "unexecutable.mjs");
await writeFile(selected, "selected", { mode: 0o600 });
await symlink(selected, join(unexecutable, "rea"));
const foreignPath = await durableNodeOnPath(
root,
`${foreign}:${missing}:relative`,
);
const unexecutablePath = await durableNodeOnPath(root, unexecutable);
expect(
currentClientRegistrationCommand({
platform: "linux",
entrypointPath: entrypoint,
environment: { PATH: foreignPath.PATH },
environment: { PATH: `${foreign}:${missing}:relative` },
}),
).toEqual([foreignPath.runtime, entrypoint, "mcp"]);
).toEqual([process.execPath, entrypoint, "mcp"]);
expect(
currentClientRegistrationCommand({
platform: "linux",
entrypointPath: selected,
environment: { PATH: unexecutablePath.PATH },
environment: { PATH: unexecutable },
}),
).toEqual([unexecutablePath.runtime, selected, "mcp"]);
const windowsRuntime = registrationRuntimePath(
process.execPath,
javaScriptRuntime(process.versions).id,
{ PATH: "" },
"win32",
);
).toEqual([process.execPath, selected, "mcp"]);
expect(
currentClientRegistrationCommand({
platform: "win32",
entrypointPath: entrypoint,
environment: { PATH: foreign },
}),
).toEqual(
windowsRuntime === undefined ? [] : [windowsRuntime, entrypoint, "mcp"],
);
},
);
it("rejects versioned Aube store targets beneath mise latest and additional manager trees", () => {
const storeEntrypoint =
"/home/alice/.local/share/mise/installs/rea/latest/node_modules/.mise/rea-agents@6.7.0/node_modules/rea-agents/scripts/rea.mjs";
expect(
transientClientLauncherPaths(
["/usr/local/bin/node", storeEntrypoint, "mcp"],
{},
"linux",
),
).toEqual([storeEntrypoint]);
expect(
transientClientLauncherPaths(
[
"/usr/local/bin/node",
"/home/alice/.local/share/mise/installs/rea/latest/node_modules/.bin/rea",
"mcp",
],
{},
"linux",
),
).toEqual([]);
expect(
registrationRuntimePath(
"/home/alice/.asdf/installs/nodejs/22.14.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.nodenv/versions/22.14.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.nvs/node/22.14.0/x64/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.nvs/default/bin/node",
"node",
{},
"linux",
),
).toBe("/home/alice/.nvs/default/bin/node");
expect(
registrationRuntimePath(
"/nix/store/abc123-nodejs-24.0.0/bin/node",
"node",
{},
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/home/alice/.nix-profile/bin/node",
"node",
{},
"linux",
),
).toBe("/home/alice/.nix-profile/bin/node");
expect(
registrationRuntimePath("/snap/node/9527/bin/node", "node", {}, "linux"),
).toBeUndefined();
expect(
registrationRuntimePath("/snap/node/current/bin/node", "node", {}, "linux"),
).toBe("/snap/node/current/bin/node");
expect(registrationRuntimePath("/snap/bin/node", "node", {}, "linux")).toBe(
"/snap/bin/node",
);
});
it("recognizes Bunx execution caches without exported cache settings", () => {
const cases = [
["linux", "/tmp/bunx-0-rea-agents@latest/node_modules/.bin/rea"],
[
"darwin",
"/private/tmp/bunx-501-@scope/cli@1.0.0/node_modules/@scope/cli/bin.js",
],
[
"linux",
"/custom/cache/.bunx-1000/rea-agents@latest+trust/node_modules/.bin/rea",
],
[
"linux",
"/custom/cache/.bunx-1000/@scope/cli@tag@hash/node_modules/@scope/cli/bin.js",
],
[
"win32",
"C:\\Temp\\bunx-0-rea-agents@latest\\node_modules\\.bin\\rea.cmd",
],
[
"win32",
"C:\\Temp\\BUNX-0-@scope\\cli@1.0.0\\node_modules\\@scope\\cli\\bin.js",
],
] as const;
for (const [platform, script] of cases) {
const runtime =
platform === "win32" ? "C:\\node\\node.exe" : "/usr/bin/node";
expect(
transientClientLauncherPaths([runtime, script, "mcp"], {}, platform),
script,
).toEqual([script]);
}
});
it("keeps durable paths that only resemble Bunx cache names", () => {
for (const script of [
"/opt/bunx-tools/bin/rea",
"/work/bunx-0-project/node_modules/.bin/rea",
"/work/.bunx-1000/project/node_modules/.bin/rea",
"/opt/bunx-0-pkg@1.0.0/bin/rea",
"/work/bunx-user-pkg@1.0.0/node_modules/.bin/rea",
"/work/.bunx-user/pkg@1.0.0/node_modules/.bin/rea",
"/work/bunx-0-pkg@/node_modules/.bin/rea",
"/home/alice/.bun/bin/rea",
]) {
expect(
transientClientLauncherPaths(
["/usr/bin/node", script, "mcp"],
{},
"linux",
),
script,
).toEqual([]);
}
});
it.skipIf(process.platform === "win32")(
"keeps a stable same-file alias outside a Bunx execution cache",
async () => {
const root = await createTestTempDirectory("rea-bunx-alias-");
const selected = join(
root,
"bunx-0-pkg@latest",
"node_modules",
"pkg",
"node",
);
const alias = join(root, "stable", "node");
await mkdir(dirname(selected), { recursive: true });
await mkdir(dirname(alias), { recursive: true });
await writeFile(selected, "runtime", { mode: 0o700 });
await symlink(selected, alias);
expect(
registrationRuntimePath(selected, "node", { PATH: "" }, "linux"),
).toBeUndefined();
expect(
registrationRuntimePath(
selected,
"node",
{ PATH: dirname(alias) },
"linux",
),
).toBe(alias);
},
);
it("recognizes configured version-manager environment roots", () => {
expect(
registrationRuntimePath(
"/opt/js/tools/image/node/22.1.0/bin/node",
"node",
{ VOLTA_HOME: "/opt/js" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/js/bin/node",
"node",
{ VOLTA_HOME: "/opt/js" },
"linux",
),
).toBe("/opt/js/bin/node");
expect(
registrationRuntimePath(
"/custom/nvm/versions/node/v22.14.0/bin/node",
"node",
{ NVM_DIR: "/custom/nvm" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"D:\\dev\\tools\\v22.14.0\\node.exe",
"node",
{ nvm_home: "D:\\dev\\tools" },
"win32",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/fnm/node-versions/v22.14.0/installation/bin/node",
"node",
{ FNM_DIR: "/opt/fnm" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/fnm/aliases/default/bin/node",
"node",
{ FNM_DIR: "/opt/fnm" },
"linux",
),
).toBe("/opt/fnm/aliases/default/bin/node");
expect(
registrationRuntimePath(
"/opt/mise-data/installs/node/22.14.0/bin/node",
"node",
{ MISE_DATA_DIR: "/opt/mise-data" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/mise-data/shims/node",
"node",
{ MISE_DATA_DIR: "/opt/mise-data" },
"linux",
),
).toBe("/opt/mise-data/shims/node");
expect(
registrationRuntimePath(
"/opt/mise-tools/node/22.14.0/bin/node",
"node",
{ MISE_INSTALLS_DIR: "/opt/mise-tools" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/mise-tools/node/latest/bin/node",
"node",
{ MISE_INSTALLS_DIR: "/opt/mise-tools" },
"linux",
),
).toBe("/opt/mise-tools/node/latest/bin/node");
expect(
registrationRuntimePath(
"/opt/asdf-root/installs/nodejs/22.14.0/bin/node",
"node",
{ ASDF_DATA_DIR: "/opt/asdf-root" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/asdf-root/shims/node",
"node",
{ ASDF_DATA_DIR: "/opt/asdf-root" },
"linux",
),
).toBe("/opt/asdf-root/shims/node");
expect(
registrationRuntimePath(
"/opt/nodenv-root/versions/22.14.0/bin/node",
"node",
{ NODENV_ROOT: "/opt/nodenv-root" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/nodenv-root/shims/node",
"node",
{ NODENV_ROOT: "/opt/nodenv-root" },
"linux",
),
).toBe("/opt/nodenv-root/shims/node");
expect(
registrationRuntimePath(
"/opt/nvs-root/node/22.14.0/x64/bin/node",
"node",
{ NVS_HOME: "/opt/nvs-root" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/opt/nvs-root/default/bin/node",
"node",
{ NVS_HOME: "/opt/nvs-root" },
"linux",
),
).toBe("/opt/nvs-root/default/bin/node");
});
it("recognizes custom HOMEBREW_CELLAR roots and configured remediation paths", () => {
expect(
registrationRuntimePath(
"/opt/pkg-cellar/node@22/22.14.0/bin/node",
"node",
{ HOMEBREW_CELLAR: "/opt/pkg-cellar" },
"darwin",
),
).toBeUndefined();
expect(
transientClientLauncherPaths(
["/opt/js/tools/image/node/22.1.0/bin/node", "/opt/bin/rea", "mcp"],
{ VOLTA_HOME: "/opt/js" },
"linux",
),
).toEqual(["/opt/js/tools/image/node/22.1.0/bin/node"]);
expect(
transientLauncherRemediation(
["/opt/js/tools/image/node/22.1.0/bin/node"],
"linux",
"Run rea setup again.",
{ VOLTA_HOME: "/opt/js" },
),
).toContain("version-manager or package-cache path");
expect(
registrationRuntimePath(
"C:\\Users\\alice\\AppData\\Local\\fnm_multishells\\123_456\\node.exe",
"node",
{},
"win32",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"C:\\custom\\multishell\\node.exe",
"node",
{ FNM_MULTISHELL_PATH: "c:\\custom\\multishell" },
"win32",
),
).toBeUndefined();
expect(
currentClientRegistrationCommand({
platform: "win32",
entrypointPath:
"C:\\Users\\alice\\AppData\\Local\\fnm_multishells\\123_456\\rea.cmd",
}),
).toEqual([]);
expect(
transientClientLauncherPaths(
[
"C:\\Users\\alice\\AppData\\Local\\fnm_multishells\\123_456\\node.exe",
"C:\\bin\\rea.cmd",
"mcp",
],
{},
"win32",
),
).toEqual([
"C:\\Users\\alice\\AppData\\Local\\fnm_multishells\\123_456\\node.exe",
]);
expect(
registrationRuntimePath(
"/tmp/pnpm-dlx-proof/dlx/hash/node",
"node",
{ npm_config_cache: "/tmp/pnpm-dlx-proof" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/tmp/bun-cache/package/node",
"node",
{ BUN_INSTALL_CACHE_DIR: "/tmp/bun-cache" },
"linux",
),
).toBeUndefined();
expect(
registrationRuntimePath(
"/usr/local/bin/node",
"node",
{
npm_config_cache: "/tmp/pnpm-dlx-proof",
BUN_INSTALL_CACHE_DIR: "/tmp/bun-cache",
},
"linux",
),
).toBe("/usr/local/bin/node");
expect(
transientLauncherRemediation(
["C:\\Users\\alice\\AppData\\Local\\fnm_multishells\\123_456\\node.exe"],
"win32",
"Run rea setup again.",
),
).toContain("uses a session path");
});
it.each([
["VOLTA_HOME", ["tools", "image", "node", "22.1.0", "bin", "node"]],
["BUN_INSTALL_CACHE_DIR", ["package", "rea.mjs"]],
] as const)(
"recognizes canonical paths beneath a linked %s",
async (setting, parts) => {
const root = await createTestTempDirectory("rea-linked-launcher-root-");
const physicalRoot = join(root, "physical-store");
const linkedRoot = join(root, "configured-store");
const stored = join(physicalRoot, ...parts);
await mkdir(dirname(stored), { recursive: true });
await writeFile(stored, "#!/bin/sh\nexit 0\n", { mode: 0o755 });
await symlink(
physicalRoot,
linkedRoot,
process.platform === "win32" ? "junction" : "dir",
);
const selected = await realpath(stored);
const environment = { [setting]: linkedRoot, PATH: "" };
expect(
registrationRuntimePath(selected, "node", environment, process.platform),
).toBeUndefined();
expect(
transientClientLauncherPaths(
[join(root, "stable-node"), selected, "mcp"],
environment,
process.platform,
),
).toEqual([selected]);
await rm(linkedRoot);
expect(
registrationRuntimePath(
join(linkedRoot, ...parts),
"node",
environment,
process.platform,
),
).toBeUndefined();
const outside = join(root, "stable-node");
await writeFile(outside, "#!/bin/sh\nexit 0\n", { mode: 0o755 });
expect(
registrationRuntimePath(outside, "node", environment, process.platform),
).toBe(outside);
},
);
it.skipIf(process.platform === "win32")(
"preserves a stable same-file alias outside a linked manager root",
async () => {
const root = await createTestTempDirectory("rea-linked-manager-alias-");
const physicalRoot = join(root, "physical-store");
const linkedRoot = join(root, "configured-store");
const stored = join(physicalRoot, "tools/image/node/22.1.0/bin/node");
await mkdir(dirname(stored), { recursive: true });
await writeFile(stored, "#!/bin/sh\nexit 0\n", { mode: 0o755 });
await symlink(physicalRoot, linkedRoot, "dir");
const bin = join(root, "stable-bin");
await mkdir(bin);
const alias = join(bin, "node");
await symlink(stored, alias);
expect(
registrationRuntimePath(
await realpath(stored),
"node",
{ VOLTA_HOME: linkedRoot, PATH: bin },
process.platform,
),
).toBe(alias);
).toEqual([process.execPath, entrypoint, "mcp"]);
},
);
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5 -19
View File
@@ -243,17 +243,6 @@
run setup, choose your coding agent and review the proposed
changes.
</p>
<p>
Client setup needs Node.js and REA paths that remain available
after updates, plus a writable npm prefix. For system Node.js,
<code>nvm</code>, <code>fnm</code>, or another version
manager, follow the
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#package-runners-and-global-installation"
>installation guide</a
>
before these commands.
</p>
<div class="code-block">
<div class="code-header">
<span>Terminal · agent setup</span
@@ -266,8 +255,7 @@
Copy
</button>
</div>
<pre><code id="faq-setup">npm install --global rea-agents
rea setup</code></pre>
<pre><code id="faq-setup">npx rea-agents@latest setup</code></pre>
</div>
<p>
Setup registers REA's MCP connection and installs the matching
@@ -311,9 +299,8 @@ rea setup</code></pre>
<pre><code id="faq-update-cli">rea update</code></pre>
</div>
<p>
Follow the setup refresh command printed by the update. Or
reinstall the latest global package and refresh your agent
setup:
Follow the setup refresh command printed by the update. If you
set up your agent through <code>npx</code>, run:
</p>
<div class="code-block">
<div class="code-header">
@@ -327,8 +314,7 @@ rea setup</code></pre>
Copy
</button>
</div>
<pre><code id="faq-update-agent">npm install --global rea-agents@latest
rea setup</code></pre>
<pre><code id="faq-update-agent">npx rea-agents@latest setup</code></pre>
</div>
<p>
Review the changes and restart your agent. Its REA connection
@@ -519,7 +505,7 @@ rea setup</code></pre>
Copy
</button>
</div>
<pre><code id="faq-repair">rea setup --client codex</code></pre>
<pre><code id="faq-repair">npx rea-agents@latest setup --client codex</code></pre>
</div>
<p>
Review its plan and restart the client. If registration is
+14 -29
View File
@@ -247,17 +247,6 @@
<a href="../get-started/">setup guide lists supported versions</a
>.
</p>
<p>
Client setup needs Node.js and REA paths that remain available
after updates, plus a writable npm prefix. For system Node.js,
<code>nvm</code>, <code>fnm</code>, or another version manager,
follow the
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#package-runners-and-global-installation"
>installation guide</a
>
before these commands.
</p>
<div class="agent-terminal">
<div class="terminal-header">
<span class="terminal-title"
@@ -277,28 +266,24 @@
<p class="terminal-prompt">
<span class="prompt-symbol" aria-hidden="true">›</span
><span id="first-install-prompt"
>Install REA globally and connect it to this coding agent with
<span translate="no">npm install --global rea-agents</span>
and <span translate="no">rea setup</span>. Show me the setup
plan for approval, then verify the installation.</span
>Install REA and connect it to this coding agent using
<span translate="no">npx rea-agents@latest setup</span>. Show
me the setup plan for approval, then verify the
installation.</span
><span class="terminal-cursor" aria-hidden="true"></span>
</p>
</div>
<p class="caption">Or run this command in your terminal:</p>
<div class="code-block">
<div class="code-header">
<span>Terminal · install and setup</span
><button
class="copy-button"
type="button"
data-copy="first-setup-command"
aria-label="Copy setup command"
>
Copy
</button>
</div>
<pre><code id="first-setup-command">npm install --global rea-agents
rea setup</code></pre>
<div class="code-block code-inline">
<code id="first-setup-command">npx rea-agents@latest setup</code>
<button
class="copy-button"
type="button"
data-copy="first-setup-command"
aria-label="Copy setup command"
>
Copy
</button>
</div>
<p>
Review the plan, approve the setup, then restart your agent.
+40 -103
View File
@@ -298,9 +298,9 @@ npm -v</code></pre>
</div>
<p>
If <code>node -v</code> prints v22.23.4+, v24.22.1+ or
v26.12.1+, check that its path stays valid after updates. If it
prints an older version or "not recognized" / "command not
found", install <span translate="no">Node.js</span> 24 LTS:
v26.12.1+, you're ready. If it prints an older version or "not
recognized" / "command not found", install
<span translate="no">Node.js</span> 24 LTS:
</p>
<details class="evidence-details" id="node-windows-help">
<summary translate="no">Windows (PowerShell)</summary>
@@ -346,8 +346,7 @@ npm -v</code></pre>
Copy
</button>
</div>
<pre><code id="node-windows-shim">npm.cmd install --global rea-agents
rea.cmd setup</code></pre>
<pre><code id="node-windows-shim">npx.cmd rea-agents@latest setup</code></pre>
</div>
</details>
<details class="evidence-details" id="node-macos-help">
@@ -358,36 +357,6 @@ rea.cmd setup</code></pre>
>Node.js 24 LTS macOS installer (.pkg)</a
>, open it and follow the installer. Then reopen Terminal.
</p>
<p>
If you use the macOS installer and do not already have a
writable npm prefix, back up <code>~/.npmrc</code> if it
exists, then choose a user-owned prefix for future global
installations:
</p>
<div class="code-block">
<div class="code-header">
<span translate="no">macOS</span>
<button
class="copy-button"
type="button"
data-copy="node-macos-prefix"
aria-label="Copy npm prefix commands"
>
Copy
</button>
</div>
<pre><code id="node-macos-prefix">npm config set prefix "$HOME/.local" --location=user
export PATH="$HOME/.local/bin:$PATH"</code></pre>
</div>
<p>
Add the <code>PATH</code> export above once to
<code>~/.zprofile</code> for new macOS Terminal sessions. For
another shell, follow the
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#user-owned-npm-installation"
>installation guide</a
>.
</p>
<details class="evidence-details">
<summary>Already use Homebrew?</summary>
<div class="code-block">
@@ -409,9 +378,9 @@ export PATH="$HOME/.local/bin:$PATH"</code></pre>
<details class="evidence-details" id="node-linux-help">
<summary translate="no">Linux</summary>
<p>
Install curl and xz tools first if they are missing. On Debian
or Ubuntu, run <code>sudo apt install curl xz-utils</code>; on
other distributions, use your package manager.
Install curl and unzip first if they are missing. On Debian or
Ubuntu, run <code>sudo apt install curl unzip</code>; on other
distributions, use your package manager.
</p>
<div class="code-block">
<div class="code-header">
@@ -420,30 +389,14 @@ export PATH="$HOME/.local/bin:$PATH"</code></pre>
class="copy-button"
type="button"
data-copy="node-linux-fnm"
aria-label="Copy Node.js installation command for Linux"
aria-label="Copy fnm installation command for Linux"
>
Copy
</button>
</div>
<pre><code id="node-linux-fnm">mkdir -p "$HOME/.local"
arch=$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/')
file=$(curl -fsSL https://nodejs.org/dist/latest-v24.x/SHASUMS256.txt | awk "/linux-${arch}\\.tar\\.xz$/ {print \$2; exit}")
curl -fsSL "https://nodejs.org/dist/latest-v24.x/${file}" | tar -xJ -C "$HOME/.local" --strip-components=1
bash_profile="$HOME/.profile"
for candidate in "$HOME/.bash_profile" "$HOME/.bash_login"; do
if [ -f "$candidate" ]; then
bash_profile="$candidate"
break
fi
done
for rc in "$HOME/.profile" "$bash_profile" "$HOME/.bashrc" "$HOME/.zshrc"; do
grep -Fq '$HOME/.local/bin' "$rc" 2&gt;/dev/null || echo 'export PATH="$HOME/.local/bin:$PATH"' &gt;&gt; "$rc"
done</code></pre>
<pre><code id="node-linux-fnm">curl -fsSL https://fnm.vercel.app/install | bash</code></pre>
</div>
<p>
Enable the path in this terminal (saved for new Bash, Zsh, and
login shells) and verify:
</p>
<p>Close the terminal, open it again, then:</p>
<div class="code-block">
<div class="code-header">
<span>Linux</span
@@ -456,9 +409,9 @@ done</code></pre>
Copy
</button>
</div>
<pre><code id="node-linux-install">export PATH="$HOME/.local/bin:$PATH"
node -v
npm -v</code></pre>
<pre><code id="node-linux-install">fnm install 24
fnm use 24
fnm default 24</code></pre>
</div>
<p>
Your distribution's own <code>nodejs</code> package is often
@@ -651,8 +604,7 @@ cd rea-work</code></pre>
Copy
</button>
</div>
<pre><code id="setup-claude-desktop">npm install --global rea-agents
rea setup --client claude_desktop</code></pre>
<pre><code id="setup-claude-desktop">npx rea-agents@latest setup --client claude_desktop</code></pre>
</div>
<p>
Review and approve the plan, reopen Claude, then
@@ -860,17 +812,6 @@ rea setup --client claude_desktop</code></pre>
</section>
<section class="article-section" id="agent">
<h2>3. Connect REA</h2>
<p>
Client setup needs Node.js and REA paths that remain available
after updates, plus a writable npm prefix. For system Node.js,
<code>nvm</code>, <code>fnm</code>, or another version manager,
follow the
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#package-runners-and-global-installation"
>installation guide</a
>
before these commands.
</p>
<p>Copy this into your coding agent:</p>
<div class="agent-terminal">
<div class="terminal-header">
@@ -891,10 +832,10 @@ rea setup --client claude_desktop</code></pre>
<p class="terminal-prompt">
<span class="prompt-symbol" aria-hidden="true">›</span
><span id="agent-install-prompt"
>Install REA globally and connect it to this coding agent with
<span translate="no">npm install --global rea-agents</span>
and <span translate="no">rea setup</span>. Show me the setup
plan for approval, then verify the installation.</span
>Install REA and connect it to this coding agent using
<span translate="no">npx rea-agents@latest setup</span>. Show
me the setup plan for approval, then verify the
installation.</span
><span class="terminal-cursor" aria-hidden="true"></span>
</p>
</div>
@@ -913,8 +854,7 @@ rea setup --client claude_desktop</code></pre>
Copy
</button>
</div>
<pre><code id="agent-setup">npm install --global rea-agents
rea setup</code></pre>
<pre><code id="agent-setup">npx rea-agents@latest setup</code></pre>
</div>
<p>For one specific client, add its setup ID:</p>
<div class="code-block">
@@ -929,11 +869,12 @@ rea setup</code></pre>
Copy
</button>
</div>
<pre><code id="agent-setup-one">rea setup --client codex</code></pre>
<pre><code id="agent-setup-one">npx rea-agents@latest setup --client codex</code></pre>
</div>
<p>
In REA's client list, use the arrow keys to move, Space to
select your client and Enter to continue.
If npm asks to download the package, type <code>y</code> and
press Enter. In REA's client list, use the arrow keys to move,
Space to select your client and Enter to continue.
</p>
</details>
<p>
@@ -1251,8 +1192,8 @@ javac -version</code></pre>
</div>
<pre><code id="ghidra-windows-connect">$env:GHIDRA_INSTALL_DIR = "C:/tools/ghidra_12.2_PUBLIC"
$env:JAVA_HOME = "C:/tools/jdk-25"
rea doctor --provider ghidra --json
rea setup</code></pre>
npx -y rea-agents@latest doctor --provider ghidra --json
npx rea-agents@latest setup</code></pre>
</div>
<p>
Replace the two paths with your installations, then review
@@ -1321,8 +1262,8 @@ export JAVA_HOME="/absolute/path/to/jdk-25"</code></pre>
Copy
</button>
</div>
<pre><code id="ghidra-unix-setup">rea doctor --provider ghidra --json
rea setup</code></pre>
<pre><code id="ghidra-unix-setup">npx -y rea-agents@latest doctor --provider ghidra --json
npx rea-agents@latest setup</code></pre>
</div>
</details>
<p>
@@ -1424,8 +1365,8 @@ rea setup</code></pre>
</div>
<pre><code id="ida-connect">$env:REA_IDA_MCP_CONFIG = "C:/analysis/ida-mcp.json"
$env:REA_ANALYSIS_PROVIDER = "ida"
rea doctor --provider ida --json
rea setup</code></pre>
npx -y rea-agents@latest doctor --provider ida --json
npx rea-agents@latest setup</code></pre>
</div>
<div class="code-block">
<div class="code-header">
@@ -1441,8 +1382,8 @@ rea setup</code></pre>
</div>
<pre><code id="ida-connect-unix">export REA_IDA_MCP_CONFIG="/absolute/path/to/ida-mcp.json"
export REA_ANALYSIS_PROVIDER="ida"
rea doctor --provider ida --json
rea setup</code></pre>
npx -y rea-agents@latest doctor --provider ida --json
npx rea-agents@latest setup</code></pre>
</div>
<p>
Use the JSON registration file you prepared with the provider
@@ -1726,11 +1667,8 @@ rea setup</code></pre>
are marked in the result.
</p>
<p>
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#user-owned-npm-installation"
>If you'd like a permanent <code>rea</code> command in your
shell</a
>:
If you'd like a permanent <code>rea</code> command in your
shell:
</p>
<div class="code-block">
<div class="code-header">
@@ -1858,15 +1796,14 @@ rea setup</code></pre>
Copy
</button>
</div>
<pre><code id="windows-setup-command">npm.cmd install --global rea-agents
rea.cmd setup</code></pre>
<pre><code id="windows-setup-command">npx.cmd rea-agents@latest setup</code></pre>
</div>
</details>
<details class="evidence-details">
<summary>Update or remove REA</summary>
<p>
To refresh your agent connection, run setup again, review its
plan and restart your client.
To refresh your agent connection, run the latest setup command
again, review its plan and restart your client.
</p>
<div class="code-block">
<div class="code-header">
@@ -1880,13 +1817,13 @@ rea.cmd setup</code></pre>
Copy
</button>
</div>
<pre><code id="refresh-rea">rea update
rea setup</code></pre>
<pre><code id="refresh-rea">npx rea-agents@latest setup</code></pre>
</div>
<p>
If you installed the global CLI, update it with
<code>rea update</code>. Use <code>rea uninstall</code> to
remove REA's client configuration and skill.
<code>rea update</code>. Use
<code>npx rea-agents@latest uninstall</code> to remove REA's
client configuration and skill.
</p>
<p>
<a
+14 -30
View File
@@ -232,17 +232,6 @@
<div class="home-setup" id="install">
<div class="home-setup-agent">
<h2>Set up REA</h2>
<p>
Client setup needs Node.js and REA paths that remain available
after updates, plus a writable npm prefix. For system Node.js,
<code>nvm</code>, <code>fnm</code>, or another version manager,
follow the
<a
href="https://github.com/morluto/rea/blob/main/docs/getting-started/installation.md#package-runners-and-global-installation"
>installation guide</a
>
before these commands.
</p>
<p>Copy this into your coding agent:</p>
<div class="agent-terminal">
<div class="terminal-header">
@@ -263,31 +252,26 @@
<p class="terminal-prompt">
<span class="prompt-symbol" aria-hidden="true">›</span
><span id="home-install-prompt"
>Install REA globally and connect it to this coding agent
with
<span translate="no">npm install --global rea-agents</span>
and <span translate="no">rea setup</span>. Show me the setup
plan for approval, then verify the installation.</span
>Install REA and connect it to this coding agent using
<span translate="no">npx rea-agents@latest setup</span>.
Show me the setup plan for approval, then verify the
installation.</span
><span class="terminal-cursor" aria-hidden="true"></span>
</p>
</div>
</div>
<details class="home-setup-command" open>
<summary>Or run this in your terminal:</summary>
<div class="code-block">
<div class="code-header">
<span>Terminal · install and setup</span
><button
class="copy-button"
type="button"
data-copy="setup-command"
aria-label="Copy setup command"
>
Copy
</button>
</div>
<pre><code id="setup-command">npm install --global rea-agents
rea setup</code></pre>
<div class="code-block code-inline">
<code id="setup-command">npx rea-agents@latest setup</code>
<button
class="copy-button"
type="button"
data-copy="setup-command"
aria-label="Copy setup command"
>
Copy
</button>
</div>
<p class="caption">
Approve the setup plan, then restart your agent.