fix(npm): preserve explicit setup versions (#465)

* fix(npm): refresh stale setup bootstraps

* fix(npm): preserve explicit setup versions

* docs: distinguish first-run and refresh setup
This commit is contained in:
morluto
2026-08-10 02:59:52 +08:00
committed by GitHub
parent ed4a62871f
commit 1783bf6dfd
13 changed files with 34 additions and 296 deletions
+9 -4
View File
@@ -67,6 +67,9 @@ describe("localized README product facts", () => {
"curl -fsSL https://raw.githubusercontent.com/morluto/rea/main/install.sh | bash",
);
expect(content).toContain("npx rea-agents setup");
expect(content).toContain(
"npx --yes --prefer-online rea-agents@latest setup",
);
expect(content).toContain("npx -y rea-agents@latest doctor");
expect(content).toContain("rea uninstall");
expect(content).toContain(
@@ -95,15 +98,17 @@ describe("localized README product facts", () => {
expect(content).toContain("--install-hopper");
expect(content).toContain("docs/installation.md");
expect(content).toContain("You do not need both");
expect(normalizedProse(content)).toContain(
"npx -y rea-agents@latest setup` once to repair registrations",
expect(content).toContain(
"npx --yes --prefer-online rea-agents@latest setup",
);
});
it("documents stale bootstrap recovery and explicit rollback", async () => {
it("documents explicit setup freshness and rollback", async () => {
const content = await readFile(resolve("docs/installation.md"), "utf8");
const prose = normalizedProse(content);
expect(prose).toContain("before REA plans or writes configuration");
expect(prose).toContain(
"explicit `@latest` request and `--prefer-online` metadata policy",
);
expect(prose).toContain(
"npm exec --yes --package=rea-agents@2.4.0 -- rea setup",
);